Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.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.PowerPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001481/0.001481, allocations: 173.4 kB / 16.76 MB, free: 5.051 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.408/1.408, allocations: 205.4 MB / 222.9 MB, free: 8.934 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.0006871/0.0006868, allocations: 88.8 kB / 271.3 MB, free: 8.234 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1765/0.1765, allocations: 38.07 MB / 357.6 MB, free: 1.723 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003817/0.0003818, allocations: 12 kB / 423.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2608, allocations: 56.32 MB / 480.3 MB, free: 9.211 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1335/0.3944, allocations: 103.5 MB / 0.57 GB, free: 14.87 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000249/0.3947, allocations: 91.95 kB / 0.5701 GB, free: 14.78 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05436/0.449, allocations: 22.52 MB / 0.5921 GB, free: 8.078 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4491, allocations: 0 / 0.5921 GB, free: 8.078 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.801e-05/0.4491, allocations: 20 kB / 0.5921 GB, free: 8.059 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.001784/0.4509, allocations: 1.038 MB / 0.5932 GB, free: 6.961 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.29e-05/0.451, allocations: 8.031 kB / 0.5932 GB, free: 6.953 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00089/0.4519, allocations: 179.8 kB / 0.5933 GB, free: 6.777 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001044/0.4529, allocations: 0.6331 MB / 0.594 GB, free: 6.105 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.567e-05/0.453, allocations: 53.61 kB / 0.594 GB, free: 6.055 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.404e-05/0.4531, allocations: 64.36 kB / 0.5941 GB, free: 5.992 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001192/0.4543, allocations: 0.7489 MB / 0.5948 GB, free: 5.203 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.19e-05/0.4543, allocations: 4.188 kB / 0.5948 GB, free: 5.199 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.177e-05/0.4544, allocations: 27.92 kB / 0.5948 GB, free: 5.172 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-05/0.4544, allocations: 37.3 kB / 0.5949 GB, free: 5.133 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001113/0.4556, allocations: 0.6336 MB / 0.5955 GB, free: 4.5 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003624/0.4592, allocations: 2.938 MB / 0.5984 GB, free: 1.445 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/0.4604, allocations: 0.7068 MB / 0.599 GB, free: 0.7031 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004431/0.4608, allocations: 235.2 kB / 0.5993 GB, free: 480 kB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.609e-05/0.4609, allocations: 12.36 kB / 0.5993 GB, free: 468 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.705e-05/0.4609, allocations: 39 kB / 0.5993 GB, free: 420 kB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 2.635e-06/0.4609, allocations: 0 / 0.5993 GB, free: 420 kB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.001466/0.4624, allocations: 0.7229 MB / 0.6 GB, free: 15.68 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.174e-05/0.4625, allocations: 107.2 kB / 0.6001 GB, free: 15.55 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007353/0.4632, allocations: 0.5983 MB / 0.6007 GB, free: 14.95 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.829e-05/0.4633, allocations: 33.7 kB / 0.6007 GB, free: 14.91 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002165/0.4635, allocations: 344.6 kB / 0.6011 GB, free: 14.57 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000123/0.4636, allocations: 181.4 kB / 0.6012 GB, free: 14.39 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.866e-05/0.4637, allocations: 8 kB / 0.6012 GB, free: 14.38 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.4638, allocations: 378.8 kB / 0.6016 GB, free: 14 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004286/0.4642, allocations: 217 kB / 0.6018 GB, free: 13.79 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005089/0.4648, allocations: 344.5 kB / 0.6021 GB, free: 13.4 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000938/0.4657, allocations: 0.5609 MB / 0.6027 GB, free: 12.79 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.4657, allocations: 96 / 0.6027 GB, free: 12.79 MB / 442.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001602/0.4673, allocations: 0.8312 MB / 0.6035 GB, free: 11.95 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.8e-05/0.4674, allocations: 196 kB / 0.6037 GB, free: 11.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-06/0.4675, allocations: 4 kB / 0.6037 GB, free: 11.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004437/0.4679, allocations: 132.8 kB / 0.6038 GB, free: 11.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005214/0.4684, allocations: 131.8 kB / 0.6039 GB, free: 11.44 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002542/0.471, allocations: 2.275 MB / 0.6062 GB, free: 9.027 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004215/0.4714, allocations: 83.34 kB / 0.6062 GB, free: 8.945 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.151e-05/0.4715, allocations: 23.98 kB / 0.6063 GB, free: 8.922 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.141e-06/0.4715, allocations: 4 kB / 0.6063 GB, free: 8.918 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001165/0.4727, allocations: 0.6198 MB / 0.6069 GB, free: 8.293 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.4727, allocations: 4 kB / 0.6069 GB, free: 8.289 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002761/0.473, allocations: 105.2 kB / 0.607 GB, free: 8.184 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004882/0.4735, allocations: 131.8 kB / 0.6071 GB, free: 8.055 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001759/0.4752, allocations: 2.011 MB / 0.6091 GB, free: 5.91 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003883/0.4756, allocations: 79.41 kB / 0.6092 GB, free: 5.832 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.441e-05/0.4757, allocations: 20 kB / 0.6092 GB, free: 5.812 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 (60): * Single equations (assignments): 59 * 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.0003701/0.476, allocations: 308.8 kB / 0.6095 GB, free: 5.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.845e-05/0.4762, allocations: 71.16 kB / 0.6095 GB, free: 5.43 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001111/0.4773, allocations: 0.5734 MB / 0.6101 GB, free: 4.848 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.4773, allocations: 4 kB / 0.6101 GB, free: 4.844 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.734e-06/0.4773, allocations: 4 kB / 0.6101 GB, free: 4.84 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.092e-06/0.4773, allocations: 0 / 0.6101 GB, free: 4.84 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001803/0.4791, allocations: 1.291 MB / 0.6114 GB, free: 3.492 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.4791, allocations: 0 / 0.6114 GB, free: 3.492 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005323/0.4797, allocations: 123.8 kB / 0.6115 GB, free: 3.371 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.4797, allocations: 4 kB / 0.6115 GB, free: 3.367 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.953e-05/0.4797, allocations: 15.98 kB / 0.6115 GB, free: 3.352 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.4797, allocations: 112 / 0.6115 GB, free: 3.352 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.4797, allocations: 3.938 kB / 0.6115 GB, free: 3.348 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001483/0.4812, allocations: 0.9249 MB / 0.6124 GB, free: 2.402 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002096/0.4815, allocations: 192.3 kB / 0.6126 GB, free: 2.195 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.749e-05/0.4815, allocations: 16 kB / 0.6126 GB, free: 2.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003571/0.4819, allocations: 43.91 kB / 0.6126 GB, free: 2.137 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.757e-05/0.482, allocations: 40.31 kB / 0.6127 GB, free: 2.098 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.878e-05/0.482, allocations: 12 kB / 0.6127 GB, free: 2.086 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000554/0.4826, allocations: 427 kB / 0.6131 GB, free: 1.676 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4826, allocations: 0 / 0.6131 GB, free: 1.676 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.000876/0.4835, allocations: 283.2 kB / 0.6134 GB, free: 1.398 MB / 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 (50): * Single equations (assignments): 49 * 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.0001688/0.4837, allocations: 123.2 kB / 0.6135 GB, free: 1.27 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001823/0.4855, allocations: 1.096 MB / 0.6146 GB, free: 156 kB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4855, allocations: 0 / 0.6146 GB, free: 156 kB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004736/0.486, allocations: 262.3 kB / 0.6148 GB, free: 15.89 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007113/0.4867, allocations: 131.5 kB / 0.6149 GB, free: 15.77 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002604/0.4893, allocations: 1.836 MB / 0.6167 GB, free: 13.88 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004543/0.4898, allocations: 0.946 MB / 0.6177 GB, free: 12.91 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001624/0.49, allocations: 47.42 kB / 0.6177 GB, free: 12.86 MB / 458.7 MB Notification: Performance of SimCode: time 4.61e-07/0.49, allocations: 0 / 0.6177 GB, free: 12.86 MB / 458.7 MB Notification: Performance of Templates: time 0.01241/0.5024, allocations: 9.728 MB / 0.6272 GB, free: 3.125 MB / 458.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1 --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe 2>&1)