Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180504.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.CISESim180504,tolerance=1e-07,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180504") translateModel(ThermoPower.Examples.CISE.Simulators.CISESim180504,tolerance=1e-07,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180504") [: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.0009808/0.0009809, allocations: 189.5 kB / 8.136 MB, free: 2.105 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.094/1.094, 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.0008849/0.0008849, allocations: 103.8 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.3157/0.3157, allocations: 48.75 MB / 358.4 MB, free: 53.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.721e-06/5.811e-06, allocations: 0 / 424.7 MB, free: 8.211 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1104, allocations: 60.26 MB / 485 MB, free: 11.82 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.237/5.347, allocations: 3.348 GB / 3.822 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001912/5.348, allocations: 88.61 kB / 3.822 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.863/8.211, allocations: 0.9913 GB / 4.813 GB, free: 28.54 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0005203/8.211, allocations: 132.8 kB / 4.814 GB, free: 28.52 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.04517/8.257, allocations: 11.13 MB / 4.824 GB, free: 26.28 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/8.257, allocations: 10.88 kB / 4.824 GB, free: 26.28 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01768/8.274, allocations: 2.377 MB / 4.827 GB, free: 25.99 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0167/8.291, allocations: 5.492 MB / 4.832 GB, free: 25.32 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.004424/8.295, allocations: 1.638 MB / 4.834 GB, free: 24.93 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003402/8.299, allocations: 313 kB / 4.834 GB, free: 24.92 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03444/8.333, allocations: 21.17 MB / 4.855 GB, free: 24.9 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01975/8.353, allocations: 13.28 MB / 4.868 GB, free: 24.32 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.954e-05/8.353, allocations: 6 kB / 4.868 GB, free: 24.32 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001163/8.354, allocations: 6.219 kB / 4.868 GB, free: 24.32 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001547/8.355, allocations: 221.5 kB / 4.868 GB, free: 24.31 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1095/8.464, allocations: 78.71 MB / 4.945 GB, free: 13.53 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0134/8.477, allocations: 9.359 MB / 4.954 GB, free: 9.383 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0117/8.489, allocations: 8.657 MB / 4.962 GB, free: 5.41 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4146/8.904, allocations: 124.5 MB / 5.084 GB, free: 40.83 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001032/8.904, allocations: 100.8 kB / 5.084 GB, free: 40.78 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=584): time 8.256e-06/8.904, allocations: 5.031 kB / 5.084 GB, free: 40.78 MB / 0.6042 GB Notification: Performance of matching and sorting (n=598): time 0.09423/8.998, allocations: 38.44 MB / 5.122 GB, free: 39.29 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001381/8.998, allocations: 295.4 kB / 5.122 GB, free: 39 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002464/9.001, allocations: 1.741 MB / 5.124 GB, free: 38.78 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.002384/9.003, allocations: 33.52 kB / 5.124 GB, free: 38.75 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006308/9.004, allocations: 1.176 MB / 5.125 GB, free: 38.27 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.003294/9.007, allocations: 1.986 MB / 5.127 GB, free: 37 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00144/9.009, allocations: 0 / 5.127 GB, free: 37 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0003599/9.009, allocations: 0.5181 MB / 5.127 GB, free: 36.68 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01185/9.021, allocations: 8.162 MB / 5.135 GB, free: 36.66 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01382/9.035, allocations: 9.068 MB / 5.144 GB, free: 35.78 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01628/9.051, allocations: 7.284 MB / 5.151 GB, free: 35.67 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.42e-05/9.051, allocations: 2.594 kB / 5.151 GB, free: 35.67 MB / 0.6042 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.05393/9.105, allocations: 25.33 MB / 5.176 GB, free: 35.18 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.001579/9.107, allocations: 5.095 MB / 5.181 GB, free: 29.74 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.926e-05/9.107, allocations: 13.66 kB / 5.181 GB, free: 29.74 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3468/9.453, allocations: 56.94 MB / 5.236 GB, free: 112.1 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03833/9.492, allocations: 6.847 MB / 5.243 GB, free: 112.1 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04138/9.533, allocations: 27.06 MB / 5.27 GB, free: 109.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01793/9.551, allocations: 3.239 MB / 5.273 GB, free: 109.5 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002944/9.554, allocations: 472.6 kB / 5.273 GB, free: 109.5 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.034e-05/9.554, allocations: 4.344 kB / 5.273 GB, free: 109.5 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.08508/9.639, allocations: 33.75 MB / 5.306 GB, free: 108.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.605e-05/9.639, allocations: 13.03 kB / 5.306 GB, free: 108.9 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1183/9.758, allocations: 50.31 MB / 5.355 GB, free: 104.7 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03976/9.798, allocations: 7.163 MB / 5.362 GB, free: 104.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03534/9.833, allocations: 23.87 MB / 5.386 GB, free: 98.18 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0184/9.851, allocations: 3.218 MB / 5.389 GB, free: 95.73 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003667/9.855, allocations: 465 kB / 5.389 GB, free: 95.53 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.003782/9.859, allocations: 207.4 kB / 5.389 GB, free: 95.38 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006439/9.865, allocations: 1.916 MB / 5.391 GB, free: 94.52 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06682/9.932, allocations: 34.26 MB / 5.425 GB, free: 72.58 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2657/10.2, allocations: 31.99 MB / 5.456 GB, free: 109.5 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.436e-05/10.2, allocations: 12 kB / 5.456 GB, free: 109.5 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.23e-05/10.2, allocations: 33.98 kB / 5.456 GB, free: 109.5 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09511/10.29, allocations: 58.46 MB / 5.513 GB, free: 100.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.379e-05/10.29, allocations: 5.625 kB / 5.513 GB, free: 100.7 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01938/10.31, allocations: 4.042 MB / 5.517 GB, free: 100.7 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02848/10.34, allocations: 10.17 MB / 5.527 GB, free: 100.5 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003543/10.34, allocations: 362.9 kB / 5.527 GB, free: 100.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0497/10.39, allocations: 45.27 MB / 5.572 GB, free: 75.07 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/10.39, allocations: 2.812 kB / 5.572 GB, free: 75.07 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0823/10.48, allocations: 41.52 MB / 5.612 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007488/10.48, allocations: 2.795 MB / 5.615 GB, free: 57.89 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003728/10.49, allocations: 53.81 kB / 5.615 GB, free: 57.87 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01715/10.51, allocations: 3.149 MB / 5.618 GB, free: 57.84 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002811/10.51, allocations: 0.6491 MB / 5.619 GB, free: 57.78 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002635/10.51, allocations: 416.5 kB / 5.619 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.201/10.71, allocations: 1.303 MB / 5.62 GB, free: 108.3 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01841/10.73, allocations: 4.853 MB / 5.625 GB, free: 108.3 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.00783/10.74, allocations: 3.057 MB / 5.628 GB, free: 108.1 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.04595/10.78, allocations: 34.23 MB / 5.661 GB, free: 107.4 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/10.78, allocations: 4.125 kB / 5.661 GB, free: 107.4 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.02164/10.81, allocations: 17.61 MB / 5.679 GB, free: 105.5 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008914/10.81, allocations: 1.64 MB / 5.68 GB, free: 105.5 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04056/10.86, allocations: 24.74 MB / 5.704 GB, free: 103.4 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008193/10.86, allocations: 4.846 MB / 5.709 GB, free: 102.6 MB / 0.6042 GB Notification: Performance of SimCode: time 1.032e-06/10.86, allocations: 2.719 kB / 5.709 GB, free: 102.6 MB / 0.6042 GB Notification: Performance of Templates: time 0.8276/11.69, allocations: 423.9 MB / 6.123 GB, free: 88.12 MB / 0.6042 GB make -j1 -f ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180504.makefile (rm -f ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180504.pipe ; mkfifo ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180504.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180504.pipe >> ../files/ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180504.sim & ./ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180504 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim180504.pipe 2>&1)