You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FAILED 😰 tests/test_FMIImport.py::test_FMIImport - OMPython.ModelicaSystem.ModelicaSystemError: Error executing 'buildModel(M_me_FMU, variableFilter=".*")': OMC error occurred for 'sendExpression(buildModel(M_me_FMU, variableFilter=".*"), True):
00: [translation:error:618] [/tmp/cde47604-2523-4ebd-81ee-cddb62bce9b5/M_me_FMU.mo:false:59:7:59:37] Operator reinit may not be used in an algorithm section (use translation flag --allowNonStandardModelica=reinitInAlgorithms to ignore).
The generated Modelica code from FMU uses reinit inside algorithm section which is not allowed anymore. So in order to run this one need to use --allowNonStandardModelica=reinitInAlgorithms.
I guess this won't fix since we use OMSimulator now for importing FMUs. The importFMU API is kind of depreciated and there are no future plans for it.
I guess this won't fix since we use OMSimulator now for importing FMUs. The importFMU API is kind of depreciated and there are no future plans for it.
If FMU import in OpenModelica is depreciated what would be the recommended way to load an FMU and extend it by additional code using OpenModelica? As I read the description of OMSimulator is mainly for simulating an FMU; not for the extending part ...
I have no idea if we are going to fix FMI import in future. But for now in order to make it work one need to use --allowNonStandardModelica=reinitInAlgorithms.
I have no idea if we are going to fix FMI import in future. But for now in order to make it work one need to use --allowNonStandardModelica=reinitInAlgorithms.
That's a job for MAP-Lang/MAP-Lib. We're working on it.
Activity
adeas31 commentedon Nov 20, 2025
This was added by you in #351
I suppose it should work without it. You can make a PR and see if the test pass.
syntron commentedon Nov 20, 2025
I know that I added it - at that time I did not ask why it is not working - however, it is still failing; see the checks of my test branch at: https://github.com/syntron/OMPython/actions/runs/19550820822/job/55981548974
Error message:
adeas31 commentedon Dec 2, 2025
The generated Modelica code from FMU uses
reinitinside algorithm section which is not allowed anymore. So in order to run this one need to use--allowNonStandardModelica=reinitInAlgorithms.I guess this won't fix since we use OMSimulator now for importing FMUs. The
importFMUAPI is kind of depreciated and there are no future plans for it.syntron commentedon Dec 3, 2025
If FMU import in OpenModelica is depreciated what would be the recommended way to load an FMU and extend it by additional code using OpenModelica? As I read the description of OMSimulator is mainly for simulating an FMU; not for the extending part ...
syntron commentedon Jan 11, 2026
see also OpenModelica/OpenModelica#10974 as reference about the status of FMI import
adeas31 commentedon Feb 4, 2026
See also OpenModelica/OpenModelica#5345
I have no idea if we are going to fix FMI import in future. But for now in order to make it work one need to use
--allowNonStandardModelica=reinitInAlgorithms.casella commentedon Feb 4, 2026
That's a job for MAP-Lang/MAP-Lib. We're working on it.