Running command: translateModel(OpenHPL.Examples.HPSimple_Francis_GridGen,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="OpenHPL_OpenHPL.Examples.HPSimple_Francis_GridGen") Notification: Performance of loadModel(OpenHPL): time 2.353/2.353, allocations: 258 MB / 265.1 MB, free: 5.465 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.366e-05/1.368e-05, allocations: 0 / 327.6 MB, free: 10.01 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1041, allocations: 60.25 MB / 387.9 MB, free: 13.67 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4833/0.5874, allocations: 114 MB / 0.4902 GB, free: 15.79 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002272/0.5877, allocations: 84.08 kB / 0.4903 GB, free: 15.75 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5852/1.173, allocations: 139.4 MB / 0.6264 GB, free: 13.5 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.413e-06/1.173, allocations: 0 / 0.6264 GB, free: 13.5 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003951/1.173, allocations: 171.9 kB / 0.6266 GB, free: 13.33 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.03528/1.209, allocations: 8.349 MB / 0.6347 GB, free: 4.91 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/1.209, allocations: 15.97 kB / 0.6347 GB, free: 4.895 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009704/1.218, allocations: 1.289 MB / 0.636 GB, free: 3.594 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.577/1.795, allocations: 4.366 MB / 0.6402 GB, free: 114.6 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001586/1.797, allocations: 0.5434 MB / 0.6408 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005541/1.803, allocations: 443.8 kB / 0.6412 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0443/1.847, allocations: 16.55 MB / 0.6574 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03939/1.886, allocations: 13.99 MB / 0.671 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003447/1.887, allocations: 12.91 kB / 0.671 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003561/1.89, allocations: 5.5 kB / 0.671 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009677/1.891, allocations: 1.021 MB / 0.672 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1228/2.014, allocations: 38.82 MB / 0.7099 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03659/2.051, allocations: 14.72 MB / 0.7243 GB, free: 93.92 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01165/2.062, allocations: 5.719 MB / 0.7299 GB, free: 88.66 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00192/2.064, allocations: 1.001 MB / 0.7309 GB, free: 87.55 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.922e-05/2.065, allocations: 117.2 kB / 0.731 GB, free: 87.42 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=853): time 1.679e-05/2.065, allocations: 0 / 0.731 GB, free: 87.42 MB / 0.5105 GB Notification: Performance of matching and sorting (n=877): time 0.09063/2.155, allocations: 30.59 MB / 0.7609 GB, free: 61.27 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.309e-05/2.155, allocations: 197.6 kB / 0.761 GB, free: 61.05 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003276/2.159, allocations: 1.764 MB / 0.7628 GB, free: 59.43 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001937/2.161, allocations: 25.7 kB / 0.7628 GB, free: 59.4 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001669/2.162, allocations: 2.894 MB / 0.7656 GB, free: 56.83 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.003773/2.166, allocations: 2.847 MB / 0.7684 GB, free: 54.22 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001413/2.168, allocations: 0 / 0.7684 GB, free: 54.22 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005549/2.168, allocations: 0.64 MB / 0.769 GB, free: 53.67 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01083/2.179, allocations: 5.23 MB / 0.7741 GB, free: 48.86 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01234/2.191, allocations: 6.053 MB / 0.78 GB, free: 43.15 MB / 0.5105 GB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.2355/2.427, allocations: 42.15 MB / 0.8212 GB, free: 10.25 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.628e-05/2.427, allocations: 4 kB / 0.8212 GB, free: 10.25 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1035) (initialization): time 0.3489/2.776, allocations: 17.14 MB / 0.838 GB, free: 105 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001075/2.777, allocations: 5.331 MB / 0.8432 GB, free: 99.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-05/2.777, allocations: 12.81 kB / 0.8432 GB, free: 99.48 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01424/2.791, allocations: 3.1 MB / 0.8462 GB, free: 99.45 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01527/2.807, allocations: 1.934 MB / 0.8481 GB, free: 99.45 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04448/2.851, allocations: 24.07 MB / 0.8716 GB, free: 89.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009653/2.861, allocations: 397.4 kB / 0.872 GB, free: 89.28 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00267/2.864, allocations: 307.1 kB / 0.8723 GB, free: 89.28 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/2.864, allocations: 3.688 kB / 0.8723 GB, free: 89.28 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05473/2.918, allocations: 16.64 MB / 0.8885 GB, free: 88.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001213/2.918, allocations: 13.95 kB / 0.8885 GB, free: 88.96 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01453/2.933, allocations: 3.115 MB / 0.8916 GB, free: 88.79 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01527/2.948, allocations: 1.924 MB / 0.8935 GB, free: 88.78 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04399/2.992, allocations: 24.01 MB / 0.9169 GB, free: 73.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008446/3.001, allocations: 387.3 kB / 0.9173 GB, free: 73.75 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002691/3.004, allocations: 307.2 kB / 0.9176 GB, free: 73.68 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.004012/3.008, allocations: 257 kB / 0.9178 GB, free: 73.49 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002786/3.01, allocations: 456.9 kB / 0.9183 GB, free: 73.48 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05914/3.07, allocations: 18.48 MB / 0.9363 GB, free: 68.18 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001216/3.07, allocations: 95.41 kB / 0.9364 GB, free: 68.18 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.859e-05/3.07, allocations: 0 / 0.9364 GB, free: 68.18 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002123/3.07, allocations: 45.66 kB / 0.9364 GB, free: 68.18 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08322/3.153, allocations: 30.29 MB / 0.966 GB, free: 44.33 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.928e-05/3.153, allocations: 8 kB / 0.966 GB, free: 44.32 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0134/3.167, allocations: 1.851 MB / 0.9678 GB, free: 42.82 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01352/3.18, allocations: 3.249 MB / 0.971 GB, free: 40.32 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002405/3.183, allocations: 121.9 kB / 0.9711 GB, free: 40.25 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04146/3.224, allocations: 27.69 MB / 0.9982 GB, free: 13.52 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.158e-05/3.224, allocations: 11.94 kB / 0.9982 GB, free: 13.5 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0707/3.295, allocations: 26.95 MB / 1.024 GB, free: 5.617 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001563/3.297, allocations: 0.5523 MB / 1.025 GB, free: 5.082 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003032/3.3, allocations: 27.69 kB / 1.025 GB, free: 5.059 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008656/3.308, allocations: 392.3 kB / 1.025 GB, free: 4.812 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003996/3.312, allocations: 0.7759 MB / 1.026 GB, free: 4.352 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002436/3.315, allocations: 289.8 kB / 1.026 GB, free: 4.109 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.003185/3.318, allocations: 1.273 MB / 1.028 GB, free: 2.941 MB / 0.5262 GB Notification: Performance of sort global known variables: time 8.5e-07/3.318, allocations: 3.938 kB / 1.028 GB, free: 2.938 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.02059/3.339, allocations: 3.374 MB / 1.031 GB, free: 0 / 0.5262 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.3419/3.681, allocations: 0.531 MB / 1.032 GB, free: 116.4 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.05786/3.739, allocations: 22.4 MB / 1.053 GB, free: 115.4 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.123e-05/3.739, allocations: 3.906 kB / 1.053 GB, free: 115.4 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.02161/3.76, allocations: 8.62 MB / 1.062 GB, free: 114.7 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004806/3.765, allocations: 334.5 kB / 1.062 GB, free: 114.7 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0414/3.807, allocations: 17.57 MB / 1.079 GB, free: 111.8 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01023/3.817, allocations: 5.11 MB / 1.084 GB, free: 111 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 0.02592/3.843, allocations: 6.259 MB / 1.09 GB, free: 110.8 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006203/3.849, allocations: 0.5568 MB / 1.091 GB, free: 110.8 MB / 0.5262 GB Notification: Performance of SimCode: time 1.507e-06/3.849, allocations: 0 / 1.091 GB, free: 110.8 MB / 0.5262 GB Notification: Performance of Templates: time 0.2784/4.127, allocations: 125.3 MB / 1.213 GB, free: 13.59 MB / 0.5262 GB