ElectricalEnergyStorage icon indicating copy to clipboard operation
ElectricalEnergyStorage copied to clipboard

Fail to simulate examples which use 'LinearDynamicImpedance' cells

Open 0jaehunny0 opened this issue 7 years ago • 1 comments

Hello, I'm trying to simulate examples of this library on OpenModelica.

It works well for StaticResistance cells, but fails for LinearDynamicImpedance cells.

When I simulate examples like "AdvancedCellCycling", simulation Output window prints like below,

Warning: maximal number of iteration reached but no root found Warning: maximal number of iteration reached but no root found Warning: maximal number of iteration reached but no root found Error solving nonlinear system 174 at time 10127 Error solving nonlinear system 174 at time 10127 nonlinear system 174 fails: at t=10127 [1] Real V(start=0, nominal=1) Simulation process failed. Exited with code -1.

I tested such examples with OpenModelica v1.9.7, v1.13.2, v1.14.0 on a 64-bits Windows 10 system

Should I use a other version of OpenModelica or other OS for this library?

0jaehunny0 avatar Mar 20 '19 04:03 0jaehunny0

The simulation model ElectricalEnergyStorage.Examples.AdvancedCellCycling simulates in Dymola but not in OpenModelica. If I swtich Dymola to the "Pedantic mode", many models and none of the examples check OK. So this sounds to me that the library is in really bad shape and needs revision.

In order to improve this library, one has to invest many resources I cannot see who from the Modelica Association has the capacity to do this anytime soon. I recommend that you probably create a fork of this library and perform some Modelica compliant changes in case you are willing to put some resources into battery modeling.

christiankral avatar Jun 21 '19 15:06 christiankral