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.403/2.403, allocations: 258 MB / 271.8 MB, free: 13.63 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.389e-05/3.392e-05, allocations: 6.344 kB / 335.8 MB, free: 1.957 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1194, allocations: 60.23 MB / 396 MB, free: 5.598 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5175/0.6369, allocations: 100.8 MB / 496.9 MB, free: 15.11 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004563/0.6374, allocations: 95 kB / 497 MB, free: 15.05 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.5/10.14, allocations: 1.003 GB / 1.489 GB, free: 45.5 MB / 0.5732 GB Notification: Performance of FrontEnd: time 4.198e-06/10.14, allocations: 7.188 kB / 1.489 GB, free: 45.49 MB / 0.5732 GB Notification: Performance of Transformations before backend: time 0.003269/10.14, allocations: 1.028 MB / 1.49 GB, free: 45.48 MB / 0.5732 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.3199/10.46, allocations: 51.62 MB / 1.54 GB, free: 29.74 MB / 0.5732 GB Notification: Performance of prepare preOptimizeDAE: time 5.901e-05/10.46, allocations: 9.75 kB / 1.54 GB, free: 29.74 MB / 0.5732 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.06255/10.52, allocations: 9.541 MB / 1.549 GB, free: 29.21 MB / 0.5732 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04875/10.57, allocations: 5.417 MB / 1.555 GB, free: 26.15 MB / 0.5732 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1058/10.68, allocations: 30.19 MB / 1.584 GB, free: 19.96 MB / 0.5732 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.01616/10.69, allocations: 10.02 MB / 1.594 GB, free: 11.78 MB / 0.5732 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.04688/10.74, allocations: 5.162 MB / 1.599 GB, free: 8.516 MB / 0.5732 GB Notification: Performance of preOpt clockPartitioning (simulation): time 1.113/11.85, allocations: 135.2 MB / 1.731 GB, free: 58.1 MB / 0.6044 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.004064/11.86, allocations: 92.8 kB / 1.731 GB, free: 58.09 MB / 0.6044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.03999/11.9, allocations: 2.092 MB / 1.733 GB, free: 56.44 MB / 0.6044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01078/11.91, allocations: 9.189 MB / 1.742 GB, free: 54.48 MB / 0.6044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.251/13.16, allocations: 201.2 MB / 1.939 GB, free: 86.93 MB / 0.6357 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.693/14.85, allocations: 333.9 MB / 2.265 GB, free: 48.12 MB / 0.6357 GB Notification: Performance of preOpt comSubExp (simulation): time 0.5787/15.43, allocations: 123 MB / 2.385 GB, free: 7.523 MB / 0.6669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00993/15.44, allocations: 1.926 MB / 2.387 GB, free: 5.492 MB / 0.6669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008278/15.44, allocations: 0.5566 MB / 2.387 GB, free: 4.926 MB / 0.6669 GB Notification: Performance of pre-optimization done (n=5197): time 8.16e-05/15.44, allocations: 0 / 2.387 GB, free: 4.926 MB / 0.6669 GB Notification: Performance of matching and sorting (n=5207): time 1.585/17.03, allocations: 238.3 MB / 2.62 GB, free: 18.51 MB / 0.6669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004678/17.03, allocations: 0.5916 MB / 2.621 GB, free: 17.89 MB / 0.6669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009177/17.04, allocations: 3.352 MB / 2.624 GB, free: 15.06 MB / 0.6669 GB Notification: Performance of collectPreVariables (initialization): time 0.01902/17.06, allocations: 0.8493 MB / 2.625 GB, free: 14.2 MB / 0.6669 GB Notification: Performance of collectInitialEqns (initialization): time 0.5653/17.62, allocations: 18.27 MB / 2.643 GB, free: 107 MB / 0.6669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0387/17.66, allocations: 17.73 MB / 2.66 GB, free: 95.59 MB / 0.6669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.02062/17.68, allocations: 0.8614 MB / 2.661 GB, free: 95.59 MB / 0.6669 GB Notification: Performance of setup shared object (initialization): time 0.006538/17.69, allocations: 2.251 MB / 2.663 GB, free: 95.19 MB / 0.6669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1367/17.83, allocations: 41.19 MB / 2.703 GB, free: 95.09 MB / 0.6669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1427/17.97, allocations: 44.85 MB / 2.747 GB, free: 80.15 MB / 0.6669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1457/18.11, allocations: 47.83 MB / 2.794 GB, free: 61.61 MB / 0.6669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000356/18.11, allocations: 7.875 kB / 2.794 GB, free: 61.61 MB / 0.6669 GB Notification: Performance of matching and sorting (n=5660) (initialization): time 0.9179/19.03, allocations: 97.36 MB / 2.889 GB, free: 89.37 MB / 0.6669 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001578/19.03, allocations: 19.75 kB / 2.889 GB, free: 89.37 MB / 0.6669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002019/19.03, allocations: 25.19 kB / 2.889 GB, free: 89.37 MB / 0.6669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002273/19.04, allocations: 388.2 kB / 2.889 GB, free: 89.36 MB / 0.6669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2005/19.24, allocations: 13.03 MB / 2.902 GB, free: 88.95 MB / 0.6669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009204/19.24, allocations: 2.748 MB / 2.905 GB, free: 87.6 MB / 0.6669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.1021/19.35, allocations: 3.829 MB / 2.908 GB, free: 87.59 MB / 0.6669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.02876/19.38, allocations: 1.858 MB / 2.91 GB, free: 87.59 MB / 0.6669 GB Warning: Assuming fixed start value for the following 3 variables: pipe1.M:VARIABLE(unit = "kg.m/s" fixed = true ) "Water momentum" type: Real pipe.M:VARIABLE(unit = "kg.m/s" fixed = true ) "Water momentum" type: Real penstock.M:VARIABLE(unit = "kg.m/s" fixed = true ) "Water momentum" 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.09047/19.47, allocations: 22.88 MB / 2.933 GB, free: 86.93 MB / 0.6669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.02402/19.49, allocations: 1.799 MB / 2.934 GB, free: 86.93 MB / 0.6669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4584/19.95, allocations: 110.9 MB / 3.043 GB, free: 54.51 MB / 0.6669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0008498/19.95, allocations: 0.5916 MB / 3.043 GB, free: 54.51 MB / 0.6669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0003694/19.95, allocations: 2.625 kB / 3.043 GB, free: 54.51 MB / 0.6669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002217/19.95, allocations: 308.2 kB / 3.043 GB, free: 54.5 MB / 0.6669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 1.333/21.28, allocations: 212.9 MB / 3.251 GB, free: 81.89 MB / 0.6669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.001234/21.29, allocations: 23.31 kB / 3.251 GB, free: 81.89 MB / 0.6669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1569/21.44, allocations: 14.1 MB / 3.265 GB, free: 80.92 MB / 0.6669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002184/21.45, allocations: 408.8 kB / 3.266 GB, free: 80.88 MB / 0.6669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.02135/21.47, allocations: 1.669 MB / 3.267 GB, free: 80.04 MB / 0.6669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007186/21.47, allocations: 5.359 MB / 3.272 GB, free: 75.49 MB / 0.6669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.733e-05/21.47, allocations: 37.62 kB / 3.272 GB, free: 75.48 MB / 0.6669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 1.139/22.61, allocations: 180.8 MB / 3.449 GB, free: 99 MB / 0.6669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00552/22.62, allocations: 2.331 MB / 3.451 GB, free: 98.64 MB / 0.6669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.02583/22.64, allocations: 1.153 MB / 3.452 GB, free: 97.81 MB / 0.6669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.09512/22.74, allocations: 3.834 MB / 3.456 GB, free: 97.02 MB / 0.6669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.08746/22.83, allocations: 15.32 MB / 3.471 GB, free: 94.45 MB / 0.6669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.02555/22.85, allocations: 1.928 MB / 3.473 GB, free: 94.06 MB / 0.6669 GB Notification: Performance of sorting global known variables: time 0.009487/22.86, allocations: 2.436 MB / 3.475 GB, free: 93.16 MB / 0.6669 GB Notification: Performance of sort global known variables: time 1.082e-06/22.86, allocations: 3.562 kB / 3.475 GB, free: 93.16 MB / 0.6669 GB Notification: Performance of remove unused functions: time 0.08447/22.95, allocations: 12.35 MB / 3.487 GB, free: 91.67 MB / 0.6669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 104 * Number of states: 206 (reservoir.m,tail.m,penstock.M,pipe.M,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,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.179/24.13, allocations: 190.5 MB / 3.673 GB, free: 91.25 MB / 0.6669 GB Notification: Performance of simCode: created initialization part: time 0.2932/24.42, allocations: 96.23 MB / 3.767 GB, free: 70.33 MB / 0.6669 GB Notification: Performance of simCode: created event and clocks part: time 3.145e-05/24.42, allocations: 3.938 kB / 3.767 GB, free: 70.33 MB / 0.6669 GB Notification: Performance of simCode: created simulation system equations: time 0.2175/24.64, allocations: 87.05 MB / 3.852 GB, free: 29.56 MB / 0.6669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04504/24.68, allocations: 4.206 MB / 3.857 GB, free: 26.37 MB / 0.6669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 2.601/27.28, allocations: 418.8 MB / 4.265 GB, free: 87.89 MB / 0.6825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1214/27.41, allocations: 34.19 MB / 4.299 GB, free: 77.98 MB / 0.6825 GB Notification: Performance of simCode: alias equations: time 0.1614/27.57, allocations: 29.94 MB / 4.328 GB, free: 75.73 MB / 0.6825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1137/27.68, allocations: 27.82 MB / 4.355 GB, free: 53.11 MB / 0.6825 GB Notification: Performance of SimCode: time 1.884e-06/27.68, allocations: 2.438 kB / 4.355 GB, free: 53.11 MB / 0.6825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.521/33.2, allocations: 0.9244 GB / 5.28 GB, free: 45.45 MB / 0.8078 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000226/33.2, allocations: 203.3 kB / 5.28 GB, free: 45.23 MB / 0.8078 GB Notification: Performance of buildModelFMU: Generate platform static: time 67.59/100.8, allocations: 0 / 5.28 GB, free: 45.23 MB / 0.8078 GB