Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.Units.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Introductory.Units,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.Units") translateModel(PowerSystems.Examples.Introductory.Units,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.Units") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001082/0.001083, allocations: 95.34 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 184 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.82/1.82, allocations: 205.4 MB / 223.3 MB, free: 5.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3647/0.3647, allocations: 38.05 MB / 309.7 MB, free: 8.871 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005927/0.000593, allocations: 19.98 kB / 376.5 MB, free: 15.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1575/0.1581, allocations: 56.34 MB / 432.8 MB, free: 6.734 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.00782/0.166, allocations: 6.229 MB / 439 MB, free: 488 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004634/0.1706, allocations: 2.277 MB / 441.3 MB, free: 14.19 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009677/0.1716, allocations: 43.69 kB / 441.4 MB, free: 14.15 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005856/0.1722, allocations: 127.2 kB / 441.5 MB, free: 14.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001419/0.1737, allocations: 378.8 kB / 441.9 MB, free: 13.65 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001253/0.1749, allocations: 383.2 kB / 442.2 MB, free: 13.28 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006894/0.1756, allocations: 475.9 kB / 442.7 MB, free: 12.81 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001225/0.1769, allocations: 0.7728 MB / 443.5 MB, free: 12.01 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004028/0.1773, allocations: 302.9 kB / 443.8 MB, free: 11.71 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000518/0.1778, allocations: 351 kB / 444.1 MB, free: 11.37 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.969e-05/0.1779, allocations: 28 kB / 444.1 MB, free: 11.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003321/0.1782, allocations: 143.8 kB / 444.3 MB, free: 11.2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003186/0.1785, allocations: 359.2 kB / 444.6 MB, free: 10.85 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001567/0.1787, allocations: 169.3 kB / 444.8 MB, free: 10.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006634/0.1794, allocations: 0.7482 MB / 445.5 MB, free: 9.93 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.1794, allocations: 0 / 445.5 MB, free: 9.93 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.957e-06/0.1794, allocations: 0 / 445.5 MB, free: 9.93 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.568e-06/0.1794, allocations: 3.938 kB / 445.5 MB, free: 9.926 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.00155/0.181, allocations: 0.9351 MB / 446.5 MB, free: 8.938 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.181, allocations: 8.031 kB / 446.5 MB, free: 8.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007649/0.1818, allocations: 150.9 kB / 446.6 MB, free: 8.781 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009101/0.1827, allocations: 0.5 MB / 447.1 MB, free: 8.242 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.433e-05/0.1828, allocations: 58 kB / 447.2 MB, free: 8.184 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/0.1829, allocations: 79.92 kB / 447.3 MB, free: 8.105 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001605/0.1845, allocations: 1.122 MB / 448.4 MB, free: 6.879 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.095e-05/0.1846, allocations: 3.938 kB / 448.4 MB, free: 6.875 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.364e-05/0.1846, allocations: 36 kB / 448.4 MB, free: 6.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.279e-05/0.1847, allocations: 49.97 kB / 448.5 MB, free: 6.789 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001386/0.1861, allocations: 0.8506 MB / 449.3 MB, free: 5.941 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005901/0.192, allocations: 5.04 MB / 454.4 MB, free: 0.668 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006809/0.1927, allocations: 424.5 kB / 454.8 MB, free: 240 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.331e-05/0.1928, allocations: 12.06 kB / 454.8 MB, free: 228 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.726e-05/0.1928, allocations: 38.56 kB / 454.8 MB, free: 180 kB / 382.1 MB Notification: Performance of pre-optimization done (n=43): time 2.204e-06/0.1928, allocations: 0 / 454.8 MB, free: 180 kB / 382.1 MB Internal error: BackendDAEEXT.getAssignment failed because n=43>arrayLength(ass1)=43 or m=67>arrayLength(ass2)=43 Error: Internal error It is not possible to select continuous time states because Number of Equations 1 greater than number of States 0 to select from. Error: Internal error - IndexReduction.dynamicStateSelectionWork failed!