FMPy is a Python library and set of interfaces for inspecting and simulating Functional Mock-up Units. Its current repository documents FMI 1.0, 2.0 and 3.0 support, with both Model Exchange and Co-Simulation workflows.[2]
Inspecting and running FMUs
Users can inspect an FMU's variables, interface version, supported platforms and default experiment settings before running it. Python and command-line interfaces support scripted work, while the graphical interface provides an interactive entry point. This workflow starts with an exported model component, not with the original physical-system drawing or a new block diagram.[2][3]
Analysis and presentation
The project includes examples for custom inputs and parameter variation, result plotting, and generation of Jupyter notebooks. A Dash-based web application offers another way to present an FMU through a browser. That application still needs a running Python deployment; the existence of a browser interface is not evidence of a hosted service included with the library.[2]
Platform and source dependencies
FMPy runs on Windows, Linux and macOS, but the supplied FMU must contain a compatible binary or usable source. The tutorial explicitly selects platform-specific example FMUs. For C-code FMUs, generated CMake projects can help compile and debug the component. Changing the simulation host does not reconstruct source code that was omitted from an export.[2][3]
Licensing and source currency
The current repository's license file specifies BSD-2-Clause for FMPy, with separate notices for icons and bundled components. Older Read the Docs overview material lists fewer FMI versions and a different BSD variant; this article follows the current repository and license file. The library's license does not replace an FMU provider's runtime or redistribution terms.[1][2][4][7]
When it substitutes
FMPy can replace OMSimulator for inspecting and running compatible FMUs in a Python-centered workflow. This is narrower than replacing an entire composed SSP system or its coupling configuration. Check interface support, platform binaries, solver assumptions and reference outputs for each component before migration.[2][3][5][6]
Capabilities & limitations
FMU simulation
supported
Current repository documents FMI1/2/3 with Model Exchange and Co-Simulation.[2]
Dynamic system modeling and simulation · Windows, macOS, Linux · Edition, deployment and model dependencies affect availability