Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.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.PowerWorld.Test.PowerPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 105.9 kB / 16.5 MB, free: 6.688 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.001053/0.001053, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.37/1.37, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.173/0.173, allocations: 38.02 MB / 329.3 MB, free: 8.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 65.89 kB / 398.1 MB, free: 34.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1194, allocations: 58.06 MB / 456.2 MB, free: 8.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.007602/0.127, allocations: 5.854 MB / 462 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004389/0.1314, allocations: 2.362 MB / 464.4 MB, free: 248 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008045/0.1323, allocations: 35.81 kB / 464.4 MB, free: 212 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001028/0.1333, allocations: 234.8 kB / 464.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009369/0.1343, allocations: 302.6 kB / 464.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001185/0.1355, allocations: 470.5 kB / 465.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001312/0.1368, allocations: 1.132 MB / 466.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009605/0.1378, allocations: 0.5087 MB / 467 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005222/0.1383, allocations: 350.3 kB / 467.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004491/0.1388, allocations: 390.1 kB / 467.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.422e-05/0.1389, allocations: 40 kB / 467.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007007/0.1396, allocations: 391.1 kB / 468.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002103/0.1398, allocations: 175.3 kB / 468.3 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000362/0.1402, allocations: 361.8 kB / 468.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001025/0.1412, allocations: 1.036 MB / 469.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.1412, allocations: 0 / 469.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1412, allocations: 4 kB / 469.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.385e-06/0.1412, allocations: 0 / 469.7 MB, free: 10.84 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002233/0.1435, allocations: 1.141 MB / 470.9 MB, free: 9.648 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.1435, allocations: 8.031 kB / 470.9 MB, free: 9.641 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009269/0.1445, allocations: 159.8 kB / 471 MB, free: 9.484 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001014/0.1455, allocations: 0.5928 MB / 471.6 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.411e-05/0.1456, allocations: 41.69 kB / 471.7 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001195/0.1457, allocations: 60.38 kB / 471.7 MB, free: 8.754 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001462/0.1472, allocations: 0.7759 MB / 472.5 MB, free: 7.938 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.465e-05/0.1472, allocations: 0 / 472.5 MB, free: 7.938 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.066e-05/0.1473, allocations: 28 kB / 472.5 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.111e-05/0.1473, allocations: 29.3 kB / 472.6 MB, free: 7.879 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001366/0.1487, allocations: 0.657 MB / 473.2 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004362/0.1531, allocations: 2.922 MB / 476.1 MB, free: 4.184 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001594/0.1547, allocations: 0.7304 MB / 476.9 MB, free: 3.418 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005361/0.1552, allocations: 251 kB / 477.1 MB, free: 3.164 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.925e-05/0.1553, allocations: 12.38 kB / 477.1 MB, free: 3.152 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.99e-05/0.1553, allocations: 47.02 kB / 477.2 MB, free: 3.094 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.094e-06/0.1554, allocations: 0 / 477.2 MB, free: 3.094 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.001808/0.1572, allocations: 0.7442 MB / 477.9 MB, free: 2.348 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.802e-05/0.1573, allocations: 119.4 kB / 478 MB, free: 2.207 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00079/0.1581, allocations: 0.5789 MB / 478.6 MB, free: 1.621 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.392e-05/0.1581, allocations: 33.7 kB / 478.6 MB, free: 1.582 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002839/0.1584, allocations: 352.5 kB / 479 MB, free: 1.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001491/0.1586, allocations: 177.4 kB / 479.2 MB, free: 1.055 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001817/0.1587, allocations: 102.3 kB / 479.3 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.1589, allocations: 374.8 kB / 479.6 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005389/0.1595, allocations: 235.3 kB / 479.9 MB, free: 352 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006392/0.1601, allocations: 361.5 kB / 480.2 MB, free: 15.94 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001135/0.1613, allocations: 0.586 MB / 480.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.1613, allocations: 0 / 480.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001866/0.1631, allocations: 0.8225 MB / 481.6 MB, free: 14.47 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.1632, allocations: 7.984 kB / 481.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.1632, allocations: 4 kB / 481.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004211/0.1636, allocations: 121.1 kB / 481.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006061/0.1642, allocations: 131.9 kB / 481.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002879/0.1671, allocations: 2.21 MB / 484.1 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000506/0.1677, allocations: 87.42 kB / 484.2 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.413e-05/0.1677, allocations: 23.94 kB / 484.2 MB, free: 11.76 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007138/0.1684, allocations: 385.4 kB / 484.6 MB, free: 11.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005688/0.169, allocations: 341.6 kB / 484.9 MB, free: 10.99 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001033/0.1701, allocations: 0.5626 MB / 485.5 MB, free: 10.38 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.539e-06/0.1701, allocations: 4 kB / 485.5 MB, free: 10.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.001517/0.1716, allocations: 0.7251 MB / 486.2 MB, free: 9.641 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.1716, allocations: 8 kB / 486.2 MB, free: 9.633 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.1716, allocations: 4 kB / 486.2 MB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003086/0.1719, allocations: 101.5 kB / 486.3 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006089/0.1726, allocations: 139.8 kB / 486.4 MB, free: 9.391 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002219/0.1748, allocations: 2.03 MB / 488.5 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005029/0.1753, allocations: 75.61 kB / 488.6 MB, free: 7.145 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.435e-05/0.1754, allocations: 23.98 kB / 488.6 MB, free: 7.121 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,powerPlant.throttleCosts.local_reset,powerPlant.hotwellLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * 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 {(1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002229/0.1756, allocations: 220 kB / 488.8 MB, free: 6.898 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001252/0.1757, allocations: 63.25 kB / 488.9 MB, free: 6.836 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001352/0.1771, allocations: 0.6004 MB / 489.5 MB, free: 6.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.724e-06/0.1771, allocations: 8 kB / 489.5 MB, free: 6.223 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.1771, allocations: 4 kB / 489.5 MB, free: 6.219 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.1771, allocations: 0 / 489.5 MB, free: 6.219 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002244/0.1794, allocations: 1.357 MB / 490.8 MB, free: 4.805 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/0.1794, allocations: 0 / 490.8 MB, free: 4.805 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006367/0.18, allocations: 123.8 kB / 490.9 MB, free: 4.684 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.868e-06/0.18, allocations: 0 / 490.9 MB, free: 4.684 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.112e-05/0.1801, allocations: 8 kB / 491 MB, free: 4.676 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.023e-06/0.1801, allocations: 7.984 kB / 491 MB, free: 4.668 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.1801, allocations: 3.938 kB / 491 MB, free: 4.664 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001795/0.1819, allocations: 0.9521 MB / 491.9 MB, free: 3.695 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002493/0.1822, allocations: 192.2 kB / 492.1 MB, free: 3.488 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.098e-05/0.1823, allocations: 12 kB / 492.1 MB, free: 3.477 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004124/0.1827, allocations: 39.95 kB / 492.2 MB, free: 3.438 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001227/0.1828, allocations: 48.34 kB / 492.2 MB, free: 3.391 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.159e-05/0.1829, allocations: 8 kB / 492.2 MB, free: 3.383 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006134/0.1835, allocations: 427.3 kB / 492.6 MB, free: 2.969 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1835, allocations: 0 / 492.6 MB, free: 2.969 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001034/0.1845, allocations: 275.1 kB / 492.9 MB, free: 2.699 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (powerPlant.rotor.phi,powerPlant.rotor.w,powerPlant.evaporator.y,powerPlant.superheater1.y,powerPlant.superheater2.y,powerPlant.transferFunction.x_scaled[1],powerPlant.hotwellLevel.y,powerPlant.throttleDynamics.y,powerPlant.throttleCosts.y) * 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 (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001683/0.1847, allocations: 107.2 kB / 493 MB, free: 2.586 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002222/0.1869, allocations: 1.139 MB / 494.1 MB, free: 1.418 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.187, allocations: 4 kB / 494.1 MB, free: 1.414 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005562/0.1875, allocations: 283.1 kB / 494.4 MB, free: 1.137 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007851/0.1883, allocations: 129.7 kB / 494.5 MB, free: 1.016 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003033/0.1914, allocations: 1.807 MB / 496.4 MB, free: 15.17 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005556/0.1919, allocations: 0.9421 MB / 497.3 MB, free: 14.2 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004741/0.1924, allocations: 120.6 kB / 497.4 MB, free: 14.08 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001566/0.1926, allocations: 43.42 kB / 497.5 MB, free: 14.04 MB / 382.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1926, allocations: 8 kB / 497.5 MB, free: 14.03 MB / 382.1 MB Notification: Performance of Templates: time 0.01457/0.2072, allocations: 7.885 MB / 0.4935 GB, free: 6.207 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1)