Running command: translateModel(OpenHPL.Examples.HPDetailed_Francis,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="OpenHPL_OpenHPL.Examples.HPDetailed_Francis") [: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.133/2.133, allocations: 258 MB / 265 MB, free: 15.97 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.503e-06/7.581e-06, allocations: 0 / 327.4 MB, free: 1.5 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3317/0.3317, allocations: 60.22 MB / 387.6 MB, free: 6.984 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1603/0.4921, allocations: 107.4 MB / 495.1 MB, free: 12.12 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002528/0.4924, allocations: 79.95 kB / 495.2 MB, free: 12.04 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.6669/1.159, allocations: 107.1 MB / 0.5881 GB, free: 83.46 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002121/1.16, allocations: 139.9 kB / 0.5882 GB, free: 83.32 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: 2345 * Number of variables: 2345 Notification: Performance of Generate backend data structure: time 0.02624/1.186, allocations: 6.86 MB / 0.5949 GB, free: 76.39 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/1.186, allocations: 12.03 kB / 0.595 GB, free: 76.38 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004559/1.19, allocations: 0.7096 MB / 0.5956 GB, free: 75.66 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01046/1.201, allocations: 3.654 MB / 0.5992 GB, free: 71.97 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005058/1.202, allocations: 319.2 kB / 0.5995 GB, free: 71.65 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003716/1.205, allocations: 403.8 kB / 0.5999 GB, free: 71.26 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0475/1.253, allocations: 15.85 MB / 0.6154 GB, free: 55.4 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05448/1.307, allocations: 13.34 MB / 0.6284 GB, free: 42 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005213/1.308, allocations: 11.91 kB / 0.6284 GB, free: 41.98 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003601/1.312, allocations: 4 kB / 0.6284 GB, free: 41.98 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007646/1.312, allocations: 1.029 MB / 0.6294 GB, free: 40.95 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1015/1.414, allocations: 35.72 MB / 0.6643 GB, free: 5.156 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01427/1.428, allocations: 6.118 MB / 0.6703 GB, free: 15.03 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01244/1.441, allocations: 5.186 MB / 0.6753 GB, free: 9.836 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001907/1.443, allocations: 0.9812 MB / 0.6763 GB, free: 8.672 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001279/1.443, allocations: 112.5 kB / 0.6764 GB, free: 8.551 MB / 474.7 MB Notification: Performance of pre-optimization done (n=764): time 1.302e-05/1.443, allocations: 4 kB / 0.6764 GB, free: 8.547 MB / 474.7 MB Notification: Performance of matching and sorting (n=788): time 0.08355/1.526, allocations: 25.63 MB / 0.7015 GB, free: 14.77 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/1.526, allocations: 137.5 kB / 0.7016 GB, free: 14.62 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002166/1.529, allocations: 0.9705 MB / 0.7025 GB, free: 13.63 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001674/1.53, allocations: 25.7 kB / 0.7026 GB, free: 13.6 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001901/1.532, allocations: 2.319 MB / 0.7048 GB, free: 11.24 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.004499/1.537, allocations: 2.571 MB / 0.7073 GB, free: 8.633 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001217/1.538, allocations: 0 / 0.7073 GB, free: 8.633 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000831/1.539, allocations: 0.6596 MB / 0.708 GB, free: 7.965 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01212/1.551, allocations: 4.919 MB / 0.7128 GB, free: 3.043 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2882/1.839, allocations: 5.651 MB / 0.7183 GB, free: 169.7 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01599/1.855, allocations: 6.084 MB / 0.7242 GB, free: 169.6 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.796e-05/1.855, allocations: 7.562 kB / 0.7242 GB, free: 169.6 MB / 0.4949 GB Notification: Performance of matching and sorting (n=949) (initialization): time 0.04331/1.899, allocations: 13.43 MB / 0.7374 GB, free: 169.4 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/1.899, allocations: 3.75 kB / 0.7374 GB, free: 169.4 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-05/1.899, allocations: 14.66 kB / 0.7374 GB, free: 169.4 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007581/1.906, allocations: 1.477 MB / 0.7388 GB, free: 169.3 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01495/1.921, allocations: 1.755 MB / 0.7405 GB, free: 169.3 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02813/1.95, allocations: 18.16 MB / 0.7583 GB, free: 158.8 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007657/1.957, allocations: 170 kB / 0.7584 GB, free: 158.8 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002516/1.96, allocations: 290 kB / 0.7587 GB, free: 158.7 MB / 0.4949 GB Warning: Assuming fixed start value for the following 3 variables: penstockKP.U[20]:VARIABLE() "centered states" type: Real [20] penstockKP.U[11]:VARIABLE() "centered states" type: Real [20] surgeTank.Vdot:VARIABLE(start = surgeTank.Vdot_0 unit = "m3/s" ) "Water flow rate" type: Real 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.psi: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.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: generator.Idq[2]:VARIABLE(unit = "A" ) type: Real [2] generator.Idq[1]:VARIABLE(unit = "A" ) type: Real [2] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: penstockKP.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: penstockKP.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: 51 * Number of states: 0 () * Number of discrete variables: 4 (penstockKP.KP.boundaryCon[2,2],penstockKP.KP.boundaryCon[2,1],penstockKP.KP.boundaryCon[1,2],penstockKP.KP.boundaryCon[1,1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (898): * Single equations (assignments): 890 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {2,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: 2 {1 28,1 22} Notification: Performance of prepare postOptimizeDAE: time 0.003532/1.963, allocations: 235.5 kB / 0.7589 GB, free: 158.6 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002082/1.965, allocations: 331.3 kB / 0.7593 GB, free: 158.6 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05643/2.022, allocations: 14.71 MB / 0.7736 GB, free: 154.3 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001543/2.022, allocations: 83.19 kB / 0.7737 GB, free: 154.3 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-05/2.022, allocations: 2.656 kB / 0.7737 GB, free: 154.3 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002329/2.022, allocations: 46.38 kB / 0.7737 GB, free: 154.3 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1251/2.148, allocations: 24.72 MB / 0.7979 GB, free: 142.6 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001537/2.148, allocations: 8 kB / 0.7979 GB, free: 142.6 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02756/2.175, allocations: 1.714 MB / 0.7996 GB, free: 141.2 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01503/2.19, allocations: 1.53 MB / 0.8011 GB, free: 140 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003556/2.194, allocations: 115.3 kB / 0.8012 GB, free: 139.9 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04953/2.244, allocations: 20.5 MB / 0.8212 GB, free: 119.9 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-05/2.244, allocations: 11.94 kB / 0.8212 GB, free: 119.9 MB / 0.4949 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.06593/2.31, allocations: 22.29 MB / 0.843 GB, free: 99.79 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009843/2.311, allocations: 425.5 kB / 0.8434 GB, free: 99.37 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002885/2.314, allocations: 19.23 kB / 0.8434 GB, free: 99.36 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00709/2.321, allocations: 163.8 kB / 0.8436 GB, free: 99.25 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002809/2.324, allocations: 483.8 kB / 0.844 GB, free: 98.98 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00229/2.326, allocations: 271.2 kB / 0.8443 GB, free: 98.76 MB / 0.4949 GB Notification: Performance of sort global known variables: time 0.001371/2.327, allocations: 0.6977 MB / 0.845 GB, free: 98.11 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.009487/2.337, allocations: 1.701 MB / 0.8466 GB, free: 96.43 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 30 (reservoir.m,tail.m,generator.DELTA,generator.EEd,generator.EEq,generator.Ef,generator.Vstabilizer,generator.w,surgeTank.m,surgeTank.Vdot,penstockKP.U[1],penstockKP.U[2],penstockKP.U[3],penstockKP.U[4],penstockKP.U[5],penstockKP.U[6],penstockKP.U[7],penstockKP.U[8],penstockKP.U[9],penstockKP.U[10],penstockKP.U[11],penstockKP.U[12],penstockKP.U[13],penstockKP.U[14],penstockKP.U[15],penstockKP.U[16],penstockKP.U[17],penstockKP.U[18],penstockKP.U[19],penstockKP.U[20]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (829): * Single equations (assignments): 819 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * 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: 7 {2,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: 3 {1 30,1 24,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.002659/2.34, allocations: 319.5 kB / 0.8469 GB, free: 96.17 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.02805/2.368, allocations: 12.4 MB / 0.859 GB, free: 84.82 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.028e-05/2.368, allocations: 0 / 0.859 GB, free: 84.82 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01546/2.383, allocations: 6.933 MB / 0.8658 GB, free: 78.48 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003688/2.387, allocations: 221.6 kB / 0.866 GB, free: 78.3 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04552/2.432, allocations: 16.77 MB / 0.8824 GB, free: 63.38 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01734/2.45, allocations: 5.316 MB / 0.8876 GB, free: 59.3 MB / 0.4949 GB Notification: Performance of SimCode: time 1.522e-06/2.45, allocations: 0 / 0.8876 GB, free: 59.3 MB / 0.4949 GB Notification: Performance of Templates: time 0.3924/2.842, allocations: 112.3 MB / 0.9973 GB, free: 163 MB / 0.4949 GB