FMI Compatibility Information

Note

This page is provided and maintained by the developers of FMIFlux.jl (JuliaFMI). It is not provided by the Modelica Association or the FMI Project.

FMIFlux.jl is an FMU importer: it combines FMUs with machine learning models (NeuralFMUs) and does not export FMUs. FMUs are loaded and simulated with FMIImport.jl, the import backend of FMI.jl. Therefore, the compatibility information of FMI.jl (FMI Cross-Check results and the FMIImport.jl test suite for FMI 2.0 and FMI 3.0) also applies to FMIFlux.jl.

FMU Import

The test suite of FMIFlux.jl additionally checks the functionality specific to FMIFlux.jl (training of NeuralFMUs, sensitivities through FMUs via FMISensitivity.jl) with the following FMUs. The tests run automatically in GitHub Actions on Windows (win64) and Linux (linux64), with the latest Julia release and the Julia LTS release.

Exporting toolTool versionFMI versionInterface typeFMUsTested functionality
Dymola (FMUs)2022x2.0MESpringPendulum1D, SpringFrictionPendulum1DNeuralFMU training, FMU parameter optimization, batching, training modes, loading/saving of NeuralFMUs
Dymola (FMUs)2022x2.0CSSpringPendulumExtForce1DNeuralFMU training
Dymola (FMUs)2023x2.0MEBouncingBall1D, BouncingBallGravitySwitch1DNeuralFMUs with state and time events, solution gradients through events, FMU snapshots

The test suite of FMIFlux.jl currently uses FMI 2.0 FMUs. Importing and simulating FMI 3.0 FMUs is covered by the FMIImport.jl test suite (see the compatibility information of FMI.jl).

Examples

The examples of this documentation are executed by the examples workflow (Windows, Julia 1.10) with FMI 2.0 Model Exchange and Co-Simulation FMUs exported by Dymola (provided by FMIZoo.jl):

Exporting toolTool versionFMI versionFMUs
Dymola2020x2.0VLDM
Dymola2022x2.0SpringFrictionPendulum1D, SpringPendulum1D, SpringPendulumExtForce1D
Dymola2023x2.0RobotRR

Reproducing the Results

Run using Pkg; Pkg.test("FMIFlux") in the Julia REPL. The FMUs are downloaded automatically via FMIZoo.jl.