"Unable to reduce step size"-error occurs when a scope is connected to specific outputs.
71 ビュー (過去 30 日間)
My simulation works but when I try to observe certain states in my simulation using scopes, an error occurs: "An error occurred while running the simulation and the simulation was terminated Caused by: Unable to reduce the step size without violating a minimum step size of 1.43102346483262E-21 at time 4.0279729643616539E-7 for model 'modelname'". Solver is ode23t, relative tolerance is 1e-3, absolute tolerance is set to 'auto'. This is strange because if I remove the scope again, the simulation will not crash.. How is this error possible?
回答 (1 件)
Jyotish Robin 2017 年 3 月 14 日
This error can happen when the solver is unable to solve the equations within the step-size provided.
One of the recommended ways to resolve this error is to increase the number of consecutive minimum steps the model is taking. This value can be modified by expanding the ' Additional options' section in solver section of the configuration parameters.
In this section, you should see a dialog box with the title ' Number of consecutive min steps:' next to it. Increase the value in this box.
You can also try to relax all the tolerances in the model from the Model Configuration Parameters.
Hope it helps!