25 | | Please make sure that the triggering of an assertion during initialization does not abort the simulation but rather invokes the homotopy-based solution process. |
| 26 | A similar issue takes place with [https://libraries.openmodelica.org/branches/newInst/ModelicaTest_3.2.3/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimitersHomotopy.sim ModelicaTest.Blocks.LimitersHomotopy], which currently fails with the message: |
| 27 | {{{ |
| 28 | Regular simulation: ./ModelicaTest_3.2.3_ModelicaTest.Blocks.LimitersHomotopy -abortSlowSimulation -alarm=480 |
| 29 | assert | warning | The following assertion has been violated during initialization at time 0.000000 |
| 30 | | | | | abs(mustUseHomotopy.x - 100.0) < 1e-06 |
| 31 | assert | error | Wrong solution selected |
| 32 | assert | info | simulation terminated by an assertion at initialization |
| 33 | }}} |
| 34 | In both cases I would suggest to print out the following notification message: |
| 35 | Invalid initial solution obtained without homotopy. Trying with homotopy-based initialization. You can skip the attempt without homotopy with the -homotopyOnFirstTry simulation flag. |
| 36 | |
| 37 | then restart the solution process with the homotopy-based solver. |