Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_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.001116/0.001116, allocations: 110.8 kB / 17.74 MB, free: 5.336 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.001177/0.001176, allocations: 184.5 kB / 18.67 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.408/1.408, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1732/0.1732, allocations: 37.99 MB / 309.9 MB, free: 5.941 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 68.47 kB / 432.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1037, allocations: 55.25 MB / 487.8 MB, free: 8.344 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.007774/0.1115, allocations: 5.464 MB / 493.2 MB, free: 2.848 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004127/0.1157, allocations: 2.308 MB / 495.6 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008205/0.1165, allocations: 31.88 kB / 495.6 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001167/0.1177, allocations: 274.2 kB / 495.8 MB, free: 232 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001116/0.1188, allocations: 354.1 kB / 496.2 MB, free: 15.88 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00119/0.12, allocations: 0.4913 MB / 496.7 MB, free: 15.38 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001447/0.1215, allocations: 1.065 MB / 497.8 MB, free: 14.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001059/0.1226, allocations: 0.6192 MB / 498.4 MB, free: 13.69 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006983/0.1233, allocations: 414.4 kB / 498.8 MB, free: 13.28 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007068/0.124, allocations: 406.1 kB / 499.2 MB, free: 12.88 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001719/0.1242, allocations: 80 kB / 499.3 MB, free: 12.8 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006278/0.1248, allocations: 355.3 kB / 499.6 MB, free: 12.46 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002361/0.1251, allocations: 219.3 kB / 499.8 MB, free: 12.24 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004391/0.1255, allocations: 401.8 kB / 0.4885 GB, free: 11.85 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001342/0.1269, allocations: 1.09 MB / 0.4895 GB, free: 10.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.1269, allocations: 7.938 kB / 0.4896 GB, free: 10.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.1269, allocations: 0 / 0.4896 GB, free: 10.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.716e-05/0.1269, allocations: 0 / 0.4896 GB, free: 10.75 MB / 382.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.002502/0.1294, allocations: 1.141 MB / 0.4907 GB, free: 9.551 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.1295, allocations: 15.89 kB / 0.4907 GB, free: 9.535 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009653/0.1305, allocations: 163.8 kB / 0.4908 GB, free: 9.375 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001121/0.1316, allocations: 0.6124 MB / 0.4914 GB, free: 8.719 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.875e-05/0.1317, allocations: 49.67 kB / 0.4915 GB, free: 8.672 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.1318, allocations: 64.36 kB / 0.4915 GB, free: 8.609 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001445/0.1333, allocations: 0.772 MB / 0.4923 GB, free: 7.797 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.579e-05/0.1333, allocations: 7.844 kB / 0.4923 GB, free: 7.789 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.732e-05/0.1334, allocations: 27.98 kB / 0.4923 GB, free: 7.762 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-05/0.1334, allocations: 29.31 kB / 0.4924 GB, free: 7.734 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001396/0.1348, allocations: 0.6609 MB / 0.493 GB, free: 7.074 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004339/0.1392, allocations: 2.903 MB / 0.4958 GB, free: 4.055 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001558/0.1408, allocations: 0.7234 MB / 0.4965 GB, free: 3.293 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005291/0.1413, allocations: 255 kB / 0.4968 GB, free: 3.039 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.908e-05/0.1414, allocations: 12.38 kB / 0.4968 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/0.1414, allocations: 35 kB / 0.4968 GB, free: 2.984 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 2.635e-06/0.1414, allocations: 0 / 0.4968 GB, free: 2.984 MB / 382.1 MB Notification: Performance of matching and sorting (n=50): time 0.001781/0.1432, allocations: 0.7481 MB / 0.4976 GB, free: 2.23 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.831e-05/0.1433, allocations: 111.4 kB / 0.4977 GB, free: 2.094 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008099/0.1441, allocations: 0.59 MB / 0.4982 GB, free: 1.496 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.793e-05/0.1442, allocations: 37.7 kB / 0.4983 GB, free: 1.453 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002544/0.1444, allocations: 348.4 kB / 0.4986 GB, free: 1.105 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000147/0.1446, allocations: 181.3 kB / 0.4988 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001802/0.1448, allocations: 110.2 kB / 0.4989 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.1449, allocations: 382.7 kB / 0.4993 GB, free: 440 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005371/0.1455, allocations: 235.3 kB / 0.4995 GB, free: 200 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006296/0.1461, allocations: 353.6 kB / 0.4998 GB, free: 15.8 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001166/0.1473, allocations: 0.586 MB / 0.5004 GB, free: 15.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.1473, allocations: 4 kB / 0.5004 GB, free: 15.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001899/0.1492, allocations: 0.8187 MB / 0.5012 GB, free: 14.33 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.1493, allocations: 4 kB / 0.5012 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.1493, allocations: 4 kB / 0.5012 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004211/0.1497, allocations: 117.2 kB / 0.5013 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005821/0.1503, allocations: 135.8 kB / 0.5014 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002956/0.1533, allocations: 2.428 MB / 0.5038 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005157/0.1538, allocations: 91.38 kB / 0.5039 GB, free: 11.42 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.112e-05/0.1539, allocations: 27.98 kB / 0.5039 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007083/0.1546, allocations: 381.3 kB / 0.5043 GB, free: 11.02 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005558/0.1551, allocations: 345.4 kB / 0.5046 GB, free: 10.62 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001035/0.1562, allocations: 0.5627 MB / 0.5052 GB, free: 10.02 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.41e-06/0.1562, allocations: 4 kB / 0.5052 GB, free: 10.01 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.001498/0.1577, allocations: 0.7332 MB / 0.5059 GB, free: 9.266 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.1577, allocations: 8 kB / 0.5059 GB, free: 9.258 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.1577, allocations: 11.94 kB / 0.5059 GB, free: 9.246 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002895/0.158, allocations: 96.8 kB / 0.506 GB, free: 9.148 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005788/0.1586, allocations: 139.8 kB / 0.5061 GB, free: 9.012 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002149/0.1608, allocations: 2.221 MB / 0.5083 GB, free: 6.648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004962/0.1613, allocations: 71.5 kB / 0.5084 GB, free: 6.578 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.546e-05/0.1614, allocations: 27.98 kB / 0.5084 GB, free: 6.551 MB / 398.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.0002035/0.1616, allocations: 208.5 kB / 0.5086 GB, free: 6.34 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001204/0.1617, allocations: 67.16 kB / 0.5087 GB, free: 6.273 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001341/0.163, allocations: 0.6006 MB / 0.5093 GB, free: 5.664 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.1631, allocations: 8 kB / 0.5093 GB, free: 5.656 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.1631, allocations: 4 kB / 0.5093 GB, free: 5.652 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.1631, allocations: 3.938 kB / 0.5093 GB, free: 5.648 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00242/0.1655, allocations: 1.357 MB / 0.5106 GB, free: 4.234 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.1655, allocations: 0 / 0.5106 GB, free: 4.234 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009686/0.1665, allocations: 119.8 kB / 0.5107 GB, free: 4.117 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.965e-06/0.1665, allocations: 0 / 0.5107 GB, free: 4.117 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001453/0.1667, allocations: 15.98 kB / 0.5107 GB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.545e-06/0.1667, allocations: 4 kB / 0.5107 GB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.1667, allocations: 192 / 0.5107 GB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002105/0.1688, allocations: 0.957 MB / 0.5117 GB, free: 3.125 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002599/0.1691, allocations: 192.2 kB / 0.5118 GB, free: 2.918 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.433e-05/0.1692, allocations: 12.11 kB / 0.5119 GB, free: 2.906 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004337/0.1696, allocations: 47.89 kB / 0.5119 GB, free: 2.859 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/0.1698, allocations: 44.41 kB / 0.5119 GB, free: 2.816 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.634e-05/0.1698, allocations: 16 kB / 0.512 GB, free: 2.801 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007114/0.1705, allocations: 423 kB / 0.5124 GB, free: 2.391 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.1706, allocations: 0 / 0.5124 GB, free: 2.391 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001003/0.1716, allocations: 271.1 kB / 0.5126 GB, free: 2.125 MB / 398.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.0001688/0.1717, allocations: 111.2 kB / 0.5127 GB, free: 2.008 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002558/0.1743, allocations: 1.144 MB / 0.5138 GB, free: 0.832 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.1743, allocations: 0 / 0.5138 GB, free: 0.832 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006179/0.175, allocations: 278.4 kB / 0.5141 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008739/0.1759, allocations: 142.9 kB / 0.5142 GB, free: 436 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003372/0.1792, allocations: 1.572 MB / 0.5158 GB, free: 14.81 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006522/0.1799, allocations: 0.9497 MB / 0.5167 GB, free: 13.84 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002131/0.1801, allocations: 47.42 kB / 0.5168 GB, free: 13.79 MB / 414.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1801, allocations: 0 / 0.5168 GB, free: 13.79 MB / 414.1 MB Notification: Performance of Templates: time 0.01611/0.1963, allocations: 10.06 MB / 0.5266 GB, free: 3.711 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1)