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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0016/0.0016, allocations: 105.8 kB / 17.59 MB, free: 5.441 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.001766/0.001766, allocations: 191.3 kB / 18.52 MB, free: 4.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.314/1.314, allocations: 222.9 MB / 242.2 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1787/0.1787, allocations: 38.03 MB / 330.4 MB, free: 8.844 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 64.62 kB / 399.5 MB, free: 34.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0914/0.09269, allocations: 58.07 MB / 457.5 MB, free: 8.051 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.006636/0.09936, allocations: 5.442 MB / 463 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003646/0.103, allocations: 2.253 MB / 465.2 MB, free: 328 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005941/0.1037, allocations: 23.88 kB / 465.3 MB, free: 304 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001056/0.1047, allocations: 274.2 kB / 465.5 MB, free: 28 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001027/0.1058, allocations: 354 kB / 465.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00116/0.1069, allocations: 0.4895 MB / 466.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001262/0.1082, allocations: 1.069 MB / 467.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009179/0.1092, allocations: 0.6114 MB / 468 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005816/0.1097, allocations: 398.5 kB / 468.4 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005101/0.1103, allocations: 398.2 kB / 468.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001412/0.1104, allocations: 80 kB / 468.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005898/0.111, allocations: 367.2 kB / 469.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002227/0.1113, allocations: 219.3 kB / 469.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003992/0.1117, allocations: 397.8 kB / 469.9 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001182/0.1129, allocations: 1.055 MB / 470.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1129, allocations: 0 / 470.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1129, allocations: 0 / 470.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.721e-05/0.1129, allocations: 0 / 470.9 MB, free: 10.61 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.002263/0.1152, allocations: 1.145 MB / 472.1 MB, free: 9.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.1152, allocations: 11.89 kB / 472.1 MB, free: 9.398 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008652/0.1161, allocations: 159.8 kB / 472.2 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009094/0.117, allocations: 0.5851 MB / 472.8 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.344e-05/0.1171, allocations: 41.69 kB / 472.9 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001042/0.1172, allocations: 64.28 kB / 472.9 MB, free: 8.516 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/0.1185, allocations: 0.7798 MB / 473.7 MB, free: 7.695 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.105e-05/0.1186, allocations: 0 / 473.7 MB, free: 7.695 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.23e-05/0.1186, allocations: 28 kB / 473.7 MB, free: 7.668 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.863e-05/0.1187, allocations: 29.3 kB / 473.8 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001333/0.12, allocations: 0.6609 MB / 474.4 MB, free: 6.977 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004016/0.124, allocations: 2.918 MB / 477.3 MB, free: 3.938 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001569/0.1256, allocations: 0.7343 MB / 478.1 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005249/0.1262, allocations: 251 kB / 478.3 MB, free: 2.914 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.708e-05/0.1262, allocations: 16.36 kB / 478.3 MB, free: 2.898 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.129e-05/0.1263, allocations: 42.98 kB / 478.4 MB, free: 2.844 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.255e-06/0.1263, allocations: 4 kB / 478.4 MB, free: 2.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.001724/0.128, allocations: 0.7442 MB / 479.1 MB, free: 2.094 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.276e-05/0.1281, allocations: 111.2 kB / 479.2 MB, free: 1.961 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007827/0.1289, allocations: 0.579 MB / 479.8 MB, free: 1.375 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.153e-05/0.1289, allocations: 33.7 kB / 479.8 MB, free: 1.336 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000241/0.1292, allocations: 360.4 kB / 480.2 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001362/0.1293, allocations: 181.4 kB / 480.4 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001836/0.1295, allocations: 102.3 kB / 480.5 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.1297, allocations: 374.8 kB / 480.8 MB, free: 328 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000527/0.1302, allocations: 231.3 kB / 481.1 MB, free: 96 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006101/0.1308, allocations: 361.5 kB / 481.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001109/0.1319, allocations: 0.5783 MB / 482 MB, free: 15.06 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.132, allocations: 4 kB / 482 MB, free: 15.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001856/0.1338, allocations: 0.8229 MB / 482.8 MB, free: 14.22 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.1339, allocations: 11.98 kB / 482.8 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.1339, allocations: 4 kB / 482.8 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003965/0.1343, allocations: 112.8 kB / 482.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005824/0.1349, allocations: 143.8 kB / 483.1 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002888/0.1378, allocations: 2.42 MB / 485.5 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005143/0.1383, allocations: 87.36 kB / 485.6 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.059e-05/0.1384, allocations: 20 kB / 485.6 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006973/0.1391, allocations: 389.3 kB / 486 MB, free: 10.9 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005425/0.1396, allocations: 337.6 kB / 486.3 MB, free: 10.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001024/0.1407, allocations: 0.5666 MB / 486.9 MB, free: 9.914 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.655e-06/0.1407, allocations: 7.938 kB / 486.9 MB, free: 9.906 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.001475/0.1422, allocations: 0.7212 MB / 487.6 MB, free: 9.172 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.1422, allocations: 15.11 kB / 487.6 MB, free: 9.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.1422, allocations: 11.94 kB / 487.6 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002749/0.1425, allocations: 100.7 kB / 487.7 MB, free: 9.047 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005544/0.143, allocations: 131.9 kB / 487.9 MB, free: 8.918 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00206/0.1451, allocations: 2.237 MB / 490.1 MB, free: 6.543 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000485/0.1456, allocations: 67.55 kB / 490.2 MB, free: 6.477 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.264e-05/0.1457, allocations: 24.06 kB / 490.2 MB, free: 6.453 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 (61): * Single equations (assignments): 60 * 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.0001858/0.1459, allocations: 222.1 kB / 490.4 MB, free: 6.23 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000114/0.146, allocations: 63.25 kB / 490.5 MB, free: 6.168 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001307/0.1473, allocations: 0.5926 MB / 491.1 MB, free: 5.562 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.1473, allocations: 15.97 kB / 491.1 MB, free: 5.547 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.063e-06/0.1473, allocations: 0 / 491.1 MB, free: 5.547 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.1473, allocations: 0 / 491.1 MB, free: 5.547 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002195/0.1495, allocations: 1.365 MB / 492.4 MB, free: 4.125 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.1496, allocations: 4 kB / 492.5 MB, free: 4.121 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005882/0.1501, allocations: 119.9 kB / 492.6 MB, free: 4.004 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.1502, allocations: 0 / 492.6 MB, free: 4.004 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.235e-05/0.1502, allocations: 12 kB / 492.6 MB, free: 3.992 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.1502, allocations: 4 kB / 492.6 MB, free: 3.988 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.1502, allocations: 0 / 492.6 MB, free: 3.988 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001742/0.152, allocations: 0.9597 MB / 493.5 MB, free: 3.012 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002273/0.1522, allocations: 192.2 kB / 493.7 MB, free: 2.805 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.35e-05/0.1523, allocations: 12 kB / 493.7 MB, free: 2.793 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004089/0.1527, allocations: 43.95 kB / 493.8 MB, free: 2.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.986e-05/0.1528, allocations: 32.39 kB / 493.8 MB, free: 2.719 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.735e-05/0.1529, allocations: 19.98 kB / 493.8 MB, free: 2.699 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006007/0.1535, allocations: 423.3 kB / 494.3 MB, free: 2.293 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1535, allocations: 0 / 494.3 MB, free: 2.293 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000864/0.1544, allocations: 271.1 kB / 494.5 MB, free: 2.027 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 (51): * Single equations (assignments): 50 * 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.0001353/0.1545, allocations: 119.8 kB / 494.6 MB, free: 1.902 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002398/0.1569, allocations: 1.202 MB / 495.8 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1569, allocations: 0 / 495.8 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000569/0.1575, allocations: 274.5 kB / 496.1 MB, free: 412 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007432/0.1582, allocations: 136.5 kB / 496.2 MB, free: 280 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00277/0.161, allocations: 1.583 MB / 497.8 MB, free: 14.65 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005041/0.1616, allocations: 0.9457 MB / 498.8 MB, free: 13.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001853/0.1617, allocations: 51.42 kB / 498.8 MB, free: 13.62 MB / 382.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1618, allocations: 0 / 498.8 MB, free: 13.62 MB / 382.1 MB Notification: Performance of Templates: time 0.01293/0.1747, allocations: 9.936 MB / 0.4968 GB, free: 3.711 MB / 382.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches