As part of debugging some problems using Optimica, I have stripped away constraints, etc. in my model and ONLY consider simulation of the model.
1. When I use:
from pymodelica import compile_fmu
from pyfmi import FMUModel
etc. and run the code, the correct solution is found in 0.4 seconds.
2. When I use:
from pymodelica import compile_jmu
from pyjmi import JMUModel
etc., attempting to solve the very same model starts an iteration procedure in IPOPT, and the computations stops after 3000 iterations -- with the solution not found and some error messages related to assimulo...
I don't understand this -- my previous experience is that simulation using JMU compares favorable with simulation using FMU. I have simulated the very same problem, slightly differently posed, a number of times using JMU, without problems. The only new thing I have introduced is defining a core model class, and reusing this core model by instantiating it three times...
As a simulation problem, this should be extremely simple!!
OK -- this description is vague. But does anyone have clues?
- FMI Library
- Log in