I am running the very same model but with a different number of equations:
- Case 1. - number of equations < 10000
- Case 2. and number of equations > 10000
The number of equations is changed by changing the discretization (number of nodes).
- Case 1. (9974 eq.) - Runs without any problems and simulation is rather quick (total time 18sec).
- Case 2. ( 10410 eq.) – The simulation time increase drastically ~1h++.
I tried using:
--maxSizeNonlinearTearing=11000 flag by adding it in the “Simulation Setup” -> “Translation Flags” -> “Additional Translation Flag”.
However, the simulation time hasn't changed, it is still extremely long compared to 18sec, which doesn't make sense. So I assume, that the tearing flag didn't work.
In addition, I tried to use two flags at the same time:
--maxSizeNonlinearTearing=11000 --maxSizeLinearTearing=1000”
I separated flags by adding one space as it is indicated in the pop-up window when one hovers over the "Additional Translation Flags". After initiating the simulation I get the message:
"Invalid type of flag maxSizeNonlinearTearing, expected an integer value but got a list of values.."
So most likely I am not using them correctly. I tried to find some information on https://www.openmodelica.org/doc/OpenModelicaUsersGuide/latest/omchelptext.html
but I couldn't find any example. As a non-computer scientist, I think that there is a scarcity of simple, real-life examples.
It would be great if anyone could advise how to deal with OpenModelica flags and models with over 10000 equations.