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: "" <> buildModelFMU(ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator,fileNamePrefix="ThermoPower_ThermoPower_Examples_BraytonCycle_ClosedLoopSimulator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator,fileNamePrefix="ThermoPower_ThermoPower_Examples_BraytonCycle_ClosedLoopSimulator",fmuType="me",version="2.0",platforms={"static"}) [: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.001065/0.001065, allocations: 185.4 kB / 8.135 MB, free: 2.133 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.012/1.012, allocations: 205.2 MB / 213.7 MB, free: 13.93 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.0008066/0.0008067, allocations: 96.14 kB / 261.8 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2834/0.2834, allocations: 48.75 MB / 358.4 MB, free: 53.21 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09804/0.3815, allocations: 66.36 MB / 424.8 MB, free: 8.129 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09601/0.4775, allocations: 60.26 MB / 485.1 MB, free: 11.72 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.145/1.623, allocations: 0.7645 GB / 1.238 GB, free: 51.62 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000194/1.623, allocations: 83.72 kB / 1.238 GB, free: 51.55 MB / 0.5105 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 3.213/4.836, allocations: 1.182 GB / 2.421 GB, free: 43.69 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.359e-05/4.837, allocations: 11 kB / 2.421 GB, free: 43.69 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003232/4.84, allocations: 0.6109 MB / 2.421 GB, free: 43.5 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004977/4.845, allocations: 2.313 MB / 2.424 GB, free: 42.66 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.724e-05/4.845, allocations: 70.91 kB / 2.424 GB, free: 42.66 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005666/4.845, allocations: 141.8 kB / 2.424 GB, free: 42.66 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003856/4.849, allocations: 2.344 MB / 2.426 GB, free: 41.71 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005086/4.854, allocations: 2.792 MB / 2.429 GB, free: 40.52 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.477e-05/4.854, allocations: 6.656 kB / 2.429 GB, free: 40.52 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004783/4.855, allocations: 6.281 kB / 2.429 GB, free: 40.52 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.706e-05/4.855, allocations: 84.06 kB / 2.429 GB, free: 40.51 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01963/4.875, allocations: 13.49 MB / 2.442 GB, free: 31.25 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001252/4.876, allocations: 0.7736 MB / 2.443 GB, free: 30.91 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00114/4.877, allocations: 0.7824 MB / 2.444 GB, free: 30.23 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005727/4.878, allocations: 297.2 kB / 2.444 GB, free: 29.91 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.653e-05/4.878, allocations: 68.22 kB / 2.444 GB, free: 29.84 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=114): time 4.308e-06/4.878, allocations: 0 / 2.444 GB, free: 29.84 MB / 0.5261 GB Notification: Performance of matching and sorting (n=127): time 0.01335/4.891, allocations: 4.925 MB / 2.449 GB, free: 24.86 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.659e-05/4.891, allocations: 167.5 kB / 2.449 GB, free: 24.66 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004155/4.895, allocations: 2.789 MB / 2.452 GB, free: 21.86 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000318/4.896, allocations: 29.7 kB / 2.452 GB, free: 21.82 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004593/4.896, allocations: 0.9636 MB / 2.453 GB, free: 20.84 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003335/4.897, allocations: 445.4 kB / 2.453 GB, free: 20.4 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001092/4.897, allocations: 0 / 2.453 GB, free: 20.4 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.343e-05/4.897, allocations: 357.9 kB / 2.453 GB, free: 20.04 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009811/4.898, allocations: 0.7967 MB / 2.454 GB, free: 19.25 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00108/4.899, allocations: 1.124 MB / 2.455 GB, free: 18 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.01175/4.911, allocations: 3.647 MB / 2.459 GB, free: 14.42 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.865e-06/4.911, allocations: 4 kB / 2.459 GB, free: 14.41 MB / 0.5261 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.004785/4.915, allocations: 2.796 MB / 2.462 GB, free: 11.62 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000498/4.916, allocations: 3.636 MB / 2.465 GB, free: 7.691 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/4.916, allocations: 8 kB / 2.465 GB, free: 7.684 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004313/4.92, allocations: 1.31 MB / 2.466 GB, free: 6.391 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/4.921, allocations: 279.6 kB / 2.467 GB, free: 6.117 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003986/4.925, allocations: 4.335 MB / 2.471 GB, free: 1.699 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00221/4.928, allocations: 211.7 kB / 2.471 GB, free: 1.492 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001613/4.928, allocations: 91.97 kB / 2.471 GB, free: 1.402 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.926e-06/4.928, allocations: 7.938 kB / 2.471 GB, free: 1.395 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00365/4.932, allocations: 2.352 MB / 2.473 GB, free: 15.03 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/4.932, allocations: 15.88 kB / 2.474 GB, free: 15.02 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00301/4.935, allocations: 0.8665 MB / 2.474 GB, free: 14.15 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001661/4.936, allocations: 363.5 kB / 2.475 GB, free: 13.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004065/4.94, allocations: 5.003 MB / 2.48 GB, free: 8.641 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002122/4.942, allocations: 215.7 kB / 2.48 GB, free: 8.43 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001639/4.943, allocations: 83.98 kB / 2.48 GB, free: 8.348 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.0006163/4.943, allocations: 157.3 kB / 2.48 GB, free: 8.191 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004604/4.944, allocations: 257 kB / 2.48 GB, free: 7.938 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003909/4.948, allocations: 2.128 MB / 2.482 GB, free: 5.797 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.351e-05/4.948, allocations: 20 kB / 2.482 GB, free: 5.777 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/4.948, allocations: 0 / 2.482 GB, free: 5.777 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.423e-05/4.948, allocations: 7.969 kB / 2.482 GB, free: 5.77 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008055/4.956, allocations: 4.957 MB / 2.487 GB, free: 0.7812 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/4.956, allocations: 4 kB / 2.487 GB, free: 0.7773 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002034/4.958, allocations: 347.5 kB / 2.488 GB, free: 448 kB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008757/4.959, allocations: 262.3 kB / 2.488 GB, free: 176 kB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001161/4.959, allocations: 35.97 kB / 2.488 GB, free: 140 kB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1678/5.127, allocations: 5.922 MB / 2.494 GB, free: 97.67 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/5.127, allocations: 0 / 2.494 GB, free: 97.67 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003764/5.13, allocations: 2.716 MB / 2.496 GB, free: 97.5 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004649/5.135, allocations: 4.139 MB / 2.5 GB, free: 96.91 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001489/5.137, allocations: 0.725 MB / 2.501 GB, free: 96.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003615/5.137, allocations: 11.78 kB / 2.501 GB, free: 96.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002015/5.139, allocations: 190.6 kB / 2.501 GB, free: 96.82 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001602/5.139, allocations: 81.09 kB / 2.501 GB, free: 96.82 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002118/5.139, allocations: 113.3 kB / 2.501 GB, free: 96.82 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.002339/5.142, allocations: 2.097 MB / 2.503 GB, free: 96.68 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.004872/5.147, allocations: 1.673 MB / 2.505 GB, free: 96.68 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.00447/5.151, allocations: 2.37 MB / 2.507 GB, free: 96.45 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.005861/5.157, allocations: 3.589 MB / 2.511 GB, free: 96.39 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/5.157, allocations: 9.75 kB / 2.511 GB, free: 96.39 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001583/5.159, allocations: 1.095 MB / 2.512 GB, free: 96.28 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003256/5.162, allocations: 0.6026 MB / 2.513 GB, free: 96.27 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008656/5.171, allocations: 5.223 MB / 2.518 GB, free: 95.31 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002139/5.173, allocations: 2.33 MB / 2.52 GB, free: 94.56 MB / 0.5417 GB Notification: Performance of SimCode: time 5.51e-07/5.173, allocations: 0 / 2.52 GB, free: 94.56 MB / 0.5417 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Examples_BraytonCycle_ClosedLoopSimulator_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Examples_BraytonCycle_ClosedLoopSimulator.fmu > ThermoPower_ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator.pipe 2>&1)