Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.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.PowerPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 104 kB / 17.59 MB, free: 5.559 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.001176/0.001176, allocations: 191.5 kB / 18.51 MB, free: 4.641 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.334/1.334, allocations: 222.9 MB / 242.2 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1873/0.1873, allocations: 38.03 MB / 330.4 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 63.3 kB / 399.5 MB, free: 34.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1158, allocations: 58.06 MB / 457.5 MB, free: 8.055 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1): time 0.007677/0.1235, allocations: 5.412 MB / 462.9 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004001/0.1275, allocations: 2.241 MB / 465.2 MB, free: 372 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007509/0.1283, allocations: 27.88 kB / 465.2 MB, free: 344 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001133/0.1295, allocations: 276 kB / 465.5 MB, free: 68 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001215/0.1307, allocations: 346.2 kB / 465.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001273/0.132, allocations: 0.5101 MB / 466.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001354/0.1334, allocations: 1.038 MB / 467.4 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001068/0.1345, allocations: 0.6074 MB / 468 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006483/0.1351, allocations: 394.4 kB / 468.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006619/0.1358, allocations: 398.2 kB / 468.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002264/0.136, allocations: 80 kB / 468.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000747/0.1368, allocations: 359.2 kB / 469.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002905/0.1371, allocations: 211.3 kB / 469.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000552/0.1377, allocations: 397.8 kB / 469.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001327/0.139, allocations: 1.047 MB / 470.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.139, allocations: 3.938 kB / 470.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.139, allocations: 4 kB / 470.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.518e-05/0.1391, allocations: 0 / 470.8 MB, free: 10.69 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.00241/0.1415, allocations: 1.114 MB / 471.9 MB, free: 9.523 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.1415, allocations: 19.88 kB / 472 MB, free: 9.504 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009567/0.1425, allocations: 151.8 kB / 472.1 MB, free: 9.355 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001008/0.1435, allocations: 0.5851 MB / 472.7 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.337e-05/0.1436, allocations: 49.69 kB / 472.7 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001193/0.1437, allocations: 64.36 kB / 472.8 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/0.1452, allocations: 0.7603 MB / 473.6 MB, free: 7.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.454e-05/0.1452, allocations: 4 kB / 473.6 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.365e-05/0.1453, allocations: 24 kB / 473.6 MB, free: 7.793 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-05/0.1453, allocations: 29.3 kB / 473.6 MB, free: 7.766 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001272/0.1466, allocations: 0.6336 MB / 474.2 MB, free: 7.129 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004412/0.151, allocations: 2.903 MB / 477.2 MB, free: 4.105 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001398/0.1524, allocations: 0.7189 MB / 477.9 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004704/0.1529, allocations: 231 kB / 478.1 MB, free: 3.117 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.386e-05/0.153, allocations: 4.438 kB / 478.1 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/0.153, allocations: 39 kB / 478.1 MB, free: 3.062 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.254e-06/0.153, allocations: 0 / 478.1 MB, free: 3.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.00157/0.1546, allocations: 0.7021 MB / 478.8 MB, free: 2.359 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.363e-05/0.1547, allocations: 111.2 kB / 478.9 MB, free: 2.227 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008255/0.1555, allocations: 0.5821 MB / 479.5 MB, free: 1.637 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.198e-05/0.1556, allocations: 33.7 kB / 479.6 MB, free: 1.598 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002653/0.1559, allocations: 356.4 kB / 479.9 MB, free: 1.246 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001547/0.156, allocations: 177.5 kB / 480.1 MB, free: 1.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001667/0.1562, allocations: 98.16 kB / 480.2 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.1564, allocations: 386.8 kB / 480.6 MB, free: 0.582 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004862/0.1569, allocations: 211 kB / 480.8 MB, free: 380 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005674/0.1574, allocations: 340.5 kB / 481.1 MB, free: 15.99 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001038/0.1585, allocations: 0.5529 MB / 481.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.1585, allocations: 3.938 kB / 481.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001781/0.1603, allocations: 0.7808 MB / 482.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.1603, allocations: 8 kB / 482.4 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.1603, allocations: 4 kB / 482.4 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004202/0.1608, allocations: 113 kB / 482.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005502/0.1613, allocations: 135.8 kB / 482.7 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003036/0.1644, allocations: 2.416 MB / 485.1 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004755/0.1649, allocations: 83.41 kB / 485.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.929e-05/0.1649, allocations: 23.98 kB / 485.2 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006474/0.1656, allocations: 361.2 kB / 485.6 MB, free: 11.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005186/0.1661, allocations: 344.4 kB / 485.9 MB, free: 10.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009148/0.167, allocations: 0.5256 MB / 486.4 MB, free: 10.35 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.068e-06/0.167, allocations: 4 kB / 486.4 MB, free: 10.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization_lambda0): time 0.001415/0.1685, allocations: 0.6948 MB / 487.1 MB, free: 9.641 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.1685, allocations: 7.438 kB / 487.1 MB, free: 9.637 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.1685, allocations: 4 kB / 487.1 MB, free: 9.633 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002834/0.1688, allocations: 109.2 kB / 487.2 MB, free: 9.523 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005333/0.1693, allocations: 127.9 kB / 487.4 MB, free: 9.398 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002227/0.1716, allocations: 2.221 MB / 489.6 MB, free: 7.039 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004628/0.1721, allocations: 67.48 kB / 489.7 MB, free: 6.973 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.39e-05/0.1721, allocations: 24 kB / 489.7 MB, free: 6.949 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 (60): * Single equations (assignments): 59 * 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.0001952/0.1723, allocations: 216.1 kB / 489.9 MB, free: 6.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/0.1724, allocations: 75.16 kB / 490 MB, free: 6.656 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001214/0.1737, allocations: 0.5576 MB / 490.5 MB, free: 6.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.744e-06/0.1737, allocations: 8.109 kB / 490.5 MB, free: 6.082 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.1737, allocations: 3.938 kB / 490.5 MB, free: 6.078 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.156e-06/0.1737, allocations: 7.984 kB / 490.5 MB, free: 6.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002157/0.1759, allocations: 1.314 MB / 491.9 MB, free: 4.699 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/0.1759, allocations: 4 kB / 491.9 MB, free: 4.695 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000571/0.1765, allocations: 107.9 kB / 492 MB, free: 4.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.724e-06/0.1765, allocations: 4 kB / 492 MB, free: 4.586 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.802e-05/0.1765, allocations: 16 kB / 492 MB, free: 4.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.1765, allocations: 0 / 492 MB, free: 4.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1765, allocations: 4.188 kB / 492 MB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00166/0.1782, allocations: 0.9052 MB / 492.9 MB, free: 3.645 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002482/0.1785, allocations: 196.1 kB / 493.1 MB, free: 3.434 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.56e-05/0.1786, allocations: 12 kB / 493.1 MB, free: 3.422 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003838/0.179, allocations: 35.97 kB / 493.1 MB, free: 3.387 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.116e-05/0.1791, allocations: 36.38 kB / 493.2 MB, free: 3.352 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.273e-05/0.1791, allocations: 16 kB / 493.2 MB, free: 3.336 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006235/0.1797, allocations: 423 kB / 493.6 MB, free: 2.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1797, allocations: 0 / 493.6 MB, free: 2.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009015/0.1807, allocations: 267.2 kB / 493.9 MB, free: 2.668 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 (50): * Single equations (assignments): 49 * 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.0001435/0.1808, allocations: 111.7 kB / 494 MB, free: 2.551 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002357/0.1832, allocations: 1.15 MB / 495.1 MB, free: 1.375 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.1832, allocations: 0 / 495.1 MB, free: 1.375 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005324/0.1837, allocations: 250.4 kB / 495.4 MB, free: 1.133 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007882/0.1845, allocations: 148.2 kB / 495.5 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003042/0.1876, allocations: 1.578 MB / 497.1 MB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005537/0.1882, allocations: 0.9457 MB / 498 MB, free: 14.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001753/0.1883, allocations: 43.44 kB / 498.1 MB, free: 14.36 MB / 382.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1883, allocations: 0 / 498.1 MB, free: 14.36 MB / 382.1 MB Notification: Performance of Templates: time 0.01394/0.2023, allocations: 9.765 MB / 0.4959 GB, free: 4.613 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe 2>&1)