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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001389/0.001389, allocations: 111.3 kB / 17.29 MB, free: 6.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00139/0.00139, allocations: 197.3 kB / 18.21 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.021/2.021, allocations: 222.9 MB / 241.9 MB, free: 15.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3806/0.3806, allocations: 38.03 MB / 330.1 MB, free: 8.992 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001625/0.001625, allocations: 61.7 kB / 398.9 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1387, allocations: 58.07 MB / 457 MB, free: 8.406 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1): time 0.01177/0.1506, allocations: 5.827 MB / 462.8 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005752/0.1564, allocations: 2.343 MB / 465.2 MB, free: 200 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000792/0.1572, allocations: 31.81 kB / 465.2 MB, free: 168 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001278/0.1585, allocations: 234.9 kB / 465.4 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001302/0.1598, allocations: 298.6 kB / 465.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001637/0.1615, allocations: 475.6 kB / 466.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001719/0.1632, allocations: 1.038 MB / 467.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001365/0.1646, allocations: 0.6308 MB / 467.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007718/0.1654, allocations: 398.3 kB / 468.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006774/0.1661, allocations: 406.1 kB / 468.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001745/0.1663, allocations: 80 kB / 468.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008387/0.1671, allocations: 359.3 kB / 469.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003053/0.1674, allocations: 219.3 kB / 469.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004969/0.168, allocations: 385.9 kB / 469.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001304/0.1693, allocations: 0.8342 MB / 470.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1693, allocations: 0 / 470.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1693, allocations: 0 / 470.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.226e-05/0.1693, allocations: 4 kB / 470.5 MB, free: 10.84 MB / 350.1 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.002992/0.1723, allocations: 1.122 MB / 471.6 MB, free: 9.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.058e-05/0.1724, allocations: 15.89 kB / 471.6 MB, free: 9.645 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001532/0.174, allocations: 159.7 kB / 471.8 MB, free: 9.488 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001426/0.1754, allocations: 0.5735 MB / 472.4 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.074e-05/0.1755, allocations: 53.62 kB / 472.4 MB, free: 8.824 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001708/0.1757, allocations: 68.3 kB / 472.5 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002114/0.1778, allocations: 0.7603 MB / 473.3 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.367e-05/0.1779, allocations: 0 / 473.3 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000102/0.178, allocations: 24 kB / 473.3 MB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.831e-05/0.1781, allocations: 33.3 kB / 473.3 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002038/0.1801, allocations: 0.6296 MB / 473.9 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006525/0.1867, allocations: 2.906 MB / 476.8 MB, free: 4.246 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002189/0.1889, allocations: 0.7032 MB / 477.5 MB, free: 3.508 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007356/0.1896, allocations: 235 kB / 477.8 MB, free: 3.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.818e-05/0.1897, allocations: 12.45 kB / 477.8 MB, free: 3.254 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.114e-05/0.1898, allocations: 42.94 kB / 477.8 MB, free: 3.203 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 4.308e-06/0.1898, allocations: 0 / 477.8 MB, free: 3.203 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.002575/0.1924, allocations: 0.7019 MB / 478.5 MB, free: 2.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.66e-05/0.1925, allocations: 107.2 kB / 478.6 MB, free: 2.371 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001261/0.1938, allocations: 0.5862 MB / 479.2 MB, free: 1.777 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.004e-05/0.1939, allocations: 37.7 kB / 479.3 MB, free: 1.734 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003878/0.1943, allocations: 348.4 kB / 479.6 MB, free: 1.391 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000233/0.1945, allocations: 173.5 kB / 479.8 MB, free: 1.219 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002708/0.1948, allocations: 110.1 kB / 479.9 MB, free: 1.105 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002182/0.195, allocations: 374.8 kB / 480.2 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007591/0.1958, allocations: 211 kB / 480.5 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008548/0.1967, allocations: 344.5 kB / 480.8 MB, free: 136 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001667/0.1984, allocations: 0.549 MB / 481.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.396e-06/0.1984, allocations: 7.938 kB / 481.3 MB, free: 15.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002892/0.2013, allocations: 0.7807 MB / 482.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.756e-05/0.2013, allocations: 11.94 kB / 482.1 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.2014, allocations: 416 / 482.1 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006419/0.202, allocations: 116.8 kB / 482.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009694/0.203, allocations: 131.9 kB / 482.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00506/0.2081, allocations: 2.42 MB / 484.8 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000924/0.2091, allocations: 87.23 kB / 484.9 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-05/0.2092, allocations: 27.94 kB / 484.9 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001129/0.2103, allocations: 369.2 kB / 485.3 MB, free: 11.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008133/0.2111, allocations: 320.5 kB / 485.6 MB, free: 11.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001436/0.2126, allocations: 0.5294 MB / 486.1 MB, free: 10.49 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.508e-06/0.2126, allocations: 0 / 486.1 MB, free: 10.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization_lambda0): time 0.00235/0.215, allocations: 0.6991 MB / 486.8 MB, free: 9.781 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.215, allocations: 8 kB / 486.8 MB, free: 9.773 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.215, allocations: 4 kB / 486.8 MB, free: 9.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004701/0.2155, allocations: 104.8 kB / 486.9 MB, free: 9.664 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009161/0.2164, allocations: 135.9 kB / 487.1 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003338/0.2198, allocations: 2.225 MB / 489.3 MB, free: 7.168 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007939/0.2206, allocations: 67.66 kB / 489.4 MB, free: 7.102 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.508e-05/0.2207, allocations: 23.94 kB / 489.4 MB, free: 7.078 MB / 366.1 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 (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002856/0.221, allocations: 206.5 kB / 489.6 MB, free: 6.871 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001931/0.2212, allocations: 71.09 kB / 489.6 MB, free: 6.801 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00194/0.2231, allocations: 0.5654 MB / 490.2 MB, free: 6.227 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.2232, allocations: 4 kB / 490.2 MB, free: 6.223 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.2232, allocations: 4 kB / 490.2 MB, free: 6.219 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.2232, allocations: 3.984 kB / 490.2 MB, free: 6.215 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003497/0.2267, allocations: 1.322 MB / 491.5 MB, free: 4.836 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.2267, allocations: 4 kB / 491.6 MB, free: 4.832 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009232/0.2277, allocations: 108 kB / 491.7 MB, free: 4.727 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.043e-05/0.2277, allocations: 3.938 kB / 491.7 MB, free: 4.723 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-05/0.2278, allocations: 12 kB / 491.7 MB, free: 4.711 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-06/0.2278, allocations: 4 kB / 491.7 MB, free: 4.707 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.2278, allocations: 0 / 491.7 MB, free: 4.707 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002588/0.2304, allocations: 0.9091 MB / 492.6 MB, free: 3.781 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003958/0.2308, allocations: 192.1 kB / 492.8 MB, free: 3.574 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001583/0.231, allocations: 12.28 kB / 492.8 MB, free: 3.562 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006867/0.2317, allocations: 43.95 kB / 492.8 MB, free: 3.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001479/0.2319, allocations: 32.39 kB / 492.9 MB, free: 3.488 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.425e-05/0.2319, allocations: 15.94 kB / 492.9 MB, free: 3.473 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001067/0.233, allocations: 423 kB / 493.3 MB, free: 3.066 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.233, allocations: 0 / 493.3 MB, free: 3.066 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001784/0.2348, allocations: 263.2 kB / 493.5 MB, free: 2.809 MB / 366.1 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 (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002277/0.2351, allocations: 115.3 kB / 493.7 MB, free: 2.688 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003773/0.2388, allocations: 1.138 MB / 494.8 MB, free: 1.523 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.2389, allocations: 1.062 kB / 494.8 MB, free: 1.523 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008508/0.2397, allocations: 262.3 kB / 495.1 MB, free: 1.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001388/0.2411, allocations: 146.8 kB / 495.2 MB, free: 1.137 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005146/0.2463, allocations: 1.833 MB / 497 MB, free: 15.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009498/0.2473, allocations: 0.9379 MB / 498 MB, free: 14.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000334/0.2476, allocations: 51.42 kB / 498 MB, free: 14.25 MB / 382.1 MB Notification: Performance of SimCode: time 7.41e-07/0.2477, allocations: 0 / 498 MB, free: 14.25 MB / 382.1 MB Notification: Performance of Templates: time 0.02353/0.2712, allocations: 9.757 MB / 0.4959 GB, free: 4.504 MB / 382.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches