Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_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.001292/0.001292, allocations: 110.9 kB / 17.75 MB, free: 5.332 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.001314/0.001314, allocations: 190.6 kB / 18.68 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.359/1.359, allocations: 205.1 MB / 224.5 MB, free: 12.28 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1763/0.1763, allocations: 37.98 MB / 309.9 MB, free: 5.953 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 67.91 kB / 432.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.106, allocations: 55.24 MB / 487.8 MB, free: 8.348 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.007158/0.1132, allocations: 5.64 MB / 493.4 MB, free: 2.672 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004023/0.1173, allocations: 2.649 MB / 496.1 MB, free: 12 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004222/0.1177, allocations: 23.92 kB / 496.1 MB, free: 15.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00115/0.1189, allocations: 365.9 kB / 496.5 MB, free: 15.63 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001015/0.1199, allocations: 469.7 kB / 496.9 MB, free: 15.17 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009413/0.1208, allocations: 463 kB / 497.4 MB, free: 14.71 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009898/0.1218, allocations: 1.065 MB / 498.4 MB, free: 13.65 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007409/0.1226, allocations: 0.5629 MB / 499 MB, free: 13.08 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004957/0.1231, allocations: 414.4 kB / 499.4 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005117/0.1236, allocations: 426.2 kB / 499.8 MB, free: 12.26 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001093/0.1237, allocations: 76 kB / 499.9 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007901/0.1245, allocations: 0.5067 MB / 0.4887 GB, free: 11.68 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002377/0.1248, allocations: 235.3 kB / 0.4889 GB, free: 11.45 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000329/0.1251, allocations: 370.1 kB / 0.4892 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001147/0.1263, allocations: 1.086 MB / 0.4903 GB, free: 9.992 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.1263, allocations: 0 / 0.4903 GB, free: 9.992 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1263, allocations: 0 / 0.4903 GB, free: 9.992 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.1263, allocations: 0 / 0.4903 GB, free: 9.992 MB / 382.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.002164/0.1285, allocations: 1.11 MB / 0.4914 GB, free: 8.824 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.1285, allocations: 11.89 kB / 0.4914 GB, free: 8.812 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001246/0.1298, allocations: 183.8 kB / 0.4916 GB, free: 8.633 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001108/0.1309, allocations: 0.5755 MB / 0.4921 GB, free: 8.016 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.391e-05/0.131, allocations: 41.69 kB / 0.4922 GB, free: 7.977 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001112/0.1311, allocations: 56.38 kB / 0.4922 GB, free: 7.922 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001531/0.1326, allocations: 0.7866 MB / 0.493 GB, free: 7.098 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.204e-05/0.1327, allocations: 4 kB / 0.493 GB, free: 7.094 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.774e-05/0.1328, allocations: 20 kB / 0.493 GB, free: 7.074 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.287e-05/0.1328, allocations: 33.3 kB / 0.4931 GB, free: 7.043 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001436/0.1343, allocations: 0.7389 MB / 0.4938 GB, free: 6.301 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004119/0.1384, allocations: 2.896 MB / 0.4966 GB, free: 3.281 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001324/0.1397, allocations: 0.5845 MB / 0.4972 GB, free: 2.68 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000713/0.1404, allocations: 358.8 kB / 0.4975 GB, free: 2.324 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.331e-05/0.1405, allocations: 12.41 kB / 0.4975 GB, free: 2.312 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007697/0.1413, allocations: 430.2 kB / 0.4979 GB, free: 1.875 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 2.184e-06/0.1413, allocations: 0 / 0.4979 GB, free: 1.875 MB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.004255/0.1456, allocations: 2.12 MB / 0.5 GB, free: 15.67 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.536e-05/0.1457, allocations: 111.4 kB / 0.5001 GB, free: 15.54 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007171/0.1464, allocations: 493.9 kB / 0.5006 GB, free: 15.05 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.906e-05/0.1464, allocations: 33.7 kB / 0.5006 GB, free: 15.01 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002251/0.1467, allocations: 312.5 kB / 0.5009 GB, free: 14.7 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001591/0.1468, allocations: 193.1 kB / 0.5011 GB, free: 14.51 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001923/0.147, allocations: 118.3 kB / 0.5012 GB, free: 14.39 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.1472, allocations: 366.8 kB / 0.5016 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006258/0.1478, allocations: 291.3 kB / 0.5018 GB, free: 13.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007117/0.1486, allocations: 410.9 kB / 0.5022 GB, free: 13.29 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001312/0.1499, allocations: 0.7146 MB / 0.5029 GB, free: 12.52 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1499, allocations: 0 / 0.5029 GB, free: 12.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002177/0.1521, allocations: 1.017 MB / 0.5039 GB, free: 11.49 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.135e-05/0.1521, allocations: 33.7 kB / 0.504 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.1521, allocations: 0 / 0.504 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006497/0.1528, allocations: 193.7 kB / 0.5041 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005057/0.1533, allocations: 115.8 kB / 0.5043 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004646/0.158, allocations: 4.146 MB / 0.5083 GB, free: 6.715 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005206/0.1585, allocations: 55.94 kB / 0.5084 GB, free: 6.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.744e-05/0.1586, allocations: 27.98 kB / 0.5084 GB, free: 6.633 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007778/0.1594, allocations: 441.2 kB / 0.5088 GB, free: 6.199 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006648/0.16, allocations: 391 kB / 0.5092 GB, free: 5.773 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001211/0.1613, allocations: 0.695 MB / 0.5099 GB, free: 5.035 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.106e-06/0.1613, allocations: 0 / 0.5099 GB, free: 5.035 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization_lambda0): time 0.001891/0.1632, allocations: 0.9345 MB / 0.5108 GB, free: 4.078 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.867e-05/0.1632, allocations: 34.05 kB / 0.5108 GB, free: 4.039 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.1632, allocations: 8 kB / 0.5108 GB, free: 4.031 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005199/0.1638, allocations: 169.6 kB / 0.511 GB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005019/0.1643, allocations: 111.8 kB / 0.5111 GB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003869/0.1682, allocations: 3.932 MB / 0.5149 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005821/0.1688, allocations: 51.92 kB / 0.515 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.379e-05/0.1688, allocations: 32 kB / 0.515 GB, free: 15.46 MB / 414.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.0002584/0.1691, allocations: 220.1 kB / 0.5152 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.1692, allocations: 59.28 kB / 0.5153 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001788/0.171, allocations: 0.8227 MB / 0.5161 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.171, allocations: 3.984 kB / 0.5161 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.1711, allocations: 0 / 0.5161 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002966/0.1714, allocations: 188.3 kB / 0.5162 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.371e-05/0.1714, allocations: 15.94 kB / 0.5163 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004781/0.1719, allocations: 51.92 kB / 0.5163 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001334/0.1721, allocations: 52.5 kB / 0.5164 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002076/0.1742, allocations: 0.9837 MB / 0.5173 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002155/0.1763, allocations: 1.345 MB / 0.5186 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000678/0.177, allocations: 340.3 kB / 0.519 GB, free: 11.32 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005134/0.1775, allocations: 350.8 kB / 0.5193 GB, free: 10.98 MB / 414.1 MB Notification: Performance of Backend: time 4.31e-07/0.1776, allocations: 0 / 0.5193 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003703/0.1813, allocations: 1.772 MB / 0.521 GB, free: 9.129 MB / 414.1 MB Notification: Performance of SimCode: time 0.002881/0.1842, allocations: 1.802 MB / 0.5228 GB, free: 7.27 MB / 414.1 MB Notification: Performance of Templates: time 0.2249/0.4091, allocations: 14.41 MB / 0.5369 GB, free: 50.59 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)