- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » symbolic sensitivity equations from...
symbolic sensitivity equations from modelica model
symbolic sensitivity equations from modelica model
Hi everyone,
Briefly speaking, I want to generate the sensitivity differential equations from a modelica model symbolically.
Based on the user guide (Version 2015-03-10 for OpenModelica 1.9.2) I tried to convert the model into XML file and import it in CasADi (v.2.3.0 RC2) to manipulate it with the SymbolicOCP class.
The XML file was generated by executing this commands in OMShell:
loadModel(Modelica);
loadFile("MassDamper_OM.mo");
instantiateModel(MassDamper_OM);
translateModelXML(MassDamper_OM);
In CasADi (Python Interface) I tried to load the XML file by:
from casadi import *
ocp = SymbolicOCP()
ocp.parseFMI("MassDamper_OM.xml")
Unfortunately this failed with a runtime error "RuntimeError: Unknown alias".
Have I done something wrong when exporting the model into XML file?
Or is there any other way to get the symbolic sensitivites / jacobian matrices in open modelica?
Many thanks in advance,
Simon
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » symbolic sensitivity equations from...