Opened 9 years ago

Last modified 9 years ago

#3499 assigned defect

Quasi static fundamental wave machines are not simulating

Reported by: Christian Kral <dr.christian.kral@…> Owned by: Willi Braun
Priority: high Milestone: Future
Component: *unknown* Version:
Keywords: MSL trunk, MSL v.3.3.2-build.3-release Cc: a.haumer@…

Description

It is planned for MSL 3.2.2 to include further packages. One of these packages is the Modelica.Magnetic.QuasiStatic.FundamentalWave library. In order to test this library with MSL 3.2.1 I attached the package Modelica_AddOn, which includes all the new packages of MSL 3.2.2.

Please test the examples of Modelica_AddOn.Magnetic.QuasiStatic.FundamentalWave.Examples. None of these examples works the actual nightly build version of OpenModelica. I tested the examples with

  • Ubuntu 14.04 32 bit
  • OpenModelica 1.9.4~dev-155-ga69

When simulating the models I receive the following error messages:

Matrix singular!
under-determined linear system not solvable!

I wonder whether this issue is related with #3084.

Attachments (3)

Modelica_AddOn.mo (1.3 MB ) - added by Christian Kral <dr.christian.kral@…> 9 years ago.
Modelica_AddOn
SMEE_Generator_OM.png (33.3 KB ) - added by Christian Kral <dr.christian.kral@…> 9 years ago.
SMEE_Generator result of OMEdit 1.10.0~dev-103-g43d1b0b
SMEE_Generator_Dymola.png (27.9 KB ) - added by Christian Kral <dr.christian.kral@…> 9 years ago.
SMEE_Generator result of Dymola 2016

Download all attachments as: .zip

Change History (16)

by Christian Kral <dr.christian.kral@…>, 9 years ago

Attachment: Modelica_AddOn.mo added

Modelica_AddOn

comment:1 by anonymous, 9 years ago

Model Modelica_AddOn.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.HalfControlledBridge2mPulse lacks fully specified initial conditions.

comment:2 by Anton Haumer <a.haumer@…>, 9 years ago

Owner: changed from somebody to Martin Sjölund
Status: newassigned

Dear Martin S., please have a look who at OpenModelica could take care of that ticket!

MSL 3.2.2 is released, containing Modelica.Magnetic.QuasiStatic.FundamentalWave.
Today I tested the attached Modelica_AddOn (based on MSL 3.2.1), with the latest release OpenModelica 1.9.6 on Windows 7 Professional 64 bit ServicePack 1, with the following result:
...
Matrix singular!
...
simulation terminated by an assertion at initialization
Simulation process failed. Exited with code -1.

It seems that for 6 months nothing happened. It would be a real pity if OpenModelica could not simulate those quasistatic machine models because OpenModelica is perfect for teaching, and it is perfect for demonstrating Modelica to interested industrial users.

In case of further questions, please do not hesitate to contact either the reporter (Christian Kral) or me (Anton Haumer).

comment:3 by Adrian Pop, 9 years ago

See here:
https://test.openmodelica.org/libraries/MSL_trunk/BuildModelRecursive.html
we can build all the models but some of them fail during simulation with issues in non-linear systems. You can try it with the latest nightly build:
https://build.openmodelica.org/omc/builds/windows/nightly-builds/

comment:4 by Anton Haumer <a.haumer@…>, 9 years ago

Please have a look at the examples uploaded by Christian: none of them simulates!
(Modelica_AddOn.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines)
Please bear in mind: those models only have a few states!
Electric quantities are calculated with Complex algebraic equations.
See the following message: Solving non-linear system xxx failed at time=0.

comment:5 by Anton Haumer <a.haumer@…>, 9 years ago

The same experiment with a transient machine model (either from Modelica.Electrical.Machines or from Modelica.Magnetic.FundamentalWave) simulate - the problem seems to be related to solving complex algebraic equations (instead of solving real differential equations).

comment:6 by Lennart Ochel, 9 years ago

Keywords: MSL trunk added

comment:7 by Anton Haumer <a.haumer@…>, 9 years ago

Amazing: I changed some minor things in an example model (with a Magnetic.QuasiStatic.FundamentalWave machine model) that did not simulate yesterday, and today after these minor changes (I suppose only re-ordering the equations!) it simulates with the same nightly build as yesterday!
This reminds me of #3691 and #3649: solving the algebraic equation system of quasistatic machines is similar to solving the initial algebraic equation system of transient machine models.

comment:8 by Anton Haumer <a.haumer@…>, 9 years ago

Keywords: v.3.3.2-build.3-release added

see #3636 (MSL v3.2.2-build.3-release was released 2016-04-03!)

comment:9 by Christian Kral <dr.christian.kral@…>, 9 years ago

I tested the following examples with version 1.10.0~dev-103-g43d1b0b under Ubuntu 14.04 64bit.

IMC_DOL               m=3: OK    m=5 (default): FAILS   
IMC_Inverter          m=3: OK
IMS_Start             m=3: OK

SMPM_Mains            m=3: OK
SMPM_OpenCircuit      m=3: OK
SMPM_CurrentSource    m=3: OK
SMEE_Generator (*)    m=3: QS model OK, but transient model calculations are wrong 
SMR_CurrentSource     m=3: OK

(*) I compared the simulation results with Dymola where the physics of the generator is simulated correctly (see PNG attachments)

by Christian Kral <dr.christian.kral@…>, 9 years ago

Attachment: SMEE_Generator_OM.png added

SMEE_Generator result of OMEdit 1.10.0~dev-103-g43d1b0b

by Christian Kral <dr.christian.kral@…>, 9 years ago

Attachment: SMEE_Generator_Dymola.png added

SMEE_Generator result of Dymola 2016

comment:10 by Christian Kral <dr.christian.kral@…>, 9 years ago

I forgot to mention that the tested examples refer to the MSL 3.2.2 release (build 3); see also https://test.openmodelica.org/libraries/MSL_trunk/BuildModelRecursive.html

comment:11 by Adrian Pop, 9 years ago

Owner: changed from Martin Sjölund to Willi Braun

comment:12 by Christian Kral <dr.christian.kral@…>, 9 years ago

From my understanding the working simulations are related ticket:3649#comment:9

comment:13 by Christian Kral <dr.christian.kral@…>, 9 years ago

To be more precise: the OMEdit version I tested the examples with is named:

1.10.0~dev-103-g43d1b0b
Connected to OpenModelica 1.10.0~dev-486-g8df1b36
Note: See TracTickets for help on using tickets.