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.000741/0.000741, allocations: 92.11 kB / 16.65 MB, free: 6.535 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.0009278/0.000928, allocations: 173.3 kB / 17.56 MB, free: 6.184 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.224/1.224, allocations: 223.3 MB / 241.6 MB, free: 208 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1604/0.1604, allocations: 38.09 MB / 330.8 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002913/0.0002913, allocations: 8 kB / 400.7 MB, free: 34.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09422/0.09452, allocations: 59.17 MB / 459.9 MB, free: 7.098 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.005743/0.1003, allocations: 5.425 MB / 465.3 MB, free: 1.645 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003399/0.1037, allocations: 2.331 MB / 467.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006462/0.1044, allocations: 35.81 kB / 467.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004506/0.1049, allocations: 95.2 kB / 467.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008601/0.1057, allocations: 306.5 kB / 468.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009728/0.1067, allocations: 462.6 kB / 468.5 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001136/0.1079, allocations: 1.139 MB / 469.7 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001032/0.1089, allocations: 0.7121 MB / 470.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004141/0.1093, allocations: 306.4 kB / 470.7 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003525/0.1097, allocations: 338.2 kB / 471 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.29e-05/0.1098, allocations: 24 kB / 471 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005095/0.1103, allocations: 371.2 kB / 471.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001436/0.1104, allocations: 155.3 kB / 471.5 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002514/0.1107, allocations: 343.5 kB / 471.9 MB, free: 11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007577/0.1115, allocations: 1.02 MB / 472.9 MB, free: 9.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.1115, allocations: 0 / 472.9 MB, free: 9.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1115, allocations: 0 / 472.9 MB, free: 9.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.1115, allocations: 0 / 472.9 MB, free: 9.98 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.001633/0.1131, allocations: 0.9974 MB / 473.9 MB, free: 8.934 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.118e-05/0.1132, allocations: 11.97 kB / 473.9 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007718/0.1139, allocations: 163.7 kB / 474.1 MB, free: 8.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007624/0.1147, allocations: 0.589 MB / 474.6 MB, free: 8.133 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.511e-05/0.1148, allocations: 49.67 kB / 474.7 MB, free: 8.086 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.1149, allocations: 64.28 kB / 474.8 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001251/0.1161, allocations: 0.7876 MB / 475.5 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.025e-05/0.1162, allocations: 4 kB / 475.6 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.062e-05/0.1162, allocations: 27.98 kB / 475.6 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.005e-05/0.1163, allocations: 29.3 kB / 475.6 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001293/0.1176, allocations: 0.6843 MB / 476.3 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003755/0.1213, allocations: 2.942 MB / 479.2 MB, free: 3.391 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001464/0.1228, allocations: 0.7792 MB / 480 MB, free: 2.578 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000506/0.1233, allocations: 263 kB / 480.3 MB, free: 2.312 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.484e-05/0.1234, allocations: 12.36 kB / 480.3 MB, free: 2.301 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.135e-05/0.1234, allocations: 47.03 kB / 480.3 MB, free: 2.242 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.744e-06/0.1234, allocations: 0 / 480.3 MB, free: 2.242 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.001715/0.1252, allocations: 0.795 MB / 481.1 MB, free: 1.445 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.662e-05/0.1252, allocations: 107.2 kB / 481.2 MB, free: 1.316 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007182/0.126, allocations: 0.579 MB / 481.8 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.039e-05/0.126, allocations: 37.7 kB / 481.8 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002357/0.1263, allocations: 356.4 kB / 482.2 MB, free: 340 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001218/0.1264, allocations: 173.5 kB / 482.4 MB, free: 164 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.285e-05/0.1265, allocations: 57.69 kB / 482.4 MB, free: 100 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.1266, allocations: 382.8 kB / 482.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005036/0.1272, allocations: 233.2 kB / 483 MB, free: 15.49 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006094/0.1278, allocations: 373.6 kB / 483.4 MB, free: 15.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001062/0.1288, allocations: 0.6173 MB / 484 MB, free: 14.4 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.267e-06/0.1289, allocations: 4 kB / 484 MB, free: 14.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001797/0.1307, allocations: 0.8733 MB / 484.9 MB, free: 13.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001084/0.1308, allocations: 192.5 kB / 485.1 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.1308, allocations: 7.984 kB / 485.1 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003922/0.1312, allocations: 116.7 kB / 485.2 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005419/0.1318, allocations: 151.8 kB / 485.3 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002799/0.1346, allocations: 2.264 MB / 487.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004493/0.135, allocations: 87.39 kB / 487.7 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.057e-05/0.1351, allocations: 20.09 kB / 487.7 MB, free: 10.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.262e-06/0.1351, allocations: 10.12 kB / 487.7 MB, free: 10.49 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001302/0.1364, allocations: 0.6778 MB / 488.4 MB, free: 9.812 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.1364, allocations: 7.984 kB / 488.4 MB, free: 9.805 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002405/0.1367, allocations: 96.8 kB / 488.5 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005339/0.1372, allocations: 143.8 kB / 488.6 MB, free: 9.566 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001959/0.1392, allocations: 2.027 MB / 490.7 MB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004013/0.1396, allocations: 79.41 kB / 490.7 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.771e-05/0.1396, allocations: 24.09 kB / 490.8 MB, free: 7.297 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.0003016/0.14, allocations: 312.9 kB / 491.1 MB, free: 6.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.604e-05/0.1401, allocations: 67.16 kB / 491.1 MB, free: 6.914 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001251/0.1413, allocations: 0.624 MB / 491.8 MB, free: 6.285 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.1414, allocations: 8 kB / 491.8 MB, free: 6.277 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.1414, allocations: 0 / 491.8 MB, free: 6.277 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.1414, allocations: 3.984 kB / 491.8 MB, free: 6.273 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002015/0.1434, allocations: 1.396 MB / 493.2 MB, free: 4.824 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.746e-06/0.1434, allocations: 0 / 493.2 MB, free: 4.824 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005522/0.144, allocations: 123.9 kB / 493.3 MB, free: 4.703 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.1e-06/0.144, allocations: 7.984 kB / 493.3 MB, free: 4.695 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.637e-05/0.1441, allocations: 16 kB / 493.3 MB, free: 4.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.015e-05/0.1441, allocations: 4 kB / 493.3 MB, free: 4.676 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1441, allocations: 0 / 493.3 MB, free: 4.676 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001706/0.1458, allocations: 1.003 MB / 494.3 MB, free: 3.648 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000188/0.146, allocations: 196.1 kB / 494.5 MB, free: 3.438 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.526e-05/0.1461, allocations: 12 kB / 494.5 MB, free: 3.426 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003798/0.1464, allocations: 47.95 kB / 494.6 MB, free: 3.379 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.272e-05/0.1465, allocations: 44.33 kB / 494.6 MB, free: 3.336 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.87e-05/0.1466, allocations: 11.98 kB / 494.6 MB, free: 3.324 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005268/0.1471, allocations: 423 kB / 495 MB, free: 2.914 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.1471, allocations: 0 / 495 MB, free: 2.914 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007714/0.1479, allocations: 267.3 kB / 495.3 MB, free: 2.652 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.0001374/0.148, allocations: 115.2 kB / 495.4 MB, free: 2.531 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002112/0.1502, allocations: 1.175 MB / 496.6 MB, free: 1.336 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1502, allocations: 288 / 496.6 MB, free: 1.336 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005705/0.1508, allocations: 290.5 kB / 496.9 MB, free: 1.047 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008606/0.1516, allocations: 131.7 kB / 497 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003203/0.1548, allocations: 1.904 MB / 498.9 MB, free: 14.99 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005933/0.1555, allocations: 0.9499 MB / 499.9 MB, free: 14.01 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004555/0.1559, allocations: 120.6 kB / 500 MB, free: 13.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001475/0.1561, allocations: 39.44 kB / 0.4883 GB, free: 13.85 MB / 382.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1561, allocations: 0 / 0.4883 GB, free: 13.85 MB / 382.1 MB Notification: Performance of Templates: time 0.01367/0.1698, allocations: 7.787 MB / 0.4959 GB, free: 6.125 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches