Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",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.605/1.605, allocations: 194.9 MB / 202.5 MB, free: 6.918 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.205/1.81, allocations: 46.83 MB / 249.3 MB, free: 5.371 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08671/1.897, allocations: 44.5 MB / 293.8 MB, free: 10.92 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6933/2.59, allocations: 318.6 MB / 0.5981 GB, free: 35.61 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002887/2.591, allocations: 82.64 kB / 0.5981 GB, free: 35.57 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.8173/3.408, allocations: 191 MB / 0.7847 GB, free: 7 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/3.408, allocations: 15.94 kB / 0.7847 GB, free: 6.984 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007939/3.409, allocations: 114.8 kB / 0.7848 GB, free: 6.871 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002639/3.412, allocations: 0.7724 MB / 0.7856 GB, free: 6.059 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.961e-05/3.412, allocations: 24 kB / 0.7856 GB, free: 6.035 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001754/3.412, allocations: 32 kB / 0.7856 GB, free: 6.004 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002342/3.414, allocations: 0.924 MB / 0.7865 GB, free: 5.078 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002148/3.416, allocations: 0.9616 MB / 0.7875 GB, free: 4.055 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.219e-05/3.416, allocations: 7.844 kB / 0.7875 GB, free: 4.047 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000131/3.417, allocations: 4 kB / 0.7875 GB, free: 4.043 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.88e-05/3.417, allocations: 73.25 kB / 0.7876 GB, free: 3.973 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1427/3.559, allocations: 4.273 MB / 0.7917 GB, free: 98.66 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001007/3.56, allocations: 401.4 kB / 0.7921 GB, free: 98.64 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006719/3.561, allocations: 293.5 kB / 0.7924 GB, free: 98.63 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003289/3.564, allocations: 1.952 MB / 0.7943 GB, free: 97.42 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.764e-05/3.565, allocations: 40.89 kB / 0.7943 GB, free: 97.38 MB / 394.7 MB Notification: Performance of pre-optimization done (n=40): time 3.397e-06/3.565, allocations: 0 / 0.7943 GB, free: 97.38 MB / 394.7 MB Notification: Performance of matching and sorting (n=45): time 0.008934/3.573, allocations: 1.777 MB / 0.7961 GB, free: 97.02 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.861e-05/3.574, allocations: 160.7 kB / 0.7962 GB, free: 96.83 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001176/3.575, allocations: 0.6238 MB / 0.7968 GB, free: 96.7 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001395/3.575, allocations: 29.36 kB / 0.7969 GB, free: 96.67 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002878/3.575, allocations: 408 kB / 0.7973 GB, free: 96.45 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001788/3.575, allocations: 152.4 kB / 0.7974 GB, free: 96.37 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.697e-05/3.576, allocations: 0 / 0.7974 GB, free: 96.37 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000139/3.576, allocations: 398.2 kB / 0.7978 GB, free: 96.05 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007611/3.576, allocations: 290.1 kB / 0.7981 GB, free: 96.05 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009193/3.577, allocations: 0.651 MB / 0.7987 GB, free: 95.62 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01208/3.589, allocations: 1.46 MB / 0.8001 GB, free: 95.62 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.641e-05/3.59, allocations: 3.469 kB / 0.8001 GB, free: 95.62 MB / 394.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.01417/3.604, allocations: 2.087 MB / 0.8022 GB, free: 95.52 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008853/3.605, allocations: 4.433 MB / 0.8065 GB, free: 90.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.824e-05/3.605, allocations: 12.97 kB / 0.8065 GB, free: 90.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001037/3.606, allocations: 169.5 kB / 0.8067 GB, free: 90.88 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00202/3.608, allocations: 192.6 kB / 0.8069 GB, free: 90.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004802/3.613, allocations: 1.522 MB / 0.8083 GB, free: 89.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002057/3.615, allocations: 44.39 kB / 0.8084 GB, free: 89.84 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00021/3.615, allocations: 47.03 kB / 0.8084 GB, free: 89.84 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/3.615, allocations: 3.906 kB / 0.8084 GB, free: 89.84 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01352/3.629, allocations: 1.917 MB / 0.8103 GB, free: 89.81 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.136e-05/3.629, allocations: 10.34 kB / 0.8103 GB, free: 89.81 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009963/3.63, allocations: 161.2 kB / 0.8105 GB, free: 89.79 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001341/3.631, allocations: 201.3 kB / 0.8107 GB, free: 89.79 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002412/3.633, allocations: 1.413 MB / 0.812 GB, free: 88.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001377/3.635, allocations: 44.41 kB / 0.8121 GB, free: 88.75 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/3.635, allocations: 46.17 kB / 0.8121 GB, free: 88.75 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 107 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003107/3.635, allocations: 154.3 kB / 0.8123 GB, free: 88.64 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001814/3.636, allocations: 80.28 kB / 0.8123 GB, free: 88.6 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003722/3.639, allocations: 0.8352 MB / 0.8132 GB, free: 88.54 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/3.639, allocations: 5.438 kB / 0.8132 GB, free: 88.54 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/3.639, allocations: 0 / 0.8132 GB, free: 88.54 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.868e-06/3.639, allocations: 7.875 kB / 0.8132 GB, free: 88.54 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00469/3.644, allocations: 1.518 MB / 0.8147 GB, free: 88.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/3.644, allocations: 0 / 0.8147 GB, free: 88.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007/3.645, allocations: 80.36 kB / 0.8147 GB, free: 88.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009991/3.646, allocations: 158.1 kB / 0.8149 GB, free: 88.21 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.258e-05/3.646, allocations: 7.25 kB / 0.8149 GB, free: 88.21 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002219/3.648, allocations: 1.412 MB / 0.8163 GB, free: 87.17 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.366e-06/3.648, allocations: 3.906 kB / 0.8163 GB, free: 87.17 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003319/3.652, allocations: 1.137 MB / 0.8174 GB, free: 86.91 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004227/3.656, allocations: 1.866 MB / 0.8192 GB, free: 86.28 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000381/3.656, allocations: 167.2 kB / 0.8194 GB, free: 86.14 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002272/3.656, allocations: 6.469 kB / 0.8194 GB, free: 86.14 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009368/3.657, allocations: 36.56 kB / 0.8194 GB, free: 86.14 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001426/3.658, allocations: 48.27 kB / 0.8195 GB, free: 86.14 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.94e-05/3.658, allocations: 20.28 kB / 0.8195 GB, free: 86.14 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0008257/3.658, allocations: 471.2 kB / 0.8199 GB, free: 86.05 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005353/3.664, allocations: 0.8668 MB / 0.8208 GB, free: 86.05 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002764/3.667, allocations: 0.799 MB / 0.8215 GB, free: 85.95 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003335/3.67, allocations: 1.184 MB / 0.8227 GB, free: 85.94 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.123e-06/3.67, allocations: 0 / 0.8227 GB, free: 85.94 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008676/3.671, allocations: 310 kB / 0.823 GB, free: 85.93 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002545/3.674, allocations: 278.6 kB / 0.8233 GB, free: 85.93 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004248/3.678, allocations: 1.339 MB / 0.8246 GB, free: 85.62 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009906/3.679, allocations: 1.137 MB / 0.8257 GB, free: 84.91 MB / 394.7 MB Notification: Performance of SimCode: time 1.182e-06/3.679, allocations: 0 / 0.8257 GB, free: 84.91 MB / 394.7 MB