Running command: "" <> buildModelFMU(OpenHPL.Examples.HPSimple_OpenChannel,fileNamePrefix="OpenHPL_OpenHPL_Examples_HPSimple_OpenChannel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(OpenHPL): time 2.357/2.357, allocations: 258 MB / 265.1 MB, free: 5.453 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.234e-05/2.23e-05, allocations: 0 / 327.7 MB, free: 9.898 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1311, allocations: 60.25 MB / 388 MB, free: 13.56 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5253/0.6564, allocations: 100.1 MB / 488.1 MB, free: 6.223 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002849/0.6568, allocations: 87.77 kB / 488.2 MB, free: 6.211 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.386/9.042, allocations: 0.9969 GB / 1.474 GB, free: 0.6055 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.555e-06/9.042, allocations: 0 / 1.474 GB, free: 0.6055 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.8666/9.909, allocations: 1.024 MB / 1.475 GB, free: 28.37 MB / 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 0.3244/10.23, allocations: 51.63 MB / 1.525 GB, free: 19.5 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.309e-05/10.23, allocations: 9.812 kB / 1.525 GB, free: 19.5 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04478/10.28, allocations: 5.413 MB / 1.53 GB, free: 16.43 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1186/10.4, allocations: 30.18 MB / 1.56 GB, free: 11.74 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0179/10.41, allocations: 8.284 MB / 1.568 GB, free: 5.316 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.04289/10.46, allocations: 3.067 MB / 1.571 GB, free: 5.285 MB / 0.573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 1.051/11.51, allocations: 202.9 MB / 1.769 GB, free: 82.62 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4324/11.94, allocations: 120.8 MB / 1.887 GB, free: 40.01 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.004316/11.95, allocations: 97.98 kB / 1.887 GB, free: 39.96 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.04037/11.99, allocations: 30.75 kB / 1.887 GB, free: 39.93 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0106/12, allocations: 9.187 MB / 1.896 GB, free: 31.78 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 2.204/14.2, allocations: 322.4 MB / 2.211 GB, free: 83.81 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3753/14.58, allocations: 109.8 MB / 2.318 GB, free: 61.61 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.1215/14.7, allocations: 45.2 MB / 2.363 GB, free: 29.13 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009321/14.71, allocations: 1.927 MB / 2.364 GB, free: 27.42 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006731/14.71, allocations: 0.5499 MB / 2.365 GB, free: 26.86 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=5197): time 8.036e-05/14.71, allocations: 0 / 2.365 GB, free: 26.86 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5207): time 1.358/16.07, allocations: 187.8 MB / 2.548 GB, free: 77.19 MB / 0.6512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006474/16.07, allocations: 0.5906 MB / 2.549 GB, free: 77.05 MB / 0.6512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01236/16.08, allocations: 3.166 MB / 2.552 GB, free: 75.84 MB / 0.6512 GB Notification: Performance of collectPreVariables (initialization): time 0.02282/16.1, allocations: 25.7 kB / 2.552 GB, free: 75.8 MB / 0.6512 GB Notification: Performance of collectInitialEqns (initialization): time 0.01411/16.12, allocations: 18.26 MB / 2.57 GB, free: 62.61 MB / 0.6512 GB Notification: Performance of collectInitialBindings (initialization): time 0.03873/16.15, allocations: 17.04 MB / 2.587 GB, free: 49.23 MB / 0.6512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.02138/16.18, allocations: 0 / 2.587 GB, free: 49.23 MB / 0.6512 GB Notification: Performance of setup shared object (initialization): time 0.006281/16.18, allocations: 2.25 MB / 2.589 GB, free: 48.14 MB / 0.6512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1144/16.3, allocations: 38.57 MB / 2.626 GB, free: 33.86 MB / 0.6512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1208/16.42, allocations: 41.98 MB / 2.667 GB, free: 13.29 MB / 0.6668 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.7427/17.16, allocations: 49.79 MB / 2.716 GB, free: 110.5 MB / 0.6668 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001997/17.16, allocations: 9.25 kB / 2.716 GB, free: 110.5 MB / 0.6668 GB Notification: Performance of matching and sorting (n=5660) (initialization): time 0.3165/17.48, allocations: 87.82 MB / 2.802 GB, free: 105.9 MB / 0.6668 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001653/17.48, allocations: 16.72 kB / 2.802 GB, free: 105.9 MB / 0.6668 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002401/17.48, allocations: 30.91 kB / 2.802 GB, free: 105.9 MB / 0.6668 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002093/17.48, allocations: 388.1 kB / 2.802 GB, free: 105.9 MB / 0.6668 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1474/17.63, allocations: 13.02 MB / 2.815 GB, free: 105.1 MB / 0.6668 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005753/17.63, allocations: 2.663 MB / 2.818 GB, free: 103.3 MB / 0.6668 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.07417/17.71, allocations: 2.964 MB / 2.82 GB, free: 103.3 MB / 0.6668 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.02364/17.73, allocations: 1.853 MB / 2.822 GB, free: 103 MB / 0.6668 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.041/17.77, allocations: 0.6696 MB / 2.823 GB, free: 102.3 MB / 0.6668 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.318/18.09, allocations: 83.77 MB / 2.905 GB, free: 37.56 MB / 0.6668 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.02414/18.11, allocations: 1.796 MB / 2.906 GB, free: 36.66 MB / 0.6668 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.9969/19.11, allocations: 106.3 MB / 3.01 GB, free: 99.02 MB / 0.6668 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0007495/19.11, allocations: 0.5887 MB / 3.011 GB, free: 99.02 MB / 0.6668 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0007504/19.11, allocations: 0 / 3.011 GB, free: 99.02 MB / 0.6668 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001971/19.11, allocations: 303 kB / 3.011 GB, free: 99.02 MB / 0.6668 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.7387/19.85, allocations: 194.2 MB / 3.201 GB, free: 16.07 MB / 0.6668 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0006882/19.85, allocations: 20 kB / 3.201 GB, free: 16.05 MB / 0.6668 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1824/20.04, allocations: 14.1 MB / 3.215 GB, free: 5.281 MB / 0.6668 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003219/20.04, allocations: 414.4 kB / 3.215 GB, free: 4.922 MB / 0.6668 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.02478/20.06, allocations: 0.9742 MB / 3.216 GB, free: 4.312 MB / 0.6668 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5774/20.64, allocations: 5.18 MB / 3.221 GB, free: 101.6 MB / 0.6668 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.955e-05/20.64, allocations: 38.81 kB / 3.221 GB, free: 101.6 MB / 0.6668 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5207/21.16, allocations: 167.2 MB / 3.384 GB, free: 64.98 MB / 0.6668 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006463/21.17, allocations: 2.32 MB / 3.387 GB, free: 63.85 MB / 0.6668 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.02709/21.2, allocations: 184 kB / 3.387 GB, free: 63.71 MB / 0.6668 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.07567/21.27, allocations: 2.854 MB / 3.39 GB, free: 62.28 MB / 0.6668 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.07121/21.34, allocations: 15.32 MB / 3.404 GB, free: 53.84 MB / 0.6668 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.02255/21.37, allocations: 1.93 MB / 3.406 GB, free: 52.25 MB / 0.6668 GB Notification: Performance of sorting global known variables: time 0.005895/21.37, allocations: 2.242 MB / 3.409 GB, free: 50.26 MB / 0.6668 GB Notification: Performance of sort global known variables: time 1.623e-06/21.37, allocations: 4 kB / 3.409 GB, free: 50.26 MB / 0.6668 GB Notification: Performance of remove unused functions: time 0.08086/21.45, allocations: 10.5 MB / 3.419 GB, free: 39.77 MB / 0.6668 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 1.155/22.61, allocations: 180 MB / 3.595 GB, free: 83.84 MB / 0.6668 GB Notification: Performance of simCode: created initialization part: time 0.2573/22.87, allocations: 90.22 MB / 3.683 GB, free: 28.28 MB / 0.6668 GB Notification: Performance of simCode: created event and clocks part: time 2.748e-05/22.87, allocations: 4 kB / 3.683 GB, free: 28.27 MB / 0.6668 GB Notification: Performance of simCode: created simulation system equations: time 0.7869/23.65, allocations: 88.14 MB / 3.769 GB, free: 110.4 MB / 0.6668 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04724/23.7, allocations: 3.232 MB / 3.772 GB, free: 110.3 MB / 0.6668 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5358/24.24, allocations: 154.5 MB / 3.923 GB, free: 53.52 MB / 0.6668 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1188/24.35, allocations: 34.19 MB / 3.956 GB, free: 27.88 MB / 0.6668 GB Notification: Performance of simCode: alias equations: time 1.36/25.72, allocations: 29.94 MB / 3.985 GB, free: 80.42 MB / 0.6669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1376/25.85, allocations: 28.29 MB / 4.013 GB, free: 80.41 MB / 0.6669 GB Notification: Performance of SimCode: time 1.593e-06/25.85, allocations: 0 / 4.013 GB, free: 80.41 MB / 0.6669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.683/30.54, allocations: 0.9252 GB / 4.938 GB, free: 85.54 MB / 0.7453 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002366/30.54, allocations: 152.2 kB / 4.938 GB, free: 85.35 MB / 0.7453 GB Notification: Performance of buildModelFMU: Generate platform static: time 65.89/96.43, allocations: 0 / 4.938 GB, free: 85.35 MB / 0.7453 GB