Viewing Simscape™ model statistics is a good way to evaluate the model prior to simulation. Model statistics provide feedback on the model complexity, so that you can make informed choices about whether you want to simulate the model in its current configuration or make changes to it. This approach helps you achieve the desired simulation performance and goals.
Unlike other derived data (such as data logging or simulation statistics), which is generated during simulation, model statistics is compile-time data that is generated before the model is simulated. When you generate model statistics, the model must be in a compilable state, that is, it must satisfy the requirements described in Model Validation.
Use model statistics as part of the iterative model building process. For example, after you make a change to the model, you can view model statistics to answer the following questions:
Did the change increase the number of variables?
Does the model have redundant constraints or have I resolved them?
How many potential zero-crossing signals does the model have?
The Statistics Viewer analysis tool is available for models containing Simscape blocks and blocks from add-on products. Depending on the types of blocks in the model, the analysis can produce one or both statistics categories:
1-D Physical System — This node represents aggregate statistics generated from all physical networks that are associated with blocks from Simscape, SimDriveline™, SimHydraulics®, SimElectronics®, and SimPowerSystems™ Third Generation libraries.
3-D Multibody System — This node represents aggregate statistics generated from all physical networks that are associated with blocks from SimMechanics™ Second Generation library.
Each statistic is generated separately from each topologically distinct physical network of these blocks and then aggregated to appear as a single statistic in the Statistics Viewer.