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.00142/0.00142, allocations: 176.4 kB / 8.348 MB, free: 0.7266 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.686/1.686, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001155/0.001156, allocations: 97.12 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.543/0.543, allocations: 48.77 MB / 358.8 MB, free: 53.14 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.064e-05/2.066e-05, allocations: 4 kB / 425.4 MB, free: 8.152 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1544/0.1544, allocations: 60.26 MB / 485.6 MB, free: 11.75 MB / 379.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.975/2.129, allocations: 0.7646 GB / 1.239 GB, free: 58.13 MB / 0.5108 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002927/2.13, allocations: 87.2 kB / 1.239 GB, free: 58.05 MB / 0.5108 GB Notification: Performance of FrontEnd - DAE generated: time 4.029/6.159, allocations: 1.165 GB / 2.404 GB, free: 46.04 MB / 0.5265 GB Notification: Performance of FrontEnd: time 2.244e-06/6.159, allocations: 0 / 2.404 GB, free: 46.04 MB / 0.5265 GB Notification: Performance of Transformations before backend: time 0.000248/6.16, allocations: 77.55 kB / 2.404 GB, free: 46.03 MB / 0.5265 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.008234/6.168, allocations: 2.861 MB / 2.407 GB, free: 44.65 MB / 0.5265 GB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/6.168, allocations: 11.5 kB / 2.407 GB, free: 44.65 MB / 0.5265 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003425/6.171, allocations: 0.6067 MB / 2.408 GB, free: 44.46 MB / 0.5265 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005717/6.177, allocations: 2.306 MB / 2.41 GB, free: 43.87 MB / 0.5265 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001112/6.177, allocations: 71.66 kB / 2.41 GB, free: 43.87 MB / 0.5265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000679/6.178, allocations: 140.5 kB / 2.41 GB, free: 43.87 MB / 0.5265 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004575/6.183, allocations: 2.285 MB / 2.413 GB, free: 43.85 MB / 0.5265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004899/6.187, allocations: 2.742 MB / 2.415 GB, free: 43.56 MB / 0.5265 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.292e-05/6.188, allocations: 3.781 kB / 2.415 GB, free: 43.56 MB / 0.5265 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003865/6.188, allocations: 7.531 kB / 2.415 GB, free: 43.56 MB / 0.5265 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.289e-05/6.188, allocations: 85.45 kB / 2.415 GB, free: 43.55 MB / 0.5265 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.01811/6.206, allocations: 12.8 MB / 2.428 GB, free: 37.54 MB / 0.5265 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001597/6.208, allocations: 1.036 MB / 2.429 GB, free: 37.5 MB / 0.5265 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001172/6.209, allocations: 0.7548 MB / 2.43 GB, free: 37.25 MB / 0.5265 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000595/6.21, allocations: 303.6 kB / 2.43 GB, free: 37.05 MB / 0.5265 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.929e-05/6.21, allocations: 76.19 kB / 2.43 GB, free: 36.99 MB / 0.5265 GB Notification: Performance of pre-optimization done (n=114): time 3.857e-06/6.21, allocations: 0 / 2.43 GB, free: 36.99 MB / 0.5265 GB Notification: Performance of matching and sorting (n=127): time 0.01243/6.222, allocations: 4.903 MB / 2.435 GB, free: 34.57 MB / 0.5265 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.13e-05/6.222, allocations: 169.6 kB / 2.435 GB, free: 34.38 MB / 0.5265 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004265/6.226, allocations: 2.772 MB / 2.438 GB, free: 33.4 MB / 0.5265 GB Notification: Performance of collectPreVariables (initialization): time 0.0004187/6.227, allocations: 31.64 kB / 2.438 GB, free: 33.37 MB / 0.5265 GB Notification: Performance of collectInitialEqns (initialization): time 0.000801/6.228, allocations: 1.427 MB / 2.439 GB, free: 32.27 MB / 0.5265 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003227/6.228, allocations: 438 kB / 2.439 GB, free: 31.93 MB / 0.5265 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.324e-05/6.228, allocations: 0 / 2.439 GB, free: 31.93 MB / 0.5265 GB Notification: Performance of setup shared object (initialization): time 8.078e-05/6.228, allocations: 367.6 kB / 2.44 GB, free: 31.6 MB / 0.5265 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000963/6.229, allocations: 0.7788 MB / 2.441 GB, free: 31.25 MB / 0.5265 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001041/6.23, allocations: 1.101 MB / 2.442 GB, free: 30.52 MB / 0.5265 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.01121/6.241, allocations: 3.648 MB / 2.445 GB, free: 29.53 MB / 0.5265 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-05/6.242, allocations: 5.125 kB / 2.445 GB, free: 29.53 MB / 0.5265 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.004821/6.246, allocations: 2.725 MB / 2.448 GB, free: 28.41 MB / 0.5265 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006146/6.247, allocations: 3.646 MB / 2.451 GB, free: 24.5 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.772e-05/6.247, allocations: 10.97 kB / 2.451 GB, free: 24.5 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004203/6.251, allocations: 1.279 MB / 2.453 GB, free: 24.23 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001389/6.253, allocations: 293.8 kB / 2.453 GB, free: 24.2 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004077/6.257, allocations: 4.185 MB / 2.457 GB, free: 21.09 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00254/6.259, allocations: 223.7 kB / 2.457 GB, free: 20.95 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001921/6.26, allocations: 91.31 kB / 2.457 GB, free: 20.86 MB / 0.5265 GB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/6.26, allocations: 4 kB / 2.457 GB, free: 20.86 MB / 0.5265 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003594/6.263, allocations: 2.289 MB / 2.46 GB, free: 18.82 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.664e-05/6.263, allocations: 12 kB / 2.46 GB, free: 18.81 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002699/6.266, allocations: 0.8501 MB / 2.46 GB, free: 18.16 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001742/6.268, allocations: 367.2 kB / 2.461 GB, free: 17.85 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003259/6.271, allocations: 4.886 MB / 2.466 GB, free: 13.02 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002346/6.273, allocations: 215.1 kB / 2.466 GB, free: 12.89 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000196/6.273, allocations: 84.92 kB / 2.466 GB, free: 12.81 MB / 0.5265 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. 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.0007192/6.274, allocations: 154.6 kB / 2.466 GB, free: 12.66 MB / 0.5265 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003287/6.278, allocations: 1.806 MB / 2.468 GB, free: 10.98 MB / 0.5265 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006099/6.278, allocations: 253 kB / 2.468 GB, free: 10.73 MB / 0.5265 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003355/6.282, allocations: 2.045 MB / 2.47 GB, free: 8.941 MB / 0.5265 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.888e-06/6.282, allocations: 12 kB / 2.47 GB, free: 8.93 MB / 0.5265 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/6.282, allocations: 0 / 2.47 GB, free: 8.93 MB / 0.5265 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.335e-05/6.282, allocations: 5.391 kB / 2.47 GB, free: 8.93 MB / 0.5265 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007141/6.289, allocations: 4.92 MB / 2.475 GB, free: 4.98 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/6.289, allocations: 0 / 2.475 GB, free: 4.98 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001896/6.291, allocations: 345.6 kB / 2.475 GB, free: 4.707 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008473/6.292, allocations: 263.5 kB / 2.475 GB, free: 4.5 MB / 0.5265 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001472/6.292, allocations: 34.47 kB / 2.475 GB, free: 4.473 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003836/6.296, allocations: 5.873 MB / 2.481 GB, free: 14.48 MB / 0.5421 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/6.296, allocations: 0 / 2.481 GB, free: 14.48 MB / 0.5421 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004565/6.3, allocations: 2.672 MB / 2.484 GB, free: 11.96 MB / 0.5421 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001679/6.302, allocations: 0.7128 MB / 2.484 GB, free: 11.31 MB / 0.5421 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003278/6.302, allocations: 23.3 kB / 2.484 GB, free: 11.29 MB / 0.5421 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002083/6.304, allocations: 190.9 kB / 2.485 GB, free: 11.18 MB / 0.5421 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001676/6.304, allocations: 79.45 kB / 2.485 GB, free: 11.12 MB / 0.5421 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002308/6.305, allocations: 117.3 kB / 2.485 GB, free: 11.04 MB / 0.5421 GB Notification: Performance of sorting global known variables: time 0.002984/6.308, allocations: 2.091 MB / 2.487 GB, free: 9.164 MB / 0.5421 GB Notification: Performance of sort global known variables: time 1.4e-07/6.308, allocations: 3.938 kB / 2.487 GB, free: 9.16 MB / 0.5421 GB Notification: Performance of remove unused functions: time 0.004198/6.312, allocations: 1.389 MB / 2.488 GB, free: 7.785 MB / 0.5421 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.008866/6.321, allocations: 5.43 MB / 2.494 GB, free: 2.766 MB / 0.5421 GB Notification: Performance of simCode: created initialization part: time 0.2882/6.609, allocations: 3.45 MB / 2.497 GB, free: 64.74 MB / 0.5421 GB Notification: Performance of simCode: created event and clocks part: time 1.364e-05/6.609, allocations: 7.781 kB / 2.497 GB, free: 64.74 MB / 0.5421 GB Notification: Performance of simCode: created simulation system equations: time 0.00189/6.611, allocations: 1.061 MB / 2.498 GB, free: 64.64 MB / 0.5421 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004183/6.615, allocations: 0.6327 MB / 2.499 GB, free: 64.63 MB / 0.5421 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01252/6.628, allocations: 5.879 MB / 2.504 GB, free: 63.59 MB / 0.5421 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001589/6.629, allocations: 2.087 MB / 2.506 GB, free: 62.86 MB / 0.5421 GB Notification: Performance of simCode: alias equations: time 0.004232/6.634, allocations: 1.333 MB / 2.508 GB, free: 62.83 MB / 0.5421 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001372/6.635, allocations: 1.174 MB / 2.509 GB, free: 62.82 MB / 0.5421 GB Notification: Performance of SimCode: time 9.22e-07/6.635, allocations: 0 / 2.509 GB, free: 62.82 MB / 0.5421 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1648/6.8, allocations: 88.46 MB / 2.595 GB, free: 59.75 MB / 0.5421 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001855/6.8, allocations: 174.6 kB / 2.595 GB, free: 59.55 MB / 0.5421 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.852/11.65, allocations: 0 / 2.595 GB, free: 59.55 MB / 0.5421 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)