Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Fail to simulate examples which use 'LinearDynamicImpedance' cells #8

Open
0jaehunny0 opened this issue Mar 20, 2019 · 1 comment
Open
Labels

Comments

@0jaehunny0
Copy link

0jaehunny0 commented Mar 20, 2019

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?

@christiankral
Copy link
Collaborator

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants