Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",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(Modelica): time 1.648/1.648, allocations: 171.2 MB / 178.1 MB, free: 8.293 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.187/1.835, allocations: 41.1 MB / 219.2 MB, free: 11.21 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08956/1.924, allocations: 38.77 MB / 258 MB, free: 4.367 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.027/2.951, allocations: 399.1 MB / 0.6417 GB, free: 17.85 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003613/2.952, allocations: 84.64 kB / 0.6418 GB, free: 17.8 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 1.204/4.156, allocations: 211.2 MB / 0.8481 GB, free: 53.2 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/4.156, allocations: 10.09 kB / 0.8481 GB, free: 53.2 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001415/4.157, allocations: 163.5 kB / 0.8483 GB, free: 53.13 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003952/4.161, allocations: 0.9999 MB / 0.8493 GB, free: 52.8 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000237/4.161, allocations: 203.8 kB / 0.8495 GB, free: 52.65 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004642/4.162, allocations: 62.97 kB / 0.8495 GB, free: 52.65 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00467/4.167, allocations: 1.654 MB / 0.8511 GB, free: 52.64 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004892/4.172, allocations: 1.675 MB / 0.8528 GB, free: 52.45 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.75e-05/4.172, allocations: 3.094 kB / 0.8528 GB, free: 52.45 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002534/4.172, allocations: 0 / 0.8528 GB, free: 52.45 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001575/4.172, allocations: 111.4 kB / 0.8529 GB, free: 52.45 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02217/4.194, allocations: 6.654 MB / 0.8594 GB, free: 50.41 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002886/4.197, allocations: 0.9731 MB / 0.8603 GB, free: 50.39 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002552/4.2, allocations: 0.8346 MB / 0.8611 GB, free: 50.38 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01093/4.211, allocations: 3.932 MB / 0.865 GB, free: 48.04 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.392e-05/4.211, allocations: 47.38 kB / 0.865 GB, free: 47.99 MB / 346.7 MB Notification: Performance of pre-optimization done (n=110): time 5.01e-06/4.211, allocations: 2.844 kB / 0.865 GB, free: 47.99 MB / 346.7 MB Notification: Performance of matching and sorting (n=122): time 0.04977/4.261, allocations: 6.479 MB / 0.8714 GB, free: 46.08 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.539e-05/4.261, allocations: 142.5 kB / 0.8715 GB, free: 45.92 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001901/4.263, allocations: 0.6594 MB / 0.8721 GB, free: 45.62 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004888/4.263, allocations: 27.02 kB / 0.8722 GB, free: 45.59 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004303/4.264, allocations: 431.2 kB / 0.8726 GB, free: 45.27 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008191/4.265, allocations: 399.2 kB / 0.873 GB, free: 44.97 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001885/4.265, allocations: 1.156 kB / 0.873 GB, free: 44.97 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001435/4.265, allocations: 355.3 kB / 0.8733 GB, free: 44.64 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002386/4.267, allocations: 0.7584 MB / 0.874 GB, free: 44.36 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002761/4.27, allocations: 1.013 MB / 0.875 GB, free: 43.81 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01866/4.289, allocations: 2.437 MB / 0.8774 GB, free: 43.36 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.359e-05/4.289, allocations: 3.125 kB / 0.8774 GB, free: 43.36 MB / 346.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.02579/4.315, allocations: 3.987 MB / 0.8813 GB, free: 42.38 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006168/4.315, allocations: 2.355 MB / 0.8836 GB, free: 39.88 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.58e-05/4.316, allocations: 6.438 kB / 0.8836 GB, free: 39.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004377/4.32, allocations: 1.003 MB / 0.8846 GB, free: 39.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002328/4.322, allocations: 218.4 kB / 0.8848 GB, free: 39.08 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01398/4.336, allocations: 6.656 MB / 0.8913 GB, free: 32.67 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002846/4.339, allocations: 73.81 kB / 0.8914 GB, free: 32.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004756/4.34, allocations: 60.19 kB / 0.8914 GB, free: 32.57 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/4.34, allocations: 4 kB / 0.8914 GB, free: 32.56 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01989/4.36, allocations: 3.106 MB / 0.8945 GB, free: 30.21 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-05/4.36, allocations: 8 kB / 0.8945 GB, free: 30.2 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003566/4.363, allocations: 0.7187 MB / 0.8952 GB, free: 29.63 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002333/4.366, allocations: 228.8 kB / 0.8954 GB, free: 29.46 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01259/4.378, allocations: 6.449 MB / 0.9017 GB, free: 22.91 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00372/4.382, allocations: 62.73 kB / 0.9017 GB, free: 22.85 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006453/4.383, allocations: 59.97 kB / 0.9018 GB, free: 22.79 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 9,2 3,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0009398/4.384, allocations: 147.2 kB / 0.9019 GB, free: 22.65 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006905/4.385, allocations: 114.6 kB / 0.902 GB, free: 22.54 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01666/4.401, allocations: 3.263 MB / 0.9052 GB, free: 19.31 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.385e-05/4.401, allocations: 12 kB / 0.9052 GB, free: 19.3 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.291e-05/4.401, allocations: 4 kB / 0.9053 GB, free: 19.3 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.109e-05/4.401, allocations: 7.969 kB / 0.9053 GB, free: 19.29 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02474/4.426, allocations: 4.665 MB / 0.9098 GB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.429e-05/4.426, allocations: 0 / 0.9098 GB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00164/4.428, allocations: 147.8 kB / 0.91 GB, free: 14.47 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004106/4.432, allocations: 1.011 MB / 0.9109 GB, free: 13.48 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003698/4.432, allocations: 22.22 kB / 0.911 GB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01301/4.445, allocations: 6.674 MB / 0.9175 GB, free: 6.531 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.151e-06/4.446, allocations: 3.219 kB / 0.9175 GB, free: 6.531 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01529/4.461, allocations: 4.198 MB / 0.9216 GB, free: 2.328 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02023/4.481, allocations: 5.867 MB / 0.9273 GB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001697/4.483, allocations: 398.2 kB / 0.9277 GB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004238/4.483, allocations: 0 / 0.9277 GB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002255/4.486, allocations: 74.45 kB / 0.9278 GB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005648/4.486, allocations: 129.1 kB / 0.9279 GB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002707/4.487, allocations: 47.97 kB / 0.9279 GB, free: 11.81 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.001263/4.488, allocations: 0.4913 MB / 0.9284 GB, free: 11.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.008911/4.497, allocations: 1.167 MB / 0.9296 GB, free: 10.15 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.medium.T,upperTank.level,lowerTank.medium.T,lowerTank.level) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 12,2 4,4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.003617/4.5, allocations: 0.7934 MB / 0.9303 GB, free: 9.438 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01305/4.513, allocations: 3.457 MB / 0.9337 GB, free: 5.945 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.418e-05/4.514, allocations: 0 / 0.9337 GB, free: 5.945 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005867/4.519, allocations: 1.257 MB / 0.9349 GB, free: 4.668 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005261/4.525, allocations: 472.2 kB / 0.9354 GB, free: 4.223 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02037/4.545, allocations: 2.582 MB / 0.9379 GB, free: 1.641 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003776/4.549, allocations: 1.436 MB / 0.9393 GB, free: 176 kB / 362.7 MB Notification: Performance of SimCode: time 2.194e-06/4.549, allocations: 0 / 0.9393 GB, free: 176 kB / 362.7 MB