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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008938/0.0008939, allocations: 89.64 kB / 16.31 MB, free: 5.609 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.001103/0.001103, allocations: 181.1 kB / 17.21 MB, free: 5.523 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.211/1.211, allocations: 223.2 MB / 241.2 MB, free: 320 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1613/0.1613, allocations: 38.09 MB / 330.4 MB, free: 8.867 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002715/0.0002716, allocations: 12.88 kB / 400.1 MB, free: 34.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08981/0.0901, allocations: 59.16 MB / 459.2 MB, free: 7.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3): time 0.006084/0.09622, allocations: 5.734 MB / 465 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003996/0.1003, allocations: 2.729 MB / 467.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007605/0.101, allocations: 39.75 kB / 467.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005633/0.1016, allocations: 127 kB / 467.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001055/0.1027, allocations: 393.9 kB / 468.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001013/0.1037, allocations: 422.2 kB / 468.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001215/0.1049, allocations: 1.186 MB / 469.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001093/0.106, allocations: 0.7173 MB / 470.6 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004782/0.1065, allocations: 350.3 kB / 470.9 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000488/0.107, allocations: 398.2 kB / 471.3 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.502e-05/0.1071, allocations: 24 kB / 471.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005585/0.1077, allocations: 263.3 kB / 471.6 MB, free: 11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002024/0.1079, allocations: 195.3 kB / 471.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001506/0.108, allocations: 161.3 kB / 471.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007925/0.1088, allocations: 0.9116 MB / 472.8 MB, free: 9.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1089, allocations: 0 / 472.8 MB, free: 9.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1089, allocations: 0 / 472.8 MB, free: 9.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.031e-05/0.1089, allocations: 4 kB / 472.8 MB, free: 9.727 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.001758/0.1106, allocations: 1.068 MB / 473.9 MB, free: 8.609 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.1107, allocations: 12.03 kB / 473.9 MB, free: 8.598 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001113/0.1118, allocations: 202.6 kB / 474.1 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008291/0.1126, allocations: 0.5804 MB / 474.7 MB, free: 7.777 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.589e-05/0.1127, allocations: 53.25 kB / 474.8 MB, free: 7.727 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/0.1128, allocations: 72 kB / 474.8 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001427/0.1143, allocations: 0.8896 MB / 475.7 MB, free: 6.723 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.007e-05/0.1143, allocations: 0 / 475.7 MB, free: 6.723 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.464e-05/0.1144, allocations: 31.98 kB / 475.7 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.681e-05/0.1144, allocations: 33.3 kB / 475.8 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001343/0.1158, allocations: 0.8092 MB / 476.6 MB, free: 5.848 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004155/0.1199, allocations: 3.28 MB / 479.9 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001533/0.1215, allocations: 0.9921 MB / 480.9 MB, free: 1.379 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005297/0.122, allocations: 319.3 kB / 481.2 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.928e-05/0.1221, allocations: 12.5 kB / 481.2 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.798e-05/0.1221, allocations: 39.12 kB / 481.2 MB, free: 1 MB / 350.1 MB Notification: Performance of pre-optimization done (n=59): time 1.753e-06/0.1221, allocations: 0 / 481.2 MB, free: 1 MB / 350.1 MB Notification: Performance of matching and sorting (n=63): time 0.004461/0.1266, allocations: 2.611 MB / 483.8 MB, free: 14.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.625e-05/0.1267, allocations: 119.3 kB / 484 MB, free: 14.14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007084/0.1274, allocations: 0.5743 MB / 484.5 MB, free: 13.56 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.628e-05/0.1274, allocations: 41.7 kB / 484.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002236/0.1277, allocations: 360.3 kB / 484.9 MB, free: 13.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001567/0.1278, allocations: 220.7 kB / 485.1 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.373e-05/0.1279, allocations: 20.03 kB / 485.2 MB, free: 12.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.128, allocations: 378.7 kB / 485.5 MB, free: 12.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005178/0.1285, allocations: 277.8 kB / 485.8 MB, free: 12.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005908/0.1291, allocations: 429.8 kB / 486.2 MB, free: 11.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005801/0.1297, allocations: 318.1 kB / 486.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.044e-05/0.1298, allocations: 4 kB / 486.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001443/0.1312, allocations: 0.8581 MB / 487.4 MB, free: 10.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001202/0.1313, allocations: 209.1 kB / 487.6 MB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/0.1314, allocations: 4 kB / 487.6 MB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002427/0.1316, allocations: 56.81 kB / 487.6 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006776/0.1323, allocations: 183.8 kB / 487.8 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001457/0.1338, allocations: 1.618 MB / 489.4 MB, free: 8.359 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004134/0.1342, allocations: 67.97 kB / 489.5 MB, free: 8.293 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.532e-05/0.1342, allocations: 27.98 kB / 489.5 MB, free: 8.266 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.86e-06/0.1343, allocations: 4 kB / 489.5 MB, free: 8.262 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00128/0.1355, allocations: 0.7322 MB / 490.3 MB, free: 7.523 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.1356, allocations: 4 kB / 490.3 MB, free: 7.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001755/0.1357, allocations: 64.73 kB / 490.3 MB, free: 7.453 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000632/0.1364, allocations: 176.2 kB / 490.5 MB, free: 7.281 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001294/0.1377, allocations: 1.623 MB / 492.1 MB, free: 5.527 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003804/0.1381, allocations: 56.02 kB / 492.2 MB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.841e-05/0.1381, allocations: 24 kB / 492.2 MB, free: 5.449 MB / 366.1 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 () * Number of clocked 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.0003471/0.1385, allocations: 328.8 kB / 492.5 MB, free: 5.117 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.472e-05/0.1386, allocations: 71.06 kB / 492.6 MB, free: 5.047 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001468/0.1401, allocations: 0.7958 MB / 493.4 MB, free: 4.234 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-06/0.1401, allocations: 8 kB / 493.4 MB, free: 4.227 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-06/0.1401, allocations: 0 / 493.4 MB, free: 4.227 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-06/0.1401, allocations: 3.984 kB / 493.4 MB, free: 4.223 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003524/0.1436, allocations: 2.189 MB / 495.6 MB, free: 1.895 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.748e-06/0.1437, allocations: 11.95 kB / 495.6 MB, free: 1.883 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005226/0.1442, allocations: 135.7 kB / 495.7 MB, free: 1.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001666/0.1444, allocations: 56.81 kB / 495.8 MB, free: 1.691 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.153e-05/0.1444, allocations: 20 kB / 495.8 MB, free: 1.672 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001215/0.1456, allocations: 1.592 MB / 497.4 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.654e-06/0.1457, allocations: 16 kB / 497.4 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001949/0.1476, allocations: 1.349 MB / 498.8 MB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002164/0.1478, allocations: 204.2 kB / 499 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.61e-05/0.1479, allocations: 16 kB / 499 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004177/0.1483, allocations: 59.95 kB / 499.1 MB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.1485, allocations: 79.7 kB / 499.1 MB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.858e-05/0.1485, allocations: 24 kB / 499.2 MB, free: 14.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005147/0.149, allocations: 411 kB / 499.6 MB, free: 13.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.149, allocations: 0 / 499.6 MB, free: 13.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009616/0.15, allocations: 256 kB / 499.8 MB, free: 13.45 MB / 382.1 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 () * Number of clocked 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.0001302/0.1501, allocations: 123.9 kB / 499.9 MB, free: 13.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002019/0.1522, allocations: 1.297 MB / 0.4895 GB, free: 11.99 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1522, allocations: 0 / 0.4895 GB, free: 11.99 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008163/0.153, allocations: 0.5038 MB / 0.49 GB, free: 11.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000811/0.1538, allocations: 156.7 kB / 0.4901 GB, free: 11.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002497/0.1563, allocations: 2 MB / 0.4921 GB, free: 9.215 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005157/0.1569, allocations: 0.9861 MB / 0.493 GB, free: 8.203 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005047/0.1574, allocations: 148.8 kB / 0.4932 GB, free: 8.059 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001491/0.1575, allocations: 47.42 kB / 0.4932 GB, free: 8.012 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1575, allocations: 0 / 0.4932 GB, free: 8.012 MB / 382.1 MB Notification: Performance of Templates: time 0.01202/0.1696, allocations: 7.649 MB / 0.5007 GB, free: 416 kB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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