Upload an FMU File to Run a Simulation Model

The Functional Mock-up Interface (FMI) standard is an open and tool-independent standard for exchange of models between tools. FMI defines a C interface that is implemented by an executable called a Functional Mock-up Unit (FMU).

FMU is a standard for exporting and importing simulation models. There are two types:

  • Static FMU: doesn’t use state variables and it needs to have the last output calculated to calculate the new value
  • Dynamic FMU: stores the value of the last output calculated in a state variable

FMU files can be generated in many simulation tools, for example using Altair Activate, a block diagram environment for model-based development and multi-domain simulation.

To create a new FMU function:

  1. Click to add a New Function, named it and choose FMU as template:
    Figure 1.


  2. If you haven't already, click to upload the FMU file to the Object Storage section and save the function. Note that the FMU file needs to be compiled in Linux.
  3. Once the file is available on the object storage section it will be listed in the drop-down. Choose your FMU file and click Save.
    Figure 2.


  4. To test the FMU function, use the API Inspector to invoke it, as follows:
    Figure 3.


    1. You can also try the following endpoints to retrieve the inputs and the outputs of your function:
      /spaces/YourSpaceID/functions/YourFunctionName/invoke/inputs
      /spaces/YourSpaceID/functions/YourFunctionName/invoke/outputs
      Figure 4.