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: translateModel(ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator") translateModel(ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001115/0.001115, allocations: 175.2 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.604/1.604, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.0009553/0.0009553, allocations: 82.72 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2942/0.2942, allocations: 48.78 MB / 364.3 MB, free: 6.867 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.795e-05/2.797e-05, allocations: 3.984 kB / 432.5 MB, free: 16.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1252, allocations: 60.26 MB / 492.7 MB, free: 4.387 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.749/1.875, allocations: 0.7653 GB / 1.247 GB, free: 64.36 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002437/1.875, allocations: 89.17 kB / 1.247 GB, free: 64.27 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.731/5.606, allocations: 1.181 GB / 2.427 GB, free: 58.98 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.284e-06/5.606, allocations: 0 / 2.427 GB, free: 58.98 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.000264/5.607, allocations: 72.78 kB / 2.427 GB, free: 58.97 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.007067/5.614, allocations: 2.871 MB / 2.43 GB, free: 57.59 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/5.614, allocations: 11.31 kB / 2.43 GB, free: 57.59 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002814/5.617, allocations: 0.6005 MB / 2.431 GB, free: 57.4 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004385/5.621, allocations: 2.298 MB / 2.433 GB, free: 56.82 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001001/5.621, allocations: 169.5 kB / 2.433 GB, free: 56.81 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004245/5.622, allocations: 231.2 kB / 2.433 GB, free: 56.81 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004998/5.627, allocations: 3.081 MB / 2.436 GB, free: 56.5 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.678e-05/5.627, allocations: 0 / 2.436 GB, free: 56.5 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003594/5.627, allocations: 108.6 kB / 2.436 GB, free: 56.5 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.884e-05/5.627, allocations: 82.88 kB / 2.436 GB, free: 56.5 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00343/5.631, allocations: 2.409 MB / 2.439 GB, free: 56.45 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.01737/5.648, allocations: 13.42 MB / 2.452 GB, free: 50.29 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001572/5.65, allocations: 1.074 MB / 2.453 GB, free: 50.21 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001191/5.651, allocations: 0.7947 MB / 2.454 GB, free: 49.87 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005883/5.651, allocations: 305.8 kB / 2.454 GB, free: 49.67 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.805e-05/5.651, allocations: 66.12 kB / 2.454 GB, free: 49.61 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=114): time 3.316e-06/5.651, allocations: 0 / 2.454 GB, free: 49.61 MB / 0.5417 GB Notification: Performance of matching and sorting (n=127): time 0.01255/5.664, allocations: 5.241 MB / 2.459 GB, free: 47.05 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.723e-05/5.664, allocations: 169.5 kB / 2.459 GB, free: 46.85 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004936/5.669, allocations: 3.578 MB / 2.463 GB, free: 45.64 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0004157/5.669, allocations: 65.02 kB / 2.463 GB, free: 45.58 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008886/5.67, allocations: 1.428 MB / 2.464 GB, free: 44.47 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003652/5.671, allocations: 456.8 kB / 2.465 GB, free: 44.12 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.465e-05/5.671, allocations: 34.22 kB / 2.465 GB, free: 44.1 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 8.777e-05/5.671, allocations: 365.2 kB / 2.465 GB, free: 43.77 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001055/5.672, allocations: 0.801 MB / 2.466 GB, free: 43.43 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001168/5.673, allocations: 1.138 MB / 2.467 GB, free: 42.69 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.01247/5.686, allocations: 3.946 MB / 2.471 GB, free: 41.35 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.07e-05/5.686, allocations: 6.906 kB / 2.471 GB, free: 41.34 MB / 0.5417 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.005152/5.691, allocations: 2.916 MB / 2.474 GB, free: 38.71 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.000596/5.691, allocations: 3.765 MB / 2.477 GB, free: 34.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.655e-05/5.691, allocations: 8 kB / 2.477 GB, free: 34.62 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005128/5.697, allocations: 1.473 MB / 2.479 GB, free: 33.46 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001307/5.698, allocations: 285.9 kB / 2.479 GB, free: 33.22 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003569/5.701, allocations: 4.042 MB / 2.483 GB, free: 29.28 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002611/5.704, allocations: 250.7 kB / 2.483 GB, free: 29.11 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001777/5.704, allocations: 89.69 kB / 2.483 GB, free: 29.04 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/5.704, allocations: 4 kB / 2.483 GB, free: 29.03 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003721/5.708, allocations: 2.465 MB / 2.486 GB, free: 26.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.381e-05/5.708, allocations: 8 kB / 2.486 GB, free: 26.81 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00303/5.711, allocations: 0.9639 MB / 2.487 GB, free: 26.05 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001522/5.713, allocations: 366.3 kB / 2.487 GB, free: 25.75 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002826/5.716, allocations: 4.766 MB / 2.492 GB, free: 21.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002464/5.718, allocations: 255.9 kB / 2.492 GB, free: 20.85 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001565/5.718, allocations: 83.89 kB / 2.492 GB, free: 20.77 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.0005513/5.719, allocations: 212.1 kB / 2.492 GB, free: 20.56 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005305/5.719, allocations: 304.4 kB / 2.493 GB, free: 20.26 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00354/5.723, allocations: 2.188 MB / 2.495 GB, free: 18.32 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.748e-06/5.723, allocations: 19.94 kB / 2.495 GB, free: 18.3 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/5.723, allocations: 0 / 2.495 GB, free: 18.3 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.164e-05/5.723, allocations: 3.562 kB / 2.495 GB, free: 18.3 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00727/5.73, allocations: 5.312 MB / 2.5 GB, free: 13.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/5.73, allocations: 0 / 2.5 GB, free: 13.89 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00183/5.732, allocations: 346.9 kB / 2.5 GB, free: 13.56 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001393/5.733, allocations: 313.8 kB / 2.501 GB, free: 13.25 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001096/5.734, allocations: 58.69 kB / 2.501 GB, free: 13.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00249/5.736, allocations: 5.853 MB / 2.506 GB, free: 7.055 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/5.736, allocations: 0 / 2.506 GB, free: 7.055 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003872/5.74, allocations: 2.807 MB / 2.509 GB, free: 4.227 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001836/5.742, allocations: 0.8097 MB / 2.51 GB, free: 3.395 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004035/5.742, allocations: 39.98 kB / 2.51 GB, free: 3.355 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002165/5.744, allocations: 217.7 kB / 2.51 GB, free: 3.156 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001737/5.745, allocations: 84.12 kB / 2.51 GB, free: 3.078 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002265/5.745, allocations: 111.9 kB / 2.51 GB, free: 2.969 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003363/5.748, allocations: 2.754 MB / 2.513 GB, free: 220 kB / 0.5417 GB Notification: Performance of sort global known variables: time 1.71e-07/5.748, allocations: 0 / 2.513 GB, free: 220 kB / 0.5417 GB Notification: Performance of remove unused functions: time 0.004617/5.753, allocations: 1.539 MB / 2.515 GB, free: 14.68 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.004912/5.758, allocations: 2.049 MB / 2.517 GB, free: 13.12 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.007419/5.765, allocations: 3.566 MB / 2.52 GB, free: 9.578 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/5.765, allocations: 6.781 kB / 2.52 GB, free: 9.574 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001973/5.767, allocations: 1.103 MB / 2.521 GB, free: 8.465 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00633/5.774, allocations: 1.192 MB / 2.522 GB, free: 7.34 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0097/5.783, allocations: 5.338 MB / 2.527 GB, free: 2.027 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2831/6.066, allocations: 2.079 MB / 2.53 GB, free: 72.67 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.00607/6.073, allocations: 1.621 MB / 2.531 GB, free: 72.64 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004696/6.073, allocations: 148.4 kB / 2.531 GB, free: 72.63 MB / 0.5573 GB Notification: Performance of SimCode: time 6.91e-07/6.073, allocations: 0 / 2.531 GB, free: 72.63 MB / 0.5573 GB Notification: Performance of Templates: time 0.1174/6.19, allocations: 95.27 MB / 2.624 GB, free: 67.07 MB / 0.5573 GB make -j1 -f ThermoPower_ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator.makefile (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 & ./ThermoPower_ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator.pipe 2>&1)