Analyzing Numerics
You can analyze the numeric integration to inspect state variables that might slow down the simulation of large models.
Note:
Analyzing numeric
integration is not supported when you use any of the following integrators:
- Euler
- Any Rkfix integrator
- Cvode
- Any integrator used for inline integration
- From the Simulation section of the action bar, click Simulation Analysis .
-
Click the Numeric Integration tab.
The Numeric Integration tab contains the following columns:
- The state variable name.
- The number of times the variable limits the step size of the numerical integrator. Counts greater than zero are highlighted.
- The number of times the variable dominates the error, that is, has an integration error larger than any other state variable. Counts greater than zero are highlighted.
- The number of times the variable contributes to more than 10 % of the integrator error.
Note: If no information can be displayed, the Numeric Integration tab is not displayed. - To display the result for a variable in a plot, right-click the variable in the window and select Plot Error.The following is the result:
- In the plot that appears a marker is plotted at each time point where such an event occurs, and the value on the vertical axis is the contribution to the numeric error in percent. This plot gives a better understanding of the variable´s effect on the numeric integrator at various stages of the simulation.
- The variable that you selected is also highlighted in the Variable Browser.
- To study the behavior of the numeric integrator, click Plot Integrator Step Size.A plot appears, displaying the internal integrator step size, the scaled local error estimate from the integrator, and the integration order.Notes:
- Rejected steps (and subsequent restart with smaller step) are indicated with red cross.
- You can use the scaled local error estimate to, for example, see if the integration step size is being limited by the error estimate or something else, like frequent restarts because of events.