Running command: "" <> buildModelFMU(OpenHPL.Examples.HPSimple_Francis_IPSLGen,fileNamePrefix="OpenHPL_OpenHPL_Examples_HPSimple_Francis_IPSLGen",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(OpenHPL): time 2.468/2.468, allocations: 258 MB / 265.1 MB, free: 5.473 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.252e-05/2.263e-05, allocations: 0 / 327.7 MB, free: 9.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.136, allocations: 60.24 MB / 388 MB, free: 13.59 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5336/0.6696, allocations: 113.9 MB / 0.4901 GB, free: 15.88 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003175/0.67, allocations: 89.27 kB / 0.4902 GB, free: 15.83 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7423/1.412, allocations: 133.7 MB / 0.6208 GB, free: 3.293 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.595e-06/1.412, allocations: 3.938 kB / 0.6208 GB, free: 3.289 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004985/1.413, allocations: 171.9 kB / 0.6209 GB, free: 3.121 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.05094/1.464, allocations: 8.357 MB / 0.6291 GB, free: 10.69 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.804e-05/1.464, allocations: 8.031 kB / 0.6291 GB, free: 10.68 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01175/1.476, allocations: 1.285 MB / 0.6304 GB, free: 9.387 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01774/1.494, allocations: 4.377 MB / 0.6346 GB, free: 4.953 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001213/1.495, allocations: 0.5418 MB / 0.6352 GB, free: 4.367 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005557/1.5, allocations: 459.7 kB / 0.6356 GB, free: 3.918 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.4038/1.904, allocations: 16.53 MB / 0.6518 GB, free: 119.2 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04859/1.953, allocations: 14 MB / 0.6654 GB, free: 118.9 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005253/1.954, allocations: 12.97 kB / 0.6654 GB, free: 118.9 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004526/1.958, allocations: 3.594 kB / 0.6654 GB, free: 118.9 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001265/1.959, allocations: 1.023 MB / 0.6664 GB, free: 118.9 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1356/2.095, allocations: 38.83 MB / 0.7044 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03412/2.129, allocations: 14.7 MB / 0.7187 GB, free: 101.9 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01464/2.144, allocations: 5.713 MB / 0.7243 GB, free: 98.6 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002577/2.146, allocations: 1.008 MB / 0.7253 GB, free: 97.48 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000114/2.147, allocations: 117.2 kB / 0.7254 GB, free: 97.35 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=853): time 1.12e-05/2.147, allocations: 0 / 0.7254 GB, free: 97.35 MB / 0.5105 GB Notification: Performance of matching and sorting (n=877): time 0.1256/2.272, allocations: 30.57 MB / 0.7553 GB, free: 71.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/2.272, allocations: 193.7 kB / 0.7554 GB, free: 70.98 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004455/2.277, allocations: 1.758 MB / 0.7572 GB, free: 69.37 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.002683/2.28, allocations: 25.7 kB / 0.7572 GB, free: 69.34 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002225/2.282, allocations: 2.898 MB / 0.76 GB, free: 66.77 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.005421/2.287, allocations: 2.847 MB / 0.7628 GB, free: 64.15 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003131/2.291, allocations: 0 / 0.7628 GB, free: 64.15 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000817/2.291, allocations: 0.6428 MB / 0.7634 GB, free: 63.6 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01453/2.306, allocations: 5.236 MB / 0.7685 GB, free: 58.79 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01571/2.322, allocations: 6.052 MB / 0.7745 GB, free: 53.08 MB / 0.5105 GB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.328/2.65, allocations: 42.17 MB / 0.8156 GB, free: 17.59 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.456e-05/2.65, allocations: 0 / 0.8156 GB, free: 17.59 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1035) (initialization): time 0.0741/2.724, allocations: 17.17 MB / 0.8324 GB, free: 408 kB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.3598/3.084, allocations: 5.322 MB / 0.8376 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000129/3.084, allocations: 13.81 kB / 0.8376 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02096/3.105, allocations: 3.108 MB / 0.8406 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02301/3.128, allocations: 1.929 MB / 0.8425 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05918/3.187, allocations: 24.08 MB / 0.866 GB, free: 96.49 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0132/3.201, allocations: 392.5 kB / 0.8664 GB, free: 96.49 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003222/3.204, allocations: 309.8 kB / 0.8667 GB, free: 96.49 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/3.204, allocations: 3.812 kB / 0.8667 GB, free: 96.49 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.07229/3.276, allocations: 16.65 MB / 0.883 GB, free: 96.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001511/3.276, allocations: 12 kB / 0.883 GB, free: 96.24 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01904/3.295, allocations: 3.113 MB / 0.886 GB, free: 96.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02247/3.318, allocations: 1.927 MB / 0.8879 GB, free: 96.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05488/3.373, allocations: 24.01 MB / 0.9114 GB, free: 82.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01273/3.386, allocations: 385.5 kB / 0.9117 GB, free: 82.02 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003338/3.389, allocations: 309.8 kB / 0.912 GB, free: 81.96 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_[1,3]: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_[10,2]: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.006259/3.395, allocations: 252.9 kB / 0.9123 GB, free: 81.77 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.07197/3.467, allocations: 16.26 MB / 0.9281 GB, free: 77.58 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003684/3.471, allocations: 458.2 kB / 0.9286 GB, free: 77.36 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08077/3.552, allocations: 18.52 MB / 0.9467 GB, free: 64.65 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001606/3.552, allocations: 92 kB / 0.9467 GB, free: 64.56 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.697e-05/3.552, allocations: 0 / 0.9467 GB, free: 64.56 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002934/3.553, allocations: 52.56 kB / 0.9468 GB, free: 64.56 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1145/3.667, allocations: 30.27 MB / 0.9764 GB, free: 40.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001368/3.667, allocations: 8 kB / 0.9764 GB, free: 40.09 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02111/3.688, allocations: 1.856 MB / 0.9782 GB, free: 38.58 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02001/3.708, allocations: 3.23 MB / 0.9813 GB, free: 36.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003031/3.712, allocations: 119.6 kB / 0.9814 GB, free: 36.03 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05555/3.767, allocations: 27.72 MB / 1.009 GB, free: 9.27 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.346e-05/3.767, allocations: 8 kB / 1.009 GB, free: 9.262 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4843/4.252, allocations: 27.08 MB / 1.035 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001623/4.253, allocations: 0.5473 MB / 1.036 GB, free: 110.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00419/4.257, allocations: 24.86 kB / 1.036 GB, free: 110.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01303/4.271, allocations: 388 kB / 1.036 GB, free: 110.4 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005789/4.276, allocations: 0.7762 MB / 1.037 GB, free: 110.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003389/4.28, allocations: 288.8 kB / 1.037 GB, free: 110.4 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003702/4.284, allocations: 1.275 MB / 1.038 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.082e-06/4.284, allocations: 0 / 1.038 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.02327/4.307, allocations: 3.242 MB / 1.041 GB, free: 110.3 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 24,1 30,1 8,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.1281/4.435, allocations: 29.89 MB / 1.071 GB, free: 106.2 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.07086/4.506, allocations: 22.39 MB / 1.092 GB, free: 103.7 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.305e-05/4.506, allocations: 0 / 1.092 GB, free: 103.7 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.02839/4.534, allocations: 8.647 MB / 1.101 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006615/4.541, allocations: 341.5 kB / 1.101 GB, free: 100.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06583/4.607, allocations: 19.42 MB / 1.12 GB, free: 94.41 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01221/4.619, allocations: 5.109 MB / 1.125 GB, free: 92.92 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.03388/4.653, allocations: 6.266 MB / 1.131 GB, free: 89.06 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01381/4.667, allocations: 3.648 MB / 1.135 GB, free: 85.74 MB / 0.5261 GB Notification: Performance of SimCode: time 2.084e-06/4.667, allocations: 0 / 1.135 GB, free: 85.74 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7763/5.443, allocations: 183.5 MB / 1.314 GB, free: 112.5 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002107/5.444, allocations: 152.9 kB / 1.314 GB, free: 112.3 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/17.04, allocations: 0 / 1.314 GB, free: 112.3 MB / 0.5417 GB