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: translateModel(ThermoPower.Examples.BraytonCycle.OpenLoopSimulator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.BraytonCycle.OpenLoopSimulator") translateModel(ThermoPower.Examples.BraytonCycle.OpenLoopSimulator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.BraytonCycle.OpenLoopSimulator") [: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.001134/0.001134, allocations: 190.9 kB / 8.135 MB, free: 2.223 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.235/1.235, 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.00122/0.00122, allocations: 107.2 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.3752/0.3752, allocations: 48.75 MB / 358.4 MB, free: 53.22 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_NumberOfIntervals = 5000 Notification: Performance of FrontEnd - loaded program: time 6.993e-06/7.013e-06, allocations: 0 / 424.7 MB, free: 8.227 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1294, allocations: 60.24 MB / 485 MB, free: 11.84 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.437/1.566, allocations: 0.7639 GB / 1.237 GB, free: 57.75 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000258/1.567, allocations: 84.94 kB / 1.238 GB, free: 57.67 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.559/5.126, allocations: 1.179 GB / 2.416 GB, free: 45.91 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0004035/5.127, allocations: 72.47 kB / 2.416 GB, free: 45.9 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: 561 * Number of variables: 561 Notification: Performance of Generate backend data structure: time 0.009195/5.136, allocations: 2.767 MB / 2.419 GB, free: 44.54 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/5.136, allocations: 8.781 kB / 2.419 GB, free: 44.54 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003793/5.14, allocations: 0.6058 MB / 2.42 GB, free: 44.36 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005904/5.146, allocations: 2.279 MB / 2.422 GB, free: 43.79 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001432/5.146, allocations: 73.75 kB / 2.422 GB, free: 43.78 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008411/5.147, allocations: 133.2 kB / 2.422 GB, free: 43.78 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004849/5.151, allocations: 2.306 MB / 2.424 GB, free: 43.75 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006507/5.158, allocations: 2.74 MB / 2.427 GB, free: 43.36 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-05/5.158, allocations: 0 / 2.427 GB, free: 43.36 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006941/5.159, allocations: 16.08 kB / 2.427 GB, free: 43.36 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.086e-05/5.159, allocations: 81.59 kB / 2.427 GB, free: 43.34 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02242/5.181, allocations: 13.24 MB / 2.44 GB, free: 34.21 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001229/5.183, allocations: 0.7203 MB / 2.441 GB, free: 33.89 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001388/5.184, allocations: 0.7612 MB / 2.441 GB, free: 33.57 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007588/5.185, allocations: 303.7 kB / 2.442 GB, free: 33.38 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.886e-05/5.185, allocations: 62.69 kB / 2.442 GB, free: 33.32 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=106): time 4.108e-06/5.185, allocations: 0 / 2.442 GB, free: 33.32 MB / 0.5261 GB Notification: Performance of matching and sorting (n=119): time 0.01464/5.199, allocations: 4.793 MB / 2.447 GB, free: 30.97 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.596e-05/5.2, allocations: 170.7 kB / 2.447 GB, free: 30.79 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005916/5.206, allocations: 2.74 MB / 2.449 GB, free: 28.86 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005154/5.206, allocations: 40.17 kB / 2.449 GB, free: 28.81 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000746/5.207, allocations: 0.9511 MB / 2.45 GB, free: 27.99 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.000538/5.207, allocations: 411.5 kB / 2.451 GB, free: 27.62 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/5.208, allocations: 0 / 2.451 GB, free: 27.62 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001172/5.208, allocations: 364.1 kB / 2.451 GB, free: 27.28 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001135/5.209, allocations: 0.7751 MB / 2.452 GB, free: 26.55 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001284/5.21, allocations: 1.082 MB / 2.453 GB, free: 25.43 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.01222/5.222, allocations: 3.54 MB / 2.456 GB, free: 22.71 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.12e-05/5.222, allocations: 4 kB / 2.456 GB, free: 22.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.005062/5.227, allocations: 2.584 MB / 2.459 GB, free: 20.29 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006478/5.228, allocations: 3.438 MB / 2.462 GB, free: 16.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.666e-05/5.228, allocations: 11.53 kB / 2.462 GB, free: 16.55 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003493/5.232, allocations: 1.008 MB / 2.463 GB, free: 15.55 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001385/5.233, allocations: 310.9 kB / 2.464 GB, free: 15.25 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00345/5.237, allocations: 3.956 MB / 2.467 GB, free: 11.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002465/5.239, allocations: 208.1 kB / 2.468 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002242/5.239, allocations: 83.97 kB / 2.468 GB, free: 10.95 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.508e-06/5.239, allocations: 4 kB / 2.468 GB, free: 10.95 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003458/5.243, allocations: 2.257 MB / 2.47 GB, free: 8.699 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.302e-05/5.243, allocations: 8 kB / 2.47 GB, free: 8.691 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002871/5.246, allocations: 0.8731 MB / 2.471 GB, free: 7.836 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00146/5.247, allocations: 335.5 kB / 2.471 GB, free: 7.508 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003477/5.251, allocations: 5.006 MB / 2.476 GB, free: 2.375 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002245/5.253, allocations: 201.8 kB / 2.476 GB, free: 2.195 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002033/5.253, allocations: 87.92 kB / 2.476 GB, free: 2.109 MB / 0.5261 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.0006531/5.254, allocations: 144.6 kB / 2.476 GB, free: 1.961 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009036/5.255, allocations: 245.1 kB / 2.477 GB, free: 1.719 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003933/5.259, allocations: 2.064 MB / 2.479 GB, free: 15.65 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.315e-05/5.259, allocations: 12 kB / 2.479 GB, free: 15.64 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.089e-05/5.259, allocations: 7.906 kB / 2.479 GB, free: 15.63 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/5.259, allocations: 3.984 kB / 2.479 GB, free: 15.63 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009477/5.268, allocations: 4.837 MB / 2.483 GB, free: 10.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/5.268, allocations: 7.938 kB / 2.483 GB, free: 10.76 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001934/5.27, allocations: 315.7 kB / 2.484 GB, free: 10.45 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008797/5.271, allocations: 257.4 kB / 2.484 GB, free: 10.2 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001293/5.271, allocations: 39.88 kB / 2.484 GB, free: 10.16 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003845/5.275, allocations: 5.928 MB / 2.49 GB, free: 3.965 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/5.275, allocations: 7.562 kB / 2.49 GB, free: 3.961 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004518/5.28, allocations: 2.611 MB / 2.492 GB, free: 1.32 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002028/5.282, allocations: 0.7167 MB / 2.493 GB, free: 0.582 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007561/5.282, allocations: 15.94 kB / 2.493 GB, free: 0.5664 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002563/5.285, allocations: 181.6 kB / 2.493 GB, free: 412 kB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000157/5.285, allocations: 75 kB / 2.493 GB, free: 340 kB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003458/5.285, allocations: 111.9 kB / 2.493 GB, free: 228 kB / 0.5417 GB Notification: Performance of sort global known variables: time 0.1999/5.485, allocations: 2.072 MB / 2.495 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.004577/5.49, allocations: 1.35 MB / 2.497 GB, free: 105.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.004747/5.495, allocations: 2.371 MB / 2.499 GB, free: 105 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.005294/5.5, allocations: 3.375 MB / 2.502 GB, free: 105 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.127e-05/5.5, allocations: 13.84 kB / 2.502 GB, free: 105 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001535/5.502, allocations: 1.051 MB / 2.503 GB, free: 104.9 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003397/5.505, allocations: 0.5975 MB / 2.504 GB, free: 104.9 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009572/5.515, allocations: 5.094 MB / 2.509 GB, free: 104 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002065/5.517, allocations: 2.251 MB / 2.511 GB, free: 103.2 MB / 0.5417 GB Notification: Performance of SimCode: time 6.62e-07/5.517, allocations: 2.312 kB / 2.511 GB, free: 103.2 MB / 0.5417 GB Notification: Performance of Templates: time 0.08782/5.605, allocations: 70.07 MB / 2.58 GB, free: 101.3 MB / 0.5417 GB make -j1 -f ThermoPower_ThermoPower.Examples.BraytonCycle.OpenLoopSimulator.makefile (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 & ./ThermoPower_ThermoPower.Examples.BraytonCycle.OpenLoopSimulator -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Examples.BraytonCycle.OpenLoopSimulator.pipe 2>&1)