Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.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.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 100.5 kB / 16.5 MB, free: 6.641 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.00135/0.00135, allocations: 195.4 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.33/1.33, allocations: 222.9 MB / 241.1 MB, free: 15.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1765/0.1765, allocations: 38.04 MB / 329.3 MB, free: 9.02 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 61.16 kB / 398.1 MB, free: 34.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1204, allocations: 58.06 MB / 456.1 MB, free: 8.531 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.007298/0.1278, allocations: 5.543 MB / 461.7 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00365/0.1315, allocations: 2.253 MB / 463.9 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004733/0.1319, allocations: 31.81 kB / 464 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00086/0.1328, allocations: 226.9 kB / 464.2 MB, free: 452 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007142/0.1336, allocations: 314.6 kB / 464.5 MB, free: 136 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008097/0.1344, allocations: 361.5 kB / 464.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009089/0.1353, allocations: 1.006 MB / 465.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006802/0.136, allocations: 427.3 kB / 466.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004017/0.1364, allocations: 294.6 kB / 466.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003944/0.1368, allocations: 342.4 kB / 466.9 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.331e-05/0.1369, allocations: 36 kB / 466.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005708/0.1375, allocations: 391.1 kB / 467.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001593/0.1377, allocations: 151.5 kB / 467.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002639/0.1379, allocations: 302.2 kB / 467.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008329/0.1388, allocations: 0.8955 MB / 468.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.1388, allocations: 4 kB / 468.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1388, allocations: 4 kB / 468.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.644e-06/0.1388, allocations: 0 / 468.7 MB, free: 11.95 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002005/0.1408, allocations: 1.031 MB / 469.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.1409, allocations: 8.031 kB / 469.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008395/0.1417, allocations: 140 kB / 469.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00086/0.1426, allocations: 0.517 MB / 470.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.4e-05/0.1426, allocations: 41.31 kB / 470.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.435e-05/0.1427, allocations: 48.38 kB / 470.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/0.1439, allocations: 0.6787 MB / 471.1 MB, free: 9.359 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.332e-05/0.144, allocations: 4 kB / 471.1 MB, free: 9.355 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.27e-05/0.144, allocations: 20 kB / 471.1 MB, free: 9.336 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.204e-05/0.1441, allocations: 24.98 kB / 471.2 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001298/0.1454, allocations: 0.6011 MB / 471.8 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003628/0.149, allocations: 2.692 MB / 474.5 MB, free: 5.883 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/0.1503, allocations: 0.6141 MB / 475.1 MB, free: 5.234 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004509/0.1508, allocations: 210.3 kB / 475.3 MB, free: 5.023 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.958e-05/0.1508, allocations: 4.328 kB / 475.3 MB, free: 5.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006255/0.1514, allocations: 297.7 kB / 475.6 MB, free: 4.707 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.574e-06/0.1515, allocations: 4 kB / 475.6 MB, free: 4.703 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.001801/0.1533, allocations: 0.7447 MB / 476.3 MB, free: 3.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.294e-05/0.1534, allocations: 148.4 kB / 476.5 MB, free: 3.754 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006591/0.154, allocations: 0.4903 MB / 477 MB, free: 3.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.443e-05/0.1541, allocations: 33.7 kB / 477 MB, free: 3.211 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002268/0.1543, allocations: 304 kB / 477.3 MB, free: 2.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.1544, allocations: 142 kB / 477.4 MB, free: 2.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001472/0.1546, allocations: 90.16 kB / 477.5 MB, free: 2.676 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.1547, allocations: 362.8 kB / 477.9 MB, free: 2.312 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004643/0.1552, allocations: 191 kB / 478.1 MB, free: 2.121 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005238/0.1557, allocations: 315.2 kB / 478.4 MB, free: 1.766 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009895/0.1567, allocations: 0.5255 MB / 478.9 MB, free: 1.188 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.1568, allocations: 0 / 478.9 MB, free: 1.188 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001706/0.1585, allocations: 0.7767 MB / 479.7 MB, free: 404 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.048e-05/0.1585, allocations: 33.7 kB / 479.7 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.377e-06/0.1585, allocations: 4 kB / 479.7 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004986/0.159, allocations: 140.3 kB / 479.8 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003758/0.1594, allocations: 87.81 kB / 479.9 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003084/0.1625, allocations: 2.44 MB / 482.4 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004878/0.163, allocations: 79.38 kB / 482.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.047e-05/0.1631, allocations: 16.09 kB / 482.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006207/0.1637, allocations: 341.1 kB / 482.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004894/0.1642, allocations: 295.2 kB / 483.1 MB, free: 12.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008755/0.1651, allocations: 0.5025 MB / 483.6 MB, free: 12.23 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.527e-06/0.1651, allocations: 8 kB / 483.6 MB, free: 12.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.001368/0.1665, allocations: 0.6786 MB / 484.3 MB, free: 11.53 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.182e-05/0.1665, allocations: 37.64 kB / 484.3 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.1666, allocations: 4 kB / 484.3 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003449/0.1669, allocations: 124.7 kB / 484.4 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003766/0.1673, allocations: 96.12 kB / 484.5 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00239/0.1697, allocations: 2.24 MB / 486.8 MB, free: 8.895 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004468/0.1702, allocations: 67.58 kB / 486.8 MB, free: 8.828 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.418e-05/0.1702, allocations: 20 kB / 486.9 MB, free: 8.809 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: 7 (system.initime,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1,hydroPlant.reservoirLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * 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,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0002239/0.1704, allocations: 208.2 kB / 487.1 MB, free: 8.598 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.588e-05/0.1705, allocations: 51.34 kB / 487.1 MB, free: 8.547 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001174/0.1717, allocations: 0.5197 MB / 487.6 MB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/0.1717, allocations: 8 kB / 487.6 MB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.065e-06/0.1717, allocations: 0 / 487.6 MB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.1718, allocations: 3.984 kB / 487.6 MB, free: 8 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001867/0.1736, allocations: 1.174 MB / 488.8 MB, free: 6.766 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.1736, allocations: 4 kB / 488.8 MB, free: 6.762 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004413/0.1741, allocations: 87.88 kB / 488.9 MB, free: 6.676 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.761e-05/0.1742, allocations: 24.84 kB / 488.9 MB, free: 6.648 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.59e-05/0.1742, allocations: 12 kB / 488.9 MB, free: 6.637 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009953/0.1752, allocations: 1.362 MB / 490.3 MB, free: 5.141 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.1753, allocations: 0 / 490.3 MB, free: 5.141 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001669/0.1769, allocations: 0.8488 MB / 491.1 MB, free: 4.266 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001843/0.1771, allocations: 164.3 kB / 491.3 MB, free: 4.086 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.484e-05/0.1772, allocations: 12 kB / 491.3 MB, free: 4.074 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004022/0.1776, allocations: 35.95 kB / 491.4 MB, free: 4.039 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.1777, allocations: 35.95 kB / 491.4 MB, free: 4.004 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.31e-05/0.1778, allocations: 23.92 kB / 491.4 MB, free: 3.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005045/0.1783, allocations: 350.8 kB / 491.8 MB, free: 3.641 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.056e-06/0.1783, allocations: 4 kB / 491.8 MB, free: 3.637 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009242/0.1792, allocations: 251.3 kB / 492 MB, free: 3.391 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (hydroPlant.reservoirLevel.y,hydroPlant.rotor.phi,hydroPlant.rotor.w,hydroPlant.controlDynamics.x_scaled[1]) * Number of discrete variables: 4 (system.initime,$whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001539/0.1794, allocations: 111.1 kB / 492.1 MB, free: 3.273 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002086/0.1815, allocations: 1.127 MB / 493.2 MB, free: 2.098 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.1815, allocations: 12 kB / 493.3 MB, free: 2.086 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006148/0.1821, allocations: 342.4 kB / 493.6 MB, free: 1.738 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007253/0.1829, allocations: 121.4 kB / 493.7 MB, free: 1.621 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002465/0.1853, allocations: 1.437 MB / 495.1 MB, free: 156 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005493/0.1859, allocations: 0.8944 MB / 496 MB, free: 15.23 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003819/0.1863, allocations: 100.3 kB / 496.1 MB, free: 15.13 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001329/0.1864, allocations: 43.42 kB / 496.2 MB, free: 15.09 MB / 382.1 MB Notification: Performance of SimCode: time 1.022e-06/0.1864, allocations: 3.938 kB / 496.2 MB, free: 15.08 MB / 382.1 MB Notification: Performance of Templates: time 0.01534/0.2018, allocations: 7.71 MB / 0.4921 GB, free: 7.426 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1)