This example shows how you can use model statistics to determine the effect of a change on model complexity.
Open the Simple Mechanical System example model.
To view model statistics, in the top menu bar of the model window, select Analysis > Simscape > Statistics Viewer.
The Simscape Statistics window opens, displaying the name of the model and an overview of the models statistics in a collapsed state.
Click to expand all nodes.
You can see that, after variable elimination, the model contains five continuous differential variables, no algebraic variables, no discrete variables, and no zero-crossing signals.
Replace the Translational Damper block in the model diagram with a Translational Friction block, as shown in the following figure.
Select Analysis > Simscape > Statistics Viewer to refresh the model statistics.
The revised model contains five differential variables, six algebraic variables, and two zero-crossing signals. This happened because you replaced a linear block (Translational Damper) with a nonlinear one (Translational Friction). Therefore the linear optimization that the solver initially performed on the model no longer applies.