Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.primaryControl.y|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.primaryControl.y|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001371/0.001371, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.52/1.52, allocations: 205.2 MB / 219.4 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008418/0.0008418, allocations: 82.73 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1565/0.1565, allocations: 37.97 MB / 353.5 MB, free: 1.75 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.307e-05/3.311e-05, allocations: 0 / 417.7 MB, free: 29.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1335, allocations: 56.33 MB / 474.1 MB, free: 4.801 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3677/0.5012, allocations: 101.9 MB / 0.5624 GB, free: 1.223 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002194/0.5015, allocations: 86.08 kB / 0.5625 GB, free: 1.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04818/0.5497, allocations: 19.29 MB / 0.5814 GB, free: 1.145 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.5497, allocations: 4 kB / 0.5814 GB, free: 1.141 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.751e-05/0.5498, allocations: 16 kB / 0.5814 GB, free: 1.125 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001387/0.5512, allocations: 0.863 MB / 0.5822 GB, free: 260 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.5512, allocations: 11.98 kB / 0.5822 GB, free: 248 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008796/0.5521, allocations: 159 kB / 0.5824 GB, free: 88 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007634/0.5529, allocations: 0.5016 MB / 0.5829 GB, free: 15.63 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.13e-05/0.5529, allocations: 39.69 kB / 0.5829 GB, free: 15.6 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.931e-05/0.553, allocations: 55.39 kB / 0.583 GB, free: 15.56 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009104/0.5539, allocations: 0.6208 MB / 0.5836 GB, free: 15.1 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.358e-05/0.554, allocations: 4 kB / 0.5836 GB, free: 15.09 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.838e-05/0.554, allocations: 15.56 kB / 0.5836 GB, free: 15.09 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-05/0.5541, allocations: 28.89 kB / 0.5836 GB, free: 15.07 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007784/0.5549, allocations: 0.5077 MB / 0.5841 GB, free: 14.73 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00341/0.5583, allocations: 2.752 MB / 0.5868 GB, free: 12.37 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009124/0.5593, allocations: 0.5299 MB / 0.5873 GB, free: 11.95 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002541/0.5595, allocations: 169.5 kB / 0.5875 GB, free: 11.84 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.292e-05/0.5596, allocations: 8.328 kB / 0.5875 GB, free: 11.83 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003766/0.5599, allocations: 255.3 kB / 0.5877 GB, free: 11.63 MB / 394.7 MB Notification: Performance of pre-optimization done (n=41): time 2.054e-06/0.56, allocations: 0 / 0.5877 GB, free: 11.63 MB / 394.7 MB Notification: Performance of matching and sorting (n=41): time 0.0007261/0.5607, allocations: 419.5 kB / 0.5881 GB, free: 11.31 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.481e-05/0.5608, allocations: 144.5 kB / 0.5883 GB, free: 11.14 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004388/0.5612, allocations: 419.3 kB / 0.5887 GB, free: 10.81 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.797e-05/0.5613, allocations: 33.02 kB / 0.5887 GB, free: 10.78 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001874/0.5615, allocations: 308.9 kB / 0.589 GB, free: 10.57 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001088/0.5616, allocations: 135.8 kB / 0.5891 GB, free: 10.45 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.253e-05/0.5616, allocations: 11.12 kB / 0.5891 GB, free: 10.45 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.5618, allocations: 370.8 kB / 0.5895 GB, free: 10.1 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002353/0.562, allocations: 139.4 kB / 0.5896 GB, free: 10.02 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003299/0.5623, allocations: 260.5 kB / 0.5899 GB, free: 9.781 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002886/0.5626, allocations: 203.9 kB / 0.5901 GB, free: 9.633 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.5626, allocations: 0 / 0.5901 GB, free: 9.633 MB / 394.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001155/0.5638, allocations: 0.6589 MB / 0.5907 GB, free: 9.109 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004574/0.5643, allocations: 1.337 MB / 0.592 GB, free: 7.688 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.956e-06/0.5643, allocations: 4 kB / 0.592 GB, free: 7.684 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004283/0.5647, allocations: 147.3 kB / 0.5922 GB, free: 7.574 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000357/0.5651, allocations: 94.59 kB / 0.5922 GB, free: 7.484 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006187/0.5657, allocations: 0.7634 MB / 0.593 GB, free: 6.805 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004735/0.5662, allocations: 82.86 kB / 0.5931 GB, free: 6.73 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.421e-05/0.5663, allocations: 19.25 kB / 0.5931 GB, free: 6.715 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/0.5663, allocations: 6.5 kB / 0.5931 GB, free: 6.711 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009132/0.5672, allocations: 0.5537 MB / 0.5936 GB, free: 6.305 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.5672, allocations: 4 kB / 0.5936 GB, free: 6.301 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003182/0.5675, allocations: 133.2 kB / 0.5938 GB, free: 6.199 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003486/0.5679, allocations: 98.5 kB / 0.5939 GB, free: 6.105 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002232/0.5701, allocations: 2.223 MB / 0.596 GB, free: 4.184 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004447/0.5706, allocations: 78.8 kB / 0.5961 GB, free: 4.113 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.298e-05/0.5706, allocations: 15.5 kB / 0.5961 GB, free: 4.102 MB / 394.7 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,$whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,hydroPlant.reservoirLevel.local_reset) * Number of discrete 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 (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 13} Notification: Performance of prepare postOptimizeDAE: time 0.0001363/0.5708, allocations: 137.8 kB / 0.5963 GB, free: 3.973 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.516e-05/0.5709, allocations: 55.34 kB / 0.5963 GB, free: 3.918 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007413/0.5716, allocations: 435.2 kB / 0.5967 GB, free: 3.621 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.5716, allocations: 4 kB / 0.5967 GB, free: 3.617 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.766e-06/0.5716, allocations: 0 / 0.5967 GB, free: 3.617 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.277e-06/0.5717, allocations: 7.984 kB / 0.5967 GB, free: 3.609 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001342/0.573, allocations: 1.075 MB / 0.5978 GB, free: 2.754 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.573, allocations: 0 / 0.5978 GB, free: 2.754 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004454/0.5735, allocations: 99.69 kB / 0.5979 GB, free: 2.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.98e-05/0.5736, allocations: 30.86 kB / 0.5979 GB, free: 2.633 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.325e-05/0.5736, allocations: 13.75 kB / 0.5979 GB, free: 2.625 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009093/0.5745, allocations: 1.351 MB / 0.5992 GB, free: 1.227 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.5746, allocations: 4.031 kB / 0.5992 GB, free: 1.223 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009283/0.5755, allocations: 0.7315 MB / 0.6 GB, free: 0.6484 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001972/0.5757, allocations: 169.5 kB / 0.6001 GB, free: 500 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.416e-05/0.5758, allocations: 15.67 kB / 0.6001 GB, free: 492 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003953/0.5762, allocations: 47.7 kB / 0.6002 GB, free: 448 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.5763, allocations: 38.34 kB / 0.6002 GB, free: 416 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.877e-05/0.5763, allocations: 19.48 kB / 0.6002 GB, free: 400 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000348/0.5767, allocations: 328.8 kB / 0.6006 GB, free: 152 kB / 394.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5767, allocations: 0 / 0.6006 GB, free: 152 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007693/0.5775, allocations: 260.1 kB / 0.6008 GB, free: 15.91 MB / 410.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) * 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 (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.0001579/0.5776, allocations: 122.9 kB / 0.6009 GB, free: 15.79 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001193/0.5788, allocations: 0.8568 MB / 0.6018 GB, free: 15.11 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.5788, allocations: 1.688 kB / 0.6018 GB, free: 15.11 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003787/0.5792, allocations: 297.9 kB / 0.602 GB, free: 14.86 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000516/0.5798, allocations: 110.6 kB / 0.6021 GB, free: 14.78 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001471/0.5812, allocations: 0.9165 MB / 0.603 GB, free: 13.94 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004738/0.5817, allocations: 0.9061 MB / 0.6039 GB, free: 13.02 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005253/0.5823, allocations: 142.3 kB / 0.6041 GB, free: 12.88 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001005/0.5824, allocations: 38.61 kB / 0.6041 GB, free: 12.84 MB / 410.7 MB Notification: Performance of SimCode: time 7.61e-07/0.5824, allocations: 0 / 0.6041 GB, free: 12.84 MB / 410.7 MB Notification: Performance of Templates: time 0.01341/0.5958, allocations: 7.994 MB / 0.6119 GB, free: 4.859 MB / 410.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches