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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009739/0.0009739, allocations: 196.5 kB / 8.14 MB, free: 2.203 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.254/1.254, allocations: 205.2 MB / 213.7 MB, free: 13.84 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.0009843/0.0009843, allocations: 96.31 kB / 261.8 MB, free: 13.53 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3846/0.3846, allocations: 48.75 MB / 358.4 MB, free: 53.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.071e-06/6.091e-06, allocations: 0 / 424.7 MB, free: 8.211 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1178, allocations: 60.25 MB / 485 MB, free: 11.83 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.512/1.63, allocations: 0.7645 GB / 1.238 GB, free: 36.47 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002231/1.63, allocations: 83.39 kB / 1.238 GB, free: 36.43 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.347/4.978, allocations: 1.18 GB / 2.418 GB, free: 43.01 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002127/4.978, allocations: 71.72 kB / 2.418 GB, free: 43 MB / 0.5261 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.00754/4.985, allocations: 2.858 MB / 2.421 GB, free: 41.42 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.347e-05/4.985, allocations: 9.531 kB / 2.421 GB, free: 41.42 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003165/4.989, allocations: 0.6111 MB / 2.421 GB, free: 41.2 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005152/4.994, allocations: 2.31 MB / 2.423 GB, free: 40.03 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.985e-05/4.994, allocations: 75.62 kB / 2.424 GB, free: 40.02 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003826/4.994, allocations: 148.4 kB / 2.424 GB, free: 40.02 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004108/4.998, allocations: 2.34 MB / 2.426 GB, free: 39.07 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004759/5.003, allocations: 2.795 MB / 2.429 GB, free: 37.52 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.946e-05/5.003, allocations: 4 kB / 2.429 GB, free: 37.52 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003081/5.004, allocations: 4 kB / 2.429 GB, free: 37.51 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.04e-05/5.004, allocations: 96.31 kB / 2.429 GB, free: 37.41 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01644/5.02, allocations: 13.48 MB / 2.442 GB, free: 23.19 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00108/5.021, allocations: 0.7786 MB / 2.443 GB, free: 22.4 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001045/5.022, allocations: 0.7706 MB / 2.443 GB, free: 21.63 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005649/5.023, allocations: 301.5 kB / 2.444 GB, free: 21.3 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.88e-05/5.023, allocations: 64.22 kB / 2.444 GB, free: 21.23 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=114): time 2.765e-06/5.023, allocations: 4 kB / 2.444 GB, free: 21.23 MB / 0.5261 GB Notification: Performance of matching and sorting (n=127): time 0.01196/5.035, allocations: 4.922 MB / 2.449 GB, free: 16.23 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.554e-05/5.035, allocations: 171.5 kB / 2.449 GB, free: 16.03 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003556/5.038, allocations: 2.782 MB / 2.452 GB, free: 13.23 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003261/5.039, allocations: 33.7 kB / 2.452 GB, free: 13.19 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004/5.039, allocations: 0.9635 MB / 2.453 GB, free: 12.21 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00031/5.04, allocations: 441.5 kB / 2.453 GB, free: 11.77 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.629e-05/5.04, allocations: 0 / 2.453 GB, free: 11.77 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.574e-05/5.04, allocations: 366.8 kB / 2.453 GB, free: 11.41 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009236/5.041, allocations: 0.7967 MB / 2.454 GB, free: 10.61 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001032/5.042, allocations: 1.12 MB / 2.455 GB, free: 9.363 MB / 0.5261 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.01135/5.053, allocations: 3.649 MB / 2.459 GB, free: 5.699 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/5.053, allocations: 4 kB / 2.459 GB, free: 5.695 MB / 0.5261 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.004726/5.058, allocations: 2.796 MB / 2.461 GB, free: 2.895 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007569/5.059, allocations: 3.642 MB / 2.465 GB, free: 14.92 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.641e-05/5.059, allocations: 16 kB / 2.465 GB, free: 14.91 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004634/5.063, allocations: 1.298 MB / 2.466 GB, free: 13.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001373/5.065, allocations: 291.5 kB / 2.467 GB, free: 13.32 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004862/5.07, allocations: 4.332 MB / 2.471 GB, free: 8.887 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003085/5.073, allocations: 211.6 kB / 2.471 GB, free: 8.68 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002094/5.073, allocations: 95.97 kB / 2.471 GB, free: 8.586 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.047e-05/5.073, allocations: 4 kB / 2.471 GB, free: 8.582 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004302/5.077, allocations: 2.348 MB / 2.473 GB, free: 6.23 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.704e-05/5.077, allocations: 11.94 kB / 2.473 GB, free: 6.219 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003177/5.08, allocations: 0.8705 MB / 2.474 GB, free: 5.348 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00188/5.082, allocations: 363.5 kB / 2.475 GB, free: 4.992 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1799/5.262, allocations: 5.003 MB / 2.479 GB, free: 101.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002036/5.264, allocations: 209 kB / 2.48 GB, free: 101.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001441/5.264, allocations: 85.17 kB / 2.48 GB, free: 101.8 MB / 0.5417 GB Warning: Assuming redundant initial conditions for the following 1 initial equations: $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.0005328/5.265, allocations: 154.6 kB / 2.48 GB, free: 101.7 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003945/5.265, allocations: 258.6 kB / 2.48 GB, free: 101.7 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003375/5.269, allocations: 2.122 MB / 2.482 GB, free: 101.6 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/5.269, allocations: 14.84 kB / 2.482 GB, free: 101.6 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.044e-06/5.269, allocations: 0 / 2.482 GB, free: 101.6 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/5.269, allocations: 7.781 kB / 2.482 GB, free: 101.6 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006405/5.275, allocations: 4.965 MB / 2.487 GB, free: 101.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/5.275, allocations: 0 / 2.487 GB, free: 101.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001901/5.277, allocations: 346.5 kB / 2.487 GB, free: 101.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008238/5.278, allocations: 262.3 kB / 2.488 GB, free: 101.3 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001047/5.278, allocations: 32.44 kB / 2.488 GB, free: 101.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002688/5.281, allocations: 5.933 MB / 2.494 GB, free: 96.14 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/5.281, allocations: 3.969 kB / 2.494 GB, free: 96.14 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003363/5.284, allocations: 2.717 MB / 2.496 GB, free: 95.93 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001302/5.285, allocations: 0.7266 MB / 2.497 GB, free: 95.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003526/5.286, allocations: 14.16 kB / 2.497 GB, free: 95.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00199/5.288, allocations: 185 kB / 2.497 GB, free: 95.84 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001522/5.288, allocations: 75.7 kB / 2.497 GB, free: 95.84 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002095/5.288, allocations: 118.2 kB / 2.497 GB, free: 95.84 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.002313/5.291, allocations: 2.097 MB / 2.499 GB, free: 95.7 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00333/5.294, allocations: 1.371 MB / 2.501 GB, free: 95.7 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.004329/5.298, allocations: 2.382 MB / 2.503 GB, free: 95.48 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.005647/5.304, allocations: 3.583 MB / 2.506 GB, free: 95.41 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.732e-06/5.304, allocations: 9.438 kB / 2.506 GB, free: 95.41 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001565/5.305, allocations: 1.089 MB / 2.508 GB, free: 95.3 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002736/5.308, allocations: 0.6178 MB / 2.508 GB, free: 95.29 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008151/5.316, allocations: 5.205 MB / 2.513 GB, free: 94.34 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002029/5.318, allocations: 2.294 MB / 2.515 GB, free: 93.6 MB / 0.5417 GB Notification: Performance of SimCode: time 5.01e-07/5.318, allocations: 0 / 2.515 GB, free: 93.6 MB / 0.5417 GB Notification: Performance of Templates: time 0.08967/5.408, allocations: 71.61 MB / 2.585 GB, free: 91.48 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)