Skip to main content

PathSim-FMI Logo

FMI/FMU co-simulation toolbox for PathSim

PyPI License

Homepage • Documentation • GitHub


PathSim-FMI extends the PathSim simulation framework with block wrappers around the Functional Mock-up Interface (FMI 2.0 / 3.0). Drop an .fmu file into a PathSim simulation as either a co-simulation slave or as a model-exchange system driven by PathSim's own integrators. Built on top of FMPy.

Blocks

Block Description Key Parameters
CoSimulationFMU Wrap a Co-Simulation FMU, advanced on a fixed grid dt via fmi*DoStep fmu_path, dt, start_values
ModelExchangeFMU Wrap a Model-Exchange FMU, integrated by PathSim's solver of choice fmu_path, start_values

Both blocks build on FMUWrapper, a lower-level version-agnostic wrapper around FMPy (FMI 2.0 / 3.0) that you can use directly if you need finer control than the block API offers.

Install

pip install pathsim-fmi

In the PathView web app: install fails on purpose (the FMU runtime needs to load a native binary via ctypes, which Pyodide can't provide). Use the standalone PathView desktop app or any local Python environment.

Quick Example

from pathsim import Simulation, Connection
from pathsim.blocks import Scope
from pathsim_fmi import ModelExchangeFMU

fmu = ModelExchangeFMU("VanDerPol.fmu")
sco = Scope(labels=["x0", "x1"], sampling_period=0.02)

sim = Simulation(
    blocks=[fmu, sco],
    connections=[
        Connection(fmu[0], sco[0]),
        Connection(fmu[1], sco[1]),
    ],
    dt=0.01,
)
sim.run(5.0)
sco.plot()

Development

pip install -e ".[test]" fmpy ruff mypy
ruff check src/ tests/      # lint
ruff format src/ tests/     # format
mypy src/pathsim_fmi        # type check
pytest tests/ -v            # run tests

The test suite uses the official Modelica Reference-FMUs under tests/data/reference/ for portable smoke tests, plus a handful of legacy FMUs (under tests/data/) carried over from pathsim-core. The legacy FMUs ship darwin64 binaries that are x86_64 only, so the corresponding tests are auto-skipped on Apple Silicon; CI on Linux runs the full suite.

License

MIT

Metadata

Release files for pathsim-fmi 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pathsim-fmi 0.1.2
File Size Uploaded Provenance Actions
pathsim_fmi-0.1.2.tar.gz 3.9 MB With provenance Details for pathsim_fmi-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pathsim-fmi 0.1.2
File Interpreter ABI Platform Actions
pathsim_fmi-0.1.2-py3-none-any.whl Python 3 none any Details for pathsim_fmi-0.1.2-py3-none-any.whl

Total release size: 4.0 MB

Release files / pathsim_fmi-0.1.2.tar.gz

Download URL pathsim_fmi-0.1.2.tar.gz
Size 3.9 MB
Tags Source
SHA-256 checksum
How to use checksums
eacfbed95d85f25e5fa1a9c0be9123ba210b83c596142dc5ab02c204995d93cc
BLAKE2b-256 checksum
How to use checksums
80f114b1870854e98b50681ab3c34ab52a5f3ac4a933a5715ebaca264c9de22c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Release files / pathsim_fmi-0.1.2-py3-none-any.whl

Download URL pathsim_fmi-0.1.2-py3-none-any.whl
Size 13.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe814c72d56ea6f542159d9bc78b4e13c3aec38e3286e72cb3db24c2048724f5
BLAKE2b-256 checksum
How to use checksums
6f1fad28bc6fd0259594dc412d59bda16114544fb9a06d97c2433e5da7c0eb70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Security for pathsim-fmi 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pathsim_fmi-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page