I recently found the paper "MAKING MODELICA MODELS AVAILABLE FOR ANALYSIS IN PYTHON CONTROL SYSTEMS LIBRARY" explaining how to use JModelica in combination with CasADi to get linearized models in Python. This is exactly what I am looking for, but apparently the paper is from 2014 and JModelica 1.12 is used. The described approach is deprecated and used functions are not available anymore.
The documentation of JModelica is very limited regarding this topic and I have no idea how to accomplish the described task using the latest version of JModelica. The class CasadiModel
is not used anymore and the function compile_fmux
throws a compilation error.
My final goal involves the modeling of (nonlinear) systems in Modelica. I need a symbolic representation of this model to perform the linearization myself. The linearized model is then used to design a controller in Python.
Does anyone have a suggestion?