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.001087/0.001087, allocations: 112 kB / 17.06 MB, free: 6 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.001217/0.001217, allocations: 198.9 kB / 18 MB, free: 5.078 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.519/1.519, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1724/0.1724, allocations: 38 MB / 309.2 MB, free: 5.938 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.001525/0.001525, allocations: 75.89 kB / 431.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1292, allocations: 55.23 MB / 487.1 MB, free: 8.348 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.008031/0.1372, allocations: 5.472 MB / 492.6 MB, free: 2.844 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004071/0.1413, allocations: 2.308 MB / 494.9 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008564/0.1422, allocations: 27.88 kB / 494.9 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001346/0.1436, allocations: 274.2 kB / 495.2 MB, free: 232 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001214/0.1448, allocations: 350 kB / 495.5 MB, free: 15.88 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001226/0.146, allocations: 0.5069 MB / 496 MB, free: 15.38 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001296/0.1474, allocations: 1.057 MB / 497.1 MB, free: 14.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000954/0.1483, allocations: 0.6114 MB / 497.7 MB, free: 13.69 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000679/0.149, allocations: 418.4 kB / 498.1 MB, free: 13.28 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000694/0.1497, allocations: 402.1 kB / 498.5 MB, free: 12.89 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002045/0.1499, allocations: 84 kB / 498.6 MB, free: 12.8 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007137/0.1507, allocations: 355.2 kB / 498.9 MB, free: 12.46 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000275/0.1509, allocations: 219.3 kB / 499.1 MB, free: 12.24 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005486/0.1515, allocations: 401.8 kB / 499.5 MB, free: 11.85 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001312/0.1528, allocations: 1.09 MB / 0.4889 GB, free: 10.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1528, allocations: 4 kB / 0.4889 GB, free: 10.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1529, allocations: 0 / 0.4889 GB, free: 10.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.545e-05/0.1529, allocations: 4 kB / 0.4889 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.002501/0.1554, allocations: 1.145 MB / 0.49 GB, free: 9.547 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/0.1555, allocations: 11.89 kB / 0.49 GB, free: 9.535 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008723/0.1563, allocations: 155.8 kB / 0.4902 GB, free: 9.383 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001027/0.1574, allocations: 0.6241 MB / 0.4908 GB, free: 8.715 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.103e-05/0.1574, allocations: 49.62 kB / 0.4908 GB, free: 8.668 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.1576, allocations: 60.38 kB / 0.4909 GB, free: 8.609 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001421/0.159, allocations: 0.772 MB / 0.4916 GB, free: 7.797 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.571e-05/0.159, allocations: 3.906 kB / 0.4916 GB, free: 7.793 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.242e-05/0.1591, allocations: 32 kB / 0.4917 GB, free: 7.762 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-05/0.1592, allocations: 33.28 kB / 0.4917 GB, free: 7.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001315/0.1605, allocations: 0.6531 MB / 0.4923 GB, free: 7.078 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004109/0.1646, allocations: 2.899 MB / 0.4952 GB, free: 4.062 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001529/0.1661, allocations: 0.7311 MB / 0.4959 GB, free: 3.293 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004803/0.1666, allocations: 251.1 kB / 0.4961 GB, free: 3.043 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.657e-05/0.1667, allocations: 20.3 kB / 0.4961 GB, free: 3.023 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.375e-05/0.1667, allocations: 39 kB / 0.4962 GB, free: 2.977 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 2.074e-06/0.1667, allocations: 0 / 0.4962 GB, free: 2.977 MB / 382.1 MB Notification: Performance of matching and sorting (n=50): time 0.001642/0.1684, allocations: 0.7482 MB / 0.4969 GB, free: 2.223 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.107e-05/0.1685, allocations: 107.2 kB / 0.497 GB, free: 2.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007597/0.1692, allocations: 0.5941 MB / 0.4976 GB, free: 1.488 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.156e-05/0.1693, allocations: 33.7 kB / 0.4976 GB, free: 1.449 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002636/0.1696, allocations: 360.4 kB / 0.498 GB, free: 1.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002072/0.1698, allocations: 181.3 kB / 0.4981 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002083/0.17, allocations: 106.2 kB / 0.4983 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002452/0.1702, allocations: 378.8 kB / 0.4986 GB, free: 432 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004991/0.1708, allocations: 235.4 kB / 0.4988 GB, free: 192 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005784/0.1713, allocations: 357.6 kB / 0.4992 GB, free: 15.78 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/0.1724, allocations: 0.5822 MB / 0.4997 GB, free: 15.15 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.1724, allocations: 4 kB / 0.4997 GB, free: 15.15 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001714/0.1742, allocations: 0.8188 MB / 0.5005 GB, free: 14.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.1742, allocations: 8 kB / 0.5006 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.1742, allocations: 4 kB / 0.5006 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004053/0.1746, allocations: 108.8 kB / 0.5007 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005894/0.1752, allocations: 148.1 kB / 0.5008 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002986/0.1782, allocations: 2.42 MB / 0.5032 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004846/0.1787, allocations: 87.33 kB / 0.5033 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.905e-05/0.1788, allocations: 20.09 kB / 0.5033 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000763/0.1796, allocations: 393.3 kB / 0.5036 GB, free: 11.01 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000528/0.1801, allocations: 345.5 kB / 0.504 GB, free: 10.61 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009901/0.1811, allocations: 0.5587 MB / 0.5045 GB, free: 10.01 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.266e-06/0.1811, allocations: 0 / 0.5045 GB, free: 10.01 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.001492/0.1826, allocations: 0.7368 MB / 0.5052 GB, free: 9.258 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.1826, allocations: 8 kB / 0.5052 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.1826, allocations: 7.938 kB / 0.5053 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003126/0.183, allocations: 97.2 kB / 0.5053 GB, free: 9.145 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000538/0.1835, allocations: 139.8 kB / 0.5055 GB, free: 9.008 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002327/0.1858, allocations: 2.221 MB / 0.5077 GB, free: 6.645 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004908/0.1864, allocations: 79.55 kB / 0.5077 GB, free: 6.566 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.015e-05/0.1864, allocations: 24 kB / 0.5077 GB, free: 6.543 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.0001962/0.1866, allocations: 204.2 kB / 0.5079 GB, free: 6.336 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.1867, allocations: 71.16 kB / 0.508 GB, free: 6.266 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001281/0.188, allocations: 0.6005 MB / 0.5086 GB, free: 5.656 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/0.188, allocations: 8 kB / 0.5086 GB, free: 5.648 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.355e-06/0.188, allocations: 0 / 0.5086 GB, free: 5.648 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.188, allocations: 3.984 kB / 0.5086 GB, free: 5.645 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002303/0.1904, allocations: 1.365 MB / 0.5099 GB, free: 4.227 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.1904, allocations: 0 / 0.5099 GB, free: 4.227 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005892/0.191, allocations: 119.9 kB / 0.5101 GB, free: 4.109 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.191, allocations: 0 / 0.5101 GB, free: 4.109 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001254/0.1911, allocations: 12 kB / 0.5101 GB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/0.1911, allocations: 4 kB / 0.5101 GB, free: 4.094 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.1911, allocations: 0 / 0.5101 GB, free: 4.094 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001855/0.193, allocations: 0.9608 MB / 0.511 GB, free: 3.117 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002423/0.1932, allocations: 192.2 kB / 0.5112 GB, free: 2.91 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.891e-05/0.1933, allocations: 12.09 kB / 0.5112 GB, free: 2.898 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004055/0.1938, allocations: 47.89 kB / 0.5113 GB, free: 2.852 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.1939, allocations: 36.67 kB / 0.5113 GB, free: 2.816 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.486e-05/0.1939, allocations: 12 kB / 0.5113 GB, free: 2.805 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009414/0.1949, allocations: 427 kB / 0.5117 GB, free: 2.391 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1949, allocations: 3.938 kB / 0.5117 GB, free: 2.387 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001131/0.196, allocations: 275.1 kB / 0.512 GB, free: 2.117 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.0001732/0.1962, allocations: 111.3 kB / 0.5121 GB, free: 2 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002475/0.1987, allocations: 1.14 MB / 0.5132 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.1987, allocations: 3.938 kB / 0.5132 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005766/0.1993, allocations: 270.7 kB / 0.5135 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.0007862/0.2001, allocations: 150.9 kB / 0.5136 GB, free: 428 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003052/0.2032, allocations: 1.523 MB / 0.5151 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006396/0.2038, allocations: 0.9418 MB / 0.516 GB, free: 13.89 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004354/0.2043, allocations: 124.6 kB / 0.5161 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001534/0.2044, allocations: 47.42 kB / 0.5162 GB, free: 13.72 MB / 414.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2044, allocations: 0 / 0.5162 GB, free: 13.72 MB / 414.1 MB Notification: Performance of Templates: time 0.01752/0.222, allocations: 8.828 MB / 0.5248 GB, free: 4.875 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)