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

Not Enough Equations (dumpXMLDAE)

Not Enough Equations (dumpXMLDAE)

Good Morning Everybody

I have a Problem when i try to dump my Model to  DAE-XML-File.
I build this simple Model :

model myModel
  Modelica.Electrical.Analog.Basic.Ground ground1 annotation(Placement(visible = true, transformation(origin = {-60,-40}, extent = {{-10,-10},{10,10}}, rotation = 0)));
  Modelica.Electrical.Analog.Basic.EMF emf(k = 10) annotation(Placement(visible = true, transformation(origin = {20,-20}, extent = {{-10,-10},{10,10}}, rotation = 0)));
  Modelica.Electrical.Analog.Sources.ConstantVoltage constantvoltage1 annotation(Placement(visible = true, transformation(origin = {-80,0}, extent = {{-10,-10},{10,10}}, rotation = -90)));
  Modelica.Electrical.Analog.Basic.Inductor inductor1(L = 100) annotation(Placement(visible = true, transformation(origin = {0,20}, extent = {{-10,-10},{10,10}}, rotation = 0)));
  Modelica.Electrical.Spice3.Basic.R_Resistor r_resistor1(R = 100) annotation(Placement(visible = true, transformation(origin = {-60,20}, extent = {{-10,-10},{10,10}}, rotation = 0)));
  Modelica.Mechanics.Rotational.Components.Spring spring1 annotation(Placement(visible = true, transformation(origin = {100,-20}, extent = {{-10,-10},{10,10}}, rotation = 0)));
  Modelica.Mechanics.Rotational.Components.Fixed fixed1 annotation(Placement(visible = true, transformation(origin = {140,-20}, extent = {{-10,-10},{10,10}}, rotation = 0)));
  Modelica.Mechanics.Rotational.Components.Inertia inertia1 annotation(Placement(visible = true, transformation(origin = {60,-20}, extent = {{-10,-10},{10,10}}, rotation = 0)));
equation
  connect(inertia1.flange_b,spring1.flange_a) annotation(Line(points = {{70,-20},{91.1519,-20},{91.1519,-19.3656},{90.1503,-19.3656},{90.1503,-19.3656}}));
  connect(emf.flange,inertia1.flange_a) annotation(Line(points = {{30,-20},{50.0835,-20},{50.0835,-20.7012},{50.0835,-20.7012}}));
  connect(fixed1.flange,spring1.flange_b) annotation(Line(points = {{140,-20},{110.184,-20},{110.184,-19.0317},{110.184,-19.0317}}));
  connect(constantvoltage1.p,r_resistor1.p) annotation(Line(points = {{-80,10},{-80,21.0351},{-80.9516,20},{-70,20}}));
  connect(r_resistor1.n,inductor1.p) annotation(Line(points = {{-50,20},{-40.3283,20},{-10,20.3339},{-10,20}}));
  connect(emf.p,inductor1.n) annotation(Line(points = {{20,-10},{28.7774,-10},{28.7774,19.8461},{-20.9516,20},{10,20}}));
  connect(constantvoltage1.n,ground1.p) annotation(Line(points = {{-80,-10},{-80,-29.7162},{-50.9516,-29.7162},{-60,-30}}));
  connect(emf.n,ground1.p) annotation(Line(points = {{20,-30},{-50.0835,-30},{-50.0835,-29.6661},{-60,-30}}));
  annotation(Icon(coordinateSystem(extent = {{-100,-100},{100,100}}, preserveAspectRatio = true, initialScale = 0.1, grid = {2,2})), Diagram(coordinateSystem(extent = {{-100,-100},{100,100}}, preserveAspectRatio = true, initialScale = 0.1, grid = {2,2})));
end myModel;


There isnt any Problem when i simulate it in OMEdit. But when I dump it to XML-File with the "dumpXMLDAE(myModel, addSolvingInfo=true)" command in OMShell, I got 13 Equations in the Equation-Section, but in the solving-Info-Section are Information for 14 Equation. There is missing one Equation in the Equation-Section.

Does anybody have a Idea or is this a bug?

Regards,
deaken123

There are 0 guests and 0 other users also viewing this topic
You are here: