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.426/2.426, allocations: 258 MB / 271.8 MB, free: 13.62 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.805e-05/4.811e-05, allocations: 4 kB / 335.8 MB, free: 1.934 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1319, allocations: 60.23 MB / 396 MB, free: 5.574 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5361/0.668, allocations: 114.6 MB / 0.4987 GB, free: 1.617 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003297/0.6684, allocations: 93.64 kB / 0.4987 GB, free: 1.566 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.085/1.753, allocations: 135.3 MB / 0.6308 GB, free: 125.8 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.445e-06/1.753, allocations: 3.938 kB / 0.6308 GB, free: 125.8 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003874/1.754, allocations: 168.1 kB / 0.631 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.04637/1.8, allocations: 8.363 MB / 0.6392 GB, free: 123.1 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/1.8, allocations: 7.25 kB / 0.6392 GB, free: 123.1 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006985/1.807, allocations: 1.279 MB / 0.6404 GB, free: 122.6 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01204/1.819, allocations: 1.29 MB / 0.6417 GB, free: 122.1 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01595/1.835, allocations: 4.454 MB / 0.646 GB, free: 120 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001202/1.836, allocations: 0.7848 MB / 0.6468 GB, free: 119.6 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005215/1.842, allocations: 0.7318 MB / 0.6475 GB, free: 119.3 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05067/1.892, allocations: 15.67 MB / 0.6628 GB, free: 113.8 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003726/1.893, allocations: 19.36 kB / 0.6628 GB, free: 113.8 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004496/1.897, allocations: 306.8 kB / 0.6631 GB, free: 113.6 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00123/1.899, allocations: 1.024 MB / 0.6641 GB, free: 113.4 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05118/1.95, allocations: 16.85 MB / 0.6806 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1307/2.081, allocations: 40.6 MB / 0.7202 GB, free: 60.97 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03743/2.118, allocations: 15.65 MB / 0.7355 GB, free: 45.11 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002483/2.121, allocations: 1.012 MB / 0.7365 GB, free: 43.95 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.715e-05/2.121, allocations: 121.3 kB / 0.7366 GB, free: 43.82 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=862): time 1.363e-05/2.121, allocations: 0 / 0.7366 GB, free: 43.82 MB / 0.4948 GB Notification: Performance of matching and sorting (n=886): time 0.1802/2.301, allocations: 42.28 MB / 0.7779 GB, free: 1.375 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/2.301, allocations: 193.8 kB / 0.7781 GB, free: 1.16 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005571/2.307, allocations: 1.949 MB / 0.78 GB, free: 15.18 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.002795/2.31, allocations: 169.7 kB / 0.7802 GB, free: 15.01 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002902/2.313, allocations: 2.871 MB / 0.783 GB, free: 12.12 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.006325/2.319, allocations: 2.999 MB / 0.7859 GB, free: 9.141 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002662/2.322, allocations: 160 kB / 0.7861 GB, free: 8.984 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0008503/2.322, allocations: 0.6447 MB / 0.7867 GB, free: 8.332 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01978/2.342, allocations: 5.786 MB / 0.7923 GB, free: 2.535 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3988/2.741, allocations: 6.654 MB / 0.7988 GB, free: 126.8 MB / 0.5105 GB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.3871/3.128, allocations: 44.16 MB / 0.842 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.763e-05/3.128, allocations: 5.875 kB / 0.842 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1035) (initialization): time 0.086/3.214, allocations: 18.61 MB / 0.8601 GB, free: 119.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001428/3.216, allocations: 5.357 MB / 0.8654 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.731e-05/3.216, allocations: 12 kB / 0.8654 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03061/3.247, allocations: 3.659 MB / 0.869 GB, free: 110.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02752/3.274, allocations: 1.939 MB / 0.8709 GB, free: 109.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08053/3.355, allocations: 30.06 MB / 0.9002 GB, free: 81.63 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01307/3.368, allocations: 0.5417 MB / 0.9007 GB, free: 81.22 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002888/3.371, allocations: 316.4 kB / 0.901 GB, free: 80.96 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/3.371, allocations: 4 kB / 0.901 GB, free: 80.95 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.07514/3.446, allocations: 18.22 MB / 0.9188 GB, free: 63.33 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.33e-05/3.446, allocations: 14.73 kB / 0.9189 GB, free: 63.32 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02178/3.468, allocations: 3.654 MB / 0.9224 GB, free: 59.67 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02188/3.49, allocations: 1.932 MB / 0.9243 GB, free: 57.74 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08067/3.571, allocations: 29.99 MB / 0.9536 GB, free: 26.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01261/3.583, allocations: 0.5308 MB / 0.9541 GB, free: 26.36 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002964/3.586, allocations: 307.8 kB / 0.9544 GB, free: 26.06 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.009943/3.596, allocations: 2.666 MB / 0.957 GB, free: 23.39 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002315/3.599, allocations: 466.7 kB / 0.9575 GB, free: 23.04 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08237/3.681, allocations: 20.18 MB / 0.9772 GB, free: 2.848 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.617e-05/3.681, allocations: 92 kB / 0.9773 GB, free: 2.758 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.31e-05/3.681, allocations: 4 kB / 0.9773 GB, free: 2.754 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002507/3.681, allocations: 47.81 kB / 0.9773 GB, free: 2.707 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4965/4.178, allocations: 33.48 MB / 1.01 GB, free: 126.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001288/4.178, allocations: 8.875 kB / 1.01 GB, free: 126.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02124/4.199, allocations: 1.886 MB / 1.012 GB, free: 126.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02297/4.222, allocations: 3.751 MB / 1.016 GB, free: 126.8 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002948/4.225, allocations: 243.6 kB / 1.016 GB, free: 126.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07649/4.302, allocations: 32.34 MB / 1.047 GB, free: 111 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.331e-05/4.302, allocations: 20.06 kB / 1.047 GB, free: 111 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09852/4.4, allocations: 29.25 MB / 1.076 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00149/4.402, allocations: 0.5569 MB / 1.076 GB, free: 100.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004009/4.406, allocations: 191.2 kB / 1.077 GB, free: 100.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01206/4.418, allocations: 0.5308 MB / 1.077 GB, free: 100.6 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004359/4.423, allocations: 0.7912 MB / 1.078 GB, free: 100.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002208/4.425, allocations: 294 kB / 1.078 GB, free: 100.4 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003853/4.429, allocations: 1.472 MB / 1.08 GB, free: 99.9 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.82e-07/4.429, allocations: 0 / 1.08 GB, free: 99.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01981/4.449, allocations: 3.731 MB / 1.083 GB, free: 98.13 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.1068/4.555, allocations: 32.94 MB / 1.115 GB, free: 69.02 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.08147/4.637, allocations: 24.4 MB / 1.139 GB, free: 47.63 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.532e-05/4.637, allocations: 0.75 kB / 1.139 GB, free: 47.63 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.03203/4.669, allocations: 9.435 MB / 1.148 GB, free: 39.29 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006173/4.675, allocations: 0.4917 MB / 1.149 GB, free: 38.86 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5675/5.243, allocations: 73.04 MB / 1.22 GB, free: 136.8 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01251/5.255, allocations: 5.12 MB / 1.225 GB, free: 135.9 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.03319/5.289, allocations: 6.282 MB / 1.231 GB, free: 135.9 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01381/5.302, allocations: 3.719 MB / 1.235 GB, free: 135.9 MB / 0.5417 GB Notification: Performance of SimCode: time 1.783e-06/5.303, allocations: 0.875 kB / 1.235 GB, free: 135.9 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9095/6.212, allocations: 186.7 MB / 1.417 GB, free: 120.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000245/6.212, allocations: 207.7 kB / 1.418 GB, free: 120.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.92/18.13, allocations: 1.312 kB / 1.418 GB, free: 120.2 MB / 0.5417 GB