simulateMachine