Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator.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/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-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(ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator") translateModel(ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002162/0.002162, allocations: 180.4 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.109/2.109, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001079/0.001079, allocations: 94.64 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.653/0.653, allocations: 48.77 MB / 367.9 MB, free: 47.44 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003962/0.0003962, allocations: 8 kB / 438.6 MB, free: 10.99 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1928/0.1932, allocations: 60.25 MB / 498.9 MB, free: 14.6 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.654/2.848, allocations: 0.7653 GB / 1.253 GB, free: 28.25 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000375/2.848, allocations: 92.61 kB / 1.253 GB, free: 28.21 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 5.705/8.553, allocations: 1.18 GB / 2.433 GB, free: 54.49 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.227e-06/8.554, allocations: 0 / 2.433 GB, free: 54.49 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0006519/8.554, allocations: 72.83 kB / 2.433 GB, free: 54.48 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 574 * Number of variables: 574 Notification: Performance of Generate backend data structure: time 0.01553/8.57, allocations: 3.331 MB / 2.436 GB, free: 52.83 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.783e-05/8.57, allocations: 10.09 kB / 2.436 GB, free: 52.83 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004996/8.575, allocations: 0.6037 MB / 2.437 GB, free: 52.64 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009331/8.584, allocations: 2.314 MB / 2.439 GB, free: 52.06 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003273/8.585, allocations: 177.2 kB / 2.439 GB, free: 52.05 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001574/8.586, allocations: 231.8 kB / 2.439 GB, free: 52.05 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01163/8.598, allocations: 3.146 MB / 2.443 GB, free: 51.3 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001729/8.598, allocations: 3.969 kB / 2.443 GB, free: 51.3 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001437/8.6, allocations: 103.2 kB / 2.443 GB, free: 51.23 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001156/8.6, allocations: 83.16 kB / 2.443 GB, free: 51.22 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006799/8.606, allocations: 2.494 MB / 2.445 GB, free: 50.25 MB / 0.5417 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02997/8.636, allocations: 13.42 MB / 2.458 GB, free: 37.5 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002593/8.639, allocations: 1.113 MB / 2.459 GB, free: 36.38 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000903/8.64, allocations: 306.8 kB / 2.46 GB, free: 36.05 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001179/8.64, allocations: 64.16 kB / 2.46 GB, free: 35.98 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=114): time 1.116e-05/8.64, allocations: 6.734 kB / 2.46 GB, free: 35.98 MB / 0.5417 GB Notification: Performance of matching and sorting (n=127): time 0.02142/8.662, allocations: 6.203 MB / 2.466 GB, free: 29.67 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.959e-05/8.662, allocations: 171.5 kB / 2.466 GB, free: 29.46 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009449/8.671, allocations: 3.614 MB / 2.469 GB, free: 25.84 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0007719/8.672, allocations: 61.7 kB / 2.469 GB, free: 25.78 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001922/8.674, allocations: 1.426 MB / 2.471 GB, free: 24.34 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008317/8.675, allocations: 463.2 kB / 2.471 GB, free: 23.89 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000292/8.675, allocations: 28 kB / 2.471 GB, free: 23.86 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001961/8.675, allocations: 365.9 kB / 2.472 GB, free: 23.5 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001694/8.677, allocations: 0.8355 MB / 2.473 GB, free: 22.66 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001848/8.679, allocations: 1.171 MB / 2.474 GB, free: 21.36 MB / 0.5417 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: $DER.plant.generator.theta = plant.generator.omega_e_nom (6.283185307179586 * plant.grid.fnom = plant.generator.omega_e_nom) Notification: Performance of analyzeInitialSystem (initialization): time 0.01469/8.694, allocations: 4.001 MB / 2.478 GB, free: 17.34 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-05/8.694, allocations: 0 / 2.478 GB, free: 17.34 MB / 0.5417 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.00773/8.702, allocations: 2.995 MB / 2.48 GB, free: 14.34 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001267/8.703, allocations: 3.766 MB / 2.484 GB, free: 10.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.464e-05/8.703, allocations: 8 kB / 2.484 GB, free: 10.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005882/8.709, allocations: 1.473 MB / 2.486 GB, free: 8.727 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001571/8.71, allocations: 291.6 kB / 2.486 GB, free: 8.441 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004559/8.715, allocations: 4.058 MB / 2.49 GB, free: 4.285 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003848/8.719, allocations: 263.9 kB / 2.49 GB, free: 4.027 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005246/8.719, allocations: 91.97 kB / 2.49 GB, free: 3.938 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/8.72, allocations: 8.891 kB / 2.49 GB, free: 3.93 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006075/8.726, allocations: 2.535 MB / 2.493 GB, free: 1.391 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.218e-05/8.726, allocations: 8 kB / 2.493 GB, free: 1.383 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003727/8.73, allocations: 0.9631 MB / 2.494 GB, free: 432 kB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002105/8.732, allocations: 371.5 kB / 2.494 GB, free: 60 kB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00548/8.737, allocations: 4.767 MB / 2.499 GB, free: 11.15 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004292/8.741, allocations: 271.5 kB / 2.499 GB, free: 10.88 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005946/8.742, allocations: 87.92 kB / 2.499 GB, free: 10.8 MB / 0.5573 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.plant.generator.theta = plant.generator.omega_e_nom. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {15 45} Notification: Performance of prepare postOptimizeDAE: time 0.004386/8.747, allocations: 1.008 MB / 2.5 GB, free: 9.777 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002149/8.749, allocations: 308.4 kB / 2.5 GB, free: 9.473 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00732/8.756, allocations: 2.25 MB / 2.502 GB, free: 7.199 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.011e-05/8.756, allocations: 12 kB / 2.502 GB, free: 7.188 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.433e-05/8.756, allocations: 7.953 kB / 2.502 GB, free: 7.18 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-05/8.756, allocations: 7.969 kB / 2.502 GB, free: 7.172 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01875/8.775, allocations: 5.402 MB / 2.508 GB, free: 1.73 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.067e-05/8.775, allocations: 4 kB / 2.508 GB, free: 1.727 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002083/8.777, allocations: 339.6 kB / 2.508 GB, free: 1.395 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001786/8.779, allocations: 305.8 kB / 2.508 GB, free: 1.09 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002205/8.779, allocations: 55.92 kB / 2.508 GB, free: 1.035 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5702/9.349, allocations: 5.868 MB / 2.514 GB, free: 71.31 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.137e-06/9.349, allocations: 1.062 kB / 2.514 GB, free: 71.31 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007976/9.357, allocations: 2.893 MB / 2.517 GB, free: 71.13 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003929/9.361, allocations: 0.8023 MB / 2.518 GB, free: 71.04 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001325/9.363, allocations: 41.47 kB / 2.518 GB, free: 71.04 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003898/9.367, allocations: 221.5 kB / 2.518 GB, free: 71.04 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003318/9.367, allocations: 88.47 kB / 2.518 GB, free: 71.04 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005664/9.368, allocations: 117.2 kB / 2.518 GB, free: 71.04 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.00741/9.375, allocations: 2.787 MB / 2.521 GB, free: 70.89 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5.01e-07/9.375, allocations: 3.312 kB / 2.521 GB, free: 70.89 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.00974/9.385, allocations: 1.531 MB / 2.522 GB, free: 70.89 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 14 (plant.generator.phi,plant.generator.omega_m,plant.generator.omega_e_filt,plant.CombustionChamber1.fluegas.p,plant.CombustionChamber1.fluegas.Xi[1],plant.CombustionChamber1.fluegas.Xi[2],plant.CombustionChamber1.fluegas.Xi[3],plant.CombustionChamber1.fluegas.Xi[4],plant.CombustionChamber1.fluegas.Xi[5],plant.CombustionChamber1.fluegas.T,plant.CombustionChamber1.Tm,plant.gasFlowActuator.y,plant.powerSensor1.y,pID.I) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (119): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 2 {3 8,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.008607/9.393, allocations: 2.071 MB / 2.524 GB, free: 70.59 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.008993/9.403, allocations: 3.567 MB / 2.528 GB, free: 70.52 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.657e-05/9.403, allocations: 8.406 kB / 2.528 GB, free: 70.52 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002485/9.405, allocations: 1.133 MB / 2.529 GB, free: 70.4 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009237/9.414, allocations: 1.19 MB / 2.53 GB, free: 70.36 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01861/9.433, allocations: 7.376 MB / 2.537 GB, free: 67.82 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002657/9.436, allocations: 2.086 MB / 2.539 GB, free: 67.08 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.004913/9.441, allocations: 0.6426 MB / 2.54 GB, free: 67.05 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001003/9.442, allocations: 199.2 kB / 2.54 GB, free: 67.05 MB / 0.5573 GB Notification: Performance of SimCode: time 2.655e-06/9.442, allocations: 0 / 2.54 GB, free: 67.05 MB / 0.5573 GB Notification: Performance of Templates: time 0.1601/9.602, allocations: 85.44 MB / 2.624 GB, free: 63.25 MB / 0.5573 GB make -j1 -f ThermoPower_ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator.makefile (rm -f ThermoPower_ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator.pipe ; mkfifo ThermoPower_ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator.pipe >> ../files/ThermoPower_ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator.sim & ./ThermoPower_ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator.pipe 2>&1)