Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.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.PowerPlantTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|powerPlant.P_generator|powerPlant.frequency.y|powerPlant.fuel.y|powerPlant.throttling.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|powerPlant.P_generator|powerPlant.frequency.y|powerPlant.fuel.y|powerPlant.throttling.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001027/0.001027, allocations: 175.4 kB / 17.39 MB, free: 4.297 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.685/1.685, allocations: 205.4 MB / 223.5 MB, free: 9.004 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.0008324/0.0008326, allocations: 86.42 kB / 271.9 MB, free: 8.23 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1888/0.1888, allocations: 38.08 MB / 358.2 MB, free: 1.711 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003644/0.0003646, allocations: 12 kB / 425.2 MB, free: 37.35 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2678/0.2682, allocations: 56.31 MB / 481.6 MB, free: 9.594 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1416/0.4098, allocations: 103.7 MB / 0.5715 GB, free: 14.55 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002622/0.4102, allocations: 95.8 kB / 0.5716 GB, free: 14.46 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06151/0.4717, allocations: 22.7 MB / 0.5938 GB, free: 7.578 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4717, allocations: 0 / 0.5938 GB, free: 7.578 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.983e-05/0.4718, allocations: 16 kB / 0.5938 GB, free: 7.562 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002532/0.4744, allocations: 1.065 MB / 0.5948 GB, free: 6.441 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.4744, allocations: 8.031 kB / 0.5949 GB, free: 6.434 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001312/0.4757, allocations: 191.6 kB / 0.595 GB, free: 6.246 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001349/0.4771, allocations: 0.6293 MB / 0.5957 GB, free: 5.578 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.528e-05/0.4772, allocations: 45.69 kB / 0.5957 GB, free: 5.531 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000131/0.4773, allocations: 64.28 kB / 0.5958 GB, free: 5.469 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001585/0.4789, allocations: 0.7839 MB / 0.5965 GB, free: 4.645 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.888e-05/0.479, allocations: 192 / 0.5965 GB, free: 4.645 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.724e-05/0.479, allocations: 27.88 kB / 0.5965 GB, free: 4.617 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.903e-05/0.4791, allocations: 37.3 kB / 0.5966 GB, free: 4.582 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00146/0.4806, allocations: 0.6687 MB / 0.5972 GB, free: 3.914 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004723/0.4853, allocations: 2.957 MB / 0.6001 GB, free: 0.8359 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001555/0.4869, allocations: 0.7573 MB / 0.6009 GB, free: 44 kB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005605/0.4875, allocations: 263 kB / 0.6011 GB, free: 15.78 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.502e-05/0.4875, allocations: 4.438 kB / 0.6011 GB, free: 15.77 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.644e-05/0.4876, allocations: 46.97 kB / 0.6012 GB, free: 15.72 MB / 442.7 MB Notification: Performance of pre-optimization done (n=50): time 2.925e-06/0.4876, allocations: 0 / 0.6012 GB, free: 15.72 MB / 442.7 MB Notification: Performance of matching and sorting (n=50): time 0.001791/0.4894, allocations: 0.7853 MB / 0.6019 GB, free: 14.93 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.971e-05/0.4894, allocations: 107.2 kB / 0.602 GB, free: 14.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008918/0.4903, allocations: 0.5868 MB / 0.6026 GB, free: 14.21 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.606e-05/0.4904, allocations: 33.7 kB / 0.6026 GB, free: 14.17 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002719/0.4907, allocations: 360.4 kB / 0.603 GB, free: 13.82 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000185/0.4909, allocations: 185.4 kB / 0.6032 GB, free: 13.63 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.674e-05/0.4909, allocations: 8 kB / 0.6032 GB, free: 13.62 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.4911, allocations: 374.8 kB / 0.6035 GB, free: 13.25 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005221/0.4916, allocations: 237.2 kB / 0.6037 GB, free: 13.02 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006053/0.4922, allocations: 369.6 kB / 0.6041 GB, free: 12.61 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001124/0.4934, allocations: 0.6057 MB / 0.6047 GB, free: 11.95 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.8e-06/0.4934, allocations: 4 kB / 0.6047 GB, free: 11.95 MB / 442.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001954/0.4953, allocations: 0.8656 MB / 0.6055 GB, free: 11.07 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001623/0.4955, allocations: 195.4 kB / 0.6057 GB, free: 10.83 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.4955, allocations: 4 kB / 0.6057 GB, free: 10.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005204/0.4961, allocations: 144.8 kB / 0.6059 GB, free: 10.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006156/0.4967, allocations: 143.8 kB / 0.606 GB, free: 10.54 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003164/0.4999, allocations: 2.249 MB / 0.6082 GB, free: 8.148 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006512/0.5005, allocations: 99.48 kB / 0.6083 GB, free: 8.051 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.709e-05/0.5006, allocations: 23.94 kB / 0.6083 GB, free: 8.027 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.648e-06/0.5006, allocations: 4 kB / 0.6083 GB, free: 8.023 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001459/0.5021, allocations: 0.6656 MB / 0.609 GB, free: 7.355 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.5021, allocations: 4 kB / 0.609 GB, free: 7.352 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002776/0.5024, allocations: 100.8 kB / 0.6091 GB, free: 7.25 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005888/0.503, allocations: 148.2 kB / 0.6092 GB, free: 7.105 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002273/0.5053, allocations: 2.015 MB / 0.6112 GB, free: 4.961 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006825/0.506, allocations: 95.41 kB / 0.6113 GB, free: 4.867 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.478e-05/0.5061, allocations: 23.98 kB / 0.6113 GB, free: 4.844 MB / 442.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * 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.000671/0.5068, allocations: 300.9 kB / 0.6116 GB, free: 4.539 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002106/0.507, allocations: 71.09 kB / 0.6117 GB, free: 4.469 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001471/0.5085, allocations: 0.6163 MB / 0.6123 GB, free: 3.84 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/0.5085, allocations: 8 kB / 0.6123 GB, free: 3.832 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.5085, allocations: 0 / 0.6123 GB, free: 3.832 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.5085, allocations: 3.984 kB / 0.6123 GB, free: 3.828 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002568/0.5111, allocations: 1.345 MB / 0.6136 GB, free: 2.426 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.5111, allocations: 0 / 0.6136 GB, free: 2.426 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006243/0.5117, allocations: 123.9 kB / 0.6137 GB, free: 2.305 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.975e-06/0.5118, allocations: 0 / 0.6137 GB, free: 2.305 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.863e-05/0.5118, allocations: 19.98 kB / 0.6137 GB, free: 2.285 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-06/0.5118, allocations: 112 / 0.6137 GB, free: 2.285 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.5118, allocations: 3.938 kB / 0.6137 GB, free: 2.281 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001806/0.5136, allocations: 0.9949 MB / 0.6147 GB, free: 1.266 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002815/0.5139, allocations: 196.1 kB / 0.6149 GB, free: 1.055 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.504e-05/0.514, allocations: 12 kB / 0.6149 GB, free: 1.043 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004069/0.5144, allocations: 51.95 kB / 0.6149 GB, free: 0.9922 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.5146, allocations: 36.38 kB / 0.615 GB, free: 0.957 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.068e-05/0.5146, allocations: 16 kB / 0.615 GB, free: 0.9414 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000695/0.5153, allocations: 427 kB / 0.6154 GB, free: 0.5312 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5153, allocations: 0 / 0.6154 GB, free: 0.5312 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001029/0.5163, allocations: 283.2 kB / 0.6157 GB, free: 260 kB / 442.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 50 * 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.0002084/0.5166, allocations: 127.1 kB / 0.6158 GB, free: 120 kB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002363/0.5189, allocations: 1.16 MB / 0.6169 GB, free: 14.93 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.5189, allocations: 0 / 0.6169 GB, free: 14.93 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005765/0.5195, allocations: 286.8 kB / 0.6172 GB, free: 14.65 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008105/0.5204, allocations: 143.5 kB / 0.6173 GB, free: 14.51 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003053/0.5234, allocations: 1.822 MB / 0.6191 GB, free: 12.65 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005407/0.524, allocations: 0.9421 MB / 0.62 GB, free: 11.68 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0005077/0.5245, allocations: 124.6 kB / 0.6202 GB, free: 11.56 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001425/0.5246, allocations: 43.42 kB / 0.6202 GB, free: 11.52 MB / 458.7 MB Notification: Performance of SimCode: time 4.41e-07/0.5247, allocations: 0 / 0.6202 GB, free: 11.52 MB / 458.7 MB Notification: Performance of Templates: time 0.01544/0.5401, allocations: 7.649 MB / 0.6277 GB, free: 3.879 MB / 458.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches