A"Simulation stopped" alarm occurs

I have a question

When I press the play button, the simulation doesn’t run right away
A “Simulation stopped” alarm occurs and stops.

What’s the reason?
Thank you for your response in advance.

Simulation run time has been set or something like Halt statement in robot executor, or robot joint range limit setting or collision detector setting is stopping the simulation.

yes it’s very probably the simulation tun time : if you set it on 0:00:00, it’s going to stop the simulation after 0:00:00 seconds ! so set it on Infinite if you don’t need to set an end time.