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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.0008819/0.0008817, allocations: 179.4 kB / 17.4 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.363/1.363, allocations: 194.5 MB / 212.6 MB, free: 2.957 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001666/0.001666, allocations: 123.5 kB / 257.9 MB, free: 4.297 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1926/0.1926, allocations: 38.01 MB / 341.1 MB, free: 1.227 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003589/0.0003588, allocations: 12 kB / 405 MB, free: 68.5 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09837/0.09875, allocations: 53.23 MB / 458.3 MB, free: 15.26 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3607/0.4595, allocations: 95.96 MB / 0.5412 GB, free: 15.42 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003137/0.4599, allocations: 97.92 kB / 0.5413 GB, free: 15.38 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04885/0.5087, allocations: 18.57 MB / 0.5595 GB, free: 15.9 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.5088, allocations: 0 / 0.5595 GB, free: 15.9 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.029e-05/0.5088, allocations: 12 kB / 0.5595 GB, free: 15.89 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002182/0.511, allocations: 0.9228 MB / 0.5604 GB, free: 14.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.5111, allocations: 12.03 kB / 0.5604 GB, free: 14.94 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001106/0.5122, allocations: 148.1 kB / 0.5605 GB, free: 14.8 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001185/0.5134, allocations: 0.5189 MB / 0.561 GB, free: 14.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.799e-05/0.5135, allocations: 34.19 kB / 0.5611 GB, free: 14.3 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001452/0.5136, allocations: 60.27 kB / 0.5611 GB, free: 14.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00146/0.5151, allocations: 0.6403 MB / 0.5617 GB, free: 13.76 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.969e-05/0.5151, allocations: 192 / 0.5617 GB, free: 13.76 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.132e-05/0.5152, allocations: 23.56 kB / 0.5618 GB, free: 13.75 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.082e-05/0.5153, allocations: 24.98 kB / 0.5618 GB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001435/0.5167, allocations: 0.6073 MB / 0.5624 GB, free: 13.29 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00388/0.5206, allocations: 2.516 MB / 0.5648 GB, free: 11.15 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001211/0.5218, allocations: 0.6214 MB / 0.5655 GB, free: 10.64 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004598/0.5223, allocations: 223 kB / 0.5657 GB, free: 10.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.581e-05/0.5224, allocations: 4 kB / 0.5657 GB, free: 10.47 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005921/0.523, allocations: 310.8 kB / 0.566 GB, free: 10.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=40): time 2.735e-06/0.523, allocations: 0 / 0.566 GB, free: 10.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.001798/0.5248, allocations: 0.7713 MB / 0.5667 GB, free: 9.566 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.202e-05/0.5249, allocations: 132.5 kB / 0.5668 GB, free: 9.406 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006875/0.5256, allocations: 469.7 kB / 0.5673 GB, free: 9.039 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.273e-05/0.5257, allocations: 43.61 kB / 0.5673 GB, free: 8.996 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002024/0.5259, allocations: 288 kB / 0.5676 GB, free: 8.797 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001379/0.526, allocations: 136.9 kB / 0.5677 GB, free: 8.68 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.414e-05/0.526, allocations: 10.75 kB / 0.5677 GB, free: 8.676 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.5262, allocations: 363.5 kB / 0.5681 GB, free: 8.332 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004496/0.5267, allocations: 193.1 kB / 0.5683 GB, free: 8.199 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005107/0.5272, allocations: 306.1 kB / 0.5686 GB, free: 7.918 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009644/0.5281, allocations: 0.5092 MB / 0.5691 GB, free: 7.492 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.5282, allocations: 0 / 0.5691 GB, free: 7.492 MB / 378.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001661/0.5298, allocations: 0.7775 MB / 0.5698 GB, free: 6.859 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001508/0.53, allocations: 199.6 kB / 0.57 GB, free: 6.625 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.53, allocations: 0 / 0.57 GB, free: 6.625 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005397/0.5306, allocations: 164.2 kB / 0.5702 GB, free: 6.496 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003864/0.531, allocations: 91.88 kB / 0.5703 GB, free: 6.406 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003138/0.5341, allocations: 2.389 MB / 0.5726 GB, free: 4.328 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005091/0.5346, allocations: 86.28 kB / 0.5727 GB, free: 4.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.925e-05/0.5347, allocations: 15.5 kB / 0.5727 GB, free: 4.238 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.965e-06/0.5347, allocations: 4 kB / 0.5727 GB, free: 4.234 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001238/0.5359, allocations: 0.6077 MB / 0.5733 GB, free: 3.777 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.536, allocations: 4 kB / 0.5733 GB, free: 3.773 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003075/0.5363, allocations: 114.9 kB / 0.5734 GB, free: 3.688 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003531/0.5366, allocations: 91.52 kB / 0.5735 GB, free: 3.602 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002189/0.5388, allocations: 2.16 MB / 0.5756 GB, free: 1.707 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004645/0.5393, allocations: 74.33 kB / 0.5757 GB, free: 1.641 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.713e-05/0.5394, allocations: 15.31 kB / 0.5757 GB, free: 1.629 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,$whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.000422/0.5398, allocations: 277.2 kB / 0.5759 GB, free: 1.395 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001023/0.5399, allocations: 59.27 kB / 0.576 GB, free: 1.336 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001127/0.541, allocations: 0.53 MB / 0.5765 GB, free: 0.9453 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.5411, allocations: 4 kB / 0.5765 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.5411, allocations: 0 / 0.5765 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.788e-06/0.5411, allocations: 4 kB / 0.5765 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001876/0.543, allocations: 1.141 MB / 0.5776 GB, free: 16 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.543, allocations: 0 / 0.5776 GB, free: 16 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004579/0.5434, allocations: 92 kB / 0.5777 GB, free: 15.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001037/0.5436, allocations: 29.28 kB / 0.5778 GB, free: 15.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.905e-05/0.5436, allocations: 14.69 kB / 0.5778 GB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001048/0.5447, allocations: 1.355 MB / 0.5791 GB, free: 14.49 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/0.5447, allocations: 4.031 kB / 0.5791 GB, free: 14.49 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00153/0.5462, allocations: 0.8628 MB / 0.5799 GB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002228/0.5465, allocations: 167.5 kB / 0.5801 GB, free: 13.64 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.952e-05/0.5465, allocations: 15.31 kB / 0.5801 GB, free: 13.63 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003907/0.5469, allocations: 53.56 kB / 0.5802 GB, free: 13.59 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/0.5471, allocations: 35.14 kB / 0.5802 GB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.668e-05/0.5471, allocations: 11.88 kB / 0.5802 GB, free: 13.55 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000546/0.5476, allocations: 344.8 kB / 0.5805 GB, free: 13.28 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5477, allocations: 0 / 0.5805 GB, free: 13.28 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009976/0.5487, allocations: 248.1 kB / 0.5808 GB, free: 13.05 MB / 394.7 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 (39): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002085/0.5489, allocations: 122.4 kB / 0.5809 GB, free: 12.93 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002211/0.5511, allocations: 1.126 MB / 0.582 GB, free: 11.98 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.5511, allocations: 4 kB / 0.582 GB, free: 11.97 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006758/0.5518, allocations: 351.9 kB / 0.5823 GB, free: 11.68 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007107/0.5525, allocations: 103.6 kB / 0.5824 GB, free: 11.57 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002909/0.5554, allocations: 1.423 MB / 0.5838 GB, free: 10.12 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006912/0.5562, allocations: 0.8867 MB / 0.5847 GB, free: 9.203 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004214/0.5566, allocations: 96.09 kB / 0.5848 GB, free: 9.109 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001237/0.5567, allocations: 39.42 kB / 0.5848 GB, free: 9.074 MB / 394.7 MB Notification: Performance of SimCode: time 6.31e-07/0.5567, allocations: 0 / 0.5848 GB, free: 9.074 MB / 394.7 MB Notification: Performance of Templates: time 0.0148/0.5715, allocations: 6.986 MB / 0.5916 GB, free: 2.094 MB / 394.7 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)