Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.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.PowerPlantTest3,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.PowerPlantTest3") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,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.PowerPlantTest3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009858/0.0009859, allocations: 174.8 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.502/1.502, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.0008846/0.0008849, allocations: 97.78 kB / 267.5 MB, free: 14.09 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1602/0.1602, allocations: 37.98 MB / 353.5 MB, free: 1.746 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.649e-05/2.653e-05, allocations: 4 kB / 417.7 MB, free: 29.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09643/0.09647, allocations: 56.32 MB / 474.1 MB, free: 4.785 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3551/0.4517, allocations: 105.4 MB / 0.5659 GB, free: 13.89 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002067/0.4519, allocations: 84.33 kB / 0.5659 GB, free: 13.84 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07026/0.5222, allocations: 28.27 MB / 0.5935 GB, free: 6.371 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.664e-06/0.5222, allocations: 0 / 0.5935 GB, free: 6.371 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.602e-05/0.5223, allocations: 27.94 kB / 0.5936 GB, free: 6.344 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.001768/0.5241, allocations: 1 MB / 0.5945 GB, free: 5.355 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.5241, allocations: 8.031 kB / 0.5946 GB, free: 5.348 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001335/0.5254, allocations: 214.6 kB / 0.5948 GB, free: 5.137 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001072/0.5265, allocations: 0.6073 MB / 0.5953 GB, free: 4.598 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.985e-05/0.5266, allocations: 57.67 kB / 0.5954 GB, free: 4.562 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001158/0.5267, allocations: 65.44 kB / 0.5955 GB, free: 4.52 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001288/0.528, allocations: 0.8176 MB / 0.5963 GB, free: 3.914 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.979e-05/0.5281, allocations: 11.84 kB / 0.5963 GB, free: 3.902 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.642e-05/0.5281, allocations: 33.2 kB / 0.5963 GB, free: 3.891 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.813e-05/0.5282, allocations: 45.28 kB / 0.5964 GB, free: 3.848 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001085/0.5293, allocations: 0.6866 MB / 0.597 GB, free: 3.398 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004715/0.534, allocations: 3.277 MB / 0.6002 GB, free: 0.7031 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00122/0.5353, allocations: 0.8591 MB / 0.6011 GB, free: 15.98 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003627/0.5357, allocations: 264.3 kB / 0.6013 GB, free: 15.82 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.805e-05/0.5358, allocations: 19.91 kB / 0.6013 GB, free: 15.8 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.308e-05/0.5358, allocations: 42.69 kB / 0.6014 GB, free: 15.75 MB / 410.7 MB Notification: Performance of pre-optimization done (n=59): time 2.204e-06/0.5358, allocations: 0 / 0.6014 GB, free: 15.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=63): time 0.003012/0.5388, allocations: 1.96 MB / 0.6033 GB, free: 14.15 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.788e-05/0.5389, allocations: 107.4 kB / 0.6034 GB, free: 14.02 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005776/0.5395, allocations: 0.4912 MB / 0.6039 GB, free: 13.63 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.392e-05/0.5395, allocations: 39.08 kB / 0.6039 GB, free: 13.59 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000213/0.5398, allocations: 371.7 kB / 0.6043 GB, free: 13.35 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001585/0.5399, allocations: 217.9 kB / 0.6045 GB, free: 13.16 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.13e-05/0.54, allocations: 19.38 kB / 0.6045 GB, free: 13.16 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.5401, allocations: 387.6 kB / 0.6049 GB, free: 12.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000335/0.5405, allocations: 221.1 kB / 0.6051 GB, free: 12.66 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004332/0.5409, allocations: 361.3 kB / 0.6054 GB, free: 12.36 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004276/0.5413, allocations: 275.3 kB / 0.6057 GB, free: 12.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.5414, allocations: 4 kB / 0.6057 GB, free: 12.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001188/0.5425, allocations: 0.7407 MB / 0.6064 GB, free: 11.39 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004907/0.5431, allocations: 1.488 MB / 0.6079 GB, free: 9.785 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.5431, allocations: 4 kB / 0.6079 GB, free: 9.781 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002706/0.5433, allocations: 60.81 kB / 0.6079 GB, free: 9.719 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007487/0.5441, allocations: 179.8 kB / 0.6081 GB, free: 9.543 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001638/0.5458, allocations: 1.625 MB / 0.6097 GB, free: 7.777 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005652/0.5463, allocations: 67.94 kB / 0.6097 GB, free: 7.711 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.612e-05/0.5464, allocations: 24 kB / 0.6098 GB, free: 7.688 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.068e-05/0.5464, allocations: 4 kB / 0.6098 GB, free: 7.684 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001076/0.5475, allocations: 0.6544 MB / 0.6104 GB, free: 7.023 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.5475, allocations: 7.953 kB / 0.6104 GB, free: 7.016 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002094/0.5477, allocations: 60.81 kB / 0.6105 GB, free: 6.953 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006715/0.5484, allocations: 183.6 kB / 0.6106 GB, free: 6.773 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001443/0.5499, allocations: 1.613 MB / 0.6122 GB, free: 5.031 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005369/0.5504, allocations: 59.95 kB / 0.6123 GB, free: 4.973 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.339e-05/0.5505, allocations: 20 kB / 0.6123 GB, free: 4.953 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (80): * Single equations (assignments): 79 * 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 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001779/0.5507, allocations: 152.8 kB / 0.6124 GB, free: 4.797 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.5508, allocations: 71.28 kB / 0.6125 GB, free: 4.727 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001397/0.5522, allocations: 0.6865 MB / 0.6132 GB, free: 4.023 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.5522, allocations: 8 kB / 0.6132 GB, free: 4.016 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.796e-06/0.5522, allocations: 0 / 0.6132 GB, free: 4.016 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/0.5522, allocations: 11.94 kB / 0.6132 GB, free: 4.004 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003761/0.556, allocations: 2.089 MB / 0.6152 GB, free: 1.777 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.574e-06/0.556, allocations: 4.781 kB / 0.6152 GB, free: 1.773 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005873/0.5566, allocations: 139.8 kB / 0.6154 GB, free: 1.637 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002066/0.5568, allocations: 56.81 kB / 0.6154 GB, free: 1.578 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.481e-05/0.5569, allocations: 23.98 kB / 0.6155 GB, free: 1.555 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001443/0.5584, allocations: 1.573 MB / 0.617 GB, free: 15.85 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.168e-06/0.5584, allocations: 11.94 kB / 0.617 GB, free: 15.84 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001856/0.5602, allocations: 1.491 MB / 0.6185 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003323/0.5606, allocations: 200.2 kB / 0.6186 GB, free: 13.88 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.011e-05/0.5607, allocations: 24 kB / 0.6187 GB, free: 13.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004927/0.5612, allocations: 55.95 kB / 0.6187 GB, free: 13.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/0.5613, allocations: 71.91 kB / 0.6188 GB, free: 13.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.535e-05/0.5614, allocations: 27.98 kB / 0.6188 GB, free: 13.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000505/0.5619, allocations: 391.2 kB / 0.6192 GB, free: 13.33 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5619, allocations: 0 / 0.6192 GB, free: 13.33 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00109/0.563, allocations: 268 kB / 0.6194 GB, free: 13.07 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 7 (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 (63): * Single equations (assignments): 61 * 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: 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002037/0.5632, allocations: 142.9 kB / 0.6196 GB, free: 12.92 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001838/0.5651, allocations: 1.149 MB / 0.6207 GB, free: 11.75 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.5651, allocations: 4.5 kB / 0.6207 GB, free: 11.74 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007195/0.5658, allocations: 466.2 kB / 0.6212 GB, free: 11.27 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007606/0.5666, allocations: 152.3 kB / 0.6213 GB, free: 11.12 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002379/0.569, allocations: 1.321 MB / 0.6226 GB, free: 9.688 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005795/0.5696, allocations: 1.011 MB / 0.6236 GB, free: 8.645 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0007377/0.5703, allocations: 191.4 kB / 0.6238 GB, free: 8.457 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000143/0.5705, allocations: 47.42 kB / 0.6238 GB, free: 8.41 MB / 426.7 MB Notification: Performance of SimCode: time 1.302e-06/0.5705, allocations: 4 kB / 0.6238 GB, free: 8.406 MB / 426.7 MB Notification: Performance of Templates: time 0.01595/0.5864, allocations: 8.946 MB / 0.6325 GB, free: 15.46 MB / 442.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches