Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.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.HydroPlantTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001019/0.001019, allocations: 179.9 kB / 16.38 MB, free: 5.766 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.29/1.29, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.0007944/0.0007939, allocations: 100.7 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1636/0.1636, allocations: 38.06 MB / 357.2 MB, free: 1.879 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002894/0.0002894, allocations: 8 kB / 424 MB, free: 37.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2367/0.237, allocations: 56.31 MB / 480.3 MB, free: 9.539 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1263/0.3633, allocations: 104 MB / 0.5706 GB, free: 14.44 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002123/0.3635, allocations: 83.95 kB / 0.5706 GB, free: 14.36 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06202/0.4256, allocations: 25.2 MB / 0.5953 GB, free: 4.922 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.4256, allocations: 0 / 0.5953 GB, free: 4.922 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.489e-05/0.4257, allocations: 23.94 kB / 0.5953 GB, free: 4.898 MB / 426.7 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.002025/0.4277, allocations: 1.022 MB / 0.5963 GB, free: 3.816 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.4277, allocations: 8.031 kB / 0.5963 GB, free: 3.809 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001214/0.429, allocations: 186.9 kB / 0.5965 GB, free: 3.625 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001016/0.43, allocations: 0.5641 MB / 0.597 GB, free: 3.02 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.713e-05/0.43, allocations: 45.3 kB / 0.5971 GB, free: 2.977 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001108/0.4302, allocations: 60 kB / 0.5971 GB, free: 2.918 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001327/0.4315, allocations: 0.7865 MB / 0.5979 GB, free: 2.094 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.2e-05/0.4315, allocations: 4 kB / 0.5979 GB, free: 2.09 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.573e-05/0.4316, allocations: 31.94 kB / 0.5979 GB, free: 2.059 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.802e-05/0.4317, allocations: 37.3 kB / 0.598 GB, free: 2.02 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001388/0.4331, allocations: 0.7428 MB / 0.5987 GB, free: 1.277 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004101/0.4372, allocations: 2.939 MB / 0.6015 GB, free: 14.22 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00138/0.4386, allocations: 0.6042 MB / 0.6021 GB, free: 13.6 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.005e-05/0.4387, allocations: 16.42 kB / 0.6022 GB, free: 13.58 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007622/0.4394, allocations: 438.1 kB / 0.6026 GB, free: 13.14 MB / 442.7 MB Notification: Performance of pre-optimization done (n=56): time 2.174e-06/0.4395, allocations: 0 / 0.6026 GB, free: 13.14 MB / 442.7 MB Notification: Performance of matching and sorting (n=58): time 0.004151/0.4436, allocations: 2.287 MB / 0.6048 GB, free: 10.75 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.149e-05/0.4437, allocations: 111.4 kB / 0.6049 GB, free: 10.61 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006069/0.4443, allocations: 425.2 kB / 0.6053 GB, free: 10.19 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.127e-05/0.4444, allocations: 41.69 kB / 0.6054 GB, free: 10.14 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002257/0.4446, allocations: 316.5 kB / 0.6057 GB, free: 9.832 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001589/0.4448, allocations: 193.2 kB / 0.6058 GB, free: 9.641 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.178e-05/0.4448, allocations: 12.03 kB / 0.6059 GB, free: 9.629 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.445, allocations: 374.7 kB / 0.6062 GB, free: 9.254 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005738/0.4456, allocations: 301.1 kB / 0.6065 GB, free: 8.961 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006617/0.4462, allocations: 410.1 kB / 0.6069 GB, free: 8.52 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006453/0.4469, allocations: 367.7 kB / 0.6072 GB, free: 8.16 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.4469, allocations: 0 / 0.6072 GB, free: 8.16 MB / 442.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00199/0.4489, allocations: 1.028 MB / 0.6082 GB, free: 7.109 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003783/0.4493, allocations: 1.077 MB / 0.6093 GB, free: 5.949 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.4493, allocations: 7.953 kB / 0.6093 GB, free: 5.941 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006798/0.45, allocations: 213.4 kB / 0.6095 GB, free: 5.73 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004926/0.4505, allocations: 127.8 kB / 0.6096 GB, free: 5.605 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001845/0.4523, allocations: 2.18 MB / 0.6118 GB, free: 3.262 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005377/0.4529, allocations: 71.81 kB / 0.6118 GB, free: 3.191 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.899e-05/0.453, allocations: 27.98 kB / 0.6119 GB, free: 3.164 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.285e-06/0.453, allocations: 10.44 kB / 0.6119 GB, free: 3.156 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00165/0.4546, allocations: 0.8714 MB / 0.6127 GB, free: 2.273 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.331e-06/0.4546, allocations: 4 kB / 0.6127 GB, free: 2.27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000485/0.4551, allocations: 177.7 kB / 0.6129 GB, free: 2.09 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004739/0.4556, allocations: 115.9 kB / 0.613 GB, free: 1.977 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003293/0.4589, allocations: 3.674 MB / 0.6166 GB, free: 14.04 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005221/0.4595, allocations: 55.94 kB / 0.6166 GB, free: 13.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.432e-05/0.4595, allocations: 23.98 kB / 0.6167 GB, free: 13.96 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition1,$PRE.secondary.T_start,secondary.T_start,$PRE.secondary.count,secondary.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 13} Notification: Performance of prepare postOptimizeDAE: time 0.0003944/0.4599, allocations: 313 kB / 0.617 GB, free: 13.64 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.07e-05/0.46, allocations: 59.25 kB / 0.617 GB, free: 13.58 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001638/0.4617, allocations: 0.8501 MB / 0.6178 GB, free: 12.71 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.011e-05/0.4617, allocations: 8 kB / 0.6179 GB, free: 12.71 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.4617, allocations: 3.938 kB / 0.6179 GB, free: 12.7 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.4617, allocations: 3.984 kB / 0.6179 GB, free: 12.7 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002636/0.4643, allocations: 1.694 MB / 0.6195 GB, free: 10.92 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/0.4644, allocations: 4 kB / 0.6195 GB, free: 10.92 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006078/0.465, allocations: 143.9 kB / 0.6197 GB, free: 10.78 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002148/0.4652, allocations: 69.66 kB / 0.6197 GB, free: 10.7 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.225e-05/0.4653, allocations: 12 kB / 0.6197 GB, free: 10.69 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001777/0.467, allocations: 2.705 MB / 0.6224 GB, free: 7.719 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.4671, allocations: 3.984 kB / 0.6224 GB, free: 7.715 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002217/0.4693, allocations: 1.419 MB / 0.6238 GB, free: 6.211 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002869/0.4696, allocations: 180.4 kB / 0.6239 GB, free: 6.016 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.721e-05/0.4697, allocations: 16 kB / 0.624 GB, free: 6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000521/0.4702, allocations: 71.88 kB / 0.624 GB, free: 5.93 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.4703, allocations: 56.42 kB / 0.6241 GB, free: 5.875 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.876e-05/0.4704, allocations: 16 kB / 0.6241 GB, free: 5.859 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005312/0.4709, allocations: 350.8 kB / 0.6244 GB, free: 5.52 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4709, allocations: 0 / 0.6244 GB, free: 5.52 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0009455/0.4719, allocations: 276 kB / 0.6247 GB, free: 5.25 MB / 458.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001809/0.4721, allocations: 138.2 kB / 0.6248 GB, free: 5.105 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002648/0.4747, allocations: 1.62 MB / 0.6264 GB, free: 3.422 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4747, allocations: 0 / 0.6264 GB, free: 3.422 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009092/0.4756, allocations: 0.6182 MB / 0.627 GB, free: 2.781 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005623/0.4762, allocations: 110.6 kB / 0.6271 GB, free: 2.676 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002455/0.4787, allocations: 1.812 MB / 0.6289 GB, free: 0.8125 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004705/0.4792, allocations: 0.9586 MB / 0.6298 GB, free: 15.82 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0004509/0.4796, allocations: 156.5 kB / 0.63 GB, free: 15.67 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001509/0.4798, allocations: 51.42 kB / 0.63 GB, free: 15.62 MB / 474.7 MB Notification: Performance of SimCode: time 4.71e-07/0.4798, allocations: 0 / 0.63 GB, free: 15.62 MB / 474.7 MB Notification: Performance of Templates: time 0.01372/0.4935, allocations: 8.741 MB / 0.6386 GB, free: 6.883 MB / 474.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches