Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

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

Edited by: simi99 - May-06-15 12:33:45
There are 0 guests and 0 other users also viewing this topic
You are here: