Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",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.604/1.604, allocations: 171.2 MB / 178.1 MB, free: 8.289 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1935/1.797, allocations: 41.1 MB / 219.3 MB, free: 11.2 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08949/1.887, allocations: 38.77 MB / 258 MB, free: 4.359 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8731/2.76, allocations: 311.4 MB / 0.5561 GB, free: 85.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000305/2.76, allocations: 81.47 kB / 0.5562 GB, free: 85.43 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.7576/3.518, allocations: 136.6 MB / 0.6896 GB, free: 69.64 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/3.518, allocations: 14.5 kB / 0.6896 GB, free: 69.64 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006734/3.519, allocations: 91.56 kB / 0.6897 GB, free: 69.6 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002119/3.521, allocations: 0.5828 MB / 0.6902 GB, free: 69.36 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.049e-05/3.521, allocations: 18.69 kB / 0.6903 GB, free: 69.36 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000146/3.521, allocations: 26.47 kB / 0.6903 GB, free: 69.36 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001742/3.523, allocations: 0.6216 MB / 0.6909 GB, free: 69.36 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001682/3.525, allocations: 0.6699 MB / 0.6916 GB, free: 69.24 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.103e-05/3.525, allocations: 3.797 kB / 0.6916 GB, free: 69.24 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001016/3.525, allocations: 6.625 kB / 0.6916 GB, free: 69.24 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.67e-05/3.525, allocations: 45.88 kB / 0.6916 GB, free: 69.23 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006819/3.532, allocations: 2.738 MB / 0.6943 GB, free: 67.91 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008591/3.533, allocations: 368.3 kB / 0.6946 GB, free: 67.89 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005385/3.533, allocations: 243.5 kB / 0.6949 GB, free: 67.88 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003528/3.534, allocations: 342.6 kB / 0.6952 GB, free: 67.51 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.052e-05/3.534, allocations: 44.81 kB / 0.6952 GB, free: 67.47 MB / 346.7 MB Notification: Performance of pre-optimization done (n=48): time 2.635e-06/3.534, allocations: 0 / 0.6952 GB, free: 67.47 MB / 346.7 MB Notification: Performance of matching and sorting (n=58): time 0.009749/3.543, allocations: 1.871 MB / 0.6971 GB, free: 67.06 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.546e-05/3.543, allocations: 85.3 kB / 0.6971 GB, free: 66.96 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008998/3.544, allocations: 450 kB / 0.6976 GB, free: 66.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001673/3.545, allocations: 29.42 kB / 0.6976 GB, free: 66.81 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002049/3.545, allocations: 267.1 kB / 0.6979 GB, free: 66.64 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002327/3.545, allocations: 191.7 kB / 0.698 GB, free: 66.52 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.584e-05/3.545, allocations: 0 / 0.698 GB, free: 66.52 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001441/3.545, allocations: 379.8 kB / 0.6984 GB, free: 66.2 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007085/3.546, allocations: 272.5 kB / 0.6987 GB, free: 66.2 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009859/3.547, allocations: 440.2 kB / 0.6991 GB, free: 66.03 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007239/3.554, allocations: 0.8891 MB / 0.6999 GB, free: 66.02 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.257e-05/3.554, allocations: 3.938 kB / 0.6999 GB, free: 66.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.008899/3.563, allocations: 1.435 MB / 0.7013 GB, free: 65.94 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004322/3.564, allocations: 1.743 MB / 0.7031 GB, free: 64.12 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.849e-05/3.564, allocations: 14.5 kB / 0.7031 GB, free: 64.12 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008873/3.565, allocations: 160.7 kB / 0.7032 GB, free: 64.12 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001219/3.566, allocations: 153 kB / 0.7034 GB, free: 64.12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002721/3.569, allocations: 0.9894 MB / 0.7043 GB, free: 63.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001153/3.57, allocations: 33.41 kB / 0.7044 GB, free: 63.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.97e-05/3.57, allocations: 30.06 kB / 0.7044 GB, free: 63.59 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/3.57, allocations: 3.844 kB / 0.7044 GB, free: 63.59 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008315/3.578, allocations: 1.269 MB / 0.7056 GB, free: 63.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.486e-05/3.578, allocations: 3.719 kB / 0.7056 GB, free: 63.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006711/3.579, allocations: 110.7 kB / 0.7057 GB, free: 63.55 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001215/3.58, allocations: 156.1 kB / 0.7059 GB, free: 63.55 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001995/3.582, allocations: 0.8266 MB / 0.7067 GB, free: 63.04 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001048/3.583, allocations: 39.78 kB / 0.7067 GB, free: 63.03 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.905e-05/3.583, allocations: 29.83 kB / 0.7068 GB, free: 63.03 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003243/3.584, allocations: 125.8 kB / 0.7069 GB, free: 62.92 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001751/3.584, allocations: 65.16 kB / 0.7069 GB, free: 62.89 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003248/3.587, allocations: 0.8598 MB / 0.7078 GB, free: 62.8 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-05/3.587, allocations: 11.59 kB / 0.7078 GB, free: 62.8 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/3.587, allocations: 0 / 0.7078 GB, free: 62.8 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/3.587, allocations: 3.938 kB / 0.7078 GB, free: 62.8 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004837/3.592, allocations: 1.591 MB / 0.7094 GB, free: 62.48 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/3.592, allocations: 0 / 0.7094 GB, free: 62.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009865/3.593, allocations: 106.8 kB / 0.7095 GB, free: 62.48 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008385/3.594, allocations: 174.3 kB / 0.7096 GB, free: 62.47 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.19e-05/3.594, allocations: 14.88 kB / 0.7096 GB, free: 62.47 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001857/3.596, allocations: 0.8836 MB / 0.7105 GB, free: 61.94 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.471e-06/3.596, allocations: 7.344 kB / 0.7105 GB, free: 61.94 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00378/3.6, allocations: 1.284 MB / 0.7118 GB, free: 61.7 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005174/3.605, allocations: 2.05 MB / 0.7138 GB, free: 60.83 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003099/3.605, allocations: 144.9 kB / 0.7139 GB, free: 60.69 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000183/3.606, allocations: 7.844 kB / 0.7139 GB, free: 60.69 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008957/3.606, allocations: 32.47 kB / 0.7139 GB, free: 60.69 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000158/3.607, allocations: 51.12 kB / 0.714 GB, free: 60.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.866e-05/3.607, allocations: 33.19 kB / 0.714 GB, free: 60.68 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0005867/3.607, allocations: 345 kB / 0.7143 GB, free: 60.5 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005752/3.613, allocations: 0.6277 MB / 0.715 GB, free: 60.31 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.003066/3.616, allocations: 0.5731 MB / 0.7155 GB, free: 60.11 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004718/3.621, allocations: 1.097 MB / 0.7166 GB, free: 59.77 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.275e-05/3.621, allocations: 0 / 0.7166 GB, free: 59.77 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001506/3.623, allocations: 365.7 kB / 0.7169 GB, free: 59.66 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002735/3.625, allocations: 277.8 kB / 0.7172 GB, free: 59.61 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003562/3.629, allocations: 1.196 MB / 0.7184 GB, free: 59.18 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001014/3.63, allocations: 1.061 MB / 0.7194 GB, free: 58.45 MB / 346.7 MB Notification: Performance of SimCode: time 1.132e-06/3.63, allocations: 1.844 kB / 0.7194 GB, free: 58.45 MB / 346.7 MB