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.363/2.363, allocations: 258 MB / 265.1 MB, free: 5.477 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.672e-05/1.678e-05, allocations: 0 / 327.7 MB, free: 9.91 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1266, allocations: 60.24 MB / 388 MB, free: 13.58 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5256/0.6523, allocations: 114 MB / 0.4903 GB, free: 15.41 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003074/0.6527, allocations: 90.27 kB / 0.4903 GB, free: 15.37 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7334/1.386, allocations: 139.4 MB / 0.6265 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of FrontEnd: time 4.659e-06/1.386, allocations: 4 kB / 0.6265 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0004311/1.387, allocations: 167.9 kB / 0.6266 GB, free: 13.16 MB / 0.5105 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.04949/1.436, allocations: 8.358 MB / 0.6348 GB, free: 4.727 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/1.436, allocations: 8.031 kB / 0.6348 GB, free: 4.719 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01136/1.447, allocations: 1.289 MB / 0.6361 GB, free: 3.418 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3831/1.831, allocations: 4.372 MB / 0.6403 GB, free: 115.5 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001279/1.832, allocations: 0.5422 MB / 0.6409 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005658/1.838, allocations: 449.7 kB / 0.6413 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04966/1.887, allocations: 16.54 MB / 0.6574 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04767/1.935, allocations: 14 MB / 0.6711 GB, free: 114.9 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004212/1.936, allocations: 20 kB / 0.6711 GB, free: 114.9 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004371/1.94, allocations: 3.844 kB / 0.6711 GB, free: 114.9 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001297/1.941, allocations: 1.02 MB / 0.6721 GB, free: 114.9 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1294/2.071, allocations: 38.81 MB / 0.71 GB, free: 103 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03278/2.104, allocations: 14.71 MB / 0.7244 GB, free: 95.05 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01388/2.117, allocations: 5.72 MB / 0.73 GB, free: 89.79 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002344/2.12, allocations: 1.004 MB / 0.731 GB, free: 88.67 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.332e-05/2.12, allocations: 121.2 kB / 0.7311 GB, free: 88.54 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=853): time 1.174e-05/2.12, allocations: 0 / 0.7311 GB, free: 88.54 MB / 0.5105 GB Notification: Performance of matching and sorting (n=877): time 0.117/2.237, allocations: 30.6 MB / 0.761 GB, free: 62.4 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/2.237, allocations: 189.7 kB / 0.7611 GB, free: 62.19 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003906/2.241, allocations: 1.761 MB / 0.7629 GB, free: 60.57 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.002585/2.244, allocations: 25.7 kB / 0.7629 GB, free: 60.54 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002052/2.246, allocations: 2.892 MB / 0.7657 GB, free: 57.97 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.004991/2.251, allocations: 2.848 MB / 0.7685 GB, free: 55.36 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002202/2.253, allocations: 0 / 0.7685 GB, free: 55.36 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006346/2.254, allocations: 0.6388 MB / 0.7691 GB, free: 54.81 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01313/2.267, allocations: 5.242 MB / 0.7742 GB, free: 49.99 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01501/2.282, allocations: 6.056 MB / 0.7802 GB, free: 44.28 MB / 0.5105 GB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.3057/2.588, allocations: 42.14 MB / 0.8213 GB, free: 11.35 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.352e-05/2.588, allocations: 4 kB / 0.8213 GB, free: 11.35 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1035) (initialization): time 0.4307/3.018, allocations: 17.14 MB / 0.838 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001134/3.02, allocations: 5.329 MB / 0.8433 GB, free: 99.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001292/3.02, allocations: 16.88 kB / 0.8433 GB, free: 99.84 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0202/3.04, allocations: 3.102 MB / 0.8463 GB, free: 99.81 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02358/3.064, allocations: 1.933 MB / 0.8482 GB, free: 99.81 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05412/3.118, allocations: 24.08 MB / 0.8717 GB, free: 89.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01298/3.131, allocations: 390.4 kB / 0.8721 GB, free: 89.64 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003135/3.134, allocations: 312.2 kB / 0.8724 GB, free: 89.64 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/3.134, allocations: 3.906 kB / 0.8724 GB, free: 89.64 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.07078/3.205, allocations: 16.63 MB / 0.8886 GB, free: 89.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000148/3.205, allocations: 12.97 kB / 0.8886 GB, free: 89.34 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01852/3.224, allocations: 3.113 MB / 0.8917 GB, free: 89.17 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02179/3.245, allocations: 1.921 MB / 0.8935 GB, free: 89.16 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05185/3.297, allocations: 24.03 MB / 0.917 GB, free: 74.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01196/3.309, allocations: 386.5 kB / 0.9174 GB, free: 74.76 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003282/3.313, allocations: 313.5 kB / 0.9177 GB, free: 74.7 MB / 0.5105 GB Warning: Assuming fixed start value for the following 3 variables: surgeTank.Vdot:VARIABLE(start = surgeTank.Vdot_0 unit = "m3/s" ) "Water flow rate" type: Real penstock.U[20]:VARIABLE() "centered states" type: Real [20] penstock.U[11]:VARIABLE() "centered states" type: Real [20] 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. Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: turbine.theta:VARIABLE(unit = "rad" ) "one of servo angles" type: Real Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: turbine.d:VARIABLE(unit = "m" ) "servo term" type: Real Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: turbine.phi:VARIABLE(unit = "rad" ) "one of servo angles" type: Real Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: turbine.psi:VARIABLE(unit = "rad" ) "one of servo angles" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: penstock.p_[10,2]:VARIABLE(unit = "Pa" ) "boundary p. matrix" type: Real [10,4] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: penstock.p_[1,3]:VARIABLE(unit = "Pa" ) "boundary p. matrix" type: Real [10,4] 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.004821/3.318, allocations: 250.1 kB / 0.9179 GB, free: 74.48 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.06654/3.384, allocations: 16.25 MB / 0.9338 GB, free: 70.29 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003549/3.388, allocations: 453.7 kB / 0.9342 GB, free: 70.05 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07819/3.466, allocations: 18.48 MB / 0.9523 GB, free: 57.42 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001459/3.466, allocations: 92 kB / 0.9523 GB, free: 57.33 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.647e-05/3.466, allocations: 0 / 0.9523 GB, free: 57.33 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002716/3.466, allocations: 51.02 kB / 0.9524 GB, free: 57.33 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1312/3.598, allocations: 30.29 MB / 0.982 GB, free: 32.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001206/3.598, allocations: 8.156 kB / 0.982 GB, free: 32.85 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02058/3.618, allocations: 1.854 MB / 0.9838 GB, free: 31.34 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01969/3.638, allocations: 3.25 MB / 0.987 GB, free: 28.85 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002916/3.641, allocations: 121.1 kB / 0.9871 GB, free: 28.78 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05335/3.695, allocations: 27.68 MB / 1.014 GB, free: 2.043 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.411e-05/3.695, allocations: 11.94 kB / 1.014 GB, free: 2.031 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4725/4.167, allocations: 27.64 MB / 1.041 GB, free: 109.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001625/4.169, allocations: 0.5459 MB / 1.042 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004102/4.173, allocations: 29.22 kB / 1.042 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01244/4.185, allocations: 394.8 kB / 1.042 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005235/4.191, allocations: 0.7747 MB / 1.043 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003088/4.194, allocations: 291.5 kB / 1.043 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003836/4.198, allocations: 1.27 MB / 1.044 GB, free: 109.1 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.61e-07/4.198, allocations: 0 / 1.044 GB, free: 109.1 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.02279/4.221, allocations: 3.241 MB / 1.047 GB, free: 109.1 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 29 (reservoir.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,surgeTank.Vdot,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 (878): * Single equations (assignments): 867 * 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.09707/4.318, allocations: 29.89 MB / 1.077 GB, free: 105.1 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.06953/4.387, allocations: 22.4 MB / 1.099 GB, free: 100.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.194e-05/4.387, allocations: 3.75 kB / 1.099 GB, free: 100.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.02674/4.414, allocations: 8.611 MB / 1.107 GB, free: 97.82 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006265/4.42, allocations: 340.3 kB / 1.107 GB, free: 97.71 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06193/4.482, allocations: 19.42 MB / 1.126 GB, free: 87.95 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01109/4.494, allocations: 5.111 MB / 1.131 GB, free: 84.15 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.03312/4.527, allocations: 6.258 MB / 1.137 GB, free: 80.34 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01321/4.54, allocations: 3.656 MB / 1.141 GB, free: 77.02 MB / 0.5261 GB Notification: Performance of SimCode: time 1.824e-06/4.54, allocations: 0 / 1.141 GB, free: 77.02 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7908/5.331, allocations: 183.7 MB / 1.32 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001945/5.331, allocations: 150.2 kB / 1.32 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/16.9, allocations: 0 / 1.32 GB, free: 105.9 MB / 0.5417 GB