Back to the glossary

Embedded and systems

Functional Mock-up Interface (FMI)

FMI is an open standard for exchanging simulation models between tools. A model is exported as a Functional Mock-up Unit (FMU) and can then be run in other environments.

Also known as: FMU, Functional Mock-up Unit, co-simulation

The problem FMI solves

Plant models are built in many different tools, depending on the discipline and the developers’ preferences. Without a common standard, every model is tied to its tool. FMI defines a tool-independent interface, so a model can be built once and used in many places.

What’s inside an FMU

An FMU is a ZIP archive containing:

  • an XML description of the inputs, outputs, parameters and capabilities
  • the compiled model code for one or more platforms, optionally also as C source code
  • optionally documentation and resources such as lookup tables

FMI distinguishes two main kinds: with model exchange, the FMU provides the equations and the calling tool solves them. With co-simulation, the FMU brings its own solver and is simply stepped forward. Version 3.0 extends the standard, among other things for virtual control units.

FMI in testing

With FMUs, the same model moves from the desktop into the software-in-the-loop pipeline and onto the HiL test bench. In Python, FMUs can be integrated directly into automated tests, for example with the FMPy library.