The simulation object's step member is always initialized to 0 in calRunDef_D(). At the contrary, it should be initialized to initial_step. This is important, otherwise step will be initialized to 0 regardless of the third parameter of calRunDef_D() (that specifies the initial step of computation) in the case of simulation loop explicitation and substates' explicit update. This problem does not arise when you use implicit loop and update.
The simulation object's step member is always initialized to 0 in calRunDef_D(). At the contrary, it should be initialized to initial_step. This is important, otherwise step will be initialized to 0 regardless of the third parameter of calRunDef_D() (that specifies the initial step of computation) in the case of simulation loop explicitation and substates' explicit update. This problem does not arise when you use implicit loop and update.