Simscape Initialization Analyzer
Description
Use the Simscape Initialization Analyzer app to analyze and debug initialization warnings and errors for a Solver Configuration block in a Simscape model.
To analyze a Simscape model that fails to initialize, is slow to initialize, or performs slowly during simulation, use the Simscape Initialization Analyzer app to analyze the final states. Use the app to:
Display targets and priorities.
Plot states with respect to their target.
Highlight poorly initialized states and states with large magnitudes.
Generate suggestions to improve initialization.
You can use the Solve event drop-down menu to select a solver reinitialization event to analyze.
The columns in the State Variables pane display information related to the solver initialization:
State variable — The solver state variable
Index of first divergence — The solver iteration when the solver value magnitude exceeds the divergence limit
Priority — The state priority during initialization
Target — The target value of the state during initialization
When you select a state, the Plot pane displays the state
value with respect to the solver iteration. Continuous states with inf or
NaN values can slow or prevent transient initialization.
Open the Simscape Initialization Analyzer App
To open the app, enter simscapeInitializationAnalyzer.
Examples
Parameters
Programmatic Use
Limitations
The app does not support:
Local solvers.
Rapid accelerator mode.
Libraries or subsystems.
When you use the app on a library or subsystem or with a local solver or rapid accelerator mode enabled, the app generates an error.
Version History
Introduced in R2026a


