Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001073/0.001074, allocations: 100.5 kB / 16.5 MB, free: 6.645 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.001171/0.001171, allocations: 194.8 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 222.9 MB / 241.1 MB, free: 15.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1721/0.1721, allocations: 38.03 MB / 329.3 MB, free: 9.035 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 64.59 kB / 398.1 MB, free: 34.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1286, allocations: 58.06 MB / 456.1 MB, free: 8.535 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.007312/0.136, allocations: 5.352 MB / 461.5 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003598/0.1396, allocations: 2.613 MB / 464.1 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002764/0.1399, allocations: 23.88 kB / 464.1 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001157/0.1411, allocations: 413 kB / 464.5 MB, free: 104 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001065/0.1422, allocations: 494.2 kB / 465 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006605/0.1428, allocations: 251.4 kB / 465.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001053/0.1439, allocations: 1.138 MB / 466.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000523/0.1444, allocations: 308.2 kB / 466.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003465/0.1448, allocations: 270.8 kB / 467 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004155/0.1452, allocations: 350.8 kB / 467.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.164e-05/0.1453, allocations: 28 kB / 467.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00121/0.1465, allocations: 0.7677 MB / 468.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001934/0.1467, allocations: 195.5 kB / 468.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002452/0.147, allocations: 238.8 kB / 468.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001139/0.1481, allocations: 0.7944 MB / 469.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.1481, allocations: 0 / 469.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1481, allocations: 0 / 469.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.215e-05/0.1482, allocations: 0 / 469.3 MB, free: 11.3 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001294/0.1495, allocations: 0.7723 MB / 470.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.937e-05/0.1495, allocations: 12.03 kB / 470.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001724/0.1513, allocations: 200.1 kB / 470.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005465/0.1518, allocations: 358.3 kB / 470.7 MB, free: 9.879 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.97e-05/0.1519, allocations: 29.38 kB / 470.7 MB, free: 9.848 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.371e-05/0.152, allocations: 48.36 kB / 470.7 MB, free: 9.801 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001108/0.1531, allocations: 0.6266 MB / 471.4 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.673e-05/0.1531, allocations: 11.89 kB / 471.4 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.309e-05/0.1532, allocations: 16 kB / 471.4 MB, free: 9.121 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.073e-05/0.1532, allocations: 28.98 kB / 471.4 MB, free: 9.094 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009942/0.1542, allocations: 0.6128 MB / 472 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003539/0.1578, allocations: 2.257 MB / 474.3 MB, free: 6.105 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000681/0.1585, allocations: 492.8 kB / 474.8 MB, free: 5.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003239/0.1588, allocations: 233.7 kB / 475 MB, free: 5.355 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.745e-05/0.1589, allocations: 4 kB / 475 MB, free: 5.352 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.285e-05/0.1589, allocations: 38.56 kB / 475 MB, free: 5.305 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 2.485e-06/0.1589, allocations: 0 / 475 MB, free: 5.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.003669/0.1626, allocations: 1.704 MB / 476.7 MB, free: 3.523 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.096e-05/0.1627, allocations: 81.11 kB / 476.8 MB, free: 3.426 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003323/0.163, allocations: 282.9 kB / 477.1 MB, free: 3.137 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.077e-05/0.1631, allocations: 37.64 kB / 477.1 MB, free: 3.094 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001777/0.1632, allocations: 232 kB / 477.4 MB, free: 2.859 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001306/0.1634, allocations: 149.8 kB / 477.5 MB, free: 2.711 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/0.1635, allocations: 90.27 kB / 477.6 MB, free: 2.617 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.1637, allocations: 346.8 kB / 477.9 MB, free: 2.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002714/0.164, allocations: 181 kB / 478.1 MB, free: 2.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003363/0.1643, allocations: 290.4 kB / 478.4 MB, free: 1.766 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006504/0.165, allocations: 0.5044 MB / 478.9 MB, free: 1.215 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.165, allocations: 3.938 kB / 478.9 MB, free: 1.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001179/0.1662, allocations: 0.6887 MB / 479.6 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.539e-05/0.1662, allocations: 10.03 kB / 479.6 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.1662, allocations: 4 kB / 479.6 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006572/0.1669, allocations: 172.7 kB / 479.8 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003752/0.1673, allocations: 100.1 kB / 479.9 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003613/0.1709, allocations: 2.518 MB / 482.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002948/0.1712, allocations: 27.98 kB / 482.4 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.799e-05/0.1712, allocations: 16 kB / 482.4 MB, free: 13.54 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002608/0.1715, allocations: 201.6 kB / 482.6 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.454e-05/0.1716, allocations: 31.62 kB / 482.7 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001232/0.1728, allocations: 0.6414 MB / 483.3 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.1729, allocations: 4 kB / 483.3 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.1729, allocations: 4 kB / 483.3 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.084e-06/0.1729, allocations: 3.984 kB / 483.3 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002279/0.1752, allocations: 1.351 MB / 484.7 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.1752, allocations: 4 kB / 484.7 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003667/0.1756, allocations: 75.89 kB / 484.7 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004848/0.176, allocations: 148.7 kB / 484.9 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.676e-05/0.1761, allocations: 11.98 kB / 484.9 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002829/0.1789, allocations: 2.311 MB / 487.2 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.1789, allocations: 0 / 487.2 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001454/0.1804, allocations: 0.957 MB / 488.2 MB, free: 7.539 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001163/0.1805, allocations: 112.7 kB / 488.3 MB, free: 7.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.363e-05/0.1806, allocations: 12 kB / 488.3 MB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002279/0.1808, allocations: 11.98 kB / 488.3 MB, free: 7.387 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.203e-05/0.1809, allocations: 32.06 kB / 488.3 MB, free: 7.355 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.465e-05/0.181, allocations: 19.94 kB / 488.3 MB, free: 7.336 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002231/0.1812, allocations: 201.9 kB / 488.5 MB, free: 7.137 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1812, allocations: 4 kB / 488.5 MB, free: 7.133 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006733/0.1819, allocations: 140 kB / 488.7 MB, free: 6.996 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001504/0.1821, allocations: 107.2 kB / 488.8 MB, free: 6.879 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001336/0.1834, allocations: 0.6695 MB / 489.5 MB, free: 6.195 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.1834, allocations: 0 / 489.5 MB, free: 6.195 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007374/0.1842, allocations: 414.9 kB / 489.9 MB, free: 5.777 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005378/0.1847, allocations: 64.67 kB / 489.9 MB, free: 5.715 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002157/0.1869, allocations: 1.312 MB / 491.2 MB, free: 4.367 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005081/0.1874, allocations: 0.871 MB / 492.1 MB, free: 3.473 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002298/0.1876, allocations: 71.22 kB / 492.2 MB, free: 3.406 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/0.1878, allocations: 35.44 kB / 492.2 MB, free: 3.375 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1878, allocations: 0 / 492.2 MB, free: 3.375 MB / 366.1 MB Notification: Performance of Templates: time 0.01096/0.1987, allocations: 5.385 MB / 497.6 MB, free: 14 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.makefile (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & ./PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1)