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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001958/0.001957, allocations: 180.5 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.142/2.142, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.0009896/0.0009898, allocations: 101.2 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.6019/0.6019, allocations: 48.78 MB / 367.9 MB, free: 47.44 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000444/0.000444, allocations: 8 kB / 438.7 MB, free: 10.89 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1551/0.1556, allocations: 60.25 MB / 499 MB, free: 14.51 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.372/2.528, allocations: 0.7653 GB / 1.253 GB, free: 28.13 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003001/2.528, allocations: 90.45 kB / 1.253 GB, free: 28.09 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.581/7.109, allocations: 1.18 GB / 2.433 GB, free: 54.41 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.446e-06/7.109, allocations: 0 / 2.433 GB, free: 54.41 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0004585/7.109, allocations: 77.64 kB / 2.433 GB, free: 54.4 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.01317/7.122, allocations: 3.325 MB / 2.436 GB, free: 52.75 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/7.122, allocations: 7.281 kB / 2.436 GB, free: 52.75 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002125/7.125, allocations: 336 kB / 2.437 GB, free: 52.7 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00404/7.129, allocations: 0.6151 MB / 2.437 GB, free: 52.51 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007516/7.136, allocations: 2.307 MB / 2.439 GB, free: 51.93 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002608/7.137, allocations: 170.1 kB / 2.44 GB, free: 51.92 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001243/7.138, allocations: 235.5 kB / 2.44 GB, free: 51.91 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008297/7.146, allocations: 3.146 MB / 2.443 GB, free: 51.11 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.495e-05/7.146, allocations: 3.938 kB / 2.443 GB, free: 51.11 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005952/7.147, allocations: 107.1 kB / 2.443 GB, free: 51.03 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.332e-05/7.147, allocations: 88.58 kB / 2.443 GB, free: 51.02 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004205/7.151, allocations: 2.498 MB / 2.446 GB, free: 50.05 MB / 0.5417 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.02232/7.173, allocations: 13.42 MB / 2.459 GB, free: 37.07 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001826/7.175, allocations: 1.102 MB / 2.46 GB, free: 35.96 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006608/7.176, allocations: 310.9 kB / 2.46 GB, free: 35.63 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.748e-05/7.176, allocations: 68.11 kB / 2.46 GB, free: 35.56 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=114): time 3.918e-06/7.176, allocations: 0 / 2.46 GB, free: 35.56 MB / 0.5417 GB Notification: Performance of matching and sorting (n=127): time 0.01526/7.191, allocations: 6.199 MB / 2.466 GB, free: 29.26 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.648e-05/7.191, allocations: 171.5 kB / 2.466 GB, free: 29.06 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005328/7.197, allocations: 3.61 MB / 2.47 GB, free: 25.44 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.000504/7.197, allocations: 65.7 kB / 2.47 GB, free: 25.37 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009514/7.198, allocations: 1.42 MB / 2.471 GB, free: 23.94 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003955/7.199, allocations: 463.7 kB / 2.472 GB, free: 23.49 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.241e-05/7.199, allocations: 32 kB / 2.472 GB, free: 23.46 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.768e-05/7.199, allocations: 361.9 kB / 2.472 GB, free: 23.1 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001128/7.2, allocations: 0.8394 MB / 2.473 GB, free: 22.26 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001224/7.201, allocations: 1.171 MB / 2.474 GB, free: 20.96 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.01277/7.214, allocations: 4.013 MB / 2.478 GB, free: 16.93 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.448e-06/7.214, allocations: 0 / 2.478 GB, free: 16.93 MB / 0.5417 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.005344/7.219, allocations: 2.995 MB / 2.481 GB, free: 13.92 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006963/7.22, allocations: 3.766 MB / 2.485 GB, free: 9.793 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.502e-05/7.22, allocations: 12 kB / 2.485 GB, free: 9.781 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005254/7.225, allocations: 1.472 MB / 2.486 GB, free: 8.312 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001384/7.227, allocations: 287.5 kB / 2.486 GB, free: 8.031 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003613/7.23, allocations: 4.054 MB / 2.49 GB, free: 3.879 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003042/7.233, allocations: 263.9 kB / 2.491 GB, free: 3.621 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002052/7.234, allocations: 99.92 kB / 2.491 GB, free: 3.523 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/7.234, allocations: 4.938 kB / 2.491 GB, free: 3.52 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003979/7.238, allocations: 2.527 MB / 2.493 GB, free: 0.9844 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.694e-05/7.238, allocations: 8 kB / 2.493 GB, free: 0.9766 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003253/7.241, allocations: 0.9629 MB / 2.494 GB, free: 16 kB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002067/7.243, allocations: 379.2 kB / 2.494 GB, free: 15.65 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004532/7.248, allocations: 4.774 MB / 2.499 GB, free: 10.73 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003322/7.251, allocations: 267.7 kB / 2.499 GB, free: 10.47 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002647/7.251, allocations: 87.97 kB / 2.499 GB, free: 10.38 MB / 0.5573 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. 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 () * Number of clocked 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 {15 45} Notification: Performance of prepare postOptimizeDAE: time 0.002755/7.254, allocations: 1.004 MB / 2.5 GB, free: 9.367 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001105/7.255, allocations: 312.4 kB / 2.501 GB, free: 9.059 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004559/7.26, allocations: 2.243 MB / 2.503 GB, free: 6.789 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.559e-05/7.26, allocations: 15.95 kB / 2.503 GB, free: 6.773 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/7.26, allocations: 4 kB / 2.503 GB, free: 6.77 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.359e-05/7.26, allocations: 3.984 kB / 2.503 GB, free: 6.766 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01068/7.27, allocations: 5.405 MB / 2.508 GB, free: 1.324 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.122e-06/7.271, allocations: 0 / 2.508 GB, free: 1.324 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001867/7.272, allocations: 335.7 kB / 2.508 GB, free: 0.9961 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001501/7.274, allocations: 322.1 kB / 2.509 GB, free: 0.6719 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001343/7.274, allocations: 51.97 kB / 2.509 GB, free: 0.6211 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3754/7.649, allocations: 5.857 MB / 2.515 GB, free: 70.7 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/7.65, allocations: 1.312 kB / 2.515 GB, free: 70.7 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006573/7.656, allocations: 2.893 MB / 2.517 GB, free: 70.52 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003209/7.659, allocations: 0.8052 MB / 2.518 GB, free: 70.43 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008577/7.66, allocations: 44.05 kB / 2.518 GB, free: 70.43 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002819/7.663, allocations: 222.6 kB / 2.518 GB, free: 70.43 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002496/7.663, allocations: 85.59 kB / 2.519 GB, free: 70.43 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003327/7.664, allocations: 117.2 kB / 2.519 GB, free: 70.43 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.005696/7.669, allocations: 2.786 MB / 2.521 GB, free: 70.28 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.4e-07/7.669, allocations: 0 / 2.521 GB, free: 70.28 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.006976/7.676, allocations: 1.534 MB / 2.523 GB, free: 70.28 MB / 0.5573 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[1],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.Tm,plant.gasFlowActuator.y,plant.powerSensor1.y,pID.I) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked 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.01126/7.688, allocations: 5.497 MB / 2.528 GB, free: 69.24 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.007297/7.695, allocations: 3.566 MB / 2.532 GB, free: 69.17 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.907e-05/7.695, allocations: 8 kB / 2.532 GB, free: 69.17 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.00209/7.697, allocations: 1.129 MB / 2.533 GB, free: 69.05 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007268/7.704, allocations: 1.19 MB / 2.534 GB, free: 69 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02133/7.726, allocations: 16.81 MB / 2.55 GB, free: 57.2 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002025/7.728, allocations: 2.076 MB / 2.552 GB, free: 56.47 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.004289/7.732, allocations: 0.6477 MB / 2.553 GB, free: 56.45 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002203/7.734, allocations: 1.234 MB / 2.554 GB, free: 56.44 MB / 0.5573 GB Notification: Performance of SimCode: time 8.11e-07/7.734, allocations: 0 / 2.554 GB, free: 56.44 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1738/7.908, allocations: 115.7 MB / 2.667 GB, free: 29.21 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001713/7.908, allocations: 255.7 kB / 2.667 GB, free: 28.87 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.733/13.64, allocations: 0 / 2.667 GB, free: 28.87 MB / 0.5573 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)