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.001378/0.001378, allocations: 181.4 kB / 8.346 MB, free: 0.7148 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.872/1.872, allocations: 205.3 MB / 214.1 MB, free: 14.07 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.0009021/0.000902, allocations: 94.91 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.5938/0.5938, allocations: 48.77 MB / 358.8 MB, free: 53.15 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.302e-05/2.299e-05, allocations: 0 / 425.3 MB, free: 8.238 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2273/0.2274, allocations: 60.26 MB / 485.5 MB, free: 11.83 MB / 379.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.7/10.93, allocations: 3.673 GB / 4.148 GB, free: 99.88 MB / 0.5108 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002534/10.93, allocations: 89.89 kB / 4.148 GB, free: 99.88 MB / 0.5108 GB Notification: Performance of FrontEnd - DAE generated: time 3.426/14.36, allocations: 0.9069 GB / 5.055 GB, free: 23.56 MB / 0.5421 GB Notification: Performance of FrontEnd: time 2.965e-06/14.36, allocations: 3.938 kB / 5.055 GB, free: 23.56 MB / 0.5421 GB Notification: Performance of Transformations before backend: time 0.000532/14.36, allocations: 114.2 kB / 5.055 GB, free: 23.55 MB / 0.5421 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.03189/14.39, allocations: 6.003 MB / 5.061 GB, free: 20.2 MB / 0.5421 GB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/14.39, allocations: 11.75 kB / 5.061 GB, free: 20.2 MB / 0.5421 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01434/14.4, allocations: 2.076 MB / 5.063 GB, free: 19.08 MB / 0.5421 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01336/14.42, allocations: 4.152 MB / 5.067 GB, free: 15.12 MB / 0.5421 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000494/14.42, allocations: 164 kB / 5.067 GB, free: 14.96 MB / 0.5421 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004081/14.42, allocations: 331.8 kB / 5.067 GB, free: 14.64 MB / 0.5421 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0259/14.45, allocations: 11.68 MB / 5.079 GB, free: 2.949 MB / 0.5421 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03065/14.48, allocations: 9.519 MB / 5.088 GB, free: 9.324 MB / 0.5577 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002771/14.48, allocations: 4 kB / 5.088 GB, free: 9.32 MB / 0.5577 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003415/14.48, allocations: 4 kB / 5.088 GB, free: 9.316 MB / 0.5577 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003233/14.48, allocations: 278.6 kB / 5.088 GB, free: 9.043 MB / 0.5577 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.5202/15, allocations: 72.88 MB / 5.159 GB, free: 32.42 MB / 0.5733 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02602/15.03, allocations: 19.47 MB / 5.178 GB, free: 21.73 MB / 0.5733 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01031/15.04, allocations: 4.777 MB / 5.183 GB, free: 21.7 MB / 0.5733 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2085/15.25, allocations: 113 MB / 5.293 GB, free: 29.68 MB / 0.6515 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001888/15.25, allocations: 109.5 kB / 5.293 GB, free: 29.63 MB / 0.6515 GB Notification: Performance of pre-optimization done (n=601): time 8.987e-06/15.25, allocations: 2.625 kB / 5.293 GB, free: 29.63 MB / 0.6515 GB Notification: Performance of matching and sorting (n=602): time 0.0924/15.34, allocations: 30.53 MB / 5.323 GB, free: 23.87 MB / 0.6515 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/15.34, allocations: 137.8 kB / 5.323 GB, free: 23.71 MB / 0.6515 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001892/15.34, allocations: 1.075 MB / 5.324 GB, free: 23.07 MB / 0.6515 GB Notification: Performance of collectPreVariables (initialization): time 0.002409/15.34, allocations: 29.7 kB / 5.324 GB, free: 23.04 MB / 0.6515 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009019/15.34, allocations: 1.417 MB / 5.326 GB, free: 22.34 MB / 0.6515 GB Notification: Performance of collectInitialBindings (initialization): time 0.003961/15.35, allocations: 2.009 MB / 5.328 GB, free: 20.91 MB / 0.6515 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001616/15.35, allocations: 6.297 kB / 5.328 GB, free: 20.91 MB / 0.6515 GB Notification: Performance of setup shared object (initialization): time 0.0007932/15.35, allocations: 0.5182 MB / 5.328 GB, free: 20.54 MB / 0.6515 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008453/15.36, allocations: 5.02 MB / 5.333 GB, free: 18.21 MB / 0.6515 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008772/15.37, allocations: 5.625 MB / 5.339 GB, free: 14.85 MB / 0.6515 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02005/15.39, allocations: 7.267 MB / 5.346 GB, free: 8.621 MB / 0.6515 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.976e-05/15.39, allocations: 4 kB / 5.346 GB, free: 8.617 MB / 0.6515 GB Notification: Performance of matching and sorting (n=689) (initialization): time 0.4077/15.8, allocations: 19.29 MB / 5.365 GB, free: 140.5 MB / 0.6515 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006768/15.8, allocations: 3.193 MB / 5.368 GB, free: 137.2 MB / 0.6515 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.21e-05/15.8, allocations: 8.688 kB / 5.368 GB, free: 137.2 MB / 0.6515 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08423/15.88, allocations: 24.06 MB / 5.391 GB, free: 137.1 MB / 0.6515 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002105/15.88, allocations: 418.7 kB / 5.392 GB, free: 137.1 MB / 0.6515 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05663/15.94, allocations: 25.94 MB / 5.417 GB, free: 134.6 MB / 0.6515 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00735/15.95, allocations: 0.5837 MB / 5.418 GB, free: 134.6 MB / 0.6515 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001549/15.95, allocations: 353 kB / 5.418 GB, free: 134.6 MB / 0.6515 GB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/15.95, allocations: 3.906 kB / 5.418 GB, free: 134.6 MB / 0.6515 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03741/15.99, allocations: 17.5 MB / 5.435 GB, free: 134.4 MB / 0.6515 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.947e-05/15.99, allocations: 11.45 kB / 5.435 GB, free: 134.4 MB / 0.6515 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06151/16.05, allocations: 19.03 MB / 5.454 GB, free: 134.3 MB / 0.6515 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002452/16.05, allocations: 0.4901 MB / 5.454 GB, free: 134.3 MB / 0.6515 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04788/16.1, allocations: 25.23 MB / 5.479 GB, free: 128.4 MB / 0.6515 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007645/16.11, allocations: 0.5771 MB / 5.479 GB, free: 128.4 MB / 0.6515 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001957/16.11, allocations: 348.8 kB / 5.48 GB, free: 128.3 MB / 0.6515 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 (194): * Single equations (assignments): 190 * 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 460} Notification: Performance of prepare postOptimizeDAE: time 0.002168/16.11, allocations: 168.8 kB / 5.48 GB, free: 128.2 MB / 0.6515 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001423/16.11, allocations: 318.1 kB / 5.48 GB, free: 128.2 MB / 0.6515 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05176/16.16, allocations: 34.8 MB / 5.514 GB, free: 114 MB / 0.6515 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001233/16.16, allocations: 86.59 kB / 5.514 GB, free: 114 MB / 0.6515 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.904e-05/16.16, allocations: 18.59 kB / 5.514 GB, free: 114 MB / 0.6515 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001859/16.16, allocations: 29.45 kB / 5.514 GB, free: 114 MB / 0.6515 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07638/16.24, allocations: 52.09 MB / 5.565 GB, free: 71.55 MB / 0.6515 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.508e-05/16.24, allocations: 7.094 kB / 5.565 GB, free: 71.55 MB / 0.6515 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007562/16.25, allocations: 1.184 MB / 5.566 GB, free: 70.68 MB / 0.6515 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01441/16.26, allocations: 4.596 MB / 5.571 GB, free: 67.41 MB / 0.6515 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002054/16.26, allocations: 205.4 kB / 5.571 GB, free: 67.27 MB / 0.6515 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.395/16.66, allocations: 49.57 MB / 5.619 GB, free: 113.4 MB / 0.6515 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.139e-06/16.66, allocations: 4.969 kB / 5.619 GB, free: 113.4 MB / 0.6515 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04218/16.7, allocations: 21.77 MB / 5.641 GB, free: 112.6 MB / 0.6515 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004891/16.71, allocations: 1.682 MB / 5.642 GB, free: 112.3 MB / 0.6515 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001678/16.71, allocations: 114.3 kB / 5.642 GB, free: 112.3 MB / 0.6515 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006516/16.71, allocations: 474.8 kB / 5.643 GB, free: 112.3 MB / 0.6515 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001699/16.72, allocations: 477.8 kB / 5.643 GB, free: 112.3 MB / 0.6515 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009644/16.72, allocations: 259.1 kB / 5.644 GB, free: 112.3 MB / 0.6515 GB Notification: Performance of sorting global known variables: time 0.001393/16.72, allocations: 0.8034 MB / 5.644 GB, free: 112.2 MB / 0.6515 GB Notification: Performance of sort global known variables: time 2.91e-07/16.72, allocations: 2.781 kB / 5.644 GB, free: 112.2 MB / 0.6515 GB Notification: Performance of remove unused functions: time 0.01846/16.74, allocations: 3.827 MB / 5.648 GB, free: 112.2 MB / 0.6515 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 (537): * Single equations (assignments): 500 * 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.01287/16.75, allocations: 3.068 MB / 5.651 GB, free: 111.9 MB / 0.6515 GB Notification: Performance of simCode: created initialization part: time 0.04585/16.8, allocations: 19.61 MB / 5.67 GB, free: 111.6 MB / 0.6515 GB Notification: Performance of simCode: created event and clocks part: time 1.395e-05/16.8, allocations: 8.875 kB / 5.67 GB, free: 111.6 MB / 0.6515 GB Notification: Performance of simCode: created simulation system equations: time 0.01476/16.81, allocations: 8.985 MB / 5.679 GB, free: 109.2 MB / 0.6515 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008962/16.82, allocations: 1.532 MB / 5.68 GB, free: 109.2 MB / 0.6515 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02379/16.84, allocations: 14.2 MB / 5.694 GB, free: 107.2 MB / 0.6515 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003171/16.85, allocations: 3.545 MB / 5.698 GB, free: 105.8 MB / 0.6515 GB Notification: Performance of simCode: alias equations: time 0.006871/16.85, allocations: 1.838 MB / 5.7 GB, free: 105.6 MB / 0.6515 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001692/16.86, allocations: 317 kB / 5.7 GB, free: 105.5 MB / 0.6515 GB Notification: Performance of SimCode: time 8.22e-07/16.86, allocations: 0 / 5.7 GB, free: 105.5 MB / 0.6515 GB Notification: Performance of Templates: time 0.9505/17.81, allocations: 279.1 MB / 5.972 GB, free: 64.52 MB / 0.6515 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)