Is there any way to fire some code if the simulation stops when the event list is empty?
I found that I could not achieve this by writing the code in OnRunStop.
In the attached very simple model, the simulation will stop at time 10 due to no events. I put code in the OnRunStop to display a message box. If I click Stop button to stop the simulation, OnRunStop will be called. But if I let simulation run to time 10 to stop because of no events, OnRunStop will not be called.