Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009463/0.0009513, allocations: 173.1 kB / 16.76 MB, free: 4.93 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.412/1.412, allocations: 205.4 MB / 222.9 MB, free: 9.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007488/0.0007488, allocations: 86.41 kB / 271.3 MB, free: 8.223 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1705/0.1705, allocations: 38.09 MB / 357.6 MB, free: 1.707 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004722/0.0004722, allocations: 12 kB / 423.9 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3334, allocations: 56.33 MB / 480.3 MB, free: 9.199 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1289/0.4624, allocations: 103.7 MB / 0.5703 GB, free: 14.64 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002177/0.4626, allocations: 91.95 kB / 0.5703 GB, free: 14.55 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05573/0.5184, allocations: 22.71 MB / 0.5925 GB, free: 7.656 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.5184, allocations: 0 / 0.5925 GB, free: 7.656 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.475e-05/0.5185, allocations: 12 kB / 0.5925 GB, free: 7.645 MB / 426.7 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.001852/0.5203, allocations: 1.065 MB / 0.5936 GB, free: 6.523 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.5204, allocations: 8.031 kB / 0.5936 GB, free: 6.516 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009166/0.5213, allocations: 183.7 kB / 0.5938 GB, free: 6.336 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001065/0.5224, allocations: 0.6332 MB / 0.5944 GB, free: 5.664 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.49e-05/0.5224, allocations: 49.62 kB / 0.5944 GB, free: 5.613 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.5226, allocations: 64.28 kB / 0.5945 GB, free: 5.551 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001299/0.5239, allocations: 0.7762 MB / 0.5952 GB, free: 4.734 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.222e-05/0.5239, allocations: 4.125 kB / 0.5952 GB, free: 4.73 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.478e-05/0.524, allocations: 31.94 kB / 0.5953 GB, free: 4.699 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.314e-05/0.524, allocations: 29.3 kB / 0.5953 GB, free: 4.672 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001287/0.5253, allocations: 0.6687 MB / 0.596 GB, free: 4.004 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003915/0.5292, allocations: 2.965 MB / 0.5989 GB, free: 0.918 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001399/0.5307, allocations: 0.7574 MB / 0.5996 GB, free: 128 kB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005159/0.5312, allocations: 255.1 kB / 0.5998 GB, free: 15.87 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.61e-05/0.5313, allocations: 12.38 kB / 0.5998 GB, free: 15.86 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.662e-05/0.5313, allocations: 42.94 kB / 0.5999 GB, free: 15.81 MB / 442.7 MB Notification: Performance of pre-optimization done (n=50): time 2.405e-06/0.5313, allocations: 0 / 0.5999 GB, free: 15.81 MB / 442.7 MB Notification: Performance of matching and sorting (n=50): time 0.001697/0.533, allocations: 0.7853 MB / 0.6007 GB, free: 15.02 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.694e-05/0.5331, allocations: 111.2 kB / 0.6008 GB, free: 14.89 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007581/0.5338, allocations: 0.579 MB / 0.6013 GB, free: 14.3 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.359e-05/0.5339, allocations: 37.7 kB / 0.6014 GB, free: 14.26 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002226/0.5341, allocations: 360.5 kB / 0.6017 GB, free: 13.9 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.5343, allocations: 177.4 kB / 0.6019 GB, free: 13.73 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.076e-05/0.5343, allocations: 12 kB / 0.6019 GB, free: 13.71 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.5344, allocations: 382.8 kB / 0.6023 GB, free: 13.33 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005067/0.535, allocations: 229.2 kB / 0.6025 GB, free: 13.11 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005756/0.5355, allocations: 373.5 kB / 0.6028 GB, free: 12.69 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001075/0.5366, allocations: 0.6057 MB / 0.6034 GB, free: 12.04 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.5366, allocations: 0 / 0.6034 GB, free: 12.04 MB / 442.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001796/0.5384, allocations: 0.8655 MB / 0.6043 GB, free: 11.16 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001052/0.5386, allocations: 200.5 kB / 0.6045 GB, free: 10.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.5386, allocations: 4 kB / 0.6045 GB, free: 10.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004398/0.539, allocations: 136.8 kB / 0.6046 GB, free: 10.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005879/0.5396, allocations: 147.7 kB / 0.6047 GB, free: 10.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0026/0.5422, allocations: 2.255 MB / 0.6069 GB, free: 8.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000553/0.5428, allocations: 99.39 kB / 0.607 GB, free: 8.133 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.258e-05/0.5429, allocations: 20.19 kB / 0.607 GB, free: 8.113 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.963e-06/0.5429, allocations: 4 kB / 0.6071 GB, free: 8.109 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001345/0.5442, allocations: 0.6734 MB / 0.6077 GB, free: 7.434 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.76e-06/0.5442, allocations: 4 kB / 0.6077 GB, free: 7.43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002733/0.5445, allocations: 97.06 kB / 0.6078 GB, free: 7.332 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005469/0.5451, allocations: 144.2 kB / 0.6079 GB, free: 7.191 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001891/0.547, allocations: 2.022 MB / 0.6099 GB, free: 5.039 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005167/0.5475, allocations: 87.41 kB / 0.61 GB, free: 4.953 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.81e-05/0.5476, allocations: 20 kB / 0.61 GB, free: 4.934 MB / 442.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 10} Notification: Performance of prepare postOptimizeDAE: time 0.000441/0.548, allocations: 304.9 kB / 0.6103 GB, free: 4.625 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.5481, allocations: 71.09 kB / 0.6104 GB, free: 4.555 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001293/0.5494, allocations: 0.6163 MB / 0.611 GB, free: 3.926 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.5495, allocations: 4 kB / 0.611 GB, free: 3.922 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.5495, allocations: 0 / 0.611 GB, free: 3.922 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.5495, allocations: 4 kB / 0.611 GB, free: 3.918 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002113/0.5516, allocations: 1.349 MB / 0.6123 GB, free: 2.512 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.5516, allocations: 0 / 0.6123 GB, free: 2.512 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005901/0.5522, allocations: 127.8 kB / 0.6124 GB, free: 2.387 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-06/0.5522, allocations: 4 kB / 0.6124 GB, free: 2.383 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.439e-05/0.5523, allocations: 12.11 kB / 0.6124 GB, free: 2.371 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.893e-06/0.5523, allocations: 15.86 kB / 0.6125 GB, free: 2.355 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.5523, allocations: 0 / 0.6125 GB, free: 2.355 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001745/0.554, allocations: 0.9872 MB / 0.6134 GB, free: 1.348 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002575/0.5543, allocations: 196.1 kB / 0.6136 GB, free: 1.137 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.181e-05/0.5544, allocations: 12 kB / 0.6136 GB, free: 1.125 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003936/0.5548, allocations: 47.95 kB / 0.6137 GB, free: 1.078 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001022/0.5549, allocations: 44.38 kB / 0.6137 GB, free: 1.035 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.9e-05/0.5549, allocations: 8 kB / 0.6137 GB, free: 1.027 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006343/0.5556, allocations: 427.1 kB / 0.6141 GB, free: 0.6172 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5556, allocations: 7.938 kB / 0.6141 GB, free: 0.6094 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0009781/0.5566, allocations: 279.2 kB / 0.6144 GB, free: 344 kB / 442.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002122/0.5568, allocations: 127.1 kB / 0.6145 GB, free: 204 kB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00266/0.5595, allocations: 1.16 MB / 0.6157 GB, free: 15.02 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.5595, allocations: 0 / 0.6157 GB, free: 15.02 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008375/0.5603, allocations: 286.4 kB / 0.6159 GB, free: 14.73 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001081/0.5614, allocations: 134.6 kB / 0.6161 GB, free: 14.61 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004064/0.5655, allocations: 1.875 MB / 0.6179 GB, free: 12.69 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007064/0.5663, allocations: 0.946 MB / 0.6188 GB, free: 11.71 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002937/0.5666, allocations: 43.44 kB / 0.6188 GB, free: 11.67 MB / 458.7 MB Notification: Performance of SimCode: time 9.82e-07/0.5666, allocations: 0 / 0.6188 GB, free: 11.67 MB / 458.7 MB Notification: Performance of Templates: time 0.01929/0.5859, allocations: 9.888 MB / 0.6285 GB, free: 1.777 MB / 458.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2 --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1)