Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Examples.BraytonCycle.OpenLoopSimulator.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.OpenLoopSimulator,fileNamePrefix="ThermoPower_ThermoPower_Examples_BraytonCycle_OpenLoopSimulator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Examples.BraytonCycle.OpenLoopSimulator,fileNamePrefix="ThermoPower_ThermoPower_Examples_BraytonCycle_OpenLoopSimulator",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.0009287/0.0009287, allocations: 180.7 kB / 8.132 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9987/0.9987, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.0008126/0.0008127, allocations: 88.8 kB / 261.7 MB, free: 13.63 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2907/0.2907, allocations: 48.75 MB / 358.4 MB, free: 53.09 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_NumberOfIntervals = 5000 Notification: Performance of FrontEnd - loaded program: time 0.09589/0.3866, allocations: 66.37 MB / 424.8 MB, free: 8.102 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09454/0.4812, allocations: 60.25 MB / 485.1 MB, free: 11.71 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.118/1.599, allocations: 0.7639 GB / 1.238 GB, free: 57.43 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002018/1.6, allocations: 87.61 kB / 1.238 GB, free: 57.35 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: 561 * Number of variables: 561 Notification: Performance of Generate backend data structure: time 3.216/4.816, allocations: 1.181 GB / 2.419 GB, free: 42.05 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.409e-05/4.816, allocations: 8.812 kB / 2.419 GB, free: 42.05 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002577/4.818, allocations: 0.594 MB / 2.42 GB, free: 41.87 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003594/4.822, allocations: 2.282 MB / 2.422 GB, free: 41.3 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.408e-05/4.822, allocations: 72.28 kB / 2.422 GB, free: 41.29 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002509/4.822, allocations: 139.3 kB / 2.422 GB, free: 41.29 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003131/4.825, allocations: 2.307 MB / 2.424 GB, free: 41.26 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003755/4.829, allocations: 2.735 MB / 2.427 GB, free: 40.97 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.657e-05/4.829, allocations: 5.656 kB / 2.427 GB, free: 40.96 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002495/4.829, allocations: 11.98 kB / 2.427 GB, free: 40.96 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.586e-05/4.83, allocations: 79.25 kB / 2.427 GB, free: 40.96 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01402/4.844, allocations: 13.24 MB / 2.44 GB, free: 31.83 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009596/4.845, allocations: 0.722 MB / 2.441 GB, free: 31.51 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001125/4.846, allocations: 0.7552 MB / 2.442 GB, free: 31.2 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005571/4.846, allocations: 296.2 kB / 2.442 GB, free: 31.01 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.404e-05/4.846, allocations: 67.31 kB / 2.442 GB, free: 30.95 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=106): time 2.775e-06/4.846, allocations: 2.281 kB / 2.442 GB, free: 30.95 MB / 0.5261 GB Notification: Performance of matching and sorting (n=119): time 0.01115/4.857, allocations: 4.794 MB / 2.447 GB, free: 28.6 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.583e-05/4.858, allocations: 172.4 kB / 2.447 GB, free: 28.41 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003302/4.861, allocations: 2.739 MB / 2.449 GB, free: 26.21 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001707/4.861, allocations: 29.7 kB / 2.449 GB, free: 26.17 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000458/4.861, allocations: 0.9649 MB / 2.45 GB, free: 25.34 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003317/4.862, allocations: 406.1 kB / 2.451 GB, free: 24.97 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.006e-05/4.862, allocations: 0 / 2.451 GB, free: 24.97 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.392e-05/4.862, allocations: 368.4 kB / 2.451 GB, free: 24.62 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009217/4.863, allocations: 0.772 MB / 2.452 GB, free: 23.91 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001045/4.864, allocations: 1.085 MB / 2.453 GB, free: 22.78 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.01098/4.875, allocations: 3.541 MB / 2.456 GB, free: 19.67 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/4.875, allocations: 4 kB / 2.456 GB, free: 19.66 MB / 0.5261 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.003724/4.879, allocations: 2.584 MB / 2.459 GB, free: 17.08 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000654/4.879, allocations: 3.438 MB / 2.462 GB, free: 13.35 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.45e-05/4.879, allocations: 8 kB / 2.462 GB, free: 13.34 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003435/4.883, allocations: 1.011 MB / 2.463 GB, free: 12.35 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001303/4.884, allocations: 315.1 kB / 2.464 GB, free: 12.04 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003081/4.887, allocations: 3.961 MB / 2.467 GB, free: 8.004 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001935/4.889, allocations: 206.6 kB / 2.468 GB, free: 7.82 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001401/4.889, allocations: 83.98 kB / 2.468 GB, free: 7.738 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 6.362e-06/4.889, allocations: 0 / 2.468 GB, free: 7.738 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00308/4.892, allocations: 2.258 MB / 2.47 GB, free: 5.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/4.892, allocations: 8 kB / 2.47 GB, free: 5.473 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00283/4.895, allocations: 0.8672 MB / 2.471 GB, free: 4.617 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001337/4.897, allocations: 335.1 kB / 2.471 GB, free: 4.293 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003315/4.9, allocations: 5.004 MB / 2.476 GB, free: 15.16 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001922/4.902, allocations: 203.9 kB / 2.476 GB, free: 14.97 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001545/4.902, allocations: 85.86 kB / 2.476 GB, free: 14.89 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: $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: 37 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (145): * Single equations (assignments): 141 * 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 {12 32} Notification: Performance of prepare postOptimizeDAE: time 0.0005657/4.903, allocations: 152.5 kB / 2.476 GB, free: 14.73 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005663/4.903, allocations: 241.1 kB / 2.477 GB, free: 14.5 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00412/4.907, allocations: 2.051 MB / 2.479 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.377e-05/4.907, allocations: 18.59 kB / 2.479 GB, free: 12.43 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.999e-06/4.907, allocations: 3.906 kB / 2.479 GB, free: 12.43 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.419e-05/4.907, allocations: 7.984 kB / 2.479 GB, free: 12.42 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007775/4.915, allocations: 4.833 MB / 2.483 GB, free: 7.562 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.473e-06/4.915, allocations: 4 kB / 2.483 GB, free: 7.559 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001865/4.917, allocations: 327 kB / 2.484 GB, free: 7.242 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008877/4.918, allocations: 258.9 kB / 2.484 GB, free: 6.984 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001089/4.918, allocations: 39.81 kB / 2.484 GB, free: 6.949 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00366/4.922, allocations: 5.926 MB / 2.49 GB, free: 0.7461 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/4.922, allocations: 3.906 kB / 2.49 GB, free: 0.7422 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1683/5.09, allocations: 2.621 MB / 2.492 GB, free: 103 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004433/5.095, allocations: 3.991 MB / 2.496 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001506/5.096, allocations: 0.7167 MB / 2.497 GB, free: 102.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00036/5.096, allocations: 18.59 kB / 2.497 GB, free: 102.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001938/5.098, allocations: 173.1 kB / 2.497 GB, free: 102.4 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001494/5.099, allocations: 73.41 kB / 2.497 GB, free: 102.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002023/5.099, allocations: 121.5 kB / 2.497 GB, free: 102.4 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.002281/5.101, allocations: 2.073 MB / 2.499 GB, free: 102.2 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.004897/5.106, allocations: 1.658 MB / 2.501 GB, free: 102.2 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 13 (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) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 103 * 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.004461/5.11, allocations: 2.361 MB / 2.503 GB, free: 102 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.005147/5.116, allocations: 3.381 MB / 2.507 GB, free: 102 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/5.116, allocations: 6 kB / 2.507 GB, free: 102 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001495/5.117, allocations: 1.06 MB / 2.508 GB, free: 101.9 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00286/5.12, allocations: 0.6002 MB / 2.508 GB, free: 101.8 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008394/5.128, allocations: 5.103 MB / 2.513 GB, free: 100.9 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002106/5.131, allocations: 2.297 MB / 2.515 GB, free: 100.2 MB / 0.5417 GB Notification: Performance of SimCode: time 5.61e-07/5.131, allocations: 2.531 kB / 2.515 GB, free: 100.2 MB / 0.5417 GB (rm -f ThermoPower_ThermoPower.Examples.BraytonCycle.OpenLoopSimulator.pipe ; mkfifo ThermoPower_ThermoPower.Examples.BraytonCycle.OpenLoopSimulator.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Examples.BraytonCycle.OpenLoopSimulator.pipe >> ../files/ThermoPower_ThermoPower.Examples.BraytonCycle.OpenLoopSimulator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Examples_BraytonCycle_OpenLoopSimulator_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Examples_BraytonCycle_OpenLoopSimulator.fmu > ThermoPower_ThermoPower.Examples.BraytonCycle.OpenLoopSimulator.pipe 2>&1)