Running command: translateModel(OpenHPL.Examples.HPSimple_Francis_GridGen,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="OpenHPL_OpenHPL.Examples.HPSimple_Francis_GridGen") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(OpenHPL): time 2.212/2.212, allocations: 258 MB / 265 MB, free: 15.86 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.541e-06/6.618e-06, allocations: 0 / 327.4 MB, free: 1.387 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2419/0.242, allocations: 60.24 MB / 387.7 MB, free: 6.977 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1672/0.4093, allocations: 114 MB / 0.4899 GB, free: 5.52 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003248/0.4096, allocations: 83.95 kB / 0.49 GB, free: 5.438 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.8232/1.233, allocations: 137 MB / 0.6238 GB, free: 46.5 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003575/1.233, allocations: 167.9 kB / 0.6239 GB, free: 46.34 MB / 458.7 MB 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.03407/1.267, allocations: 8.405 MB / 0.6321 GB, free: 37.86 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/1.267, allocations: 8.031 kB / 0.6321 GB, free: 37.86 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01068/1.278, allocations: 1.316 MB / 0.6334 GB, free: 36.53 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01278/1.291, allocations: 4.381 MB / 0.6377 GB, free: 32.09 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007744/1.292, allocations: 0.5535 MB / 0.6382 GB, free: 31.49 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003931/1.296, allocations: 443.8 kB / 0.6387 GB, free: 31.06 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03841/1.334, allocations: 16.65 MB / 0.6549 GB, free: 14.4 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03924/1.373, allocations: 14.09 MB / 0.6687 GB, free: 268 kB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003617/1.374, allocations: 19.83 kB / 0.6687 GB, free: 248 kB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003453/1.377, allocations: 0 / 0.6687 GB, free: 248 kB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001035/1.378, allocations: 1.054 MB / 0.6697 GB, free: 15.18 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1549/1.533, allocations: 38.76 MB / 0.7076 GB, free: 8.094 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01772/1.551, allocations: 6.774 MB / 0.7142 GB, free: 1.328 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.1643/1.715, allocations: 5.72 MB / 0.7198 GB, free: 154.5 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001769/1.717, allocations: 1.001 MB / 0.7208 GB, free: 153.5 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.506e-05/1.717, allocations: 119.4 kB / 0.7209 GB, free: 153.5 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=853): time 1.384e-05/1.717, allocations: 3.938 kB / 0.7209 GB, free: 153.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=877): time 0.1032/1.82, allocations: 31.09 MB / 0.7512 GB, free: 152.2 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.254e-05/1.821, allocations: 196.1 kB / 0.7514 GB, free: 152.1 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00363/1.824, allocations: 1.765 MB / 0.7531 GB, free: 151.9 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001974/1.826, allocations: 29.12 kB / 0.7532 GB, free: 151.8 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001435/1.828, allocations: 2.537 MB / 0.7556 GB, free: 150.4 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.004246/1.832, allocations: 2.85 MB / 0.7584 GB, free: 148.5 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001708/1.834, allocations: 3.5 kB / 0.7584 GB, free: 148.5 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0006805/1.834, allocations: 0.6423 MB / 0.7591 GB, free: 148.2 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0122/1.847, allocations: 5.3 MB / 0.7642 GB, free: 147.5 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01367/1.86, allocations: 6.117 MB / 0.7702 GB, free: 145 MB / 0.4948 GB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.2889/2.149, allocations: 39.47 MB / 0.8088 GB, free: 127.6 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.843e-05/2.149, allocations: 0 / 0.8088 GB, free: 127.6 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1035) (initialization): time 0.07546/2.225, allocations: 17.6 MB / 0.8259 GB, free: 112.7 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001033/2.226, allocations: 5.324 MB / 0.8311 GB, free: 107 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001123/2.226, allocations: 15.42 kB / 0.8312 GB, free: 107 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01383/2.24, allocations: 3.106 MB / 0.8342 GB, free: 104.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01541/2.255, allocations: 1.876 MB / 0.836 GB, free: 103.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04453/2.3, allocations: 22.73 MB / 0.8582 GB, free: 81.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009111/2.309, allocations: 343.2 kB / 0.8585 GB, free: 81.25 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002682/2.312, allocations: 310.3 kB / 0.8588 GB, free: 80.99 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/2.312, allocations: 4 kB / 0.8588 GB, free: 80.99 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05663/2.368, allocations: 17.09 MB / 0.8755 GB, free: 66.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001107/2.369, allocations: 12 kB / 0.8755 GB, free: 66.55 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01382/2.382, allocations: 3.098 MB / 0.8786 GB, free: 64.12 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01538/2.398, allocations: 1.865 MB / 0.8804 GB, free: 62.68 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04402/2.442, allocations: 22.68 MB / 0.9025 GB, free: 40.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008517/2.451, allocations: 319.7 kB / 0.9028 GB, free: 40.08 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002696/2.453, allocations: 311.8 kB / 0.9031 GB, free: 39.77 MB / 0.4948 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: Assuming redundant initial conditions for the following 1 initial equations: order2_1.w = $START.order2_1.w Warning: Iteration variables with default zero start attribute in equation system w/o analytic Jacobian: turbine.theta:VARIABLE(unit = "rad" ) "one of servo angles" type: Real Warning: Iteration variables with default zero start attribute in equation system w/o analytic Jacobian: turbine.d:VARIABLE(unit = "m" ) "servo term" type: Real Warning: Iteration variables with default zero start attribute in equation system w/o analytic Jacobian: turbine.phi:VARIABLE(unit = "rad" ) "one of servo angles" type: Real Warning: Iteration variables with default zero start attribute in equation system w/o 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.003682/2.457, allocations: 256.8 kB / 0.9034 GB, free: 39.53 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002143/2.459, allocations: 454.4 kB / 0.9038 GB, free: 39.08 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05724/2.516, allocations: 19.08 MB / 0.9225 GB, free: 20 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001166/2.517, allocations: 95.94 kB / 0.9225 GB, free: 19.9 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.801e-05/2.517, allocations: 3.984 kB / 0.9225 GB, free: 19.9 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002002/2.517, allocations: 43.83 kB / 0.9226 GB, free: 19.86 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.253/2.77, allocations: 30.35 MB / 0.9522 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001061/2.77, allocations: 7.625 kB / 0.9522 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01501/2.785, allocations: 1.799 MB / 0.954 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01593/2.801, allocations: 3.231 MB / 0.9571 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002678/2.804, allocations: 120.1 kB / 0.9573 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04718/2.851, allocations: 26.55 MB / 0.9832 GB, free: 123 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.447e-05/2.851, allocations: 16.31 kB / 0.9832 GB, free: 123 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.07788/2.929, allocations: 27.64 MB / 1.01 GB, free: 119.3 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001378/2.93, allocations: 0.5488 MB / 1.011 GB, free: 119 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003441/2.934, allocations: 25.92 kB / 1.011 GB, free: 119 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008814/2.943, allocations: 332.6 kB / 1.011 GB, free: 119 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003261/2.946, allocations: 0.5924 MB / 1.012 GB, free: 118.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002585/2.949, allocations: 289 kB / 1.012 GB, free: 118.8 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.002757/2.951, allocations: 1.279 MB / 1.013 GB, free: 118.3 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.02147/2.973, allocations: 3.217 MB / 1.016 GB, free: 118.3 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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.004687/2.978, allocations: 0.5073 MB / 1.017 GB, free: 118.1 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.08837/3.066, allocations: 22.64 MB / 1.039 GB, free: 107.3 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.291e-05/3.066, allocations: 0 / 1.039 GB, free: 107.3 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.05018/3.116, allocations: 8.544 MB / 1.047 GB, free: 99.46 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006672/3.123, allocations: 329.4 kB / 1.048 GB, free: 99.19 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08089/3.204, allocations: 18.5 MB / 1.066 GB, free: 82.71 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01763/3.222, allocations: 5.879 MB / 1.071 GB, free: 78.28 MB / 0.4948 GB Notification: Performance of SimCode: time 2.437e-06/3.222, allocations: 0 / 1.071 GB, free: 78.28 MB / 0.4948 GB Notification: Performance of Templates: time 0.5237/3.745, allocations: 193 MB / 1.26 GB, free: 99.71 MB / 0.4948 GB