Twin Builder Options: Modelica Compiler Options
Use these options to define settings for the compilation of Modelica models.
- Memory Usage Limit – Limit the use of memory by the Modelica compiler. Increase this number when model compilation fails due to memory size.
-
Modelica C-compiler – Set the C++ compiler used to compile Modelica models.
- GCC (internal) – Default. Use the Gcc compiler from <Installpath>\Common\MinGW-5.1.0.
- GCC (user defined) – Use the Gcc compiler from the MinGW location specified in the text control. To change it, click
.
- Visual Studio – Use the C compiler from an installed Visual Studio. Currently VS 2015, VS 2017, VS 2019, and VS 2022 are supported. For more details, see Program Requirements in the Introduction to the Twin Builder C Interface section.
Note:
If the Modelica model incorporates external compiled C-code (external DLLs), compile the Modelica model with a Visual Studio C++ compiler.
- JRE Location – Define the location where the Modelica compiler looks for the Java Runtime Environment (JRE).
- Use Internal JRE – Use the JRE included in the installation.
- Use JRE from JAVA_HOME – Determine the location of the JRE by the JAVA_HOME environment variable.
- User-defined location – Access the JRE from the location specified in the text control. To change it, click
.Note:- Twin Builder requires 64-bit Java when using a JRE other than the one included in the installation.
- Changes to the location of the JRE used for the Modelica compiler take effect after restarting Twin Builder.
- Advanced Options – Define non-standard settings for the Modelica compiler.
- Advanced Command-Line Options – Settings for non-standard features of the Modelica model compilation. Those settings can be obtained from Modelica support on a case-by-case basis.
- Advanced Settings – Other advanced settings.
- Keep Temp Files – Keep temporary Modelica files that are generated during compilation in a separate folder. Use this setting to collect all files necessary for the investigation of a support ticket. The default is No.
- Allow Lib Version Mismatch – If the library version of an instantiated model is lower than the required version specified in an annotation, the Modelica compiler issues a warning instead of an error. The default is Yes.
- Messages & Diagnostics – Define the setting location for additional information during model compilation.
- Message Level – Define the level of messages displayed in the Message Manager pane during the compilation of Modelica models.
- Errors – Only errors appear in the Message Manager pane.
- Warnings – Errors and warnings appear in the Message Manager pane.
- All – All messages appear in the Message Manager pane.
- Log Level – Choose the level of detail that appears in the Modelica compiler log file. The default is Errors.
- Diagnostics – Generate additional diagnostics information about the Modelica model. The default is OFF.
- Save To – Define the location where the Modelica compiler stores additional information during model compilation, and the diagnostics. The default location is the temp folder defined in the General > Directories page. The diagnostics and compiler log information display in a browser when you double-click the messages in the Message Manager pane.
- Message Level – Define the level of messages displayed in the Message Manager pane during the compilation of Modelica models.