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.001106/0.001105, allocations: 175 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.839/1.839, allocations: 205.2 MB / 219.4 MB, free: 14.25 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.0009603/0.0009604, allocations: 82.66 kB / 267.5 MB, free: 14.09 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3587/0.3587, allocations: 48.78 MB / 364.3 MB, free: 6.863 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.704e-05/3.706e-05, allocations: 4 kB / 432.5 MB, free: 16.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1501/0.1501, allocations: 60.25 MB / 492.7 MB, free: 4.375 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.1/10.25, allocations: 3.674 GB / 4.155 GB, free: 140 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002382/10.25, allocations: 88.14 kB / 4.155 GB, free: 140 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.277/13.53, allocations: 0.9161 GB / 5.072 GB, free: 25.16 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.203e-06/13.53, allocations: 0 / 5.072 GB, free: 25.16 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002992/13.53, allocations: 112.6 kB / 5.072 GB, free: 25.14 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: 1369 * Number of variables: 1369 Notification: Performance of Generate backend data structure: time 0.02687/13.56, allocations: 6.008 MB / 5.077 GB, free: 21.8 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.543e-05/13.56, allocations: 7.875 kB / 5.077 GB, free: 21.8 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01392/13.57, allocations: 2.074 MB / 5.08 GB, free: 20.39 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01326/13.58, allocations: 4.15 MB / 5.084 GB, free: 16.21 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005146/13.58, allocations: 397.9 kB / 5.084 GB, free: 15.82 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004139/13.59, allocations: 0.5573 MB / 5.084 GB, free: 15.27 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03882/13.63, allocations: 12.94 MB / 5.097 GB, free: 2.227 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002062/13.63, allocations: 4 kB / 5.097 GB, free: 2.223 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003696/13.63, allocations: 219.6 kB / 5.097 GB, free: 2.012 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002633/13.63, allocations: 286.6 kB / 5.098 GB, free: 1.73 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0378/13.67, allocations: 14.89 MB / 5.112 GB, free: 2.828 MB / 0.5573 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.4976/14.17, allocations: 41.28 MB / 5.152 GB, free: 32.69 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03181/14.2, allocations: 21.86 MB / 5.174 GB, free: 37.11 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009468/14.21, allocations: 4.86 MB / 5.179 GB, free: 37.07 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2225/14.43, allocations: 113 MB / 5.289 GB, free: 30.11 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001636/14.43, allocations: 113.1 kB / 5.289 GB, free: 30.06 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=592): time 1.942e-05/14.43, allocations: 3.156 kB / 5.289 GB, free: 30.06 MB / 0.6355 GB Notification: Performance of matching and sorting (n=593): time 0.08473/14.52, allocations: 27.74 MB / 5.316 GB, free: 28.2 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/14.52, allocations: 141.2 kB / 5.316 GB, free: 28.1 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002221/14.52, allocations: 1.437 MB / 5.318 GB, free: 27.93 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.00234/14.52, allocations: 140.5 kB / 5.318 GB, free: 27.89 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009236/14.52, allocations: 1.404 MB / 5.319 GB, free: 27.41 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.003503/14.52, allocations: 2.054 MB / 5.321 GB, free: 26 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009475/14.53, allocations: 112.4 kB / 5.321 GB, free: 25.91 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0005266/14.53, allocations: 0.5198 MB / 5.322 GB, free: 25.51 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00788/14.53, allocations: 4.997 MB / 5.327 GB, free: 23.28 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009171/14.54, allocations: 5.628 MB / 5.332 GB, free: 19.93 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009576/14.55, allocations: 5.638 MB / 5.338 GB, free: 14.96 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-05/14.55, allocations: 0 / 5.338 GB, free: 14.96 MB / 0.6355 GB Notification: Performance of matching and sorting (n=678) (initialization): time 0.4253/14.98, allocations: 16.86 MB / 5.354 GB, free: 123.4 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006995/14.98, allocations: 3.25 MB / 5.357 GB, free: 120 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.28e-05/14.98, allocations: 12.48 kB / 5.357 GB, free: 120 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1662/15.14, allocations: 30.13 MB / 5.387 GB, free: 119.8 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002109/15.15, allocations: 419.1 kB / 5.387 GB, free: 119.8 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04048/15.19, allocations: 22.41 MB / 5.409 GB, free: 117.4 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008129/15.2, allocations: 0.6774 MB / 5.41 GB, free: 117.4 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002028/15.2, allocations: 349.8 kB / 5.41 GB, free: 117.4 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/15.2, allocations: 7.172 kB / 5.41 GB, free: 117.4 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03144/15.23, allocations: 16.31 MB / 5.426 GB, free: 117.2 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.341e-05/15.23, allocations: 7.531 kB / 5.426 GB, free: 117.2 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.129/15.36, allocations: 23.21 MB / 5.449 GB, free: 117 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002491/15.36, allocations: 496 kB / 5.449 GB, free: 117 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03334/15.39, allocations: 21.61 MB / 5.47 GB, free: 113.8 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007507/15.4, allocations: 0.669 MB / 5.471 GB, free: 113.7 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001961/15.4, allocations: 343.3 kB / 5.471 GB, free: 113.7 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 () * 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.002372/15.41, allocations: 373.9 kB / 5.472 GB, free: 113.4 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00139/15.41, allocations: 348.4 kB / 5.472 GB, free: 113.4 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04634/15.45, allocations: 33.76 MB / 5.505 GB, free: 99.37 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001104/15.45, allocations: 91.86 kB / 5.505 GB, free: 99.36 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-05/15.45, allocations: 23.22 kB / 5.505 GB, free: 99.36 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001853/15.45, allocations: 31.64 kB / 5.505 GB, free: 99.36 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07022/15.52, allocations: 51.58 MB / 5.555 GB, free: 55.67 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.116e-05/15.52, allocations: 0 / 5.555 GB, free: 55.67 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007224/15.53, allocations: 1.156 MB / 5.556 GB, free: 54.82 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0146/15.55, allocations: 4.574 MB / 5.561 GB, free: 51.48 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001911/15.55, allocations: 272 kB / 5.561 GB, free: 51.28 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4366/15.99, allocations: 51.09 MB / 5.611 GB, free: 102.6 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/15.99, allocations: 0.75 kB / 5.611 GB, free: 102.6 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04081/16.03, allocations: 20.35 MB / 5.631 GB, free: 101.8 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006045/16.03, allocations: 1.71 MB / 5.633 GB, free: 101.5 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002439/16.03, allocations: 201.8 kB / 5.633 GB, free: 101.5 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006874/16.04, allocations: 0.5481 MB / 5.633 GB, free: 101.5 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002298/16.04, allocations: 462.3 kB / 5.634 GB, free: 101.5 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001386/16.05, allocations: 258.5 kB / 5.634 GB, free: 101.5 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.002197/16.05, allocations: 1.159 MB / 5.635 GB, free: 101.4 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.91e-07/16.05, allocations: 2.531 kB / 5.635 GB, free: 101.4 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.01938/16.07, allocations: 4.113 MB / 5.639 GB, free: 101.4 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 () * 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.01214/16.08, allocations: 2.844 MB / 5.642 GB, free: 101.1 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.04617/16.13, allocations: 19.66 MB / 5.661 GB, free: 100.8 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.632e-05/16.13, allocations: 8.188 kB / 5.661 GB, free: 100.8 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.01704/16.14, allocations: 9.092 MB / 5.67 GB, free: 98.2 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01138/16.15, allocations: 1.895 MB / 5.672 GB, free: 98.14 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03102/16.18, allocations: 14.39 MB / 5.686 GB, free: 94.1 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005265/16.19, allocations: 3.548 MB / 5.689 GB, free: 92.7 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.008574/16.2, allocations: 1.861 MB / 5.691 GB, free: 92.48 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001933/16.2, allocations: 324.1 kB / 5.692 GB, free: 92.45 MB / 0.6355 GB Notification: Performance of SimCode: time 1.222e-06/16.2, allocations: 0 / 5.692 GB, free: 92.45 MB / 0.6355 GB Notification: Performance of Templates: time 0.6786/16.88, allocations: 307.7 MB / 5.992 GB, free: 28.13 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)