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.001209/0.00121, allocations: 176.4 kB / 17.4 MB, free: 4.422 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.049/2.049, allocations: 205.4 MB / 223.5 MB, free: 9.031 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.0008371/0.0008373, allocations: 95.58 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.6363/0.6363, allocations: 48.78 MB / 369 MB, free: 47.33 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003849/0.000385, allocations: 8 kB / 439.9 MB, free: 10.71 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1586/0.159, allocations: 60.26 MB / 0.4884 GB, free: 14.31 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.566/2.725, allocations: 0.7655 GB / 1.254 GB, free: 41.8 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004921/2.726, allocations: 91.83 kB / 1.254 GB, free: 41.71 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 5.326/8.052, allocations: 1.181 GB / 2.435 GB, free: 55.8 MB / 0.5417 GB Notification: Performance of FrontEnd: time 5.11e-06/8.052, allocations: 0 / 2.435 GB, free: 55.8 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0005346/8.052, allocations: 72.08 kB / 2.435 GB, free: 55.8 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.01767/8.07, allocations: 3.287 MB / 2.438 GB, free: 54.14 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 8.599e-05/8.07, allocations: 14.28 kB / 2.438 GB, free: 54.14 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005762/8.076, allocations: 0.5897 MB / 2.438 GB, free: 53.96 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.011/8.087, allocations: 2.396 MB / 2.441 GB, free: 53.29 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004079/8.087, allocations: 171.4 kB / 2.441 GB, free: 53.28 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001805/8.089, allocations: 243.6 kB / 2.441 GB, free: 53.27 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01486/8.104, allocations: 3.164 MB / 2.444 GB, free: 52.96 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002815/8.105, allocations: 7.938 kB / 2.444 GB, free: 52.96 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001762/8.106, allocations: 106.8 kB / 2.444 GB, free: 52.95 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001553/8.106, allocations: 83.62 kB / 2.444 GB, free: 52.95 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007393/8.114, allocations: 2.494 MB / 2.447 GB, free: 52.9 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.03364/8.148, allocations: 13.44 MB / 2.46 GB, free: 43.9 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003454/8.151, allocations: 1.112 MB / 2.461 GB, free: 43.38 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002199/8.153, allocations: 0.82 MB / 2.462 GB, free: 42.96 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001012/8.154, allocations: 310.8 kB / 2.462 GB, free: 42.73 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001476/8.155, allocations: 74.28 kB / 2.462 GB, free: 42.66 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=114): time 1.079e-05/8.155, allocations: 0 / 2.462 GB, free: 42.66 MB / 0.5417 GB Notification: Performance of matching and sorting (n=127): time 0.02129/8.176, allocations: 6.214 MB / 2.468 GB, free: 37.85 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001322/8.176, allocations: 167.5 kB / 2.468 GB, free: 37.65 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01094/8.187, allocations: 3.957 MB / 2.472 GB, free: 33.68 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0008563/8.188, allocations: 65.7 kB / 2.472 GB, free: 33.61 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.002092/8.19, allocations: 1.42 MB / 2.474 GB, free: 32.18 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009219/8.191, allocations: 457.6 kB / 2.474 GB, free: 31.74 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002943/8.191, allocations: 39.94 kB / 2.474 GB, free: 31.7 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002245/8.192, allocations: 359.6 kB / 2.475 GB, free: 31.34 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001934/8.194, allocations: 0.8316 MB / 2.475 GB, free: 30.51 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002127/8.196, allocations: 1.185 MB / 2.477 GB, free: 29.21 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: plant.grid.f = plant.grid.fnom (0.1591549430918953 * plant.generator.omega_e_nom = plant.grid.fnom) Notification: Performance of analyzeInitialSystem (initialization): time 0.01789/8.214, allocations: 5.783 MB / 2.482 GB, free: 23.36 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.986e-05/8.214, allocations: 4 kB / 2.482 GB, free: 23.36 MB / 0.5417 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.007462/8.221, allocations: 2.973 MB / 2.485 GB, free: 20.38 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003335/8.222, allocations: 366 kB / 2.485 GB, free: 19.92 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.924e-05/8.222, allocations: 11.47 kB / 2.485 GB, free: 19.91 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006025/8.228, allocations: 1.503 MB / 2.487 GB, free: 18.43 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0016/8.229, allocations: 291.6 kB / 2.487 GB, free: 18.14 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005169/8.235, allocations: 4.058 MB / 2.491 GB, free: 13.99 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004152/8.239, allocations: 271.4 kB / 2.491 GB, free: 13.74 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005446/8.239, allocations: 89.36 kB / 2.492 GB, free: 13.66 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/8.239, allocations: 4 kB / 2.492 GB, free: 13.65 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005363/8.245, allocations: 2.472 MB / 2.494 GB, free: 11.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.394e-05/8.245, allocations: 8 kB / 2.494 GB, free: 11.17 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003262/8.248, allocations: 0.9595 MB / 2.495 GB, free: 10.21 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001934/8.25, allocations: 367.5 kB / 2.495 GB, free: 9.852 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004313/8.255, allocations: 4.776 MB / 2.5 GB, free: 4.93 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004163/8.259, allocations: 259.6 kB / 2.5 GB, free: 4.676 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004696/8.259, allocations: 83.98 kB / 2.5 GB, free: 4.594 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: plant.grid.f = plant.grid.fnom. 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.00393/8.263, allocations: 1.003 MB / 2.501 GB, free: 3.582 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001948/8.265, allocations: 304.4 kB / 2.502 GB, free: 3.281 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006422/8.272, allocations: 2.259 MB / 2.504 GB, free: 1 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.147e-05/8.272, allocations: 12 kB / 2.504 GB, free: 0.9883 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.016e-05/8.272, allocations: 3.938 kB / 2.504 GB, free: 0.9844 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.141e-05/8.272, allocations: 11.97 kB / 2.504 GB, free: 0.9727 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01992/8.292, allocations: 5.387 MB / 2.509 GB, free: 11.55 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-05/8.292, allocations: 8 kB / 2.509 GB, free: 11.54 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002122/8.294, allocations: 339.6 kB / 2.509 GB, free: 11.21 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001718/8.296, allocations: 332.9 kB / 2.51 GB, free: 10.88 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002613/8.296, allocations: 51.97 kB / 2.51 GB, free: 10.83 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005487/8.301, allocations: 5.85 MB / 2.515 GB, free: 4.684 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.035e-05/8.301, allocations: 3.984 kB / 2.515 GB, free: 4.68 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007231/8.309, allocations: 2.893 MB / 2.518 GB, free: 1.762 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003537/8.312, allocations: 0.8096 MB / 2.519 GB, free: 0.9297 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001494/8.314, allocations: 39.98 kB / 2.519 GB, free: 0.8906 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004019/8.318, allocations: 215.7 kB / 2.519 GB, free: 0.6797 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003159/8.318, allocations: 85.19 kB / 2.519 GB, free: 0.5977 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005939/8.319, allocations: 119.9 kB / 2.519 GB, free: 492 kB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.6359/8.955, allocations: 2.779 MB / 2.522 GB, free: 77.44 MB / 0.5573 GB Notification: Performance of sort global known variables: time 9.82e-07/8.955, allocations: 0 / 2.522 GB, free: 77.44 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01036/8.965, allocations: 1.538 MB / 2.524 GB, free: 77.44 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.007802/8.973, allocations: 2.064 MB / 2.526 GB, free: 77.16 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.009435/8.983, allocations: 3.567 MB / 2.529 GB, free: 77.12 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.631e-05/8.983, allocations: 8.281 kB / 2.529 GB, free: 77.11 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002739/8.985, allocations: 1.139 MB / 2.53 GB, free: 77 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008767/8.994, allocations: 1.22 MB / 2.532 GB, free: 76.95 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01886/9.013, allocations: 7.374 MB / 2.539 GB, free: 74.43 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002928/9.016, allocations: 2.014 MB / 2.541 GB, free: 73.7 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.004988/9.021, allocations: 0.6525 MB / 2.541 GB, free: 73.68 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008368/9.022, allocations: 194.9 kB / 2.542 GB, free: 73.67 MB / 0.5573 GB Notification: Performance of SimCode: time 1.673e-06/9.022, allocations: 0 / 2.542 GB, free: 73.67 MB / 0.5573 GB Notification: Performance of Templates: time 0.213/9.235, allocations: 86.94 MB / 2.626 GB, free: 68.66 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)