Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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.HydroPlantTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 112.4 kB / 17.68 MB, free: 5.355 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.001487/0.001487, allocations: 190.9 kB / 18.62 MB, free: 4.434 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.323/1.323, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1756/0.1756, allocations: 38.03 MB / 330.5 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 64.56 kB / 400.2 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0892/0.09048, allocations: 58.06 MB / 458.3 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.006894/0.09741, allocations: 5.624 MB / 463.9 MB, free: 1.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00378/0.1012, allocations: 2.614 MB / 466.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004176/0.1017, allocations: 23.88 kB / 466.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001136/0.1028, allocations: 362.1 kB / 466.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009277/0.1037, allocations: 469.7 kB / 467.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009264/0.1047, allocations: 454.1 kB / 467.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001125/0.1058, allocations: 1.061 MB / 468.9 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008296/0.1067, allocations: 0.5551 MB / 469.4 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005586/0.1072, allocations: 414.4 kB / 469.8 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005302/0.1078, allocations: 434.2 kB / 470.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000107/0.1079, allocations: 72 kB / 470.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000832/0.1087, allocations: 0.4911 MB / 470.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002207/0.109, allocations: 235.3 kB / 471.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003442/0.1093, allocations: 370.1 kB / 471.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00111/0.1104, allocations: 1.086 MB / 472.5 MB, free: 9.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1105, allocations: 0 / 472.5 MB, free: 9.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.1105, allocations: 0 / 472.5 MB, free: 9.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.554e-05/0.1105, allocations: 4 kB / 472.5 MB, free: 9.066 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.002149/0.1126, allocations: 1.106 MB / 473.6 MB, free: 7.902 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.1127, allocations: 11.89 kB / 473.6 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001236/0.1139, allocations: 183.8 kB / 473.8 MB, free: 7.711 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001011/0.115, allocations: 0.556 MB / 474.4 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.814e-05/0.115, allocations: 45.67 kB / 474.4 MB, free: 7.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001103/0.1151, allocations: 68.27 kB / 474.5 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001345/0.1165, allocations: 0.7866 MB / 475.3 MB, free: 6.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.515e-05/0.1165, allocations: 4 kB / 475.3 MB, free: 6.176 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.879e-05/0.1166, allocations: 20 kB / 475.3 MB, free: 6.156 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.068e-05/0.1166, allocations: 45.23 kB / 475.3 MB, free: 6.113 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001412/0.1181, allocations: 0.7272 MB / 476.1 MB, free: 5.387 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004102/0.1222, allocations: 2.896 MB / 479 MB, free: 2.371 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001339/0.1235, allocations: 0.5854 MB / 479.5 MB, free: 1.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006676/0.1242, allocations: 362.8 kB / 479.9 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.068e-05/0.1243, allocations: 8.438 kB / 479.9 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007767/0.1251, allocations: 426.3 kB / 480.3 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.234e-06/0.1251, allocations: 0 / 480.3 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.004139/0.1292, allocations: 2.113 MB / 482.4 MB, free: 14.77 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.831e-05/0.1293, allocations: 111.4 kB / 482.5 MB, free: 14.63 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006539/0.13, allocations: 489.9 kB / 483 MB, free: 14.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.868e-05/0.13, allocations: 37.7 kB / 483.1 MB, free: 14.1 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002178/0.1303, allocations: 308.5 kB / 483.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001536/0.1304, allocations: 201.1 kB / 483.6 MB, free: 13.6 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001949/0.1306, allocations: 110.2 kB / 483.7 MB, free: 13.49 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.1308, allocations: 370.8 kB / 484 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005949/0.1314, allocations: 291.3 kB / 484.3 MB, free: 12.83 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006488/0.1321, allocations: 406.9 kB / 484.7 MB, free: 12.39 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001217/0.1333, allocations: 0.7146 MB / 485.4 MB, free: 11.63 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.1333, allocations: 3.938 kB / 485.4 MB, free: 11.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0021/0.1354, allocations: 1.017 MB / 486.4 MB, free: 10.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.83e-05/0.1355, allocations: 33.7 kB / 486.5 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.1355, allocations: 0 / 486.5 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006131/0.1361, allocations: 181.5 kB / 486.7 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004957/0.1366, allocations: 123.9 kB / 486.8 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004449/0.1411, allocations: 4.133 MB / 490.9 MB, free: 5.836 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005507/0.1416, allocations: 56 kB / 491 MB, free: 5.781 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.601e-05/0.1417, allocations: 27.98 kB / 491 MB, free: 5.754 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007791/0.1425, allocations: 441.2 kB / 491.4 MB, free: 5.316 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006102/0.1431, allocations: 395 kB / 491.8 MB, free: 4.891 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001135/0.1443, allocations: 0.695 MB / 492.5 MB, free: 4.152 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.829e-06/0.1443, allocations: 4 kB / 492.5 MB, free: 4.148 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization_lambda0): time 0.001762/0.146, allocations: 0.9268 MB / 493.4 MB, free: 3.199 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.018e-05/0.1461, allocations: 33.7 kB / 493.5 MB, free: 3.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-06/0.1461, allocations: 4 kB / 493.5 MB, free: 3.156 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005023/0.1466, allocations: 177.9 kB / 493.6 MB, free: 2.977 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004947/0.1471, allocations: 111.8 kB / 493.7 MB, free: 2.867 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003729/0.1508, allocations: 3.941 MB / 497.7 MB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000529/0.1514, allocations: 59.92 kB / 497.7 MB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.07e-05/0.1514, allocations: 31.92 kB / 497.8 MB, free: 14.56 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,secondary.count,$PRE.secondary.count,secondary.T_start,$PRE.secondary.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 (59): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0002066/0.1517, allocations: 216 kB / 498 MB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.81e-05/0.1518, allocations: 63.34 kB / 498.1 MB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001692/0.1535, allocations: 0.8188 MB / 498.9 MB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.1535, allocations: 8 kB / 498.9 MB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.1535, allocations: 4 kB / 498.9 MB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.1535, allocations: 7.922 kB / 498.9 MB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002708/0.1562, allocations: 1.664 MB / 0.4888 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.1562, allocations: 4 kB / 0.4888 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006045/0.1568, allocations: 127.8 kB / 0.4889 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002185/0.1571, allocations: 69.86 kB / 0.489 GB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.731e-05/0.1571, allocations: 12 kB / 0.489 GB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00204/0.1592, allocations: 2.902 MB / 0.4919 GB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.1592, allocations: 3.938 kB / 0.4919 GB, free: 8.277 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002193/0.1614, allocations: 1.302 MB / 0.4931 GB, free: 6.934 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002963/0.1617, allocations: 192.3 kB / 0.4933 GB, free: 6.727 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.915e-05/0.1618, allocations: 12 kB / 0.4933 GB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004927/0.1623, allocations: 63.92 kB / 0.4934 GB, free: 6.652 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001276/0.1624, allocations: 48.5 kB / 0.4934 GB, free: 6.605 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.458e-05/0.1625, allocations: 19.98 kB / 0.4935 GB, free: 6.586 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005188/0.163, allocations: 342.8 kB / 0.4938 GB, free: 6.254 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.163, allocations: 0 / 0.4938 GB, free: 6.254 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000975/0.164, allocations: 263.9 kB / 0.494 GB, free: 5.996 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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,secondary.T_start,secondary.count) * Number of discrete states: 1 (secondary.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001554/0.1642, allocations: 127.3 kB / 0.4942 GB, free: 5.859 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002887/0.1671, allocations: 1.75 MB / 0.4959 GB, free: 4.031 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.1671, allocations: 0 / 0.4959 GB, free: 4.031 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001013/0.1681, allocations: 0.6025 MB / 0.4965 GB, free: 3.402 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007448/0.1688, allocations: 144.1 kB / 0.4966 GB, free: 3.273 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002621/0.1715, allocations: 1.503 MB / 0.4981 GB, free: 1.723 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006003/0.1721, allocations: 0.9469 MB / 0.499 GB, free: 0.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004504/0.1726, allocations: 152.5 kB / 0.4991 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001644/0.1727, allocations: 51.42 kB / 0.4992 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.1727, allocations: 0 / 0.4992 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of Templates: time 0.01685/0.1896, allocations: 10.06 MB / 0.509 GB, free: 6.543 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)