Running command: "" <> buildModelFMU(OpenHPL.Examples.HPSimple_Francis_GridGen,fileNamePrefix="OpenHPL_OpenHPL_Examples_HPSimple_Francis_GridGen",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(OpenHPL): time 2.517/2.517, allocations: 258 MB / 271.8 MB, free: 13.63 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.986e-05/3.971e-05, allocations: 7.938 kB / 335.8 MB, free: 1.941 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1338, allocations: 60.23 MB / 396 MB, free: 5.574 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5422/0.676, allocations: 114.7 MB / 0.4988 GB, free: 1.469 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003142/0.6763, allocations: 94.5 kB / 0.4989 GB, free: 1.422 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.12/1.796, allocations: 141 MB / 0.6366 GB, free: 125.8 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.336e-06/1.796, allocations: 3.328 kB / 0.6366 GB, free: 125.8 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003807/1.797, allocations: 169.8 kB / 0.6368 GB, free: 125.8 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2523 * Number of variables: 2523 Notification: Performance of Generate backend data structure: time 0.04744/1.844, allocations: 8.359 MB / 0.6449 GB, free: 123 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.435e-05/1.844, allocations: 6.75 kB / 0.6449 GB, free: 123 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007303/1.852, allocations: 1.279 MB / 0.6462 GB, free: 122.9 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01156/1.863, allocations: 1.287 MB / 0.6474 GB, free: 122.5 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01693/1.88, allocations: 4.459 MB / 0.6518 GB, free: 120.9 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001152/1.881, allocations: 0.7917 MB / 0.6526 GB, free: 120.4 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005776/1.887, allocations: 0.7275 MB / 0.6533 GB, free: 120.1 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08312/1.97, allocations: 15.68 MB / 0.6686 GB, free: 113.1 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004834/1.971, allocations: 15.89 kB / 0.6686 GB, free: 113.1 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005351/1.976, allocations: 303.8 kB / 0.6689 GB, free: 112.8 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001149/1.977, allocations: 1.027 MB / 0.6699 GB, free: 111.8 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05282/2.03, allocations: 16.85 MB / 0.6864 GB, free: 94.93 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1307/2.161, allocations: 40.59 MB / 0.726 GB, free: 54.5 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03727/2.198, allocations: 15.66 MB / 0.7413 GB, free: 38.64 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002446/2.201, allocations: 1.012 MB / 0.7423 GB, free: 37.48 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.386e-05/2.201, allocations: 121.3 kB / 0.7424 GB, free: 37.35 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=862): time 1.257e-05/2.201, allocations: 0 / 0.7424 GB, free: 37.35 MB / 0.4948 GB Notification: Performance of matching and sorting (n=886): time 0.184/2.385, allocations: 42.58 MB / 0.784 GB, free: 10.59 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001759/2.385, allocations: 193.8 kB / 0.7842 GB, free: 10.37 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005506/2.391, allocations: 1.96 MB / 0.7861 GB, free: 8.387 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.002988/2.394, allocations: 165.7 kB / 0.7862 GB, free: 8.219 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002743/2.396, allocations: 2.87 MB / 0.789 GB, free: 5.324 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.006398/2.403, allocations: 2.993 MB / 0.792 GB, free: 2.355 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002092/2.405, allocations: 164 kB / 0.7921 GB, free: 2.195 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0008289/2.406, allocations: 0.6408 MB / 0.7927 GB, free: 1.547 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3734/2.779, allocations: 5.782 MB / 0.7984 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02169/2.801, allocations: 6.663 MB / 0.8049 GB, free: 127.2 MB / 0.5105 GB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.3344/3.135, allocations: 44.14 MB / 0.848 GB, free: 122.9 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.722e-05/3.136, allocations: 3.812 kB / 0.848 GB, free: 122.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1035) (initialization): time 0.08181/3.217, allocations: 18.59 MB / 0.8662 GB, free: 113 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.00115/3.219, allocations: 5.348 MB / 0.8714 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.883e-05/3.219, allocations: 12 kB / 0.8714 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02277/3.241, allocations: 3.672 MB / 0.875 GB, free: 104.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02199/3.264, allocations: 1.94 MB / 0.8769 GB, free: 103 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08334/3.347, allocations: 30.06 MB / 0.9062 GB, free: 75.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01373/3.361, allocations: 0.5464 MB / 0.9068 GB, free: 74.52 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00325/3.364, allocations: 311.8 kB / 0.9071 GB, free: 74.21 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/3.364, allocations: 4 kB / 0.9071 GB, free: 74.21 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.08088/3.445, allocations: 18.19 MB / 0.9248 GB, free: 56 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.521e-05/3.445, allocations: 18.89 kB / 0.9248 GB, free: 55.99 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0218/3.467, allocations: 3.663 MB / 0.9284 GB, free: 52.33 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02196/3.489, allocations: 1.936 MB / 0.9303 GB, free: 50.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0803/3.569, allocations: 30.01 MB / 0.9596 GB, free: 19.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01265/3.582, allocations: 0.5307 MB / 0.9601 GB, free: 19.02 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002627/3.585, allocations: 311.8 kB / 0.9604 GB, free: 18.71 MB / 0.5105 GB Warning: Assuming fixed start value for the following 3 variables: penstock.U[20]:VARIABLE(fixed = true ) "centered states" type: Real [20] penstock.U[11]:VARIABLE(fixed = true ) "centered states" type: Real [20] intake.M:VARIABLE(unit = "kg.m/s" fixed = true ) "Water momentum" type: Real Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: order2_1.w = $START.order2_1.w. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 4 (penstock.KP.boundaryCon[2,2],penstock.KP.boundaryCon[2,1],penstock.KP.boundaryCon[1,2],penstock.KP.boundaryCon[1,1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (950): * Single equations (assignments): 942 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 28,1 22,26 10} Notification: Performance of prepare postOptimizeDAE: time 0.009937/3.595, allocations: 2.654 MB / 0.963 GB, free: 16.05 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003605/3.598, allocations: 465.8 kB / 0.9635 GB, free: 15.69 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08509/3.683, allocations: 20.13 MB / 0.9831 GB, free: 11.54 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001792/3.684, allocations: 92 kB / 0.9832 GB, free: 11.45 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.46e-05/3.684, allocations: 0 / 0.9832 GB, free: 11.45 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003185/3.684, allocations: 55.81 kB / 0.9833 GB, free: 11.4 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5086/4.193, allocations: 33.48 MB / 1.016 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001717/4.193, allocations: 15.52 kB / 1.016 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02759/4.22, allocations: 1.873 MB / 1.018 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02837/4.249, allocations: 3.748 MB / 1.021 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003236/4.252, allocations: 251.7 kB / 1.022 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07864/4.331, allocations: 32.31 MB / 1.053 GB, free: 110.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.64e-05/4.331, allocations: 14.84 kB / 1.053 GB, free: 110.6 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.104/4.435, allocations: 29.31 MB / 1.082 GB, free: 98.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001618/4.436, allocations: 0.5584 MB / 1.082 GB, free: 98.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004297/4.441, allocations: 179.8 kB / 1.083 GB, free: 98.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01363/4.454, allocations: 0.5371 MB / 1.083 GB, free: 97.79 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005086/4.46, allocations: 0.7882 MB / 1.084 GB, free: 97.32 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003015/4.463, allocations: 293.4 kB / 1.084 GB, free: 97.08 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003936/4.467, allocations: 1.478 MB / 1.086 GB, free: 95.84 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.163e-06/4.467, allocations: 0 / 1.086 GB, free: 95.84 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.02153/4.488, allocations: 3.729 MB / 1.089 GB, free: 92.14 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * Number of states: 29 (reservoir.m,intake.M,tail.m,penstock.U[1],penstock.U[2],penstock.U[3],penstock.U[4],penstock.U[5],penstock.U[6],penstock.U[7],penstock.U[8],penstock.U[9],penstock.U[10],penstock.U[11],penstock.U[12],penstock.U[13],penstock.U[14],penstock.U[15],penstock.U[16],penstock.U[17],penstock.U[18],penstock.U[19],penstock.U[20],surgeTank.m,order2_1.delta,order2_1.w,governor.pilot_servo.x_scaled[1],governor.main_servo.x_scaled[1],governor.control.x_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (887): * Single equations (assignments): 876 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {26 10,1 30,1 24,1 8,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.116/4.604, allocations: 32.98 MB / 1.121 GB, free: 62.99 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.08517/4.69, allocations: 24.42 MB / 1.145 GB, free: 41.59 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.506e-05/4.69, allocations: 320 / 1.145 GB, free: 41.59 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0316/4.721, allocations: 9.386 MB / 1.154 GB, free: 33.29 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007129/4.728, allocations: 495.7 kB / 1.155 GB, free: 32.86 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5656/5.294, allocations: 72.46 MB / 1.226 GB, free: 140.1 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01078/5.305, allocations: 5.116 MB / 1.231 GB, free: 139.2 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.03299/5.338, allocations: 6.282 MB / 1.237 GB, free: 139.2 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01369/5.352, allocations: 3.687 MB / 1.24 GB, free: 139.1 MB / 0.5417 GB Notification: Performance of SimCode: time 1.452e-06/5.352, allocations: 2.344 kB / 1.24 GB, free: 139.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7706/6.122, allocations: 186.9 MB / 1.423 GB, free: 128 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002102/6.123, allocations: 206 kB / 1.423 GB, free: 127.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/17.91, allocations: 0 / 1.423 GB, free: 127.8 MB / 0.5417 GB