Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180503.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.CISESim180503,tolerance=1e-07,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180503") translateModel(ThermoPower.Examples.CISE.Simulators.CISESim180503,tolerance=1e-07,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180503") [: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.0009642/0.0009674, allocations: 191.9 kB / 8.137 MB, free: 2.195 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.083/1.083, allocations: 205.2 MB / 213.7 MB, free: 13.85 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.0008555/0.0008555, allocations: 93.27 kB / 261.7 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3142/0.3142, allocations: 48.75 MB / 358.4 MB, free: 53.13 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.915e-06/8.175e-06, allocations: 224 / 424.7 MB, free: 8.152 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1031, allocations: 60.25 MB / 485 MB, free: 11.77 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.251/5.354, allocations: 3.348 GB / 3.822 GB, free: 102.4 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002545/5.354, allocations: 89.25 kB / 3.822 GB, free: 102.3 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.999/8.353, allocations: 0.9912 GB / 4.813 GB, free: 29.33 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0006286/8.354, allocations: 134.8 kB / 4.813 GB, free: 29.32 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.04912/8.403, allocations: 11.13 MB / 4.824 GB, free: 27.07 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/8.403, allocations: 10.38 kB / 4.824 GB, free: 27.07 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01945/8.423, allocations: 2.375 MB / 4.827 GB, free: 26.78 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01894/8.441, allocations: 5.494 MB / 4.832 GB, free: 26.11 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.005053/8.447, allocations: 1.641 MB / 4.834 GB, free: 25.72 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005884/8.452, allocations: 318.2 kB / 4.834 GB, free: 25.71 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0442/8.497, allocations: 21.17 MB / 4.855 GB, free: 25.69 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03414/8.531, allocations: 13.28 MB / 4.868 GB, free: 25.11 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002228/8.531, allocations: 0 / 4.868 GB, free: 25.11 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00439/8.536, allocations: 5.406 kB / 4.868 GB, free: 25.11 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000198/8.536, allocations: 227.1 kB / 4.868 GB, free: 25.1 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1363/8.672, allocations: 78.64 MB / 4.945 GB, free: 13.53 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01626/8.688, allocations: 9.354 MB / 4.954 GB, free: 9.387 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0147/8.703, allocations: 8.664 MB / 4.962 GB, free: 5.414 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4406/9.144, allocations: 124.8 MB / 5.084 GB, free: 39.03 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001304/9.144, allocations: 103.1 kB / 5.084 GB, free: 38.98 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=584): time 1.356e-05/9.144, allocations: 0 / 5.084 GB, free: 38.98 MB / 0.6042 GB Notification: Performance of matching and sorting (n=598): time 0.1258/9.27, allocations: 38.43 MB / 5.122 GB, free: 37.48 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001945/9.27, allocations: 297.1 kB / 5.122 GB, free: 37.19 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00327/9.273, allocations: 1.737 MB / 5.124 GB, free: 36.98 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.003328/9.276, allocations: 28.77 kB / 5.124 GB, free: 36.95 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007512/9.277, allocations: 1.179 MB / 5.125 GB, free: 36.46 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.005041/9.282, allocations: 1.992 MB / 5.127 GB, free: 35.18 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002971/9.285, allocations: 0 / 5.127 GB, free: 35.18 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0004885/9.286, allocations: 0.5227 MB / 5.127 GB, free: 34.86 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01273/9.299, allocations: 8.156 MB / 5.135 GB, free: 34.85 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01495/9.314, allocations: 9.076 MB / 5.144 GB, free: 33.96 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01776/9.331, allocations: 7.277 MB / 5.151 GB, free: 33.85 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.344e-05/9.331, allocations: 2.5 kB / 5.151 GB, free: 33.85 MB / 0.6042 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.06372/9.395, allocations: 25.32 MB / 5.176 GB, free: 33.36 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.001566/9.397, allocations: 5.099 MB / 5.181 GB, free: 27.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-05/9.397, allocations: 19.94 kB / 5.181 GB, free: 27.93 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3452/9.742, allocations: 56.96 MB / 5.237 GB, free: 111.3 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03781/9.78, allocations: 6.843 MB / 5.243 GB, free: 111.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04397/9.824, allocations: 27.06 MB / 5.27 GB, free: 108.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0181/9.842, allocations: 3.233 MB / 5.273 GB, free: 108.6 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002226/9.844, allocations: 474.6 kB / 5.273 GB, free: 108.6 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 8.616e-06/9.844, allocations: 5.188 kB / 5.273 GB, free: 108.6 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.08693/9.931, allocations: 33.75 MB / 5.306 GB, free: 107.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.957e-05/9.931, allocations: 13.09 kB / 5.306 GB, free: 107.8 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1227/10.05, allocations: 50.31 MB / 5.355 GB, free: 103.6 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03933/10.09, allocations: 7.158 MB / 5.362 GB, free: 103.1 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03482/10.13, allocations: 23.87 MB / 5.386 GB, free: 96.22 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0179/10.15, allocations: 3.219 MB / 5.389 GB, free: 93.78 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002626/10.15, allocations: 469.3 kB / 5.389 GB, free: 93.57 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.002704/10.15, allocations: 208.1 kB / 5.39 GB, free: 93.43 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005827/10.16, allocations: 1.916 MB / 5.391 GB, free: 92.56 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2568/10.41, allocations: 34.26 MB / 5.425 GB, free: 105.1 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05878/10.47, allocations: 30.57 MB / 5.455 GB, free: 104.1 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.853e-05/10.47, allocations: 13.06 kB / 5.455 GB, free: 104.1 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001724/10.47, allocations: 32.48 kB / 5.455 GB, free: 104.1 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09649/10.57, allocations: 58.46 MB / 5.512 GB, free: 95.23 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.072e-05/10.57, allocations: 0 / 5.512 GB, free: 95.23 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01996/10.59, allocations: 4.038 MB / 5.516 GB, free: 95.23 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02885/10.62, allocations: 10.17 MB / 5.526 GB, free: 95.04 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003746/10.62, allocations: 359.3 kB / 5.526 GB, free: 95.04 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04895/10.67, allocations: 45.27 MB / 5.57 GB, free: 67.98 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/10.67, allocations: 2.688 kB / 5.57 GB, free: 67.98 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2839/10.96, allocations: 41.59 MB / 5.611 GB, free: 106.4 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007872/10.96, allocations: 2.798 MB / 5.614 GB, free: 106.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003695/10.97, allocations: 54.39 kB / 5.614 GB, free: 106.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01711/10.98, allocations: 3.158 MB / 5.617 GB, free: 106.3 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003271/10.99, allocations: 0.6385 MB / 5.617 GB, free: 106.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003234/10.99, allocations: 419.2 kB / 5.618 GB, free: 106.3 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.001986/10.99, allocations: 1.308 MB / 5.619 GB, free: 106.1 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.02484/11.02, allocations: 4.851 MB / 5.624 GB, free: 106.1 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.01176/11.03, allocations: 3.051 MB / 5.627 GB, free: 105.9 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.05669/11.09, allocations: 34.23 MB / 5.66 GB, free: 105.2 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/11.09, allocations: 0.5 kB / 5.66 GB, free: 105.2 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.02561/11.11, allocations: 17.61 MB / 5.677 GB, free: 103.4 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01098/11.12, allocations: 1.649 MB / 5.679 GB, free: 103.4 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05027/11.17, allocations: 24.74 MB / 5.703 GB, free: 101.2 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009051/11.18, allocations: 4.842 MB / 5.708 GB, free: 100.4 MB / 0.6042 GB Notification: Performance of SimCode: time 1.002e-06/11.18, allocations: 0 / 5.708 GB, free: 100.4 MB / 0.6042 GB Notification: Performance of Templates: time 0.8442/12.03, allocations: 423.9 MB / 6.122 GB, free: 88.8 MB / 0.6042 GB make -j1 -f ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180503.makefile (rm -f ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180503.pipe ; mkfifo ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180503.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180503.pipe >> ../files/ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180503.sim & ./ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180503 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180503.pipe 2>&1)