Build times out with no output but works on debug build

All the test instances on my project’s travis time out with no output, but when I run a debug build they all work perfectly.
I put in some print statements to try and figure out the error and it seems the builds time out at a print statement.

Is there any way to triage this issue?