Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim120501.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.CISE.Simulators.CISESim120501,tolerance=1e-07,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim120501") translateModel(ThermoPower.Examples.CISE.Simulators.CISESim120501,tolerance=1e-07,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim120501") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000944/0.0009441, allocations: 190.5 kB / 8.138 MB, free: 2.18 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.075/1.075, allocations: 205.2 MB / 213.7 MB, free: 13.84 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.0008153/0.0008154, allocations: 95.58 kB / 261.8 MB, free: 13.53 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3104/0.3104, allocations: 48.76 MB / 358.4 MB, free: 53.44 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.691e-06/5.721e-06, allocations: 0 / 424.7 MB, free: 8.266 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1034, allocations: 60.26 MB / 485 MB, free: 11.88 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.239/5.343, allocations: 3.348 GB / 3.822 GB, free: 79.49 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002529/5.343, allocations: 87.05 kB / 3.822 GB, free: 79.42 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.983/8.326, allocations: 0.9896 GB / 4.812 GB, free: 28.18 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0004499/8.327, allocations: 136.7 kB / 4.812 GB, free: 28.16 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: 1223 * Number of variables: 1223 Notification: Performance of Generate backend data structure: time 0.04562/8.372, allocations: 11.13 MB / 4.823 GB, free: 25.9 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/8.372, allocations: 10.62 kB / 4.823 GB, free: 25.9 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01825/8.39, allocations: 2.376 MB / 4.825 GB, free: 25.61 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01743/8.408, allocations: 5.498 MB / 4.83 GB, free: 24.93 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.004759/8.413, allocations: 1.634 MB / 4.832 GB, free: 24.55 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004099/8.417, allocations: 316.7 kB / 4.832 GB, free: 24.54 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03852/8.455, allocations: 21.17 MB / 4.853 GB, free: 24.51 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02622/8.482, allocations: 13.27 MB / 4.866 GB, free: 23.93 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.058e-05/8.482, allocations: 2.344 kB / 4.866 GB, free: 23.93 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001234/8.483, allocations: 5.438 kB / 4.866 GB, free: 23.93 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001967/8.483, allocations: 221.5 kB / 4.866 GB, free: 23.92 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1165/8.6, allocations: 78.45 MB / 4.943 GB, free: 7.027 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01646/8.616, allocations: 9.352 MB / 4.952 GB, free: 0.5234 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.2616/8.878, allocations: 10.93 MB / 4.962 GB, free: 96.24 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2036/9.081, allocations: 124.5 MB / 5.084 GB, free: 33.75 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001056/9.082, allocations: 100 kB / 5.084 GB, free: 33.7 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=584): time 9.017e-06/9.082, allocations: 0 / 5.084 GB, free: 33.7 MB / 0.6042 GB Notification: Performance of matching and sorting (n=598): time 0.09833/9.18, allocations: 38.43 MB / 5.122 GB, free: 32.21 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001545/9.18, allocations: 295.6 kB / 5.122 GB, free: 31.92 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003095/9.183, allocations: 1.735 MB / 5.124 GB, free: 31.7 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.002416/9.186, allocations: 29.42 kB / 5.124 GB, free: 31.67 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006309/9.186, allocations: 1.176 MB / 5.125 GB, free: 31.19 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.003137/9.189, allocations: 1.989 MB / 5.127 GB, free: 29.88 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001031/9.19, allocations: 3.781 kB / 5.127 GB, free: 29.88 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0002601/9.191, allocations: 0.5165 MB / 5.127 GB, free: 29.57 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01079/9.202, allocations: 8.159 MB / 5.135 GB, free: 29.55 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01249/9.214, allocations: 9.072 MB / 5.144 GB, free: 28.66 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01623/9.23, allocations: 7.281 MB / 5.151 GB, free: 28.55 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.835e-05/9.23, allocations: 3.688 kB / 5.151 GB, free: 28.55 MB / 0.6042 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.06231/9.293, allocations: 25.32 MB / 5.176 GB, free: 28.06 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.2129/9.506, allocations: 5.098 MB / 5.181 GB, free: 106.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.737e-05/9.506, allocations: 16.75 kB / 5.181 GB, free: 106.4 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1462/9.652, allocations: 56.94 MB / 5.237 GB, free: 103.8 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03835/9.69, allocations: 6.842 MB / 5.243 GB, free: 103.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04432/9.735, allocations: 27.06 MB / 5.27 GB, free: 100.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0176/9.752, allocations: 3.238 MB / 5.273 GB, free: 100.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001635/9.754, allocations: 477 kB / 5.273 GB, free: 100.3 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 8.586e-06/9.754, allocations: 3.812 kB / 5.273 GB, free: 100.3 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.08566/9.84, allocations: 33.74 MB / 5.306 GB, free: 98.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.611e-05/9.84, allocations: 11.88 kB / 5.306 GB, free: 98.93 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1244/9.964, allocations: 50.31 MB / 5.355 GB, free: 74.89 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0404/10, allocations: 7.179 MB / 5.362 GB, free: 69.63 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2448/10.25, allocations: 23.88 MB / 5.386 GB, free: 105.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01799/10.27, allocations: 3.217 MB / 5.389 GB, free: 105.2 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002497/10.27, allocations: 465.9 kB / 5.389 GB, free: 105.2 MB / 0.6042 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: Plant.ValveOpening:VARIABLE() type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 28 (Plant.HeaderUpper.fluidState.phase,Plant.HeaderLower.fluidState.phase,Plant.Pipe2Valve.fluidState[2].phase,Plant.Pipe2Valve.fluidState[1].phase,Plant.SH.fluidState[5].phase,Plant.SH.fluidState[4].phase,Plant.SH.fluidState[3].phase,Plant.SH.fluidState[2].phase,Plant.SH.fluidState[1].phase,Plant.SH.heatTransfer.dew.phase,Plant.SH.heatTransfer.bubble.phase,Plant.Pipe2SH.fluidState[2].phase,Plant.Pipe2SH.fluidState[1].phase,Plant.Pipe2Drum.fluidState[2].phase,Plant.Pipe2Drum.fluidState[1].phase,Plant.Risers.fluidState[7].phase,Plant.Risers.fluidState[6].phase,Plant.Risers.fluidState[5].phase,Plant.Risers.fluidState[4].phase,Plant.Risers.fluidState[3].phase,Plant.Risers.fluidState[2].phase,Plant.Risers.fluidState[1].phase,Plant.Downcomer.fluidState[2].phase,Plant.Downcomer.fluidState[1].phase,Plant.PressDrop.state.phase,Plant.Valve.fluidState.phase,Plant.Drum.vapourState.phase,Plant.Drum.liquidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (419): * Single equations (assignments): 410 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 3,1 5,5 69,2 13,16 181} Notification: Performance of prepare postOptimizeDAE: time 0.002935/10.27, allocations: 206.3 kB / 5.389 GB, free: 105.1 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005752/10.28, allocations: 1.915 MB / 5.391 GB, free: 105.1 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05651/10.34, allocations: 34.26 MB / 5.425 GB, free: 104.1 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05257/10.39, allocations: 30.56 MB / 5.455 GB, free: 103.1 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.382e-05/10.39, allocations: 15.16 kB / 5.455 GB, free: 103.1 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.872e-05/10.39, allocations: 32.91 kB / 5.455 GB, free: 103.1 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08236/10.47, allocations: 58.47 MB / 5.512 GB, free: 83.52 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-05/10.47, allocations: 3.906 kB / 5.512 GB, free: 83.52 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01858/10.49, allocations: 4.038 MB / 5.516 GB, free: 83.48 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02798/10.52, allocations: 10.16 MB / 5.526 GB, free: 81.62 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002617/10.52, allocations: 374.1 kB / 5.526 GB, free: 81.56 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2528/10.77, allocations: 45.26 MB / 5.57 GB, free: 93.64 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/10.77, allocations: 0 / 5.57 GB, free: 93.64 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.07354/10.85, allocations: 41.51 MB / 5.611 GB, free: 92.75 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006608/10.85, allocations: 2.801 MB / 5.613 GB, free: 92.35 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002398/10.86, allocations: 53.91 kB / 5.614 GB, free: 92.35 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01534/10.87, allocations: 3.157 MB / 5.617 GB, free: 92.32 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001716/10.87, allocations: 0.6385 MB / 5.617 GB, free: 92.32 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001396/10.87, allocations: 419.4 kB / 5.618 GB, free: 92.32 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.001755/10.88, allocations: 1.303 MB / 5.619 GB, free: 92.17 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01761/10.89, allocations: 4.853 MB / 5.624 GB, free: 92.17 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 41 (Plant.Drum.p,Plant.Drum.hl,Plant.Drum.hv,Plant.Drum.Tm,Plant.Drum.y,Plant.Downcomer.htilde[1],Plant.Risers.p,Plant.Risers.htilde[1],Plant.Risers.htilde[2],Plant.Risers.htilde[3],Plant.Risers.htilde[4],Plant.Risers.htilde[5],Plant.Risers.htilde[6],Plant.Pipe2Drum.htilde[1],Plant.Pipe2SH.p,Plant.Pipe2SH.htilde[1],Plant.SH.htilde[1],Plant.SH.htilde[2],Plant.SH.htilde[3],Plant.SH.htilde[4],Plant.Pipe2Valve.p,Plant.Pipe2Valve.htilde[1],Plant.HeaderLower.p,Plant.HeaderLower.h,Plant.HeaderLower.Tm,Plant.HeaderUpper.h,Plant.HeaderUpper.Tm,Plant.DowncomerWall.Tvol[1],Plant.RisersWalls.Tvol[1],Plant.RisersWalls.Tvol[2],Plant.RisersWalls.Tvol[3],Plant.RisersWalls.Tvol[4],Plant.RisersWalls.Tvol[5],Plant.RisersWalls.Tvol[6],Plant.Pipe2DrumWall.Tvol[1],Plant.Pipe2SHWall.Tvol[1],Plant.SHWall.Tvol[1],Plant.SHWall.Tvol[2],Plant.SHWall.Tvol[3],Plant.SHWall.Tvol[4],Plant.Pipe2ValveWall.Tvol[1]) * Number of discrete variables: 66 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.region3boundary,$cse5.region3boundary,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse15.region3boundary,$cse16.region3boundary,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse33.phase,$cse33.region,$cse36.region3boundary,$cse37.region3boundary,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse43.phase,$cse43.region,$cse44.phase,$cse44.region,$cse45.phase,$cse45.region,$cse46.phase,$cse46.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse56.phase,$cse56.region,$cse57.phase,$cse57.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (541): * Single equations (assignments): 470 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 46 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 23 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 18 {(3,77.8%) 6,(1,100.0%) 1,(9,58.0%) 18,(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,(6,72.2%) 11,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 5 {4 4,1 2,1 22,1 12,1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.007943/10.9, allocations: 3.059 MB / 5.627 GB, free: 91.94 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.04582/10.95, allocations: 34.22 MB / 5.66 GB, free: 91.21 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 9.157e-06/10.95, allocations: 10.11 kB / 5.66 GB, free: 91.21 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.02211/10.97, allocations: 17.6 MB / 5.677 GB, free: 87.72 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008786/10.98, allocations: 1.654 MB / 5.679 GB, free: 87.44 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04132/11.02, allocations: 24.74 MB / 5.703 GB, free: 79.31 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008596/11.03, allocations: 4.842 MB / 5.708 GB, free: 78.08 MB / 0.6042 GB Notification: Performance of SimCode: time 5.21e-07/11.03, allocations: 0 / 5.708 GB, free: 78.08 MB / 0.6042 GB Notification: Performance of Templates: time 0.8355/11.86, allocations: 424 MB / 6.122 GB, free: 72.85 MB / 0.6042 GB make -j1 -f ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim120501.makefile (rm -f ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim120501.pipe ; mkfifo ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim120501.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim120501.pipe >> ../files/ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim120501.sim & ./ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim120501 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim120501.pipe 2>&1)