AmesimKnowledge

The Simulate menu > Simulation mode

What should I do in case of compilation failure?

This section describes steps to take in case of compilation failure.

Model containing an interface block

  • Check that your versions of Simcenter Amesim and the other software used in the interface are compatible (please refer to the corresponding interface manual).

  • For Windows users, check that the default compiler selected in the Simcenter Amesim preferences is Microsoft Visual C++ as most of the interfaces only support this compiler (Tools > Preferences menu item). This implies that the above requirements for Microsoft Visual C++ under Windows are met.

  • For Windows users, If the Microsoft Visual Express 2005 or Toolkit 2003 edition is used, install the Microsoft SDK platform then declare and assign a MSSDK environment variable as indicated in the Microsoft documentation.

Case of a Simulink or SimuCosim block:

If your model contains a Simulink or SimuCosim block:

  • For Windows users:

  • Check that Matlab is set up to use Microsoft Visual C++ (mex -setup command).

  • Check that your versions of Microsoft Visual C++ and Matlab are compatible (please refer to the Matlab documentation).

  • Check that the MATLAB environment variable is set to the Matlab installation folder.

  • For Linux users:

  • Check that your versions of the ANSI C compiler and Matlab are compatible (please refer to the Matlab documentation).

  • Check that the MATLAB_ROOT environment variable is set to the Matlab installation directory.

Standard model

  • Look at the compilation and link command lines in the System Compilation dialog box and search for the ’error’ keyword in the message: the associated description will help you to identify the source of the problem.

  • Check that your is up to date: all the libraries whose components are used in the model must be added to the (Sketch > Category menu item).

  • For GCC users (under Windows or Linux), check that GCC is installed and that its installation folder is included in your Path environment variable.

Microsoft Visual C++ under Windows:

  • Check that Microsoft Visual C++ is installed.

  • Check that VCVARS32.bat has been copied to the Simcenter Amesim installation folder.

Compilation under Linux:

  • Check that an ANSI C compiler is installed.

  • Check that the installation directory of your compiler is included in your path.

Object file out of date:

If you have a submodel object file which is older than the source file from which it was generated, you will get the following error message:

To solve this problem, recompile the source in Submodel Editor.

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