Can you verify that this line is correct (i.e., that it should not have been simulationTimeElapsed())?