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.001124/0.001124, allocations: 110.9 kB / 17.74 MB, free: 5.359 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: 180.5 kB / 18.66 MB, free: 4.449 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.382/1.382, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1853/0.1853, allocations: 37.99 MB / 309.9 MB, free: 5.961 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.001536/0.001536, allocations: 71.89 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09281/0.09436, allocations: 55.25 MB / 487.8 MB, free: 8.352 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.007727/0.1021, allocations: 5.637 MB / 493.4 MB, free: 2.68 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004311/0.1065, allocations: 2.649 MB / 496.1 MB, free: 20 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006778/0.1072, allocations: 23.92 kB / 496.1 MB, free: 15.99 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001414/0.1086, allocations: 373.9 kB / 496.5 MB, free: 15.63 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001399/0.11, allocations: 461.8 kB / 496.9 MB, free: 15.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001199/0.1112, allocations: 462.9 kB / 497.4 MB, free: 14.72 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001444/0.1127, allocations: 1.069 MB / 498.4 MB, free: 13.65 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009583/0.1137, allocations: 0.5551 MB / 499 MB, free: 13.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007212/0.1144, allocations: 426.3 kB / 499.4 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007142/0.1151, allocations: 426.2 kB / 499.8 MB, free: 12.26 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001732/0.1153, allocations: 72 kB / 499.9 MB, free: 12.19 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009283/0.1163, allocations: 0.4989 MB / 0.4887 GB, free: 11.69 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000275/0.1165, allocations: 227.4 kB / 0.4889 GB, free: 11.46 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005201/0.1171, allocations: 386 kB / 0.4892 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001472/0.1186, allocations: 1.079 MB / 0.4903 GB, free: 10 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1186, allocations: 0 / 0.4903 GB, free: 10 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1186, allocations: 0 / 0.4903 GB, free: 10 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.106e-05/0.1186, allocations: 0 / 0.4903 GB, free: 10 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.002653/0.1213, allocations: 1.113 MB / 0.4914 GB, free: 8.832 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.019e-05/0.1214, allocations: 11.89 kB / 0.4914 GB, free: 8.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001414/0.1228, allocations: 187.8 kB / 0.4916 GB, free: 8.637 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001044/0.1238, allocations: 0.5638 MB / 0.4921 GB, free: 8.031 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.038e-05/0.1239, allocations: 45.69 kB / 0.4922 GB, free: 7.988 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001244/0.124, allocations: 56.38 kB / 0.4922 GB, free: 7.934 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001552/0.1256, allocations: 0.7904 MB / 0.493 GB, free: 7.105 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.559e-05/0.1256, allocations: 0 / 0.493 GB, free: 7.105 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.712e-05/0.1257, allocations: 24 kB / 0.493 GB, free: 7.082 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.657e-05/0.1258, allocations: 33.3 kB / 0.493 GB, free: 7.051 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001532/0.1273, allocations: 0.735 MB / 0.4938 GB, free: 6.312 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004165/0.1315, allocations: 2.903 MB / 0.4966 GB, free: 3.285 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001347/0.1329, allocations: 0.5846 MB / 0.4972 GB, free: 2.684 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006727/0.1335, allocations: 362.8 kB / 0.4975 GB, free: 2.324 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.663e-05/0.1336, allocations: 8.438 kB / 0.4975 GB, free: 2.316 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008473/0.1345, allocations: 418.2 kB / 0.4979 GB, free: 1.891 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 3.917e-06/0.1345, allocations: 4 kB / 0.4979 GB, free: 1.887 MB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.004276/0.1388, allocations: 2.124 MB / 0.5 GB, free: 15.68 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.948e-05/0.1388, allocations: 119.3 kB / 0.5001 GB, free: 15.54 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000681/0.1395, allocations: 486 kB / 0.5006 GB, free: 15.05 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.902e-05/0.1396, allocations: 41.64 kB / 0.5006 GB, free: 15.01 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002542/0.1399, allocations: 312.5 kB / 0.5009 GB, free: 14.7 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001878/0.1401, allocations: 193.1 kB / 0.5011 GB, free: 14.51 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001864/0.1402, allocations: 110.2 kB / 0.5012 GB, free: 14.39 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.1404, allocations: 370.8 kB / 0.5016 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006246/0.1411, allocations: 291.3 kB / 0.5018 GB, free: 13.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006862/0.1418, allocations: 406.9 kB / 0.5022 GB, free: 13.29 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001316/0.1431, allocations: 0.7224 MB / 0.5029 GB, free: 12.52 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.1431, allocations: 7.938 kB / 0.5029 GB, free: 12.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002174/0.1453, allocations: 1.005 MB / 0.5039 GB, free: 11.49 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.95e-05/0.1453, allocations: 33.7 kB / 0.504 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.1454, allocations: 4 kB / 0.504 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006634/0.146, allocations: 193.8 kB / 0.5041 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005061/0.1465, allocations: 115.7 kB / 0.5043 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004533/0.1511, allocations: 4.131 MB / 0.5083 GB, free: 6.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005692/0.1517, allocations: 63.98 kB / 0.5083 GB, free: 6.668 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.916e-05/0.1518, allocations: 24 kB / 0.5084 GB, free: 6.645 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008014/0.1526, allocations: 445.2 kB / 0.5088 GB, free: 6.207 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006103/0.1532, allocations: 390.9 kB / 0.5092 GB, free: 5.781 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001229/0.1544, allocations: 0.6989 MB / 0.5098 GB, free: 5.039 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.927e-06/0.1544, allocations: 0 / 0.5098 GB, free: 5.039 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization_lambda0): time 0.0019/0.1564, allocations: 0.9345 MB / 0.5108 GB, free: 4.082 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.501e-05/0.1564, allocations: 37.59 kB / 0.5108 GB, free: 4.039 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.1564, allocations: 4 kB / 0.5108 GB, free: 4.035 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000503/0.1569, allocations: 165.9 kB / 0.511 GB, free: 3.867 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000476/0.1574, allocations: 115.8 kB / 0.5111 GB, free: 3.754 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003716/0.1611, allocations: 3.936 MB / 0.5149 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005851/0.1617, allocations: 51.94 kB / 0.515 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.69e-05/0.1618, allocations: 20 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.0002494/0.1621, allocations: 224.1 kB / 0.5152 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000124/0.1622, allocations: 63.27 kB / 0.5153 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001864/0.1641, allocations: 0.8149 MB / 0.5161 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.1641, allocations: 4 kB / 0.5161 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.1641, allocations: 4 kB / 0.5161 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/0.1641, allocations: 7.922 kB / 0.5161 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002772/0.1669, allocations: 1.667 MB / 0.5177 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.1669, allocations: 4 kB / 0.5177 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006232/0.1676, allocations: 136 kB / 0.5178 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002283/0.1678, allocations: 65.67 kB / 0.5179 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.859e-05/0.1679, allocations: 15.98 kB / 0.5179 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002088/0.17, allocations: 2.894 MB / 0.5207 GB, free: 9.188 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/0.17, allocations: 7.875 kB / 0.5207 GB, free: 9.18 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002299/0.1723, allocations: 1.307 MB / 0.522 GB, free: 7.828 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002974/0.1726, allocations: 196.4 kB / 0.5222 GB, free: 7.617 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001031/0.1727, allocations: 15.98 kB / 0.5222 GB, free: 7.602 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005309/0.1732, allocations: 59.94 kB / 0.5223 GB, free: 7.543 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001331/0.1734, allocations: 52.48 kB / 0.5223 GB, free: 7.492 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.206e-05/0.1734, allocations: 16 kB / 0.5223 GB, free: 7.477 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005556/0.174, allocations: 342.8 kB / 0.5227 GB, free: 7.145 MB / 414.1 MB Notification: Performance of sort global known variables: time 2e-07/0.174, allocations: 4 kB / 0.5227 GB, free: 7.141 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001028/0.175, allocations: 267.9 kB / 0.5229 GB, free: 6.879 MB / 414.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.0001785/0.1752, allocations: 119.1 kB / 0.523 GB, free: 6.75 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003041/0.1783, allocations: 1.746 MB / 0.5247 GB, free: 4.926 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.1783, allocations: 0 / 0.5247 GB, free: 4.926 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000986/0.1793, allocations: 0.6025 MB / 0.5253 GB, free: 4.301 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008123/0.1801, allocations: 130.1 kB / 0.5255 GB, free: 4.176 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002792/0.1829, allocations: 1.565 MB / 0.527 GB, free: 2.555 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006297/0.1836, allocations: 0.9509 MB / 0.5279 GB, free: 1.574 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002129/0.1838, allocations: 47.44 kB / 0.528 GB, free: 1.527 MB / 414.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1838, allocations: 0 / 0.528 GB, free: 1.527 MB / 414.1 MB Notification: Performance of Templates: time 0.2076/0.3914, allocations: 14.14 MB / 0.5418 GB, free: 46.7 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)