Running command: translateModel(OpenHPL.Examples.HPSimple_Francis_IPSLGen,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="OpenHPL_OpenHPL.Examples.HPSimple_Francis_IPSLGen") Notification: Performance of loadModel(OpenHPL): time 2.347/2.347, allocations: 258 MB / 265.1 MB, free: 5.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.065e-05/2.072e-05, allocations: 4 kB / 327.6 MB, free: 10.01 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1054, allocations: 60.25 MB / 387.9 MB, free: 13.67 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4508/0.5562, allocations: 113.9 MB / 0.49 GB, free: 15.91 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002467/0.5565, allocations: 83.66 kB / 0.4901 GB, free: 15.87 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6416/1.198, allocations: 133.7 MB / 0.6207 GB, free: 3.352 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.785e-06/1.198, allocations: 0 / 0.6207 GB, free: 3.352 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004151/1.199, allocations: 171.9 kB / 0.6209 GB, free: 3.184 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.03487/1.233, allocations: 8.361 MB / 0.629 GB, free: 10.75 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/1.234, allocations: 8.031 kB / 0.629 GB, free: 10.74 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009713/1.243, allocations: 1.285 MB / 0.6303 GB, free: 9.445 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01437/1.258, allocations: 4.373 MB / 0.6346 GB, free: 5.016 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001011/1.259, allocations: 0.5418 MB / 0.6351 GB, free: 4.43 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004362/1.263, allocations: 455.7 kB / 0.6355 GB, free: 3.984 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.5944/1.858, allocations: 16.54 MB / 0.6517 GB, free: 118 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03925/1.897, allocations: 14 MB / 0.6653 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002994/1.897, allocations: 3.969 kB / 0.6653 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00322/1.9, allocations: 4.094 kB / 0.6653 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000963/1.901, allocations: 1.023 MB / 0.6663 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1058/2.007, allocations: 38.83 MB / 0.7043 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02692/2.034, allocations: 14.71 MB / 0.7186 GB, free: 100.7 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01156/2.046, allocations: 5.718 MB / 0.7242 GB, free: 97.23 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001661/2.048, allocations: 0.9961 MB / 0.7252 GB, free: 96.11 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.693e-05/2.048, allocations: 124.9 kB / 0.7253 GB, free: 95.98 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=853): time 1.537e-05/2.048, allocations: 0 / 0.7253 GB, free: 95.98 MB / 0.5105 GB Notification: Performance of matching and sorting (n=877): time 0.0916/2.139, allocations: 30.57 MB / 0.7552 GB, free: 69.84 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/2.139, allocations: 193.7 kB / 0.7553 GB, free: 69.62 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003433/2.143, allocations: 1.764 MB / 0.7571 GB, free: 68 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001923/2.145, allocations: 25.7 kB / 0.7571 GB, free: 67.97 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001706/2.147, allocations: 2.894 MB / 0.7599 GB, free: 65.41 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.004023/2.151, allocations: 2.854 MB / 0.7627 GB, free: 62.79 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001873/2.153, allocations: 0 / 0.7627 GB, free: 62.79 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000684/2.153, allocations: 0.6455 MB / 0.7633 GB, free: 62.23 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01135/2.165, allocations: 5.232 MB / 0.7684 GB, free: 57.42 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01249/2.177, allocations: 6.058 MB / 0.7744 GB, free: 51.71 MB / 0.5105 GB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.1994/2.377, allocations: 42.16 MB / 0.8155 GB, free: 16.23 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.72e-05/2.377, allocations: 4 kB / 0.8155 GB, free: 16.23 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1035) (initialization): time 0.3655/2.742, allocations: 17.16 MB / 0.8323 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001224/2.743, allocations: 5.332 MB / 0.8375 GB, free: 99.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-05/2.744, allocations: 14.31 kB / 0.8375 GB, free: 99.98 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02159/2.765, allocations: 3.106 MB / 0.8405 GB, free: 99.95 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02138/2.787, allocations: 1.932 MB / 0.8424 GB, free: 99.95 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04401/2.831, allocations: 24.07 MB / 0.8659 GB, free: 89.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008778/2.839, allocations: 399.8 kB / 0.8663 GB, free: 89.79 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002485/2.842, allocations: 312.9 kB / 0.8666 GB, free: 89.79 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/2.842, allocations: 5.719 kB / 0.8666 GB, free: 89.79 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05176/2.894, allocations: 16.65 MB / 0.8829 GB, free: 89.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001189/2.894, allocations: 16.8 kB / 0.8829 GB, free: 89.54 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0139/2.908, allocations: 3.108 MB / 0.8859 GB, free: 89.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01427/2.922, allocations: 1.92 MB / 0.8878 GB, free: 89.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04232/2.965, allocations: 24.02 MB / 0.9113 GB, free: 75.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008094/2.973, allocations: 385.5 kB / 0.9116 GB, free: 75.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002319/2.975, allocations: 311.2 kB / 0.9119 GB, free: 75.03 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.003165/2.978, allocations: 250.8 kB / 0.9122 GB, free: 74.87 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001643/2.98, allocations: 459.3 kB / 0.9126 GB, free: 74.87 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1028/3.083, allocations: 18.51 MB / 0.9307 GB, free: 69.57 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001571/3.083, allocations: 94.84 kB / 0.9308 GB, free: 69.57 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.952e-05/3.083, allocations: 4 kB / 0.9308 GB, free: 69.56 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002462/3.083, allocations: 45.84 kB / 0.9308 GB, free: 69.56 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08114/3.164, allocations: 30.27 MB / 0.9604 GB, free: 51.03 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001015/3.164, allocations: 8 kB / 0.9604 GB, free: 51.02 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01298/3.177, allocations: 1.85 MB / 0.9622 GB, free: 49.51 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01325/3.191, allocations: 3.241 MB / 0.9654 GB, free: 47.03 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002331/3.193, allocations: 128.1 kB / 0.9655 GB, free: 46.95 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.042/3.235, allocations: 27.7 MB / 0.9925 GB, free: 20.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-05/3.235, allocations: 11.94 kB / 0.9925 GB, free: 20.18 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06994/3.305, allocations: 27.13 MB / 1.019 GB, free: 12.47 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001526/3.307, allocations: 0.5476 MB / 1.02 GB, free: 11.91 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002844/3.31, allocations: 23.98 kB / 1.02 GB, free: 11.89 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008317/3.318, allocations: 391.5 kB / 1.02 GB, free: 11.51 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00389/3.322, allocations: 0.7752 MB / 1.021 GB, free: 10.73 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002324/3.324, allocations: 287.8 kB / 1.021 GB, free: 10.45 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.003018/3.327, allocations: 1.27 MB / 1.022 GB, free: 9.168 MB / 0.5262 GB Notification: Performance of sort global known variables: time 9.15e-07/3.327, allocations: 4 kB / 1.022 GB, free: 9.164 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.01819/3.346, allocations: 3.24 MB / 1.025 GB, free: 5.953 MB / 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 24,1 30,1 8,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.003639/3.349, allocations: 0.5403 MB / 1.026 GB, free: 5.566 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.3538/3.703, allocations: 22.38 MB / 1.048 GB, free: 119.1 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/3.703, allocations: 0 / 1.048 GB, free: 119.1 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.02244/3.726, allocations: 8.644 MB / 1.056 GB, free: 118.4 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004798/3.73, allocations: 344.5 kB / 1.057 GB, free: 118.4 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04242/3.773, allocations: 17.56 MB / 1.074 GB, free: 115.6 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01592/3.789, allocations: 5.114 MB / 1.079 GB, free: 114.7 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 0.03715/3.826, allocations: 6.269 MB / 1.085 GB, free: 114.5 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006073/3.832, allocations: 0.5557 MB / 1.085 GB, free: 114.5 MB / 0.5262 GB Notification: Performance of SimCode: time 2.619e-06/3.832, allocations: 0 / 1.085 GB, free: 114.5 MB / 0.5262 GB Notification: Performance of Templates: time 0.247/4.079, allocations: 125.2 MB / 1.208 GB, free: 20.27 MB / 0.5262 GB