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.001542/0.001541, allocations: 111.9 kB / 17.68 MB, free: 5.355 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.001826/0.001826, allocations: 192 kB / 18.62 MB, free: 4.434 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.397/1.397, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1804/0.1804, allocations: 38.04 MB / 330.5 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 66.05 kB / 400.3 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1038, allocations: 58.05 MB / 458.3 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.007493/0.1114, allocations: 5.455 MB / 463.8 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003509/0.1149, allocations: 2.249 MB / 466 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004257/0.1154, allocations: 23.88 kB / 466 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009454/0.1164, allocations: 278.2 kB / 466.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008008/0.1172, allocations: 342 kB / 466.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001189/0.1184, allocations: 0.5036 MB / 467.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001052/0.1195, allocations: 1.057 MB / 468.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008266/0.1203, allocations: 0.623 MB / 468.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004613/0.1208, allocations: 398.4 kB / 469.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004586/0.1212, allocations: 402.1 kB / 469.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.683e-05/0.1213, allocations: 88 kB / 469.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005409/0.1219, allocations: 359.2 kB / 470 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000198/0.1221, allocations: 223.3 kB / 470.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003117/0.1224, allocations: 393.8 kB / 470.6 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001002/0.1234, allocations: 1.082 MB / 471.7 MB, free: 9.852 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1234, allocations: 0 / 471.7 MB, free: 9.852 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1235, allocations: 0 / 471.7 MB, free: 9.852 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.061e-05/0.1235, allocations: 0 / 471.7 MB, free: 9.852 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.002127/0.1256, allocations: 1.148 MB / 472.9 MB, free: 8.652 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.1257, allocations: 8.031 kB / 472.9 MB, free: 8.645 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00086/0.1265, allocations: 155.8 kB / 473 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000998/0.1275, allocations: 0.6124 MB / 473.6 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.403e-05/0.1276, allocations: 45.69 kB / 473.7 MB, free: 7.797 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.1277, allocations: 68.27 kB / 473.8 MB, free: 7.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001344/0.129, allocations: 0.7681 MB / 474.5 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.575e-05/0.1291, allocations: 4 kB / 474.5 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.755e-05/0.1291, allocations: 20 kB / 474.6 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.144e-05/0.1292, allocations: 29.3 kB / 474.6 MB, free: 6.871 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/0.1305, allocations: 0.6647 MB / 475.2 MB, free: 6.203 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004/0.1345, allocations: 2.911 MB / 478.2 MB, free: 3.172 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001506/0.136, allocations: 0.7421 MB / 478.9 MB, free: 2.395 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005061/0.1365, allocations: 255 kB / 479.1 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.417e-05/0.1366, allocations: 12.38 kB / 479.2 MB, free: 2.125 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.961e-05/0.1366, allocations: 39 kB / 479.2 MB, free: 2.074 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.324e-06/0.1366, allocations: 0 / 479.2 MB, free: 2.074 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.001702/0.1384, allocations: 0.7482 MB / 479.9 MB, free: 1.324 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.805e-05/0.1384, allocations: 111.2 kB / 480.1 MB, free: 1.191 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007474/0.1392, allocations: 0.5751 MB / 480.6 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.793e-05/0.1392, allocations: 37.7 kB / 480.7 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002413/0.1395, allocations: 356.4 kB / 481 MB, free: 220 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001317/0.1396, allocations: 181.4 kB / 481.2 MB, free: 36 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001754/0.1398, allocations: 98.38 kB / 481.3 MB, free: 15.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.14, allocations: 382.8 kB / 481.7 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005219/0.1405, allocations: 223.4 kB / 481.9 MB, free: 15.33 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006324/0.1412, allocations: 365.5 kB / 482.2 MB, free: 14.92 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001105/0.1423, allocations: 0.5822 MB / 482.8 MB, free: 14.29 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.1423, allocations: 0 / 482.8 MB, free: 14.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001788/0.1441, allocations: 0.8187 MB / 483.6 MB, free: 13.46 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.1441, allocations: 8.406 kB / 483.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.1441, allocations: 8 kB / 483.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003992/0.1445, allocations: 108.8 kB / 483.8 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006202/0.1452, allocations: 139.8 kB / 483.9 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002874/0.1481, allocations: 2.432 MB / 486.3 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004977/0.1486, allocations: 83.3 kB / 486.4 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.75e-05/0.1486, allocations: 24 kB / 486.4 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006869/0.1493, allocations: 381.3 kB / 486.8 MB, free: 10.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005585/0.1499, allocations: 345.7 kB / 487.1 MB, free: 9.758 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009926/0.1509, allocations: 0.5626 MB / 487.7 MB, free: 9.152 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.284e-06/0.1509, allocations: 0 / 487.7 MB, free: 9.152 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.001437/0.1524, allocations: 0.737 MB / 488.4 MB, free: 8.402 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.1524, allocations: 6.656 kB / 488.4 MB, free: 8.398 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-06/0.1524, allocations: 7.938 kB / 488.5 MB, free: 8.391 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002785/0.1527, allocations: 108.8 kB / 488.6 MB, free: 8.281 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000593/0.1533, allocations: 140.1 kB / 488.7 MB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002221/0.1555, allocations: 2.225 MB / 490.9 MB, free: 5.781 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004992/0.156, allocations: 71.55 kB / 491 MB, free: 5.711 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.288e-05/0.1561, allocations: 20 kB / 491 MB, free: 5.691 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.0001948/0.1563, allocations: 216.1 kB / 491.2 MB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.1564, allocations: 63.25 kB / 491.3 MB, free: 5.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001332/0.1577, allocations: 0.6043 MB / 491.9 MB, free: 4.793 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.1578, allocations: 8 kB / 491.9 MB, free: 4.785 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.784e-06/0.1578, allocations: 0 / 491.9 MB, free: 4.785 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.393e-06/0.1578, allocations: 3.984 kB / 491.9 MB, free: 4.781 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002173/0.16, allocations: 1.365 MB / 493.3 MB, free: 3.359 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.16, allocations: 0 / 493.3 MB, free: 3.359 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006085/0.1606, allocations: 111.9 kB / 493.4 MB, free: 3.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.1606, allocations: 192 / 493.4 MB, free: 3.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.449e-05/0.1607, allocations: 15.98 kB / 493.4 MB, free: 3.234 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.1607, allocations: 11.94 kB / 493.4 MB, free: 3.223 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1607, allocations: 0 / 493.4 MB, free: 3.223 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001713/0.1624, allocations: 0.953 MB / 494.4 MB, free: 2.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002525/0.1627, allocations: 192.2 kB / 494.5 MB, free: 2.043 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.186e-05/0.1627, allocations: 12 kB / 494.6 MB, free: 2.031 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004045/0.1632, allocations: 43.95 kB / 494.6 MB, free: 1.988 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.1633, allocations: 40.38 kB / 494.6 MB, free: 1.949 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.678e-05/0.1633, allocations: 16 kB / 494.7 MB, free: 1.934 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006059/0.1639, allocations: 415 kB / 495.1 MB, free: 1.535 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1639, allocations: 0 / 495.1 MB, free: 1.535 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009047/0.1648, allocations: 275.1 kB / 495.3 MB, free: 1.266 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.0001484/0.165, allocations: 119.2 kB / 495.4 MB, free: 1.141 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002204/0.1672, allocations: 1.14 MB / 496.6 MB, free: 15.98 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.1672, allocations: 4 kB / 496.6 MB, free: 15.97 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005588/0.1678, allocations: 262.4 kB / 496.8 MB, free: 15.71 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007395/0.1686, allocations: 163.4 kB / 497 MB, free: 15.56 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002638/0.1712, allocations: 1.526 MB / 498.5 MB, free: 14.01 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004996/0.1717, allocations: 0.9418 MB / 499.5 MB, free: 13.04 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004011/0.1721, allocations: 120.6 kB / 499.6 MB, free: 12.92 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001513/0.1723, allocations: 51.38 kB / 499.6 MB, free: 12.87 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1723, allocations: 4 kB / 499.6 MB, free: 12.86 MB / 382.1 MB Notification: Performance of Templates: time 0.01426/0.1866, allocations: 8.456 MB / 0.4962 GB, free: 4.473 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 -s gbode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1)