Running command: translateModel(OpenHPL.Examples.HPSimple_OpenChannel,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="OpenHPL_OpenHPL.Examples.HPSimple_OpenChannel") Notification: Performance of loadModel(OpenHPL): time 2.466/2.466, allocations: 258 MB / 265.1 MB, free: 5.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.235e-05/2.254e-05, allocations: 0.875 kB / 327.6 MB, free: 10.01 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1094, allocations: 60.24 MB / 387.9 MB, free: 13.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4292/0.5386, allocations: 100.1 MB / 488 MB, free: 6.52 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002431/0.5389, allocations: 86.39 kB / 488.1 MB, free: 6.508 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.298/6.837, allocations: 0.9969 GB / 1.474 GB, free: 1.207 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.038e-06/6.837, allocations: 0 / 1.474 GB, free: 1.207 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.00255/6.839, allocations: 1.022 MB / 1.475 GB, free: 192 kB / 0.573 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 1.002/7.841, allocations: 51.61 MB / 1.525 GB, free: 20.18 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/7.841, allocations: 11.81 kB / 1.525 GB, free: 20.18 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03962/7.881, allocations: 5.418 MB / 1.53 GB, free: 17.12 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0856/7.967, allocations: 30.19 MB / 1.56 GB, free: 12.41 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.01054/7.977, allocations: 8.278 MB / 1.568 GB, free: 5.992 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.03826/8.016, allocations: 3.065 MB / 1.571 GB, free: 5.961 MB / 0.573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 1.4/9.415, allocations: 203 MB / 1.769 GB, free: 73.3 MB / 0.6356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3645/9.78, allocations: 120.8 MB / 1.887 GB, free: 30.66 MB / 0.6356 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.003265/9.783, allocations: 100.2 kB / 1.887 GB, free: 30.61 MB / 0.6356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.03298/9.816, allocations: 34.62 kB / 1.887 GB, free: 30.57 MB / 0.6356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008172/9.825, allocations: 9.187 MB / 1.896 GB, free: 22.43 MB / 0.6356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 2.985/12.81, allocations: 324.1 MB / 2.213 GB, free: 92.39 MB / 0.652 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3319/13.14, allocations: 109.8 MB / 2.32 GB, free: 76.57 MB / 0.652 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.09819/13.24, allocations: 45.2 MB / 2.364 GB, free: 56.07 MB / 0.652 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006574/13.25, allocations: 1.933 MB / 2.366 GB, free: 54.36 MB / 0.652 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007478/13.25, allocations: 0.5461 MB / 2.366 GB, free: 53.8 MB / 0.652 GB Notification: Performance of pre-optimization done (n=5197): time 0.0001349/13.25, allocations: 5.172 kB / 2.366 GB, free: 53.8 MB / 0.652 GB Notification: Performance of matching and sorting (n=5207): time 1.205/14.45, allocations: 187.8 MB / 2.55 GB, free: 77 MB / 0.6676 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003748/14.45, allocations: 0.5935 MB / 2.55 GB, free: 76.86 MB / 0.6676 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007361/14.46, allocations: 3.167 MB / 2.554 GB, free: 76.58 MB / 0.6676 GB Notification: Performance of collectPreVariables (initialization): time 0.01445/14.47, allocations: 29.11 kB / 2.554 GB, free: 76.55 MB / 0.6676 GB Notification: Performance of collectInitialEqns (initialization): time 0.008358/14.48, allocations: 18.26 MB / 2.571 GB, free: 65.5 MB / 0.6676 GB Notification: Performance of collectInitialBindings (initialization): time 0.02938/14.51, allocations: 17.04 MB / 2.588 GB, free: 54.11 MB / 0.6676 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01533/14.53, allocations: 0 / 2.588 GB, free: 54.11 MB / 0.6676 GB Notification: Performance of setup shared object (initialization): time 0.005473/14.53, allocations: 2.251 MB / 2.59 GB, free: 53.27 MB / 0.6676 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.09658/14.63, allocations: 38.57 MB / 2.628 GB, free: 38.99 MB / 0.6676 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1191/14.75, allocations: 41.97 MB / 2.669 GB, free: 22.78 MB / 0.6676 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.6025/15.35, allocations: 48.11 MB / 2.716 GB, free: 93 MB / 0.6676 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001889/15.35, allocations: 6.562 kB / 2.716 GB, free: 93 MB / 0.6676 GB Notification: Performance of matching and sorting (n=5660) (initialization): time 0.2784/15.63, allocations: 87.83 MB / 2.802 GB, free: 91.97 MB / 0.6676 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001281/15.63, allocations: 18.84 kB / 2.802 GB, free: 91.97 MB / 0.6676 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001468/15.63, allocations: 25 kB / 2.802 GB, free: 91.97 MB / 0.6676 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001306/15.63, allocations: 381.8 kB / 2.802 GB, free: 91.96 MB / 0.6676 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1466/15.78, allocations: 13.02 MB / 2.815 GB, free: 91.5 MB / 0.6676 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004717/15.78, allocations: 2.659 MB / 2.817 GB, free: 90.21 MB / 0.6676 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.06594/15.85, allocations: 2.966 MB / 2.82 GB, free: 90.21 MB / 0.6676 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01974/15.87, allocations: 1.856 MB / 2.822 GB, free: 90.21 MB / 0.6676 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.02972/15.9, allocations: 0.6726 MB / 2.823 GB, free: 89.55 MB / 0.6676 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01799/15.92, allocations: 1.792 MB / 2.824 GB, free: 89.55 MB / 0.6676 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2985/16.21, allocations: 102.9 MB / 2.925 GB, free: 24.87 MB / 0.6676 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005209/16.22, allocations: 0.5859 MB / 2.926 GB, free: 24.29 MB / 0.6676 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001487/16.22, allocations: 5.203 kB / 2.926 GB, free: 24.28 MB / 0.6676 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001375/16.22, allocations: 305.4 kB / 2.926 GB, free: 24.28 MB / 0.6676 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 1.073/17.29, allocations: 194.2 MB / 3.115 GB, free: 72.36 MB / 0.6676 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0005272/17.29, allocations: 24 kB / 3.115 GB, free: 72.33 MB / 0.6676 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1059/17.4, allocations: 14.1 MB / 3.129 GB, free: 61.59 MB / 0.6676 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001959/17.4, allocations: 416.6 kB / 3.13 GB, free: 61.22 MB / 0.6676 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.01746/17.42, allocations: 0.9741 MB / 3.131 GB, free: 60.61 MB / 0.6676 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005517/17.42, allocations: 5.161 MB / 3.136 GB, free: 55.43 MB / 0.6676 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.769e-05/17.42, allocations: 41.44 kB / 3.136 GB, free: 55.39 MB / 0.6676 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.9891/18.41, allocations: 171 MB / 3.303 GB, free: 69.57 MB / 0.6676 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004727/18.42, allocations: 2.323 MB / 3.305 GB, free: 69.22 MB / 0.6676 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01815/18.43, allocations: 181.9 kB / 3.305 GB, free: 69.17 MB / 0.6676 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.05427/18.49, allocations: 2.857 MB / 3.308 GB, free: 69.15 MB / 0.6676 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.05031/18.54, allocations: 15.33 MB / 3.323 GB, free: 66.97 MB / 0.6676 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.01894/18.56, allocations: 1.925 MB / 3.325 GB, free: 66.58 MB / 0.6676 GB Notification: Performance of sorting global known variables: time 0.004924/18.56, allocations: 2.241 MB / 3.327 GB, free: 65.7 MB / 0.6676 GB Notification: Performance of sort global known variables: time 9.79e-07/18.56, allocations: 0 / 3.327 GB, free: 65.7 MB / 0.6676 GB Notification: Performance of remove unused functions: time 0.06342/18.63, allocations: 10.5 MB / 3.337 GB, free: 65.69 MB / 0.6676 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.02188/18.65, allocations: 1.228 MB / 3.338 GB, free: 65.06 MB / 0.6676 GB Notification: Performance of simCode: created initialization part: time 0.2139/18.86, allocations: 90.22 MB / 3.426 GB, free: 9.641 MB / 0.6676 GB Notification: Performance of simCode: created event and clocks part: time 3.037e-05/18.86, allocations: 4 kB / 3.426 GB, free: 9.637 MB / 0.6676 GB Notification: Performance of simCode: created simulation system equations: time 0.7364/19.6, allocations: 89.18 MB / 3.514 GB, free: 123 MB / 0.6833 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03369/19.63, allocations: 3.228 MB / 3.517 GB, free: 122.9 MB / 0.6833 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3833/20.02, allocations: 138.8 MB / 3.652 GB, free: 59.76 MB / 0.6833 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1015/20.12, allocations: 34.19 MB / 3.686 GB, free: 34.11 MB / 0.6833 GB Notification: Performance of simCode: alias equations: time 0.1287/20.25, allocations: 29.93 MB / 3.715 GB, free: 12.52 MB / 0.6833 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.5491/20.79, allocations: 4.356 MB / 3.719 GB, free: 83.15 MB / 0.6833 GB Notification: Performance of SimCode: time 2.003e-06/20.79, allocations: 3.875 kB / 3.719 GB, free: 83.15 MB / 0.6833 GB Notification: Performance of Templates: time 2.405/23.2, allocations: 0.5713 GB / 4.29 GB, free: 175.7 MB / 0.7614 GB