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.001088/0.001088, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.758/1.758, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.001009/0.001009, allocations: 82.66 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.298/0.298, allocations: 48.78 MB / 364.3 MB, free: 6.863 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.995e-05/2.997e-05, allocations: 4 kB / 432.5 MB, free: 16.67 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1239, allocations: 60.25 MB / 492.8 MB, free: 4.293 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.876/2, allocations: 0.7654 GB / 1.247 GB, free: 46.52 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002216/2.001, allocations: 85.45 kB / 1.247 GB, free: 46.48 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.048/6.048, allocations: 1.181 GB / 2.427 GB, free: 62.17 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.443e-06/6.048, allocations: 0 / 2.427 GB, free: 62.17 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002683/6.049, allocations: 70.23 kB / 2.427 GB, free: 62.17 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.007409/6.056, allocations: 2.865 MB / 2.43 GB, free: 60.78 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/6.056, allocations: 11.62 kB / 2.43 GB, free: 60.78 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005143/6.057, allocations: 321.8 kB / 2.431 GB, free: 60.73 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002679/6.059, allocations: 0.6025 MB / 2.431 GB, free: 60.55 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004601/6.064, allocations: 2.297 MB / 2.433 GB, free: 59.96 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000117/6.064, allocations: 176.7 kB / 2.434 GB, free: 59.95 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004236/6.064, allocations: 232.7 kB / 2.434 GB, free: 59.95 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005333/6.07, allocations: 3.081 MB / 2.437 GB, free: 59.64 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.816e-05/6.07, allocations: 4.75 kB / 2.437 GB, free: 59.64 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000393/6.07, allocations: 108.9 kB / 2.437 GB, free: 59.64 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.203e-05/6.07, allocations: 85.44 kB / 2.437 GB, free: 59.63 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003466/6.074, allocations: 2.409 MB / 2.439 GB, free: 59.58 MB / 0.5417 GB Warning: The model contains alias variables with conflicting start and/or 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.01643/6.09, allocations: 13.41 MB / 2.452 GB, free: 51.3 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001418/6.092, allocations: 1.075 MB / 2.453 GB, free: 50.81 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001135/6.093, allocations: 0.7897 MB / 2.454 GB, free: 50.48 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005764/6.093, allocations: 310.1 kB / 2.454 GB, free: 50.27 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.639e-05/6.093, allocations: 62.81 kB / 2.455 GB, free: 50.22 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=114): time 3.156e-06/6.093, allocations: 3.938 kB / 2.455 GB, free: 50.21 MB / 0.5417 GB Notification: Performance of matching and sorting (n=127): time 0.01217/6.106, allocations: 5.237 MB / 2.46 GB, free: 46.12 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.105e-05/6.106, allocations: 175.5 kB / 2.46 GB, free: 45.91 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00473/6.11, allocations: 3.574 MB / 2.463 GB, free: 42.71 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0003418/6.111, allocations: 65.7 kB / 2.463 GB, free: 42.64 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008861/6.112, allocations: 1.42 MB / 2.465 GB, free: 41.34 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003283/6.112, allocations: 461 kB / 2.465 GB, free: 40.93 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.295e-05/6.112, allocations: 32 kB / 2.465 GB, free: 40.9 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 8.215e-05/6.112, allocations: 365.2 kB / 2.466 GB, free: 40.56 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001071/6.113, allocations: 0.7984 MB / 2.466 GB, free: 39.78 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001243/6.115, allocations: 1.142 MB / 2.467 GB, free: 38.52 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.01252/6.127, allocations: 3.945 MB / 2.471 GB, free: 34.61 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/6.127, allocations: 0 / 2.471 GB, free: 34.61 MB / 0.5417 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.004884/6.132, allocations: 2.928 MB / 2.474 GB, free: 31.69 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006601/6.133, allocations: 3.759 MB / 2.478 GB, free: 27.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/6.133, allocations: 12 kB / 2.478 GB, free: 27.59 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00514/6.138, allocations: 1.46 MB / 2.479 GB, free: 26.14 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001284/6.139, allocations: 298.5 kB / 2.48 GB, free: 25.86 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003521/6.143, allocations: 4.032 MB / 2.484 GB, free: 21.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00282/6.146, allocations: 258.3 kB / 2.484 GB, free: 21.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001973/6.146, allocations: 91.97 kB / 2.484 GB, free: 21.41 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/6.146, allocations: 6.969 kB / 2.484 GB, free: 21.41 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00369/6.149, allocations: 2.462 MB / 2.486 GB, free: 18.94 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/6.149, allocations: 8 kB / 2.486 GB, free: 18.93 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003065/6.153, allocations: 0.9679 MB / 2.487 GB, free: 17.96 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001555/6.154, allocations: 371.5 kB / 2.488 GB, free: 17.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002881/6.157, allocations: 4.765 MB / 2.492 GB, free: 12.69 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002752/6.16, allocations: 247.8 kB / 2.492 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001698/6.16, allocations: 91.97 kB / 2.493 GB, free: 12.36 MB / 0.5417 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 () * 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.0006082/6.161, allocations: 200.8 kB / 2.493 GB, free: 12.16 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006553/6.161, allocations: 304.4 kB / 2.493 GB, free: 11.86 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003861/6.165, allocations: 2.195 MB / 2.495 GB, free: 9.641 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.1e-05/6.165, allocations: 12 kB / 2.495 GB, free: 9.629 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/6.165, allocations: 4 kB / 2.495 GB, free: 9.625 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.278e-05/6.165, allocations: 11.97 kB / 2.495 GB, free: 9.613 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008125/6.173, allocations: 5.304 MB / 2.5 GB, free: 4.262 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/6.173, allocations: 0 / 2.5 GB, free: 4.262 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001825/6.175, allocations: 359.5 kB / 2.501 GB, free: 3.91 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001347/6.177, allocations: 301.3 kB / 2.501 GB, free: 3.609 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001188/6.177, allocations: 47.97 kB / 2.501 GB, free: 3.562 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003418/6.18, allocations: 5.858 MB / 2.507 GB, free: 13.41 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/6.18, allocations: 4 kB / 2.507 GB, free: 13.41 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006055/6.186, allocations: 2.81 MB / 2.51 GB, free: 10.57 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002718/6.189, allocations: 0.8019 MB / 2.51 GB, free: 9.75 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005056/6.189, allocations: 39.98 kB / 2.51 GB, free: 9.711 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002399/6.192, allocations: 219.7 kB / 2.511 GB, free: 9.496 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002306/6.192, allocations: 93.14 kB / 2.511 GB, free: 9.406 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002608/6.192, allocations: 111.9 kB / 2.511 GB, free: 9.297 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.004881/6.197, allocations: 2.75 MB / 2.513 GB, free: 6.547 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.6e-07/6.197, allocations: 3.938 kB / 2.513 GB, free: 6.543 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.005836/6.203, allocations: 1.531 MB / 2.515 GB, free: 5.012 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[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.3461/6.549, allocations: 5.366 MB / 2.52 GB, free: 81.26 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.007564/6.557, allocations: 3.566 MB / 2.524 GB, free: 81.21 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.225e-05/6.557, allocations: 8.188 kB / 2.524 GB, free: 81.21 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0018/6.559, allocations: 1.109 MB / 2.525 GB, free: 81.09 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006124/6.565, allocations: 1.191 MB / 2.526 GB, free: 81.08 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01296/6.578, allocations: 6.139 MB / 2.532 GB, free: 80 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001922/6.58, allocations: 2.084 MB / 2.534 GB, free: 79.27 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.005666/6.586, allocations: 1.62 MB / 2.536 GB, free: 79.23 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001617/6.587, allocations: 1.191 MB / 2.537 GB, free: 79.23 MB / 0.5573 GB Notification: Performance of SimCode: time 1.513e-06/6.587, allocations: 0 / 2.537 GB, free: 79.23 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1616/6.749, allocations: 126 MB / 2.66 GB, free: 45.39 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001428/6.749, allocations: 222.6 kB / 2.66 GB, free: 45.16 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.094/12.84, allocations: 0 / 2.66 GB, free: 45.16 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)