AmesimKnowledge

The Tools menu > Preferences

Compilation

System compilation

Compilation / Parameters

Preferences Compilation/Parameters

This tab gives access to compilation settings.

Figure 264: Compilation

Active compiler

Simcenter Amesim needs a compiler to produce the executable file of your system.

The compiler allows you to enter Parameter mode. At this stage, Simcenter Amesim Run produces a .exe file to run the system.

Active compiler - Windows Active compiler - Linux
Windows Three compilers may be used with Simcenter Amesim Run: Microsoft Visual C++, the GCC compiler and the Intel oneAPI compiler. GCC is under the GNU general public license. Naturally your choice depends on which of these is installed. You must at least have one of these installed. Linux Two compilers may be used with Simcenter Amesim Run: the GCC compiler and the Intel oneAPI compiler. GCC is under the GNU general public license. Naturally your choice depends on which of these is installed. You must at least have one of these installed. Both You should ask your administrator which compilers are installed for Simcenter Amesim Run. Then you can set your current compiler in the Preferences. If you want to change the active compiler, you must check if any of your previous systems used home-made submodels or libraries. If this is the case, you must recompile these submodels by using Submodel Editor with the new active compiler and libraries with batch command files.

Intel oneAPI Compiler

The Intel oneAPI compiler generates binaries that are optimized for Intel oneAPI processors. Windows and Linux users having processors can expect simulation time reductions of twenty per cent (20%) on all models by using this compiler. Please note also that similar speedups may be obtained on other processors such as AMD.

Using Submodels written in Fortran under Windows

Intel Visual Fortran is no longer supported as of Simcenter Amesim Run 2504. Please use GCC’s Fortran compiler if you want to compile Fortran submodels.

Using Submodels written in Fortran under Linux

If you have a submodel written in Fortran you must configure Simcenter Amesim Run so that it can use submodels compiled with the Fortran compiler dedicated to your operating system:

Procedure

  1. Make a copy of the AME.make file (which is located in the Simcenter Amesim Run installation directory), copy it to a working directory and modify it as follows.

  2. Change the AME.make file as follows:

For Sun (Solaris 2.6 or higher): Copy$(CC) -I$(AME)/lib -c $(CC) -lF77 -lsunmath

For Linux:

For g77 Copy$(CC) -I$(AME)/lib -c $(CC) -lg2c

For f77 Copy$(CC) -I$(AME)/lib -c $(CC) -lf2c

  1. Add the working directory containing your modified AME.make file to the path list in Simcenter Amesim Run.

Encrypted supercomponents

The supercomponent encryption mechanism has evolved greatly since Rev 11 in comparison with older versions of Component Customization and Simcenter Amesim Run. The major change concerns the compilation of constituent submodel code in a dedicated library.

This new method has been judged far more robust against reverse engineering. However, it is still possible to use the former encryption mechanism in Simcenter Amesim Run by selecting the Use old encryption method checkbox.

Figure 265: Use old encryption mechanism checkbox

Selecting this option is reversible: a supercomponent encrypted with the new method can be ‘downgraded’ to the old method by saving it again after the Use old encryption method checkbox has been selected.

If the supercomponent is already being used in a model, the Model update assistant must be applied to update the model. The Model update assistant facility will detect the encryption method and update the supercomponent concerned.

Click the Compiler Settings button to open the corresponding dialog box:

Figure 266: Compiler Settings dialog box

During each save operation, the encrypted supercomponent is recompiled. Note that it can be compiled for more than one compiler at the same time. The list of compilers to be used is available in Compiler Settings dialog box (see figure above).

The list of possible compilers depends on the platform.

Note

No check as to the presence of a compiler is performed at this stage. It is the responsibility of the user to ensure that the required compilers are correctly installed on the machine.

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