Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.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.PowerPlantTest1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|powerPlant.P_generator|powerPlant.frequency.y|powerPlant.fuel.y|powerPlant.primaryControl.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|powerPlant.P_generator|powerPlant.frequency.y|powerPlant.fuel.y|powerPlant.primaryControl.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001456/0.001456, allocations: 175.5 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.475/1.475, allocations: 205.2 MB / 219.4 MB, free: 14.19 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.0008075/0.0008077, allocations: 78.72 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.1597/0.1597, allocations: 37.98 MB / 353.5 MB, free: 1.746 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.007e-05/3.008e-05, allocations: 4 kB / 417.7 MB, free: 29.11 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1196, allocations: 56.31 MB / 474 MB, free: 4.805 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3618/0.4814, allocations: 103.3 MB / 0.5638 GB, free: 15.83 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002152/0.4816, allocations: 82.77 kB / 0.5639 GB, free: 15.79 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05788/0.5395, allocations: 22.39 MB / 0.5858 GB, free: 13.13 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.5396, allocations: 0 / 0.5858 GB, free: 13.13 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.32e-05/0.5397, allocations: 27.92 kB / 0.5858 GB, free: 13.1 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.001553/0.5412, allocations: 0.9344 MB / 0.5867 GB, free: 12.17 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.5413, allocations: 12.03 kB / 0.5867 GB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009308/0.5422, allocations: 170.8 kB / 0.5869 GB, free: 11.99 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009567/0.5432, allocations: 0.5928 MB / 0.5875 GB, free: 11.46 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.026e-05/0.5432, allocations: 46.75 kB / 0.5875 GB, free: 11.44 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.798e-05/0.5433, allocations: 68.34 kB / 0.5876 GB, free: 11.39 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001041/0.5444, allocations: 0.7045 MB / 0.5883 GB, free: 10.87 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.964e-05/0.5444, allocations: 0 / 0.5883 GB, free: 10.87 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.595e-05/0.5445, allocations: 27.69 kB / 0.5883 GB, free: 10.86 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-05/0.5445, allocations: 29.27 kB / 0.5883 GB, free: 10.83 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008482/0.5454, allocations: 0.5645 MB / 0.5889 GB, free: 10.47 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003757/0.5491, allocations: 2.941 MB / 0.5917 GB, free: 8.027 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009699/0.5501, allocations: 0.6262 MB / 0.5923 GB, free: 7.551 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002642/0.5504, allocations: 190.3 kB / 0.5925 GB, free: 7.434 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.877e-05/0.5505, allocations: 8.438 kB / 0.5925 GB, free: 7.426 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/0.5505, allocations: 42.67 kB / 0.5926 GB, free: 7.379 MB / 394.7 MB Notification: Performance of pre-optimization done (n=49): time 2.875e-06/0.5505, allocations: 0 / 0.5926 GB, free: 7.379 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.0007614/0.5513, allocations: 456.5 kB / 0.593 GB, free: 7.051 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.535e-05/0.5514, allocations: 111.2 kB / 0.5931 GB, free: 6.918 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005286/0.5519, allocations: 0.4922 MB / 0.5936 GB, free: 6.527 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.866e-05/0.5519, allocations: 32.83 kB / 0.5936 GB, free: 6.496 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002072/0.5522, allocations: 355.1 kB / 0.594 GB, free: 6.266 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001122/0.5523, allocations: 177.9 kB / 0.5941 GB, free: 6.113 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.389e-05/0.5523, allocations: 14.38 kB / 0.5941 GB, free: 6.109 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.5524, allocations: 382.3 kB / 0.5945 GB, free: 5.754 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002552/0.5527, allocations: 165.5 kB / 0.5947 GB, free: 5.66 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003259/0.553, allocations: 306 kB / 0.595 GB, free: 5.387 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003123/0.5534, allocations: 205.8 kB / 0.5952 GB, free: 5.254 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.5534, allocations: 3.938 kB / 0.5952 GB, free: 5.25 MB / 394.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001171/0.5545, allocations: 0.684 MB / 0.5958 GB, free: 4.727 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004138/0.555, allocations: 1.399 MB / 0.5972 GB, free: 3.246 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.555, allocations: 7.938 kB / 0.5972 GB, free: 3.238 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003737/0.5554, allocations: 113 kB / 0.5973 GB, free: 3.152 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005277/0.5559, allocations: 131.5 kB / 0.5974 GB, free: 3.027 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005287/0.5564, allocations: 0.7066 MB / 0.5981 GB, free: 2.383 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004474/0.5569, allocations: 93.08 kB / 0.5982 GB, free: 2.301 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.886e-05/0.557, allocations: 19.5 kB / 0.5982 GB, free: 2.285 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/0.557, allocations: 6.5 kB / 0.5982 GB, free: 2.281 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000979/0.558, allocations: 0.556 MB / 0.5988 GB, free: 1.895 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.558, allocations: 4 kB / 0.5988 GB, free: 1.891 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003046/0.5583, allocations: 102.8 kB / 0.5989 GB, free: 1.812 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005158/0.5588, allocations: 138.7 kB / 0.599 GB, free: 1.68 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002095/0.5609, allocations: 2.009 MB / 0.601 GB, free: 15.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005833/0.5615, allocations: 80.58 kB / 0.6011 GB, free: 15.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.751e-05/0.5616, allocations: 23.12 kB / 0.6011 GB, free: 15.79 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,powerPlant.throttleCosts.local_reset,powerPlant.hotwellLevel.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * 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 10} Notification: Performance of prepare postOptimizeDAE: time 0.0002181/0.5618, allocations: 136.4 kB / 0.6012 GB, free: 15.67 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/0.5619, allocations: 67.16 kB / 0.6013 GB, free: 15.6 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000948/0.5629, allocations: 0.4942 MB / 0.6018 GB, free: 15.27 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.87e-06/0.5629, allocations: 8 kB / 0.6018 GB, free: 15.26 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.5629, allocations: 0 / 0.6018 GB, free: 15.26 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-06/0.5629, allocations: 3.984 kB / 0.6018 GB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001595/0.5645, allocations: 1.209 MB / 0.6029 GB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.5646, allocations: 0 / 0.6029 GB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005524/0.5651, allocations: 119 kB / 0.6031 GB, free: 14.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.5651, allocations: 4 kB / 0.6031 GB, free: 14.21 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.739e-05/0.5652, allocations: 10.25 kB / 0.6031 GB, free: 14.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.574e-06/0.5652, allocations: 4 kB / 0.6031 GB, free: 14.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.5652, allocations: 4 kB / 0.6031 GB, free: 14.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001004/0.5662, allocations: 0.8059 MB / 0.6039 GB, free: 13.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002272/0.5664, allocations: 195.7 kB / 0.6041 GB, free: 13.42 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.655e-05/0.5665, allocations: 11.05 kB / 0.6041 GB, free: 13.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003694/0.5669, allocations: 47.16 kB / 0.6041 GB, free: 13.38 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.844e-05/0.567, allocations: 36.25 kB / 0.6041 GB, free: 13.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.785e-05/0.567, allocations: 11 kB / 0.6042 GB, free: 13.33 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004224/0.5675, allocations: 399.8 kB / 0.6045 GB, free: 13.04 MB / 410.7 MB Notification: Performance of sort global known variables: time 3e-07/0.5675, allocations: 0 / 0.6045 GB, free: 13.04 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007958/0.5683, allocations: 267.8 kB / 0.6048 GB, free: 12.8 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (powerPlant.rotor.phi,powerPlant.rotor.w,powerPlant.evaporator.y,powerPlant.superheater1.y,powerPlant.superheater2.y,powerPlant.transferFunction.x_scaled[1],powerPlant.hotwellLevel.y,powerPlant.throttleDynamics.y,powerPlant.throttleCosts.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001677/0.5685, allocations: 138.2 kB / 0.6049 GB, free: 12.66 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001339/0.5698, allocations: 0.8607 MB / 0.6058 GB, free: 11.83 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.5698, allocations: 0 / 0.6058 GB, free: 11.83 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003616/0.5702, allocations: 222.4 kB / 0.606 GB, free: 11.62 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006029/0.5708, allocations: 119 kB / 0.6061 GB, free: 11.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00219/0.573, allocations: 1.173 MB / 0.6072 GB, free: 10.29 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005191/0.5735, allocations: 0.955 MB / 0.6082 GB, free: 9.309 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006912/0.5742, allocations: 174.9 kB / 0.6083 GB, free: 9.137 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/0.5744, allocations: 35.44 kB / 0.6084 GB, free: 9.102 MB / 410.7 MB Notification: Performance of SimCode: time 8.11e-07/0.5744, allocations: 0 / 0.6084 GB, free: 9.102 MB / 410.7 MB Notification: Performance of Templates: time 0.01407/0.5884, allocations: 8.339 MB / 0.6165 GB, free: 0.7695 MB / 410.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches