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 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.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.001217/0.001217, allocations: 111.7 kB / 17.74 MB, free: 5.32 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.001434/0.001434, allocations: 189.6 kB / 18.67 MB, free: 4.398 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.403/1.403, allocations: 205.1 MB / 224.5 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1777/0.1777, allocations: 37.98 MB / 309.9 MB, free: 5.945 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.00141/0.00141, allocations: 71.89 kB / 432.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1032, allocations: 55.25 MB / 487.8 MB, free: 8.336 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.007034/0.1102, allocations: 5.153 MB / 492.9 MB, free: 3.148 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004099/0.1144, allocations: 2.183 MB / 495.1 MB, free: 0.957 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007301/0.1152, allocations: 23.88 kB / 495.1 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00125/0.1164, allocations: 254.5 kB / 495.4 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001183/0.1176, allocations: 334.1 kB / 495.7 MB, free: 364 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001209/0.1188, allocations: 415.1 kB / 496.1 MB, free: 15.95 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001372/0.1202, allocations: 0.9048 MB / 497 MB, free: 15.04 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000995/0.1212, allocations: 0.5122 MB / 497.5 MB, free: 14.53 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007331/0.122, allocations: 354.6 kB / 497.9 MB, free: 14.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006998/0.1227, allocations: 366.3 kB / 498.2 MB, free: 13.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001708/0.1229, allocations: 68 kB / 498.3 MB, free: 13.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006866/0.1236, allocations: 343.3 kB / 498.6 MB, free: 13.42 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001974/0.1238, allocations: 195.4 kB / 498.8 MB, free: 13.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003562/0.1242, allocations: 334.3 kB / 499.2 MB, free: 12.9 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001111/0.1253, allocations: 0.9228 MB / 0.4884 GB, free: 11.97 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.1253, allocations: 0 / 0.4884 GB, free: 11.97 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1253, allocations: 0 / 0.4884 GB, free: 11.97 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.281e-05/0.1253, allocations: 0 / 0.4884 GB, free: 11.97 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002114/0.1274, allocations: 1.038 MB / 0.4894 GB, free: 10.88 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.1275, allocations: 19.89 kB / 0.4894 GB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008755/0.1284, allocations: 136 kB / 0.4895 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008906/0.1293, allocations: 0.5404 MB / 0.4901 GB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.491e-05/0.1293, allocations: 37.38 kB / 0.4901 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.383e-05/0.1294, allocations: 52.36 kB / 0.4901 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00128/0.1307, allocations: 0.6826 MB / 0.4908 GB, free: 9.336 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.704e-05/0.1308, allocations: 7.906 kB / 0.4908 GB, free: 9.328 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.775e-05/0.1308, allocations: 20 kB / 0.4908 GB, free: 9.309 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.415e-05/0.1309, allocations: 28.94 kB / 0.4909 GB, free: 9.281 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00128/0.1322, allocations: 0.5972 MB / 0.4914 GB, free: 8.684 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003523/0.1357, allocations: 2.677 MB / 0.4941 GB, free: 5.871 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/0.1371, allocations: 0.6084 MB / 0.4946 GB, free: 5.227 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000479/0.1376, allocations: 214.3 kB / 0.4949 GB, free: 5.012 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.843e-05/0.1377, allocations: 12.3 kB / 0.4949 GB, free: 5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006523/0.1383, allocations: 301.6 kB / 0.4952 GB, free: 4.684 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 2.285e-06/0.1383, allocations: 0 / 0.4952 GB, free: 4.684 MB / 382.1 MB Notification: Performance of matching and sorting (n=41): time 0.001936/0.1403, allocations: 0.7485 MB / 0.4959 GB, free: 3.906 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.1404, allocations: 144.4 kB / 0.496 GB, free: 3.734 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007528/0.1411, allocations: 0.4942 MB / 0.4965 GB, free: 3.227 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.83e-05/0.1412, allocations: 41.84 kB / 0.4965 GB, free: 3.18 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002439/0.1415, allocations: 303.9 kB / 0.4968 GB, free: 2.879 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001336/0.1416, allocations: 141.9 kB / 0.497 GB, free: 2.738 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001572/0.1418, allocations: 86.25 kB / 0.4971 GB, free: 2.648 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001903/0.142, allocations: 366.8 kB / 0.4974 GB, free: 2.281 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004972/0.1425, allocations: 195 kB / 0.4976 GB, free: 2.086 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005543/0.143, allocations: 315.2 kB / 0.4979 GB, free: 1.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001023/0.1441, allocations: 0.5177 MB / 0.4984 GB, free: 1.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.166e-06/0.1441, allocations: 4 kB / 0.4984 GB, free: 1.156 MB / 382.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001817/0.1459, allocations: 0.7764 MB / 0.4992 GB, free: 372 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.539e-05/0.146, allocations: 33.7 kB / 0.4992 GB, free: 332 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.146, allocations: 4 kB / 0.4992 GB, free: 328 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005212/0.1465, allocations: 144.8 kB / 0.4993 GB, free: 180 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004119/0.1469, allocations: 88.14 kB / 0.4994 GB, free: 92 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003548/0.1505, allocations: 2.651 MB / 0.502 GB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005633/0.1511, allocations: 75.48 kB / 0.5021 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.935e-05/0.1512, allocations: 19.98 kB / 0.5021 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006609/0.1518, allocations: 337.2 kB / 0.5024 GB, free: 12.87 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005134/0.1523, allocations: 295.3 kB / 0.5027 GB, free: 12.54 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009448/0.1533, allocations: 0.5102 MB / 0.5032 GB, free: 11.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.867e-06/0.1533, allocations: 0 / 0.5032 GB, free: 11.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.001538/0.1549, allocations: 0.6862 MB / 0.5039 GB, free: 11.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.227e-05/0.1549, allocations: 33.7 kB / 0.5039 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.1549, allocations: 4 kB / 0.5039 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003765/0.1553, allocations: 133.2 kB / 0.504 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003785/0.1557, allocations: 87.77 kB / 0.5041 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00272/0.1585, allocations: 2.447 MB / 0.5065 GB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005736/0.159, allocations: 67.61 kB / 0.5066 GB, free: 8.355 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.901e-05/0.1591, allocations: 20 kB / 0.5066 GB, free: 8.336 MB / 398.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.0002519/0.1594, allocations: 220.2 kB / 0.5068 GB, free: 8.113 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001299/0.1595, allocations: 55.34 kB / 0.5068 GB, free: 8.059 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001295/0.1608, allocations: 0.516 MB / 0.5074 GB, free: 7.527 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.1608, allocations: 4 kB / 0.5074 GB, free: 7.523 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1608, allocations: 0 / 0.5074 GB, free: 7.523 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/0.1609, allocations: 4 kB / 0.5074 GB, free: 7.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002053/0.1629, allocations: 1.175 MB / 0.5085 GB, free: 6.285 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-06/0.1629, allocations: 7.922 kB / 0.5085 GB, free: 6.277 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004626/0.1634, allocations: 87.88 kB / 0.5086 GB, free: 6.191 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001239/0.1635, allocations: 36.84 kB / 0.5086 GB, free: 6.152 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.791e-05/0.1636, allocations: 4 kB / 0.5086 GB, free: 6.148 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00109/0.1647, allocations: 1.454 MB / 0.5101 GB, free: 4.551 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.1647, allocations: 3.984 kB / 0.5101 GB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00168/0.1664, allocations: 0.8385 MB / 0.5109 GB, free: 3.684 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002723/0.1667, allocations: 176.3 kB / 0.511 GB, free: 3.492 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.843e-05/0.1668, allocations: 15.94 kB / 0.5111 GB, free: 3.477 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004449/0.1672, allocations: 36.19 kB / 0.5111 GB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.1673, allocations: 39.95 kB / 0.5111 GB, free: 3.402 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.454e-05/0.1674, allocations: 12 kB / 0.5111 GB, free: 3.391 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005829/0.168, allocations: 358.8 kB / 0.5115 GB, free: 3.043 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.168, allocations: 0 / 0.5115 GB, free: 3.043 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009818/0.169, allocations: 247.4 kB / 0.5117 GB, free: 2.801 MB / 398.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.0001786/0.1692, allocations: 115.2 kB / 0.5118 GB, free: 2.68 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002367/0.1715, allocations: 1.133 MB / 0.5129 GB, free: 1.496 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.1716, allocations: 3.938 kB / 0.5129 GB, free: 1.492 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006495/0.1722, allocations: 339.6 kB / 0.5133 GB, free: 1.148 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007547/0.173, allocations: 126.5 kB / 0.5134 GB, free: 1.023 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002492/0.1755, allocations: 1.254 MB / 0.5146 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006452/0.1761, allocations: 0.8981 MB / 0.5155 GB, free: 14.8 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000183/0.1763, allocations: 43.44 kB / 0.5155 GB, free: 14.77 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1764, allocations: 3.938 kB / 0.5155 GB, free: 14.76 MB / 414.1 MB Notification: Performance of Templates: time 0.01363/0.19, allocations: 9.697 MB / 0.525 GB, free: 5.047 MB / 414.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)