Running command: "" <> buildModelFMU(OpenHPL.Examples.HPSimple_Francis,fileNamePrefix="OpenHPL_OpenHPL_Examples_HPSimple_Francis",fmuType="me",version="2.0",platforms={"static"}) [: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.252/2.252, allocations: 257.8 MB / 264.8 MB, free: 15.98 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2032/2.456, allocations: 62.54 MB / 327.4 MB, free: 1.426 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2981/2.754, allocations: 60.22 MB / 387.6 MB, free: 7.055 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1818/2.936, allocations: 102.6 MB / 490.1 MB, free: 1.09 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003148/2.936, allocations: 87.89 kB / 490.2 MB, free: 1.004 MB / 410.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.118/3.054, allocations: 21.64 MB / 0.4999 GB, free: 11.27 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.915e-05/3.054, allocations: 8 kB / 0.4999 GB, free: 11.27 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001035/3.055, allocations: 142.6 kB / 0.5 GB, free: 11.12 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00166/3.057, allocations: 498.3 kB / 0.5005 GB, free: 10.6 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002168/3.057, allocations: 109.3 kB / 0.5006 GB, free: 10.48 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002844/3.057, allocations: 52 kB / 0.5007 GB, free: 10.43 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003312/3.061, allocations: 0.863 MB / 0.5015 GB, free: 9.566 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002877/3.064, allocations: 0.8557 MB / 0.5023 GB, free: 8.684 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.18e-05/3.064, allocations: 15.84 kB / 0.5023 GB, free: 8.668 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001241/3.064, allocations: 0 / 0.5023 GB, free: 8.668 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.274e-05/3.064, allocations: 20 kB / 0.5024 GB, free: 8.648 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0145/3.078, allocations: 3.335 MB / 0.5056 GB, free: 5.172 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005295/3.084, allocations: 0.6116 MB / 0.5062 GB, free: 4.547 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001781/3.086, allocations: 363.3 kB / 0.5066 GB, free: 4.191 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002014/3.088, allocations: 0.8747 MB / 0.5074 GB, free: 3.133 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.913e-05/3.088, allocations: 39.34 kB / 0.5075 GB, free: 3.086 MB / 442.7 MB Notification: Performance of pre-optimization done (n=97): time 5.4e-06/3.088, allocations: 4 kB / 0.5075 GB, free: 3.082 MB / 442.7 MB Notification: Performance of matching and sorting (n=107): time 0.01683/3.105, allocations: 2.455 MB / 0.5099 GB, free: 0.5469 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.122e-05/3.105, allocations: 60.41 kB / 0.5099 GB, free: 488 kB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001442/3.106, allocations: 0.5894 MB / 0.5105 GB, free: 15.88 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002451/3.107, allocations: 29.7 kB / 0.5105 GB, free: 15.85 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003589/3.107, allocations: 394.8 kB / 0.5109 GB, free: 15.45 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005209/3.107, allocations: 366.6 kB / 0.5112 GB, free: 15.09 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001211/3.108, allocations: 0 / 0.5112 GB, free: 15.09 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002757/3.108, allocations: 398.7 kB / 0.5116 GB, free: 14.69 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001443/3.109, allocations: 412 kB / 0.512 GB, free: 14.29 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001574/3.111, allocations: 0.5826 MB / 0.5126 GB, free: 13.66 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002366/3.113, allocations: 0.532 MB / 0.5131 GB, free: 13.12 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-05/3.113, allocations: 4 kB / 0.5131 GB, free: 13.12 MB / 458.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.006645/3.12, allocations: 1.511 MB / 0.5146 GB, free: 11.59 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.539e-05/3.12, allocations: 11.06 kB / 0.5146 GB, free: 11.59 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.239e-05/3.12, allocations: 4 kB / 0.5146 GB, free: 11.58 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002043/3.122, allocations: 326.3 kB / 0.5149 GB, free: 11.25 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006062/3.128, allocations: 427.4 kB / 0.5153 GB, free: 10.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1922/3.321, allocations: 11.56 MB / 0.5266 GB, free: 167.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003992/3.325, allocations: 32.72 kB / 0.5266 GB, free: 167.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005159/3.325, allocations: 53.69 kB / 0.5267 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.0006334/3.326, allocations: 147.8 kB / 0.5268 GB, free: 167.4 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003915/3.326, allocations: 92.94 kB / 0.5269 GB, free: 167.4 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007513/3.334, allocations: 1.307 MB / 0.5282 GB, free: 167.3 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-05/3.334, allocations: 11.16 kB / 0.5282 GB, free: 167.3 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.388e-05/3.334, allocations: 6.656 kB / 0.5282 GB, free: 167.3 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.528e-05/3.334, allocations: 8.688 kB / 0.5282 GB, free: 167.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009358/3.343, allocations: 2.393 MB / 0.5306 GB, free: 166.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.271e-05/3.343, allocations: 3.75 kB / 0.5306 GB, free: 166.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004283/3.348, allocations: 395.2 kB / 0.5309 GB, free: 166.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00321/3.351, allocations: 396.6 kB / 0.5313 GB, free: 166.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002681/3.351, allocations: 10.94 kB / 0.5313 GB, free: 166.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01356/3.365, allocations: 13.93 MB / 0.5449 GB, free: 154.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.13e-05/3.365, allocations: 7.125 kB / 0.5449 GB, free: 154.2 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007162/3.372, allocations: 1.989 MB / 0.5469 GB, free: 153.7 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008462/3.381, allocations: 2.858 MB / 0.5497 GB, free: 152.8 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004186/3.381, allocations: 175.2 kB / 0.5498 GB, free: 152.6 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002663/3.381, allocations: 10.31 kB / 0.5499 GB, free: 152.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001608/3.383, allocations: 26.41 kB / 0.5499 GB, free: 152.6 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002288/3.383, allocations: 77.36 kB / 0.55 GB, free: 152.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001144/3.383, allocations: 34.47 kB / 0.55 GB, free: 152.6 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0008405/3.384, allocations: 449.7 kB / 0.5504 GB, free: 152.5 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003093/3.387, allocations: 421.5 kB / 0.5508 GB, free: 152.5 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.001122/3.388, allocations: 282.9 kB / 0.5511 GB, free: 152.4 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008285/3.397, allocations: 1.574 MB / 0.5526 GB, free: 152.1 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.704e-06/3.397, allocations: 3.906 kB / 0.5526 GB, free: 152.1 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003552/3.4, allocations: 1.059 MB / 0.5537 GB, free: 151.7 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001243/3.402, allocations: 99.75 kB / 0.5538 GB, free: 151.7 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006274/3.408, allocations: 2.081 MB / 0.5558 GB, free: 150.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00158/3.41, allocations: 1.232 MB / 0.557 GB, free: 150.2 MB / 458.7 MB Notification: Performance of SimCode: time 1.333e-06/3.41, allocations: 3.75 kB / 0.557 GB, free: 150.2 MB / 458.7 MB