FMPy
FMPy copied to clipboard
Issues with non-integer --output-interval in ModelExchange simulation of a Buildings FMU
Hi,
we encountered a weird problem while testing OMC-generated FMUs of the Buildings library with FMPy. Steps to reproduce:
- get the development version of Buildings library from https://github.com/lbl-srg/modelica-buildings/
- get the latest OMC nightly build
- export
Buildings.Airflow.Multizone.Validation.ThreeRoomsContamDiscretizedDoor
as FMU-ME - run
python3 -m fmpy simulate --output-file ThreeRoomsContamDiscretizedDoor_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --solver CVode --interface-type ModelExchange --output-interval 5 ThreeRoomsContamDiscretizedDoor.fmu
the simulation runs successfully until time = 3600 and produces a simulation result file. This also works fine if you set --output-interval 10
.
However, if you set --output-interval 7.2
or --output.interval 5.7
, the simulation hangs somewhere before stopTime and eventually a partial result file is issued.
This is quite weird, maybe it's a problem with our installation, but if you can reproduce it, it would be nice to have it fixed. Keeping @deepak19015 and @AndreaBartolini in the loop.
Thanks!