Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Examples.HRB.Simulators.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.HRB.Simulators.ClosedLoopSimulator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopSimulator") translateModel(ThermoPower.Examples.HRB.Simulators.ClosedLoopSimulator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopSimulator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001252/0.001253, allocations: 180.2 kB / 16.38 MB, free: 5.766 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.846/1.846, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.0009737/0.0009737, allocations: 96.39 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.6302/0.6302, allocations: 48.78 MB / 367.9 MB, free: 47.43 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004279/0.0004279, allocations: 12 kB / 438.6 MB, free: 11 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1809/0.1813, allocations: 60.25 MB / 498.9 MB, free: 14.61 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.73/11.92, allocations: 3.674 GB / 4.161 GB, free: 149.9 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002842/11.92, allocations: 95.25 kB / 4.161 GB, free: 149.9 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.45/15.37, allocations: 0.9179 GB / 5.079 GB, free: 41.85 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.703e-06/15.37, allocations: 0 / 5.079 GB, free: 41.85 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003702/15.37, allocations: 113 kB / 5.08 GB, free: 41.84 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1369 * Number of variables: 1369 Notification: Performance of Generate backend data structure: time 0.03387/15.4, allocations: 6.314 MB / 5.086 GB, free: 39.73 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/15.4, allocations: 10.5 kB / 5.086 GB, free: 39.73 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01496/15.42, allocations: 2.083 MB / 5.088 GB, free: 39.45 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01482/15.43, allocations: 4.156 MB / 5.092 GB, free: 38.37 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006829/15.43, allocations: 397.1 kB / 5.092 GB, free: 38.19 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004696/15.44, allocations: 0.5588 MB / 5.093 GB, free: 37.99 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04636/15.48, allocations: 12.95 MB / 5.105 GB, free: 32.69 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004003/15.48, allocations: 0 / 5.105 GB, free: 32.69 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004985/15.49, allocations: 227.6 kB / 5.106 GB, free: 32.52 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003584/15.49, allocations: 282.6 kB / 5.106 GB, free: 32.48 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0401/15.53, allocations: 14.99 MB / 5.12 GB, free: 24.98 MB / 0.5573 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.09999/15.63, allocations: 41.27 MB / 5.161 GB, free: 0.8242 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.5092/16.14, allocations: 21.87 MB / 5.182 GB, free: 48.07 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.221/16.36, allocations: 112.6 MB / 5.292 GB, free: 25.37 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002288/16.36, allocations: 113.8 kB / 5.292 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=592): time 2.562e-05/16.36, allocations: 0 / 5.292 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of matching and sorting (n=593): time 0.1315/16.49, allocations: 36.62 MB / 5.328 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001852/16.49, allocations: 137.6 kB / 5.328 GB, free: 21.17 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003804/16.49, allocations: 1.447 MB / 5.329 GB, free: 21.01 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.002961/16.5, allocations: 144.8 kB / 5.33 GB, free: 20.98 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.00167/16.5, allocations: 1.408 MB / 5.331 GB, free: 20.5 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.004934/16.5, allocations: 2.059 MB / 5.333 GB, free: 19.4 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002458/16.51, allocations: 104.9 kB / 5.333 GB, free: 19.4 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0008868/16.51, allocations: 0.5129 MB / 5.334 GB, free: 19.09 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01093/16.52, allocations: 5.08 MB / 5.339 GB, free: 19.07 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01222/16.53, allocations: 5.715 MB / 5.344 GB, free: 18.58 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01234/16.54, allocations: 5.702 MB / 5.35 GB, free: 18.48 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.285e-05/16.54, allocations: 0 / 5.35 GB, free: 18.48 MB / 0.6198 GB Notification: Performance of matching and sorting (n=678) (initialization): time 0.04273/16.59, allocations: 17.04 MB / 5.366 GB, free: 13.25 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.002794/16.59, allocations: 3.251 MB / 5.37 GB, free: 25.71 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.049e-05/16.59, allocations: 8.062 kB / 5.37 GB, free: 25.71 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1774/16.77, allocations: 30.41 MB / 5.399 GB, free: 4.879 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002386/16.77, allocations: 415 kB / 5.4 GB, free: 4.555 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5027/17.27, allocations: 22.58 MB / 5.422 GB, free: 118.9 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00926/17.28, allocations: 0.6731 MB / 5.422 GB, free: 118.9 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002908/17.28, allocations: 346.9 kB / 5.423 GB, free: 118.9 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/17.28, allocations: 2.594 kB / 5.423 GB, free: 118.9 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03833/17.32, allocations: 16.52 MB / 5.439 GB, free: 118.7 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001011/17.32, allocations: 9.969 kB / 5.439 GB, free: 118.7 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1425/17.46, allocations: 23.47 MB / 5.462 GB, free: 118.6 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002666/17.47, allocations: 497 kB / 5.462 GB, free: 118.6 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03976/17.51, allocations: 21.72 MB / 5.483 GB, free: 116.2 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008146/17.52, allocations: 0.6635 MB / 5.484 GB, free: 116.2 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001931/17.52, allocations: 352.8 kB / 5.484 GB, free: 116.2 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 13 (Plant.Boiler.WaterSide.fluidState[11].phase,Plant.Boiler.WaterSide.fluidState[10].phase,Plant.Boiler.WaterSide.fluidState[9].phase,Plant.Boiler.WaterSide.fluidState[8].phase,Plant.Boiler.WaterSide.fluidState[7].phase,Plant.Boiler.WaterSide.fluidState[6].phase,Plant.Boiler.WaterSide.fluidState[5].phase,Plant.Boiler.WaterSide.fluidState[4].phase,Plant.Boiler.WaterSide.fluidState[3].phase,Plant.Boiler.WaterSide.fluidState[2].phase,Plant.Boiler.WaterSide.fluidState[1].phase,Plant.WaterOut.fluidState.phase,Plant.WaterIn.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (193): * Single equations (assignments): 189 * 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 {36 450} Notification: Performance of prepare postOptimizeDAE: time 0.006426/17.52, allocations: 1.827 MB / 5.486 GB, free: 116 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001595/17.53, allocations: 342.4 kB / 5.487 GB, free: 116 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.053/17.58, allocations: 33.09 MB / 5.519 GB, free: 104.7 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001161/17.58, allocations: 93.36 kB / 5.519 GB, free: 104.7 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.01e-05/17.58, allocations: 18.38 kB / 5.519 GB, free: 104.7 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001967/17.58, allocations: 30.39 kB / 5.519 GB, free: 104.7 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0911/17.67, allocations: 50.89 MB / 5.569 GB, free: 80.59 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.648e-05/17.67, allocations: 0 / 5.569 GB, free: 80.59 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008254/17.68, allocations: 1.162 MB / 5.57 GB, free: 80.52 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0156/17.69, allocations: 4.584 MB / 5.574 GB, free: 78.36 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002894/17.7, allocations: 274 kB / 5.575 GB, free: 78.16 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5399/18.24, allocations: 52.55 MB / 5.626 GB, free: 114 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/18.24, allocations: 1.641 kB / 5.626 GB, free: 114 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05406/18.29, allocations: 20.56 MB / 5.646 GB, free: 113.5 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008253/18.3, allocations: 1.706 MB / 5.648 GB, free: 113.4 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00381/18.3, allocations: 210.9 kB / 5.648 GB, free: 113.4 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009411/18.31, allocations: 0.5398 MB / 5.648 GB, free: 113.4 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004234/18.32, allocations: 469.8 kB / 5.649 GB, free: 113.4 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003244/18.32, allocations: 259.5 kB / 5.649 GB, free: 113.4 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.003133/18.32, allocations: 1.168 MB / 5.65 GB, free: 113.2 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.2e-07/18.32, allocations: 4.25 kB / 5.65 GB, free: 113.2 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.02893/18.35, allocations: 4.116 MB / 5.654 GB, free: 113.2 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 41 (Plant.Boiler.WaterSide.p,Plant.Boiler.WaterSide.htilde[1],Plant.Boiler.WaterSide.htilde[2],Plant.Boiler.WaterSide.htilde[3],Plant.Boiler.WaterSide.htilde[4],Plant.Boiler.WaterSide.htilde[5],Plant.Boiler.WaterSide.htilde[6],Plant.Boiler.WaterSide.htilde[7],Plant.Boiler.WaterSide.htilde[8],Plant.Boiler.WaterSide.htilde[9],Plant.Boiler.WaterSide.htilde[10],Plant.Boiler.TubeWalls.Tvol[1],Plant.Boiler.TubeWalls.Tvol[2],Plant.Boiler.TubeWalls.Tvol[3],Plant.Boiler.TubeWalls.Tvol[4],Plant.Boiler.TubeWalls.Tvol[5],Plant.Boiler.TubeWalls.Tvol[6],Plant.Boiler.TubeWalls.Tvol[7],Plant.Boiler.TubeWalls.Tvol[8],Plant.Boiler.TubeWalls.Tvol[9],Plant.Boiler.TubeWalls.Tvol[10],Plant.Boiler.GasSide.Ttilde[1],Plant.Boiler.GasSide.Ttilde[2],Plant.Boiler.GasSide.Ttilde[3],Plant.Boiler.GasSide.Ttilde[4],Plant.Boiler.GasSide.Ttilde[5],Plant.Boiler.GasSide.Ttilde[6],Plant.Boiler.GasSide.Ttilde[7],Plant.Boiler.GasSide.Ttilde[8],Plant.Boiler.GasSide.Ttilde[9],Plant.Boiler.GasSide.Ttilde[10],Plant.Boiler.GasSide.Xtilde[1,1],Plant.Boiler.GasSide.Xtilde[1,2],Plant.Boiler.GasSide.p,Plant.GasFlowActuator.y,Plant.WaterInTSensor.y,Plant.WaterOutTSensor.y,Plant.GasInTSensor.y,Plant.GasOutTSensor.y,Plant.ValveOpeningActuator.y,TempController.x) * Number of discrete variables: 22 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (528): * Single equations (assignments): 491 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 11 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 22 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 22 {(11,62.8%) 20,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(11,62.8%) 20,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01825/18.37, allocations: 2.838 MB / 5.657 GB, free: 113 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0657/18.44, allocations: 19.86 MB / 5.676 GB, free: 112.6 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.704e-05/18.44, allocations: 7.406 kB / 5.676 GB, free: 112.6 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.02255/18.46, allocations: 9.207 MB / 5.685 GB, free: 110.1 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01521/18.47, allocations: 1.892 MB / 5.687 GB, free: 110.1 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04897/18.52, allocations: 18.72 MB / 5.705 GB, free: 104.8 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008018/18.53, allocations: 3.556 MB / 5.709 GB, free: 104 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.008769/18.54, allocations: 1.645 MB / 5.711 GB, free: 103.8 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002559/18.54, allocations: 340.9 kB / 5.711 GB, free: 103.8 MB / 0.6355 GB Notification: Performance of SimCode: time 1.753e-06/18.54, allocations: 0 / 5.711 GB, free: 103.8 MB / 0.6355 GB Notification: Performance of Templates: time 0.8754/19.42, allocations: 299.7 MB / 6.004 GB, free: 70.49 MB / 0.6355 GB make -j1 -f ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopSimulator.makefile (rm -f ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopSimulator.pipe ; mkfifo ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopSimulator.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopSimulator.pipe >> ../files/ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopSimulator.sim & ./ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopSimulator -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopSimulator.pipe 2>&1)