Running command: translateModel(OpenHPL.Examples.HPSimple_Francis,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="OpenHPL_OpenHPL.Examples.HPSimple_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.085/2.085, allocations: 258 MB / 265 MB, free: 15.96 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.284e-06/9.382e-06, allocations: 4 kB / 327.4 MB, free: 1.5 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2604, allocations: 60.23 MB / 387.7 MB, free: 7.012 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1579/0.4184, allocations: 102.6 MB / 490.2 MB, free: 1 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002682/0.4187, allocations: 83.91 kB / 490.3 MB, free: 0.918 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.1008/0.5195, allocations: 20.37 MB / 0.4987 GB, free: 12.52 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.695e-05/0.5197, allocations: 24 kB / 0.4987 GB, free: 12.49 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.004288/0.524, allocations: 1.255 MB / 0.5 GB, free: 11.19 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.524, allocations: 8.031 kB / 0.5 GB, free: 11.18 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001036/0.5251, allocations: 130.6 kB / 0.5001 GB, free: 11.05 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00146/0.5266, allocations: 0.4906 MB / 0.5006 GB, free: 10.52 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001963/0.5268, allocations: 109.3 kB / 0.5007 GB, free: 10.4 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002985/0.5271, allocations: 52 kB / 0.5007 GB, free: 10.35 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00282/0.5299, allocations: 0.863 MB / 0.5016 GB, free: 9.488 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002679/0.5327, allocations: 0.8557 MB / 0.5024 GB, free: 8.605 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.301e-05/0.5328, allocations: 7.906 kB / 0.5024 GB, free: 8.598 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001271/0.5329, allocations: 3.984 kB / 0.5024 GB, free: 8.594 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.829e-05/0.5329, allocations: 20 kB / 0.5024 GB, free: 8.574 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01044/0.5434, allocations: 3.342 MB / 0.5057 GB, free: 5.086 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002439/0.5459, allocations: 0.6071 MB / 0.5063 GB, free: 4.469 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001104/0.547, allocations: 363.2 kB / 0.5066 GB, free: 4.113 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001279/0.5483, allocations: 0.8747 MB / 0.5075 GB, free: 3.055 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.478e-05/0.5484, allocations: 43.28 kB / 0.5075 GB, free: 3.004 MB / 442.7 MB Notification: Performance of pre-optimization done (n=97): time 6.689e-06/0.5484, allocations: 8 kB / 0.5075 GB, free: 2.996 MB / 442.7 MB Notification: Performance of matching and sorting (n=107): time 0.009764/0.5582, allocations: 2.455 MB / 0.5099 GB, free: 480 kB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.611e-05/0.5583, allocations: 60.41 kB / 0.51 GB, free: 408 kB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001255/0.5596, allocations: 0.5894 MB / 0.5106 GB, free: 15.81 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002156/0.5598, allocations: 25.7 kB / 0.5106 GB, free: 15.78 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003461/0.5602, allocations: 402.8 kB / 0.511 GB, free: 15.38 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005359/0.5607, allocations: 362.6 kB / 0.5113 GB, free: 15.02 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000134/0.5609, allocations: 0 / 0.5113 GB, free: 15.02 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002822/0.5612, allocations: 402.7 kB / 0.5117 GB, free: 14.61 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001266/0.5625, allocations: 408 kB / 0.5121 GB, free: 14.21 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001448/0.5639, allocations: 0.5826 MB / 0.5127 GB, free: 13.58 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002132/0.5661, allocations: 0.532 MB / 0.5132 GB, free: 13.05 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.308e-05/0.5661, allocations: 4 kB / 0.5132 GB, free: 13.04 MB / 458.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.005458/0.5716, allocations: 1.507 MB / 0.5147 GB, free: 11.52 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.309e-05/0.5717, allocations: 4 kB / 0.5147 GB, free: 11.52 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.974e-05/0.5717, allocations: 4 kB / 0.5147 GB, free: 11.51 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00155/0.5733, allocations: 330.2 kB / 0.515 GB, free: 11.18 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003858/0.5771, allocations: 427.4 kB / 0.5154 GB, free: 10.76 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1523/0.7295, allocations: 11.56 MB / 0.5267 GB, free: 167.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001854/0.7314, allocations: 37.28 kB / 0.5267 GB, free: 167.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001806/0.7316, allocations: 48.05 kB / 0.5268 GB, free: 167.5 MB / 458.7 MB Warning: Assuming fixed start value for the following 2 variables: surgeTank.Vdot:VARIABLE(start = surgeTank.Vdot_0 unit = "m3/s" ) "Water flow rate" type: Real penstock.Vdot:VARIABLE(start = penstock.Vdot_0 unit = "m3/s" ) "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[1]:VARIABLE(unit = "A" ) type: Real [2] generator.Idq[2]:VARIABLE(unit = "A" ) type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 152 * 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: 1 {(1,100.0%) 17} * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003779/0.732, allocations: 142.2 kB / 0.5269 GB, free: 167.4 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002145/0.7323, allocations: 89.12 kB / 0.527 GB, free: 167.4 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004586/0.7369, allocations: 1.309 MB / 0.5283 GB, free: 167.3 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-05/0.7369, allocations: 11.72 kB / 0.5283 GB, free: 167.3 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/0.7369, allocations: 6.188 kB / 0.5283 GB, free: 167.3 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.788e-05/0.737, allocations: 10.11 kB / 0.5283 GB, free: 167.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007137/0.7441, allocations: 2.39 MB / 0.5306 GB, free: 166.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/0.7442, allocations: 3.156 kB / 0.5306 GB, free: 166.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003163/0.7473, allocations: 399.9 kB / 0.531 GB, free: 166.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002362/0.7497, allocations: 392.5 kB / 0.5314 GB, free: 166.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001755/0.7499, allocations: 14.59 kB / 0.5314 GB, free: 166.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01193/0.7619, allocations: 13.93 MB / 0.545 GB, free: 154.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.842e-06/0.7619, allocations: 6.094 kB / 0.545 GB, free: 154.2 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005975/0.7679, allocations: 2.003 MB / 0.547 GB, free: 153.7 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003979/0.7684, allocations: 176 kB / 0.5471 GB, free: 153.6 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003305/0.7687, allocations: 7.531 kB / 0.5471 GB, free: 153.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001341/0.7701, allocations: 29.34 kB / 0.5472 GB, free: 153.6 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002221/0.7703, allocations: 75.09 kB / 0.5472 GB, free: 153.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.987e-05/0.7704, allocations: 35.47 kB / 0.5473 GB, free: 153.5 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0007439/0.7712, allocations: 444.6 kB / 0.5477 GB, free: 153.4 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0021/0.7733, allocations: 402.8 kB / 0.5481 GB, free: 153.4 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 11 (reservoir.m,tail.m,generator.DELTA,generator.EEd,generator.EEq,generator.Ef,generator.Vstabilizer,generator.w,penstock.Vdot,surgeTank.m,surgeTank.Vdot) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 86 * 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: 1 {(1,100.0%) 17} * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008014/0.7741, allocations: 297.9 kB / 0.5484 GB, free: 153.4 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005535/0.7797, allocations: 1.568 MB / 0.5499 GB, free: 153 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.656e-06/0.7797, allocations: 0 / 0.5499 GB, free: 153 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002777/0.7825, allocations: 1.063 MB / 0.5509 GB, free: 152.6 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001099/0.7836, allocations: 96.69 kB / 0.551 GB, free: 152.6 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005292/0.7889, allocations: 2.061 MB / 0.553 GB, free: 151.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001344/0.7903, allocations: 1.215 MB / 0.5542 GB, free: 151.2 MB / 458.7 MB Notification: Performance of SimCode: time 1.387e-06/0.7904, allocations: 3.938 kB / 0.5542 GB, free: 151.2 MB / 458.7 MB Notification: Performance of Templates: time 0.04612/0.8365, allocations: 18.82 MB / 0.5726 GB, free: 147.3 MB / 458.7 MB