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.0008042/0.0008042, allocations: 89.06 kB / 16.65 MB, free: 6.59 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.00081/0.00081, allocations: 185 kB / 17.57 MB, free: 6.199 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.297/1.297, allocations: 223.3 MB / 241.6 MB, free: 104 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1735/0.1735, allocations: 38.09 MB / 330.8 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003036/0.0003037, allocations: 8 kB / 400.7 MB, free: 34.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09465/0.09497, allocations: 59.16 MB / 459.9 MB, free: 7.082 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1): time 0.006293/0.1013, allocations: 5.405 MB / 465.3 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003752/0.1051, allocations: 2.312 MB / 467.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000643/0.1058, allocations: 31.81 kB / 467.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004834/0.1063, allocations: 103.1 kB / 467.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008866/0.1072, allocations: 302.6 kB / 468 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001004/0.1082, allocations: 466.6 kB / 468.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001203/0.1094, allocations: 1.124 MB / 469.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001013/0.1104, allocations: 0.7081 MB / 470.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004001/0.1108, allocations: 298.4 kB / 470.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003873/0.1112, allocations: 338.2 kB / 470.9 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.848e-05/0.1113, allocations: 24 kB / 471 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005535/0.1118, allocations: 371.1 kB / 471.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001511/0.112, allocations: 143.4 kB / 471.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002847/0.1123, allocations: 343.6 kB / 471.8 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000875/0.1132, allocations: 1.004 MB / 472.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1132, allocations: 0 / 472.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1132, allocations: 0 / 472.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.257e-06/0.1132, allocations: 0 / 472.8 MB, free: 10.05 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.001726/0.1149, allocations: 0.9855 MB / 473.8 MB, free: 9.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.115, allocations: 12.03 kB / 473.8 MB, free: 9.008 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008369/0.1158, allocations: 163.8 kB / 474 MB, free: 8.848 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008449/0.1167, allocations: 0.5735 MB / 474.5 MB, free: 8.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.685e-05/0.1168, allocations: 45.69 kB / 474.6 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/0.1169, allocations: 68.28 kB / 474.6 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001255/0.1181, allocations: 0.772 MB / 475.4 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.213e-05/0.1182, allocations: 0 / 475.4 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.869e-05/0.1182, allocations: 27.94 kB / 475.4 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-05/0.1183, allocations: 29.25 kB / 475.5 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001192/0.1195, allocations: 0.6531 MB / 476.1 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003728/0.1232, allocations: 2.926 MB / 479 MB, free: 3.559 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001358/0.1246, allocations: 0.7365 MB / 479.8 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004608/0.1251, allocations: 246.9 kB / 480 MB, free: 2.539 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.144e-05/0.1251, allocations: 4.438 kB / 480 MB, free: 2.535 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.3e-05/0.1251, allocations: 43 kB / 480.1 MB, free: 2.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.024e-06/0.1252, allocations: 0 / 480.1 MB, free: 2.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.001539/0.1267, allocations: 0.7371 MB / 480.8 MB, free: 1.742 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.116e-05/0.1268, allocations: 107.2 kB / 480.9 MB, free: 1.613 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000768/0.1276, allocations: 0.5861 MB / 481.5 MB, free: 1.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.971e-05/0.1276, allocations: 37.7 kB / 481.5 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002622/0.1279, allocations: 352.5 kB / 481.9 MB, free: 0.625 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001356/0.128, allocations: 177.4 kB / 482.1 MB, free: 460 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.337e-05/0.1281, allocations: 53.69 kB / 482.1 MB, free: 400 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.1283, allocations: 374.8 kB / 482.5 MB, free: 16 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000477/0.1287, allocations: 217 kB / 482.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005479/0.1293, allocations: 352.5 kB / 483 MB, free: 15.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009955/0.1303, allocations: 0.5724 MB / 483.6 MB, free: 14.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.1303, allocations: 7.938 kB / 483.6 MB, free: 14.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001746/0.1321, allocations: 0.8236 MB / 484.4 MB, free: 13.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001276/0.1322, allocations: 196 kB / 484.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.679e-06/0.1322, allocations: 4 kB / 484.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004264/0.1327, allocations: 112.8 kB / 484.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005485/0.1332, allocations: 139.8 kB / 484.9 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002793/0.136, allocations: 2.253 MB / 487.1 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004318/0.1365, allocations: 91.31 kB / 487.2 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.081e-05/0.1365, allocations: 23.98 kB / 487.2 MB, free: 10.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.899e-06/0.1365, allocations: 6.188 kB / 487.2 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001256/0.1378, allocations: 0.6316 MB / 487.9 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.1378, allocations: 4 kB / 487.9 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002535/0.1381, allocations: 96.84 kB / 488 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005199/0.1386, allocations: 136.1 kB / 488.1 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001902/0.1405, allocations: 2.015 MB / 490.1 MB, free: 7.918 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003847/0.1409, allocations: 83.33 kB / 490.2 MB, free: 7.836 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.521e-05/0.141, allocations: 20 kB / 490.2 MB, free: 7.816 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.0003098/0.1413, allocations: 308.9 kB / 490.5 MB, free: 7.504 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.718e-05/0.1414, allocations: 71.14 kB / 490.6 MB, free: 7.434 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001147/0.1425, allocations: 0.581 MB / 491.2 MB, free: 6.852 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.1426, allocations: 12 kB / 491.2 MB, free: 6.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-06/0.1426, allocations: 0 / 491.2 MB, free: 6.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.1426, allocations: 0 / 491.2 MB, free: 6.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001927/0.1445, allocations: 1.345 MB / 492.5 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.1445, allocations: 0 / 492.5 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005372/0.1451, allocations: 115.8 kB / 492.6 MB, free: 5.324 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.1451, allocations: 4 kB / 492.7 MB, free: 5.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.503e-05/0.1451, allocations: 15.98 kB / 492.7 MB, free: 5.305 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.1451, allocations: 0 / 492.7 MB, free: 5.305 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.1451, allocations: 4.047 kB / 492.7 MB, free: 5.301 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001543/0.1467, allocations: 0.9365 MB / 493.6 MB, free: 4.344 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001979/0.1469, allocations: 188.1 kB / 493.8 MB, free: 4.141 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.586e-05/0.147, allocations: 12 kB / 493.8 MB, free: 4.129 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003775/0.1473, allocations: 47.95 kB / 493.8 MB, free: 4.082 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.456e-05/0.1474, allocations: 40.33 kB / 493.9 MB, free: 4.043 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.998e-05/0.1475, allocations: 12 kB / 493.9 MB, free: 4.031 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005647/0.148, allocations: 423 kB / 494.3 MB, free: 3.621 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1481, allocations: 0 / 494.3 MB, free: 3.621 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007675/0.1488, allocations: 263.2 kB / 494.6 MB, free: 3.363 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.0001215/0.149, allocations: 123.2 kB / 494.7 MB, free: 3.234 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00191/0.1509, allocations: 1.111 MB / 495.8 MB, free: 2.102 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1509, allocations: 0 / 495.8 MB, free: 2.102 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005074/0.1514, allocations: 271 kB / 496.1 MB, free: 1.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008042/0.1522, allocations: 135.8 kB / 496.2 MB, free: 1.711 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002682/0.1549, allocations: 1.873 MB / 498.1 MB, free: 15.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005111/0.1554, allocations: 0.9382 MB / 499 MB, free: 14.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004236/0.1559, allocations: 120.9 kB / 499.1 MB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000137/0.156, allocations: 47.42 kB / 499.2 MB, free: 14.67 MB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.156, allocations: 0 / 499.2 MB, free: 14.67 MB / 382.1 MB Notification: Performance of Templates: time 0.01254/0.1686, allocations: 7.613 MB / 0.4949 GB, free: 7.105 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches