Running command: translateModel(OpenHPL.Examples.HPSimple_OpenChannel,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="OpenHPL_OpenHPL.Examples.HPSimple_OpenChannel") [: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 loadModel(OpenHPL): time 2.271/2.271, allocations: 258 MB / 265 MB, free: 15.94 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.34e-05/1.338e-05, allocations: 0 / 327.4 MB, free: 1.488 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2622/0.2622, allocations: 60.24 MB / 387.7 MB, free: 7.047 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1685/0.4308, allocations: 100.1 MB / 487.7 MB, free: 3.531 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002774/0.4311, allocations: 83.95 kB / 487.8 MB, free: 3.449 MB / 410.7 MB Notification: Performance of FrontEnd: time 5.968/6.4, allocations: 0.9429 GB / 1.419 GB, free: 22.19 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.002363/6.402, allocations: 1.021 MB / 1.42 GB, free: 22.19 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: 19147 * Number of variables: 19147 Notification: Performance of Generate backend data structure: time 0.3027/6.705, allocations: 51.56 MB / 1.471 GB, free: 5.785 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/6.705, allocations: 7.156 kB / 1.471 GB, free: 5.785 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04592/6.751, allocations: 5.395 MB / 1.476 GB, free: 2.723 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.09466/6.845, allocations: 30.21 MB / 1.505 GB, free: 8.363 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.01764/6.863, allocations: 8.554 MB / 1.514 GB, free: 15.48 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.03976/6.903, allocations: 3.036 MB / 1.517 GB, free: 12.48 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.8231/7.726, allocations: 204.5 MB / 1.716 GB, free: 62.75 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6393/8.365, allocations: 125.5 MB / 1.839 GB, free: 91.05 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.003525/8.369, allocations: 105.5 kB / 1.839 GB, free: 91.05 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.03232/8.401, allocations: 0 / 1.839 GB, free: 91.05 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006788/8.408, allocations: 9.425 MB / 1.848 GB, free: 90.7 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.56/9.968, allocations: 320.1 MB / 2.161 GB, free: 86.2 MB / 0.6043 GB Notification: Performance of preOpt comSubExp (simulation): time 0.1207/10.09, allocations: 50.25 MB / 2.21 GB, free: 66.62 MB / 0.6043 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.09925/10.19, allocations: 45.67 MB / 2.255 GB, free: 24.91 MB / 0.6043 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005927/10.19, allocations: 1.927 MB / 2.257 GB, free: 23.2 MB / 0.6043 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004398/10.19, allocations: 0.5571 MB / 2.257 GB, free: 22.64 MB / 0.6043 GB Notification: Performance of pre-optimization done (n=5197): time 6.703e-05/10.19, allocations: 1.875 kB / 2.257 GB, free: 22.64 MB / 0.6043 GB Notification: Performance of matching and sorting (n=5207): time 0.8367/11.03, allocations: 188.9 MB / 2.442 GB, free: 67.18 MB / 0.6043 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005351/11.03, allocations: 0.5998 MB / 2.442 GB, free: 67.04 MB / 0.6043 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009128/11.04, allocations: 3.268 MB / 2.445 GB, free: 65.82 MB / 0.6043 GB Notification: Performance of collectPreVariables (initialization): time 0.0151/11.06, allocations: 31.14 kB / 2.445 GB, free: 65.79 MB / 0.6043 GB Notification: Performance of collectInitialEqns (initialization): time 0.009255/11.07, allocations: 17.92 MB / 2.463 GB, free: 52.92 MB / 0.6043 GB Notification: Performance of collectInitialBindings (initialization): time 0.03266/11.1, allocations: 17.03 MB / 2.48 GB, free: 38.21 MB / 0.6043 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01586/11.11, allocations: 0 / 2.48 GB, free: 38.21 MB / 0.6043 GB Notification: Performance of setup shared object (initialization): time 0.00558/11.12, allocations: 2.252 MB / 2.482 GB, free: 36.47 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1061/11.23, allocations: 40.48 MB / 2.521 GB, free: 4.957 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3608/11.59, allocations: 42.4 MB / 2.563 GB, free: 96.79 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1153/11.7, allocations: 45.74 MB / 2.607 GB, free: 92.99 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001949/11.7, allocations: 9.5 kB / 2.607 GB, free: 92.99 MB / 0.6043 GB Notification: Performance of matching and sorting (n=5660) (initialization): time 0.2693/11.97, allocations: 89.36 MB / 2.695 GB, free: 47.14 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/11.97, allocations: 4 kB / 2.695 GB, free: 47.14 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001776/11.97, allocations: 24 kB / 2.695 GB, free: 47.12 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00141/11.97, allocations: 387.6 kB / 2.695 GB, free: 46.78 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1001/12.07, allocations: 12.43 MB / 2.707 GB, free: 37.44 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005184/12.08, allocations: 2.608 MB / 2.71 GB, free: 34.95 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.04973/12.13, allocations: 2.299 MB / 2.712 GB, free: 33.75 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.02009/12.15, allocations: 1.857 MB / 2.714 GB, free: 32.32 MB / 0.6043 GB Warning: Assuming fixed start value for the following 3 variables: pipe1.M:VARIABLE(unit = "kg.m/s" ) "Water momentum" type: Real surgeTank.Vdot:VARIABLE(start = surgeTank.Vdot_0 unit = "m3/s" ) "Water flow rate" type: Real pipe.Vdot:VARIABLE(start = pipe.Vdot_0 unit = "m3/s" ) "Flow rate" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.surgeTank.v:DUMMY_DER(fixed = false ) "Water velocity" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 114 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5642): * Single equations (assignments): 5641 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 18} Notification: Performance of prepare postOptimizeDAE: time 0.03177/12.18, allocations: 0.6761 MB / 2.714 GB, free: 31.64 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.02044/12.2, allocations: 1.794 MB / 2.716 GB, free: 30.75 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.636/12.84, allocations: 110.6 MB / 2.824 GB, free: 84.36 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0006001/12.84, allocations: 0.5888 MB / 2.825 GB, free: 84.36 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001849/12.84, allocations: 1.562 kB / 2.825 GB, free: 84.36 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001452/12.84, allocations: 306.4 kB / 2.825 GB, free: 84.36 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.8702/13.71, allocations: 199.3 MB / 3.02 GB, free: 69.58 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000351/13.71, allocations: 27.44 kB / 3.02 GB, free: 69.58 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1188/13.83, allocations: 13.54 MB / 3.033 GB, free: 69.21 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001904/13.83, allocations: 411.1 kB / 3.033 GB, free: 69.2 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.01627/13.85, allocations: 0.9876 MB / 3.034 GB, free: 69.2 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006047/13.85, allocations: 5.12 MB / 3.039 GB, free: 65.44 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.649e-05/13.85, allocations: 35.98 kB / 3.039 GB, free: 65.43 MB / 0.6043 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.4213/14.27, allocations: 169.8 MB / 3.205 GB, free: 17.8 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004521/14.28, allocations: 2.122 MB / 3.207 GB, free: 16.81 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01883/14.3, allocations: 188.8 kB / 3.207 GB, free: 16.66 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.04886/14.35, allocations: 2.226 MB / 3.21 GB, free: 15.47 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.04323/14.39, allocations: 11.3 MB / 3.221 GB, free: 8.098 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.01642/14.41, allocations: 1.924 MB / 3.223 GB, free: 6.512 MB / 0.6043 GB Notification: Performance of sort global known variables: time 0.004621/14.41, allocations: 2.312 MB / 3.225 GB, free: 4.453 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.1119/14.52, allocations: 13.52 MB / 3.238 GB, free: 0 / 0.6043 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 104 * Number of states: 206 (reservoir.m,tail.m,pipe.Vdot,openChannel.openChannel.U[1],openChannel.openChannel.U[2],openChannel.openChannel.U[3],openChannel.openChannel.U[4],openChannel.openChannel.U[5],openChannel.openChannel.U[6],openChannel.openChannel.U[7],openChannel.openChannel.U[8],openChannel.openChannel.U[9],openChannel.openChannel.U[10],openChannel.openChannel.U[11],openChannel.openChannel.U[12],openChannel.openChannel.U[13],openChannel.openChannel.U[14],openChannel.openChannel.U[15],openChannel.openChannel.U[16],openChannel.openChannel.U[17],openChannel.openChannel.U[18],openChannel.openChannel.U[19],openChannel.openChannel.U[20],openChannel.openChannel.U[21],openChannel.openChannel.U[22],openChannel.openChannel.U[23],openChannel.openChannel.U[24],openChannel.openChannel.U[25],openChannel.openChannel.U[26],openChannel.openChannel.U[27],openChannel.openChannel.U[28],openChannel.openChannel.U[29],openChannel.openChannel.U[30],openChannel.openChannel.U[31],openChannel.openChannel.U[32],openChannel.openChannel.U[33],openChannel.openChannel.U[34],openChannel.openChannel.U[35],openChannel.openChannel.U[36],openChannel.openChannel.U[37],openChannel.openChannel.U[38],openChannel.openChannel.U[39],openChannel.openChannel.U[40],openChannel.openChannel.U[41],openChannel.openChannel.U[42],openChannel.openChannel.U[43],openChannel.openChannel.U[44],openChannel.openChannel.U[45],openChannel.openChannel.U[46],openChannel.openChannel.U[47],openChannel.openChannel.U[48],openChannel.openChannel.U[49],openChannel.openChannel.U[50],openChannel.openChannel.U[51],openChannel.openChannel.U[52],openChannel.openChannel.U[53],openChannel.openChannel.U[54],openChannel.openChannel.U[55],openChannel.openChannel.U[56],openChannel.openChannel.U[57],openChannel.openChannel.U[58],openChannel.openChannel.U[59],openChannel.openChannel.U[60],openChannel.openChannel.U[61],openChannel.openChannel.U[62],openChannel.openChannel.U[63],openChannel.openChannel.U[64],openChannel.openChannel.U[65],openChannel.openChannel.U[66],openChannel.openChannel.U[67],openChannel.openChannel.U[68],openChannel.openChannel.U[69],openChannel.openChannel.U[70],openChannel.openChannel.U[71],openChannel.openChannel.U[72],openChannel.openChannel.U[73],openChannel.openChannel.U[74],openChannel.openChannel.U[75],openChannel.openChannel.U[76],openChannel.openChannel.U[77],openChannel.openChannel.U[78],openChannel.openChannel.U[79],openChannel.openChannel.U[80],openChannel.openChannel.U[81],openChannel.openChannel.U[82],openChannel.openChannel.U[83],openChannel.openChannel.U[84],openChannel.openChannel.U[85],openChannel.openChannel.U[86],openChannel.openChannel.U[87],openChannel.openChannel.U[88],openChannel.openChannel.U[89],openChannel.openChannel.U[90],openChannel.openChannel.U[91],openChannel.openChannel.U[92],openChannel.openChannel.U[93],openChannel.openChannel.U[94],openChannel.openChannel.U[95],openChannel.openChannel.U[96],openChannel.openChannel.U[97],openChannel.openChannel.U[98],openChannel.openChannel.U[99],openChannel.openChannel.U[100],openChannel.openChannel.U[101],openChannel.openChannel.U[102],openChannel.openChannel.U[103],openChannel.openChannel.U[104],openChannel.openChannel.U[105],openChannel.openChannel.U[106],openChannel.openChannel.U[107],openChannel.openChannel.U[108],openChannel.openChannel.U[109],openChannel.openChannel.U[110],openChannel.openChannel.U[111],openChannel.openChannel.U[112],openChannel.openChannel.U[113],openChannel.openChannel.U[114],openChannel.openChannel.U[115],openChannel.openChannel.U[116],openChannel.openChannel.U[117],openChannel.openChannel.U[118],openChannel.openChannel.U[119],openChannel.openChannel.U[120],openChannel.openChannel.U[121],openChannel.openChannel.U[122],openChannel.openChannel.U[123],openChannel.openChannel.U[124],openChannel.openChannel.U[125],openChannel.openChannel.U[126],openChannel.openChannel.U[127],openChannel.openChannel.U[128],openChannel.openChannel.U[129],openChannel.openChannel.U[130],openChannel.openChannel.U[131],openChannel.openChannel.U[132],openChannel.openChannel.U[133],openChannel.openChannel.U[134],openChannel.openChannel.U[135],openChannel.openChannel.U[136],openChannel.openChannel.U[137],openChannel.openChannel.U[138],openChannel.openChannel.U[139],openChannel.openChannel.U[140],openChannel.openChannel.U[141],openChannel.openChannel.U[142],openChannel.openChannel.U[143],openChannel.openChannel.U[144],openChannel.openChannel.U[145],openChannel.openChannel.U[146],openChannel.openChannel.U[147],openChannel.openChannel.U[148],openChannel.openChannel.U[149],openChannel.openChannel.U[150],openChannel.openChannel.U[151],openChannel.openChannel.U[152],openChannel.openChannel.U[153],openChannel.openChannel.U[154],openChannel.openChannel.U[155],openChannel.openChannel.U[156],openChannel.openChannel.U[157],openChannel.openChannel.U[158],openChannel.openChannel.U[159],openChannel.openChannel.U[160],openChannel.openChannel.U[161],openChannel.openChannel.U[162],openChannel.openChannel.U[163],openChannel.openChannel.U[164],openChannel.openChannel.U[165],openChannel.openChannel.U[166],openChannel.openChannel.U[167],openChannel.openChannel.U[168],openChannel.openChannel.U[169],openChannel.openChannel.U[170],openChannel.openChannel.U[171],openChannel.openChannel.U[172],openChannel.openChannel.U[173],openChannel.openChannel.U[174],openChannel.openChannel.U[175],openChannel.openChannel.U[176],openChannel.openChannel.U[177],openChannel.openChannel.U[178],openChannel.openChannel.U[179],openChannel.openChannel.U[180],openChannel.openChannel.U[181],openChannel.openChannel.U[182],openChannel.openChannel.U[183],openChannel.openChannel.U[184],openChannel.openChannel.U[185],openChannel.openChannel.U[186],openChannel.openChannel.U[187],openChannel.openChannel.U[188],openChannel.openChannel.U[189],openChannel.openChannel.U[190],openChannel.openChannel.U[191],openChannel.openChannel.U[192],openChannel.openChannel.U[193],openChannel.openChannel.U[194],openChannel.openChannel.U[195],openChannel.openChannel.U[196],openChannel.openChannel.U[197],openChannel.openChannel.U[198],openChannel.openChannel.U[199],openChannel.openChannel.U[200],surgeTank.m,surgeTank.Vdot,pipe1.M) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6397): * Single equations (assignments): 6394 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 18} Notification: Performance of Backend phase and start with SimCode phase: time 0.2702/14.79, allocations: 1.179 MB / 3.239 GB, free: 91.61 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 0.2089/15, allocations: 91.31 MB / 3.328 GB, free: 86.97 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 2.136e-05/15, allocations: 6.312 kB / 3.328 GB, free: 86.97 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 0.1831/15.19, allocations: 85.94 MB / 3.412 GB, free: 40.19 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03436/15.22, allocations: 2.976 MB / 3.415 GB, free: 38.08 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.015/16.23, allocations: 146.4 MB / 3.558 GB, free: 58.86 MB / 0.6044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1819/16.42, allocations: 39.92 MB / 3.597 GB, free: 56.79 MB / 0.6044 GB Notification: Performance of SimCode: time 1.831e-06/16.42, allocations: 2.844 kB / 3.597 GB, free: 56.79 MB / 0.6044 GB Notification: Performance of Templates: time 2.93/19.35, allocations: 0.7383 GB / 4.335 GB, free: 95.74 MB / 0.6671 GB