Running command: translateModel(OpenHPL.Examples.HPSimple_Francis_IPSLGen,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="OpenHPL_OpenHPL.Examples.HPSimple_Francis_IPSLGen") [: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.044/2.044, allocations: 258 MB / 265 MB, free: 15.95 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.38e-06/6.483e-06, allocations: 0 / 327.4 MB, free: 1.477 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/0.2865, allocations: 60.24 MB / 387.7 MB, free: 6.957 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1762/0.4627, allocations: 113.8 MB / 0.4897 GB, free: 5.688 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002859/0.4631, allocations: 83.95 kB / 0.4898 GB, free: 5.605 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.8/1.263, allocations: 131.3 MB / 0.6181 GB, free: 53.57 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003545/1.263, allocations: 167.9 kB / 0.6182 GB, free: 53.41 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.03281/1.296, allocations: 8.405 MB / 0.6264 GB, free: 44.93 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/1.296, allocations: 8.031 kB / 0.6264 GB, free: 44.93 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01079/1.307, allocations: 1.32 MB / 0.6277 GB, free: 43.59 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01309/1.32, allocations: 4.381 MB / 0.632 GB, free: 39.16 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007867/1.321, allocations: 0.5496 MB / 0.6325 GB, free: 38.56 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003985/1.325, allocations: 443.8 kB / 0.633 GB, free: 38.13 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04029/1.365, allocations: 16.65 MB / 0.6492 GB, free: 21.46 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03933/1.405, allocations: 14.09 MB / 0.663 GB, free: 7.324 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000337/1.405, allocations: 11.91 kB / 0.663 GB, free: 7.312 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004692/1.41, allocations: 3.938 kB / 0.663 GB, free: 7.309 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001302/1.411, allocations: 1.054 MB / 0.664 GB, free: 6.254 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1204/1.532, allocations: 38.78 MB / 0.7019 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01775/1.55, allocations: 6.762 MB / 0.7085 GB, free: 8.387 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01386/1.563, allocations: 5.73 MB / 0.7141 GB, free: 2.645 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002034/1.565, allocations: 0.9937 MB / 0.7151 GB, free: 1.465 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001219/1.566, allocations: 121.2 kB / 0.7152 GB, free: 1.336 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=853): time 1.407e-05/1.566, allocations: 0 / 0.7152 GB, free: 1.336 MB / 0.4948 GB Notification: Performance of matching and sorting (n=877): time 0.2529/1.819, allocations: 31.07 MB / 0.7455 GB, free: 151.5 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.113e-05/1.819, allocations: 202 kB / 0.7457 GB, free: 151.4 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003575/1.822, allocations: 1.77 MB / 0.7474 GB, free: 151.2 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001913/1.824, allocations: 25.7 kB / 0.7475 GB, free: 151.1 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001355/1.826, allocations: 2.531 MB / 0.7499 GB, free: 149.8 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.004141/1.83, allocations: 2.857 MB / 0.7527 GB, free: 147.9 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001758/1.832, allocations: 0 / 0.7527 GB, free: 147.9 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0006616/1.832, allocations: 0.6452 MB / 0.7534 GB, free: 147.6 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01234/1.845, allocations: 5.289 MB / 0.7585 GB, free: 147.6 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01375/1.858, allocations: 6.12 MB / 0.7645 GB, free: 147 MB / 0.4948 GB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.2283/2.087, allocations: 39.48 MB / 0.8031 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-05/2.087, allocations: 7.828 kB / 0.8031 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1035) (initialization): time 0.06008/2.147, allocations: 17.61 MB / 0.8203 GB, free: 120.1 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001032/2.148, allocations: 5.324 MB / 0.8255 GB, free: 114.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001089/2.148, allocations: 16 kB / 0.8255 GB, free: 114.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01396/2.162, allocations: 3.097 MB / 0.8285 GB, free: 112 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01531/2.177, allocations: 1.882 MB / 0.8303 GB, free: 110.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04367/2.221, allocations: 22.74 MB / 0.8526 GB, free: 88.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009355/2.231, allocations: 335.2 kB / 0.8529 GB, free: 88.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002896/2.234, allocations: 322.1 kB / 0.8532 GB, free: 88.43 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/2.234, allocations: 4 kB / 0.8532 GB, free: 88.42 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.08973/2.323, allocations: 17.1 MB / 0.8699 GB, free: 73.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001716/2.324, allocations: 15.91 kB / 0.8699 GB, free: 73.96 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02699/2.351, allocations: 3.099 MB / 0.8729 GB, free: 71.54 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03105/2.382, allocations: 1.863 MB / 0.8747 GB, free: 70.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04609/2.428, allocations: 22.67 MB / 0.8969 GB, free: 47.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008655/2.437, allocations: 331.6 kB / 0.8972 GB, free: 47.24 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002703/2.439, allocations: 307.8 kB / 0.8975 GB, free: 46.94 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_[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.003901/2.443, allocations: 241.9 kB / 0.8977 GB, free: 46.7 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002385/2.446, allocations: 454.4 kB / 0.8982 GB, free: 46.25 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05868/2.504, allocations: 19.1 MB / 0.9168 GB, free: 27.15 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001173/2.504, allocations: 95.94 kB / 0.9169 GB, free: 27.05 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-05/2.505, allocations: 3.984 kB / 0.9169 GB, free: 27.05 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001977/2.505, allocations: 43.83 kB / 0.9169 GB, free: 27.01 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2443/2.749, allocations: 30.34 MB / 0.9466 GB, free: 131 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.776e-05/2.749, allocations: 7.625 kB / 0.9466 GB, free: 131 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01512/2.764, allocations: 1.799 MB / 0.9483 GB, free: 131 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01525/2.78, allocations: 3.236 MB / 0.9515 GB, free: 130.9 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002421/2.782, allocations: 124.5 kB / 0.9516 GB, free: 130.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04566/2.828, allocations: 26.53 MB / 0.9775 GB, free: 117.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-05/2.828, allocations: 13.12 kB / 0.9775 GB, free: 117.3 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.09494/2.923, allocations: 27.65 MB / 1.005 GB, free: 115.6 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001945/2.925, allocations: 0.5325 MB / 1.005 GB, free: 115.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004454/2.929, allocations: 34.38 kB / 1.005 GB, free: 115.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01354/2.943, allocations: 332.5 kB / 1.005 GB, free: 115.4 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004423/2.947, allocations: 0.5862 MB / 1.006 GB, free: 115.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00272/2.95, allocations: 289.1 kB / 1.006 GB, free: 115.4 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.004234/2.954, allocations: 1.284 MB / 1.008 GB, free: 115.3 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.02624/2.981, allocations: 3.22 MB / 1.011 GB, free: 115.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 24,1 30,1 8,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.004752/2.985, allocations: 0.5158 MB / 1.011 GB, free: 115.1 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0744/3.06, allocations: 22.62 MB / 1.033 GB, free: 108.1 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.525e-05/3.06, allocations: 4.75 kB / 1.033 GB, free: 108.1 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.02344/3.083, allocations: 8.538 MB / 1.042 GB, free: 105.1 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005009/3.088, allocations: 332.8 kB / 1.042 GB, free: 104.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0573/3.146, allocations: 18.48 MB / 1.06 GB, free: 89.09 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0202/3.166, allocations: 5.875 MB / 1.066 GB, free: 84.67 MB / 0.4948 GB Notification: Performance of SimCode: time 1.797e-06/3.166, allocations: 0 / 1.066 GB, free: 84.67 MB / 0.4948 GB Notification: Performance of Templates: time 0.5206/3.687, allocations: 193 MB / 1.254 GB, free: 105 MB / 0.4948 GB