Main Content

Scalable Compilation Limitations

Scalable compilation reduces compilation time for models that consist of a pattern of repeated components by compiling a repeated component once, and then reusing these compilation artifacts for other instances of the same component. Besides individual Simscape™ blocks and textual components, scalable compilation supports only two types of reusable subsystems: referenced subsystems and linked subsystems. Other types of graphical subsystems must be converted to one of these types to take advantage of scalable compilation.

Different instances of reusable subsystems can have different parameter values, by utilizing system masks. For more information, see Reference a Subsystem File in a Model. You can also parameterize a variable initialization target value within a reusable subsystem and supply different values of that initialization target to different subsystem instances, for example, from a mask parameter or from the base workspace. However, other properties of a variable, such as the initialization priority or nominal value, have to be the same in all the reusable subsystem instances.

Additionally, scalable compilation does not support the following simulation tools and workflows:

  • The Partitioning local solver

  • Nonlinear index reduction, which is a global transformation used for solving high-index nonlinear equations

The Advisory tool can provide information about unsupported patterns or workflows in your model. If the model contains unsupported patterns, workflows, or optimizations, the Advisory tool lists the applicable limitations and returns the recommendation not to enable scalable compilation.

Related Topics