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.001438/0.001438, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001589/0.001589, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.353/1.353, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1778/0.1778, allocations: 38.04 MB / 330.4 MB, free: 8.828 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 65.83 kB / 399.5 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09071/0.09197, allocations: 58.05 MB / 457.5 MB, free: 8.066 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1): time 0.007461/0.09948, allocations: 5.427 MB / 463 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003804/0.1033, allocations: 2.241 MB / 465.2 MB, free: 372 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007106/0.1041, allocations: 27.88 kB / 465.2 MB, free: 344 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001396/0.1055, allocations: 279.8 kB / 465.5 MB, free: 64 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001304/0.1068, allocations: 342 kB / 465.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001194/0.108, allocations: 0.4981 MB / 466.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001296/0.1093, allocations: 1.046 MB / 467.4 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001007/0.1103, allocations: 0.6113 MB / 468 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006162/0.111, allocations: 398.4 kB / 468.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005783/0.1115, allocations: 390.2 kB / 468.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001703/0.1117, allocations: 80 kB / 468.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006426/0.1124, allocations: 367.3 kB / 469.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002526/0.1126, allocations: 215.3 kB / 469.4 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004761/0.1131, allocations: 385.9 kB / 469.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001298/0.1144, allocations: 1.051 MB / 470.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.1145, allocations: 0 / 470.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1145, allocations: 3.938 kB / 470.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.44e-05/0.1145, allocations: 0 / 470.8 MB, free: 10.7 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.002469/0.117, allocations: 1.114 MB / 472 MB, free: 9.527 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.255e-05/0.117, allocations: 11.89 kB / 472 MB, free: 9.516 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009374/0.118, allocations: 167.8 kB / 472.1 MB, free: 9.352 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009902/0.119, allocations: 0.5773 MB / 472.7 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.93e-05/0.119, allocations: 41.69 kB / 472.7 MB, free: 8.695 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001108/0.1192, allocations: 60.38 kB / 472.8 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001385/0.1206, allocations: 0.7642 MB / 473.6 MB, free: 7.832 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.488e-05/0.1206, allocations: 8 kB / 473.6 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.325e-05/0.1207, allocations: 23.94 kB / 473.6 MB, free: 7.801 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-05/0.1207, allocations: 33.31 kB / 473.6 MB, free: 7.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001258/0.122, allocations: 0.6257 MB / 474.3 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004238/0.1262, allocations: 2.918 MB / 477.2 MB, free: 4.102 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001384/0.1276, allocations: 0.7072 MB / 477.9 MB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004697/0.1281, allocations: 235.1 kB / 478.1 MB, free: 3.121 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.323e-05/0.1282, allocations: 12.38 kB / 478.1 MB, free: 3.109 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.1282, allocations: 43 kB / 478.2 MB, free: 3.055 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.324e-06/0.1282, allocations: 0 / 478.2 MB, free: 3.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.001585/0.1298, allocations: 0.6941 MB / 478.9 MB, free: 2.359 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.771e-05/0.1299, allocations: 111.2 kB / 479 MB, free: 2.227 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008308/0.1307, allocations: 0.5821 MB / 479.6 MB, free: 1.637 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.802e-05/0.1308, allocations: 41.83 kB / 479.6 MB, free: 1.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002609/0.1311, allocations: 352.4 kB / 479.9 MB, free: 1.242 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/0.1312, allocations: 173.5 kB / 480.1 MB, free: 1.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001767/0.1314, allocations: 102.2 kB / 480.2 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.1316, allocations: 378.8 kB / 480.6 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004715/0.132, allocations: 218.9 kB / 480.8 MB, free: 376 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005529/0.1326, allocations: 340.5 kB / 481.1 MB, free: 15.98 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001018/0.1336, allocations: 0.549 MB / 481.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.1336, allocations: 3.938 kB / 481.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001749/0.1354, allocations: 0.7768 MB / 482.5 MB, free: 14.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.1354, allocations: 11.98 kB / 482.5 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.1355, allocations: 4 kB / 482.5 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004096/0.1359, allocations: 117.1 kB / 482.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005609/0.1364, allocations: 131.8 kB / 482.7 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00299/0.1394, allocations: 2.42 MB / 485.1 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004838/0.1399, allocations: 79.34 kB / 485.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.542e-05/0.14, allocations: 20 kB / 485.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006319/0.1406, allocations: 373.2 kB / 485.6 MB, free: 11.31 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005048/0.1412, allocations: 328.4 kB / 485.9 MB, free: 10.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009169/0.1421, allocations: 0.5295 MB / 486.4 MB, free: 10.36 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.625e-06/0.1421, allocations: 0 / 486.4 MB, free: 10.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization_lambda0): time 0.001386/0.1435, allocations: 0.7029 MB / 487.1 MB, free: 9.641 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.1435, allocations: 15.22 kB / 487.2 MB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.1435, allocations: 4 kB / 487.2 MB, free: 9.625 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002693/0.1438, allocations: 96.84 kB / 487.3 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005372/0.1443, allocations: 131.8 kB / 487.4 MB, free: 9.398 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002125/0.1465, allocations: 2.225 MB / 489.6 MB, free: 7.035 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000461/0.147, allocations: 67.5 kB / 489.7 MB, free: 6.969 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.447e-05/0.147, allocations: 28.05 kB / 489.7 MB, free: 6.941 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.0001822/0.1472, allocations: 208.1 kB / 489.9 MB, free: 6.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001256/0.1473, allocations: 71.09 kB / 490 MB, free: 6.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001203/0.1485, allocations: 0.5654 MB / 490.5 MB, free: 6.086 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.1486, allocations: 4 kB / 490.5 MB, free: 6.082 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.1486, allocations: 112 / 490.5 MB, free: 6.082 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/0.1486, allocations: 7.922 kB / 490.6 MB, free: 6.074 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002097/0.1507, allocations: 1.314 MB / 491.9 MB, free: 4.703 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.1507, allocations: 4 kB / 491.9 MB, free: 4.699 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000548/0.1513, allocations: 103.9 kB / 492 MB, free: 4.598 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.769e-06/0.1513, allocations: 7.984 kB / 492 MB, free: 4.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.058e-05/0.1513, allocations: 12 kB / 492 MB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.888e-06/0.1513, allocations: 11.94 kB / 492 MB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1514, allocations: 0 / 492 MB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001567/0.1529, allocations: 0.8975 MB / 492.9 MB, free: 3.652 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002494/0.1532, allocations: 192.1 kB / 493.1 MB, free: 3.445 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.748e-05/0.1533, allocations: 15.98 kB / 493.1 MB, free: 3.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003941/0.1537, allocations: 27.97 kB / 493.1 MB, free: 3.402 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.279e-05/0.1538, allocations: 40.38 kB / 493.2 MB, free: 3.363 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.259e-05/0.1538, allocations: 19.98 kB / 493.2 MB, free: 3.344 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006057/0.1544, allocations: 419 kB / 493.6 MB, free: 2.941 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.943e-06/0.1545, allocations: 96 / 493.6 MB, free: 2.941 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009002/0.1554, allocations: 275.1 kB / 493.9 MB, free: 2.672 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.0001383/0.1555, allocations: 103.2 kB / 494 MB, free: 2.562 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002279/0.1578, allocations: 1.145 MB / 495.1 MB, free: 1.391 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.1578, allocations: 0 / 495.1 MB, free: 1.391 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005086/0.1583, allocations: 263.4 kB / 495.4 MB, free: 1.137 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007832/0.1591, allocations: 149.8 kB / 495.5 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003049/0.1622, allocations: 1.563 MB / 497.1 MB, free: 15.39 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005492/0.1628, allocations: 0.9496 MB / 498 MB, free: 14.42 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001772/0.1629, allocations: 51.42 kB / 498.1 MB, free: 14.37 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1629, allocations: 0 / 498.1 MB, free: 14.37 MB / 382.1 MB Notification: Performance of Templates: time 0.01358/0.1765, allocations: 9.764 MB / 0.4959 GB, free: 4.621 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