Options for System Modeling

Most users will not need to change any options related to system modeling, but there are some cases where a custom configuration is warranted.

Advanced Translation Options

There are advanced settings controlling how a (RefLink[SystemModel, paclet:ref/SystemModel]) is translated to a simulation executable. This section describes the available options.

Note that these settings are persistent over sessions.

Tearing

Tearing is a technique used to reduce large, sparse systems of equations to smaller, denser systems. It can significantly improve the runtime performance of a model. By default, this technique is applied. It is possible to turn off tearing for all models.

SystemModelConfiguration`SetConfiguration["Translation","Tearing",False]

Restore the default behavior where tearing is active.

SystemModelConfiguration`SetConfiguration["Translation","Tearing",True]

Dynamic State Selection

A state selection algorithm can be used that may introduce dynamic states in the model. This algorithm can be enabled, disabled or enabled for a list of specified libraries. Retrieve the current settings under "Translation" and "DynamicStateSelection".

SystemModelConfiguration`GetConfiguration["Translation","DynamicStateSelection"]

Turn on dynamic state selection for all models.

SystemModelConfiguration`SetConfiguration["Translation","DynamicStateSelection",All]

Turn off dynamic state selection for all models.

SystemModelConfiguration`SetConfiguration["Translation","DynamicStateSelection",None]

Restore the default setting.

SystemModelConfiguration`SetConfiguration["Translation","DynamicStateSelection",{"Modelica.Mechanics.MultiBody"}]