The Modelica platform in detail > Translating Modelica models
Calling external C and FORTRAN procedures
The Modelica language allows you to call external C or FORTRAN procedures. These are usually done through static libraries that must be included in the compilation of the whole Simcenter Amesim model. During the compilation process, the compiler will link in any external objects referenced by the Modelica code, as necessary. For example, the tables in the Modelica Standard Library call out to external C procedures to perform the interpolation. Using any MSL tables will automatically cause the compiler to link the library that performs those operations.
The path to the external resources is set once a submodel is generated (through a switch to Submodel mode). If the location of those resources cannot be found (e.g., you’ve moved the birary file, or you’ve sent your model to another person who has a different folder path), then the .ame compilation will fail when the linker attempts to find them. Similarly, if Simcenter Amesim cannot find the required libraries during simulation, it will fail.
Warning
Do not move external resources after you switch to Submodel mode. Doing so will cause the compilation and/or simulation to fail. If you must relocate a resource, then regenerate code for the Modelica submodel to update the path.
Source: https://docs.sw.siemens.com/en-US/doc/254352342/PL20250521841123434.amesim_collection.Modelica_Platform/xid1196841 · retrieved 2026-07-17