FMI4J – A FMI library for the JVM

FMI4j is a new open-source Kotlin library that allows import and simulation of Model Exchange and Co-simulation FMUs compliant with the FMI 2.0 standard.
As Kotlin is 100% interoperable with Java, its up to the end user which language to use.

As of late 2017, Fmi4j is the only Java library that support Model Exchange 2.0.
FMI4j don’t just import such FMUs, but can also solve them using the integrators available in Apache Commons Math.

FMI4j uses the gradle build system, allowing you to easily set it up on your own machine.


FMU2Jar is a command line utility for converting Functional Mock-up Units (FMUs) into regular Java libraries.

This allows the FMU to be loaded into an application using maven artifacts rather that referring to the location of the FMU in your app.

Furthermore, typesafe getters and setters for each variable is generated and accessiable though the API.

E.g. an FMU with the a ScalaraVariable with name “” of type Real will have a getter like so: public FmuRead<Double> getPid_kp()

FMU2Jar is available here