Fixed out of order printing of input events processed in simulation loop.