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.00139/0.00139, allocations: 174.4 kB / 8.343 MB, free: 0.7422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.608/1.608, allocations: 205.3 MB / 214.1 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009508/0.0009508, allocations: 90.64 kB / 262.1 MB, free: 1.672 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2973/0.2973, allocations: 48.78 MB / 358.8 MB, free: 10.89 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.289e-05/1.291e-05, allocations: 4 kB / 425.3 MB, free: 22.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1125, allocations: 60.26 MB / 485.5 MB, free: 10 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.716/1.828, allocations: 0.7646 GB / 1.239 GB, free: 66.26 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001992/1.828, allocations: 83.62 kB / 1.239 GB, free: 66.22 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.126/5.955, allocations: 1.165 GB / 2.404 GB, free: 61.95 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.463e-06/5.955, allocations: 1.75 kB / 2.404 GB, free: 61.95 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003665/5.955, allocations: 74.12 kB / 2.404 GB, free: 61.94 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.008832/5.964, allocations: 2.867 MB / 2.407 GB, free: 60.62 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/5.964, allocations: 11.22 kB / 2.407 GB, free: 60.62 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003246/5.967, allocations: 0.6035 MB / 2.408 GB, free: 60.43 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005029/5.972, allocations: 2.298 MB / 2.41 GB, free: 59.89 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001122/5.972, allocations: 72.84 kB / 2.41 GB, free: 59.89 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006813/5.973, allocations: 138.3 kB / 2.41 GB, free: 59.88 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004853/5.978, allocations: 2.286 MB / 2.412 GB, free: 59.87 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005616/5.984, allocations: 2.744 MB / 2.415 GB, free: 59.57 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.2e-05/5.984, allocations: 2.688 kB / 2.415 GB, free: 59.57 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003403/5.984, allocations: 11.45 kB / 2.415 GB, free: 59.57 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.46e-05/5.984, allocations: 88.64 kB / 2.415 GB, free: 59.56 MB / 0.5417 GB Warning: The model contains alias variables with conflicting start and/or 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.01691/6.001, allocations: 12.79 MB / 2.428 GB, free: 53.55 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001495/6.003, allocations: 1.038 MB / 2.429 GB, free: 53.52 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001092/6.004, allocations: 0.7662 MB / 2.429 GB, free: 53.5 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005952/6.004, allocations: 307.8 kB / 2.43 GB, free: 53.3 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.277e-05/6.004, allocations: 69.06 kB / 2.43 GB, free: 53.25 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=114): time 3.797e-06/6.004, allocations: 0 / 2.43 GB, free: 53.25 MB / 0.5417 GB Notification: Performance of matching and sorting (n=127): time 0.01145/6.016, allocations: 4.902 MB / 2.435 GB, free: 52.08 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.98e-05/6.016, allocations: 175.1 kB / 2.435 GB, free: 51.89 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00332/6.019, allocations: 2.77 MB / 2.437 GB, free: 51.66 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002452/6.02, allocations: 29.3 kB / 2.437 GB, free: 51.62 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007576/6.02, allocations: 1.426 MB / 2.439 GB, free: 51.1 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002625/6.021, allocations: 443.4 kB / 2.439 GB, free: 50.82 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.802e-05/6.021, allocations: 0 / 2.439 GB, free: 50.82 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 7.757e-05/6.021, allocations: 363.1 kB / 2.44 GB, free: 50.51 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009232/6.022, allocations: 0.7726 MB / 2.44 GB, free: 50.51 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001018/6.023, allocations: 1.101 MB / 2.441 GB, free: 50.16 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.01089/6.034, allocations: 3.643 MB / 2.445 GB, free: 50.02 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.123e-05/6.034, allocations: 3.375 kB / 2.445 GB, free: 50.02 MB / 0.5417 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.004382/6.038, allocations: 2.735 MB / 2.448 GB, free: 49.77 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005561/6.039, allocations: 3.652 MB / 2.451 GB, free: 45.92 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.333e-05/6.039, allocations: 7.031 kB / 2.451 GB, free: 45.92 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004084/6.043, allocations: 1.284 MB / 2.453 GB, free: 45.66 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/6.044, allocations: 292 kB / 2.453 GB, free: 45.63 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003556/6.047, allocations: 4.188 MB / 2.457 GB, free: 42.53 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002026/6.049, allocations: 227.2 kB / 2.457 GB, free: 42.51 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001574/6.05, allocations: 89.2 kB / 2.457 GB, free: 42.5 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.009e-05/6.05, allocations: 3.5 kB / 2.457 GB, free: 42.5 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003278/6.053, allocations: 2.287 MB / 2.459 GB, free: 41.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/6.053, allocations: 9.594 kB / 2.459 GB, free: 41.59 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002661/6.056, allocations: 0.8519 MB / 2.46 GB, free: 41.39 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00147/6.057, allocations: 365.7 kB / 2.461 GB, free: 41.37 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002865/6.06, allocations: 4.881 MB / 2.465 GB, free: 37.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001994/6.062, allocations: 206.8 kB / 2.466 GB, free: 37.28 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001377/6.062, allocations: 93.39 kB / 2.466 GB, free: 37.27 MB / 0.5417 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. Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: plant.generator.tau:VARIABLE(unit = "N.m" ) "Torque at shaft" type: Real plant.compressor.tau:VARIABLE(unit = "N.m" ) "net torque acting on the compressor" type: Real plant.CombustionChamber1.M:DUMMY_STATE(min = 0.0 unit = "kg" ) "Gas total mass" type: Real $DER.plant.CombustionChamber1.M:DUMMY_DER(fixed = false ) "Gas total mass" type: Real 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 () * 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 {16 44} Notification: Performance of prepare postOptimizeDAE: time 0.0005409/6.063, allocations: 154 kB / 2.466 GB, free: 37.13 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004091/6.063, allocations: 254.8 kB / 2.466 GB, free: 37 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00316/6.066, allocations: 2.044 MB / 2.468 GB, free: 36.16 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.198e-06/6.066, allocations: 21.2 kB / 2.468 GB, free: 36.15 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/6.066, allocations: 3.938 kB / 2.468 GB, free: 36.15 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.28e-05/6.066, allocations: 7.219 kB / 2.468 GB, free: 36.15 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006349/6.073, allocations: 4.905 MB / 2.473 GB, free: 34.03 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/6.073, allocations: 0 / 2.473 GB, free: 34.03 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001821/6.075, allocations: 348.9 kB / 2.473 GB, free: 34 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007399/6.075, allocations: 257.4 kB / 2.473 GB, free: 33.92 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.895e-05/6.075, allocations: 34.95 kB / 2.474 GB, free: 33.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002489/6.078, allocations: 5.876 MB / 2.479 GB, free: 28.36 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/6.078, allocations: 0 / 2.479 GB, free: 28.36 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003359/6.081, allocations: 2.675 MB / 2.482 GB, free: 26.23 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00131/6.083, allocations: 0.7138 MB / 2.483 GB, free: 25.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003006/6.083, allocations: 19.95 kB / 2.483 GB, free: 25.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00199/6.085, allocations: 194.6 kB / 2.483 GB, free: 25.45 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001485/6.085, allocations: 81.61 kB / 2.483 GB, free: 25.39 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001861/6.085, allocations: 117.8 kB / 2.483 GB, free: 25.31 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002394/6.088, allocations: 2.09 MB / 2.485 GB, free: 23.43 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.6e-07/6.088, allocations: 0 / 2.485 GB, free: 23.43 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005007/6.093, allocations: 1.376 MB / 2.486 GB, free: 22.07 MB / 0.5417 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[2],plant.CombustionChamber1.fluegas.Xi[3],plant.CombustionChamber1.fluegas.Xi[4],plant.CombustionChamber1.fluegas.Xi[5],plant.CombustionChamber1.fluegas.T,plant.CombustionChamber1.fluegas.R,plant.CombustionChamber1.Tm,plant.gasFlowActuator.y,plant.powerSensor1.y,pID.I) * Number of discrete variables: 0 () * Number of discrete 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.004733/6.097, allocations: 2.263 MB / 2.489 GB, free: 20.58 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.005776/6.103, allocations: 3.452 MB / 2.492 GB, free: 17.4 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.074e-05/6.103, allocations: 10.78 kB / 2.492 GB, free: 17.39 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00146/6.105, allocations: 1.066 MB / 2.493 GB, free: 16.39 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003529/6.108, allocations: 0.6243 MB / 2.494 GB, free: 15.94 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007369/6.116, allocations: 5.132 MB / 2.499 GB, free: 11.58 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001359/6.117, allocations: 2.086 MB / 2.501 GB, free: 9.938 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.003773/6.121, allocations: 1.333 MB / 2.502 GB, free: 9.023 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003707/6.121, allocations: 129.8 kB / 2.502 GB, free: 8.902 MB / 0.5417 GB Notification: Performance of SimCode: time 5.91e-07/6.121, allocations: 0 / 2.502 GB, free: 8.902 MB / 0.5417 GB Notification: Performance of Templates: time 0.3573/6.479, allocations: 62.03 MB / 2.563 GB, free: 60.91 MB / 0.5417 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)