Running command: "" <> buildModelFMU(OpenHPL.Examples.HPDetailed_Francis,fileNamePrefix="OpenHPL_OpenHPL_Examples_HPDetailed_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.311/2.311, allocations: 257.8 MB / 264.8 MB, free: 15.97 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1652/2.476, allocations: 62.55 MB / 327.4 MB, free: 1.391 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3099/2.786, allocations: 60.21 MB / 387.6 MB, free: 7.07 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1925/2.978, allocations: 107.4 MB / 495 MB, free: 12.21 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003587/2.979, allocations: 87.95 kB / 495.1 MB, free: 12.12 MB / 426.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.957/3.936, allocations: 114.1 MB / 0.5949 GB, free: 76.57 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/3.936, allocations: 8 kB / 0.5949 GB, free: 76.56 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005739/3.942, allocations: 0.7096 MB / 0.5956 GB, free: 75.84 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01323/3.955, allocations: 3.658 MB / 0.5991 GB, free: 72.14 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005755/3.956, allocations: 323.2 kB / 0.5994 GB, free: 71.82 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004819/3.96, allocations: 407.8 kB / 0.5998 GB, free: 71.42 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04672/4.007, allocations: 15.84 MB / 0.6153 GB, free: 55.57 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06903/4.076, allocations: 13.34 MB / 0.6283 GB, free: 42.16 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005335/4.077, allocations: 7.906 kB / 0.6283 GB, free: 42.15 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005064/4.082, allocations: 0 / 0.6283 GB, free: 42.15 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002353/4.084, allocations: 1.029 MB / 0.6293 GB, free: 41.12 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1359/4.22, allocations: 35.71 MB / 0.6642 GB, free: 5.34 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02715/4.248, allocations: 6.122 MB / 0.6702 GB, free: 15.21 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0175/4.265, allocations: 5.186 MB / 0.6753 GB, free: 10.02 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002281/4.267, allocations: 0.9852 MB / 0.6762 GB, free: 8.848 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001108/4.268, allocations: 112.5 kB / 0.6763 GB, free: 8.727 MB / 474.7 MB Notification: Performance of pre-optimization done (n=764): time 9.989e-06/4.268, allocations: 4 kB / 0.6763 GB, free: 8.723 MB / 474.7 MB Notification: Performance of matching and sorting (n=788): time 0.1143/4.382, allocations: 25.63 MB / 0.7014 GB, free: 14.94 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/4.382, allocations: 133.6 kB / 0.7015 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00262/4.385, allocations: 0.9743 MB / 0.7025 GB, free: 13.8 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.00232/4.387, allocations: 26.83 kB / 0.7025 GB, free: 13.77 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002589/4.39, allocations: 2.323 MB / 0.7047 GB, free: 11.41 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00777/4.397, allocations: 2.559 MB / 0.7072 GB, free: 8.816 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002635/4.4, allocations: 0 / 0.7072 GB, free: 8.816 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001324/4.402, allocations: 0.6713 MB / 0.7079 GB, free: 8.137 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01629/4.418, allocations: 4.915 MB / 0.7127 GB, free: 3.219 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3444/4.762, allocations: 5.648 MB / 0.7182 GB, free: 169.8 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01932/4.782, allocations: 6.085 MB / 0.7242 GB, free: 169.7 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.351e-05/4.782, allocations: 10.64 kB / 0.7242 GB, free: 169.7 MB / 0.4949 GB Notification: Performance of matching and sorting (n=949) (initialization): time 0.05744/4.839, allocations: 13.44 MB / 0.7373 GB, free: 169.4 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/4.839, allocations: 6.406 kB / 0.7373 GB, free: 169.4 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.646e-05/4.839, allocations: 10.53 kB / 0.7373 GB, free: 169.4 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01106/4.85, allocations: 1.486 MB / 0.7388 GB, free: 169.4 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02263/4.873, allocations: 1.753 MB / 0.7405 GB, free: 169.4 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03671/4.91, allocations: 18.16 MB / 0.7582 GB, free: 158.6 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01185/4.922, allocations: 167.6 kB / 0.7584 GB, free: 158.6 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003085/4.925, allocations: 288 kB / 0.7586 GB, free: 158.6 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.005487/4.93, allocations: 238.5 kB / 0.7589 GB, free: 158.5 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003432/4.934, allocations: 326.5 kB / 0.7592 GB, free: 158.5 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06724/5.001, allocations: 14.7 MB / 0.7735 GB, free: 154.2 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001487/5.001, allocations: 86.41 kB / 0.7736 GB, free: 154.2 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.878e-05/5.002, allocations: 3.938 kB / 0.7736 GB, free: 154.2 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002387/5.002, allocations: 40.88 kB / 0.7737 GB, free: 154.2 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09377/5.096, allocations: 24.73 MB / 0.7978 GB, free: 141.5 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001318/5.096, allocations: 8 kB / 0.7978 GB, free: 141.5 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02665/5.122, allocations: 1.722 MB / 0.7995 GB, free: 140.1 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01614/5.139, allocations: 1.533 MB / 0.801 GB, free: 138.9 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003629/5.142, allocations: 115.9 kB / 0.8011 GB, free: 138.8 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05024/5.193, allocations: 20.49 MB / 0.8211 GB, free: 118.8 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.524e-05/5.193, allocations: 8 kB / 0.8211 GB, free: 118.8 MB / 0.4949 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1011/5.294, allocations: 22.3 MB / 0.8429 GB, free: 98.67 MB / 0.4949 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1272/5.421, allocations: 31.06 MB / 0.8732 GB, free: 70.59 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001481/5.423, allocations: 417.7 kB / 0.8736 GB, free: 70.18 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004213/5.427, allocations: 23.56 kB / 0.8737 GB, free: 70.16 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01429/5.441, allocations: 159.8 kB / 0.8738 GB, free: 70.06 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004537/5.446, allocations: 489.5 kB / 0.8743 GB, free: 69.79 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003722/5.45, allocations: 269 kB / 0.8745 GB, free: 69.57 MB / 0.4949 GB Notification: Performance of sort global known variables: time 0.002361/5.452, allocations: 0.6958 MB / 0.8752 GB, free: 68.92 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01633/5.468, allocations: 1.713 MB / 0.8769 GB, free: 67.23 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.003912/5.472, allocations: 310.8 kB / 0.8772 GB, free: 66.97 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.05213/5.524, allocations: 12.4 MB / 0.8893 GB, free: 55.62 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 2.073e-05/5.525, allocations: 3.828 kB / 0.8893 GB, free: 55.62 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.02676/5.551, allocations: 6.926 MB / 0.8961 GB, free: 48.94 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006023/5.557, allocations: 231.3 kB / 0.8963 GB, free: 48.72 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08445/5.642, allocations: 16.82 MB / 0.9127 GB, free: 31.87 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0237/5.666, allocations: 5.415 MB / 0.918 GB, free: 26.42 MB / 0.4949 GB Notification: Performance of SimCode: time 1.803e-06/5.666, allocations: 0 / 0.918 GB, free: 26.42 MB / 0.4949 GB