What is the smallest number of simulation steps in Simulink? Does it differ for simulation with variable step and constant step?
I am trying to analyse model in Simulink by performing numerous sim() simulations saving state with 'SaveFinalState' and reloading using 'LoadInitialState'. Simulations are with constant step 1 minute. Ultimately, each simulation should be very short - consist of exactly two constant steps:
1) Start at moment defined in T (loaded simState),
2) End exactly at the end of the first step T+1min (determined in StopTime),
Unfortunately, such a script throws an error "The simulation of the model '__' stopped because the stop time is less than or equal to the snapshot time stored in the initial SimState. Increase the stop time if you want to continue the simulation from the specified __.".
The error can be removed by adding second step to simulation "StopTime=T + 2 * 1" insted of "StopTime=T + 1".