AmesimKnowledge

Importing and using FMU > The Import Tool in detail

Command line tool reference

The name of the executable is fmi_import_compiler. It takes only one argument, the path name of the FMU to be imported. Some options are allowed:

fmi_import_compiler [options] <model.fmu>
-v Display application version
-d Enable debug messages
-info Show version, type and platform information about the FMU
`-compliancy <strict relaxed>`
-outdir <outdir> Output directory
-ccomp <ccomp> C submodel compiler special keywords release, debug, nocomp or none are recognized
-ccopt <ccopt> Options to be passed to the C compiler
-name <name> Name of the submodel to be created
`-preferred <cs me>`
-help Display this list of options

If one or more of these options are missing, default values are taken:

  • the import submodel is created in the current directory, if the -outdir option is missing;

  • the compliancy level is strict, if the -compliancy option is missing. This means that the import process is stopped as soon as an error in the FMU model description is detected. If the compliancy is set to relaxed, the tool reports the errors as warnings and tries to generate the import submodel anyway (with no guarantee about results or ability to perform simulation); Note that this option only applies to FMI version 1.0, since with FMI version 2.0, the compliancy level is always strict whatever the value passed with this option. Warning The -compliancy relaxed option should only be used for debugging ill-formed FMUs that do not fully comply with the FMI specifications. It is not advisable to perform simulations with such FMU. However, in some cases, using this option could be the only way to import some FMU.

  • the import submodel is compiled in release mode, if the -ccomp option is missing;

  • the import submodel is compiled with the default options of the default compiler of the platform (Visual Studio on Windows and gcc on Linux), if the -ccopt option is missing. Other compilers can be selected by passing the appropriate argument to the -ccopt option (the values available are listed with AMEcc_RELEASE-help). For instance, to use the Mingw64/gcc compiler provided with Simcenter Amesim for Windows 64 bit platforms,-win64_gcc -gcc has to be specified;

  • the name of the generated import submodel is obtained by prepending MEIMP (for Model Exchange) or CSIMP (for Co-simulation) to the FMU model identifier, if the -name option is missing.

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