AmesimKnowledge

Advanced Modelica language topics > The Modelica compiler

Compiler options

compiler options

options compiler

Simcenter Amesim's Modelica compiler can accept a number of optional input arguments. This section briefly describes the most commonly-needed compiler options. In general, the user can set these options from the Simcenter Amesim GUI by selecting Tools > Options > Preferences and then selecting the Modelica tab. Below is a list of possible compiler options and their usage:

  • Automatic log window close on successful compilation: this option automatically closes the log window when compilation is successful.

  • Generate runtime option parameters Generate runtime option parameters : this option allows you to generate the runtime parameters from the compiler. Sometimes it is necessary to have these runtime parameters available in Simcenter Amesim in order to debug the simulation, or to improve performance. This option is disabled by default.

  • Verbose log level Verbose log level : this option allows you to define the level of logs obtained from the compiler after compilation. If you select the Verbose log level check box the Log folder field is enabled, and you can use the browse button to enter the path to the folder in which you want to save the log file. This option is disabled by default.

  • Evaluate parameters to reduce simulation time Evaluate parameters to reduce simulation time : If this option is enabled, model parameters will be treated as constants. This significantly reduces the simulation time. The downside of using this option is that the parameter panel will be empty and the model parameters can only be modified in the Modelica editor. However, it is also possible to specifically select a group of parameters to be ignored in this evaluation, which can then be reused in the parameter panel even if you activate this option. It is sufficient to write the name patterns of the parameters to be skipped from the effect of this evaluation in the text field below the checkbox. The name pattern logically follows the globs pattern logical. For instance writing temp* in this field will keep all the parameters starting with temp.

Figure 34: Modelica compiler options

Source: https://docs.sw.siemens.com/en-US/doc/254352342/PL20250521841123434.amesim_collection.Modelica_Platform/Compiler_options · retrieved 2026-07-17