Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",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.658/1.658, allocations: 171.2 MB / 178.1 MB, free: 8.289 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2128/1.871, allocations: 41.11 MB / 219.3 MB, free: 11.19 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/1.975, allocations: 38.76 MB / 258 MB, free: 4.363 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8819/2.857, allocations: 317.9 MB / 0.5624 GB, free: 82.63 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002931/2.858, allocations: 87.64 kB / 0.5625 GB, free: 82.63 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.8468/3.704, allocations: 165.3 MB / 0.7239 GB, free: 64.38 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/3.705, allocations: 12.19 kB / 0.7239 GB, free: 64.37 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007335/3.705, allocations: 103.8 kB / 0.724 GB, free: 64.32 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002534/3.708, allocations: 0.6655 MB / 0.7247 GB, free: 63.93 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.31e-05/3.708, allocations: 20.53 kB / 0.7247 GB, free: 63.93 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002229/3.708, allocations: 32.03 kB / 0.7247 GB, free: 63.93 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002494/3.711, allocations: 0.717 MB / 0.7254 GB, free: 63.68 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00229/3.713, allocations: 0.8013 MB / 0.7262 GB, free: 63.29 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.564e-05/3.713, allocations: 0 / 0.7262 GB, free: 63.29 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001458/3.713, allocations: 3.969 kB / 0.7262 GB, free: 63.29 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-05/3.713, allocations: 47.83 kB / 0.7263 GB, free: 63.29 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008804/3.722, allocations: 3.725 MB / 0.7299 GB, free: 60.27 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009032/3.723, allocations: 339.8 kB / 0.7302 GB, free: 60.11 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005973/3.724, allocations: 234 kB / 0.7305 GB, free: 60 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00415/3.728, allocations: 1.924 MB / 0.7323 GB, free: 58.26 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.144e-05/3.728, allocations: 41.27 kB / 0.7324 GB, free: 58.21 MB / 346.7 MB Notification: Performance of pre-optimization done (n=37): time 3.967e-06/3.728, allocations: 0.875 kB / 0.7324 GB, free: 58.21 MB / 346.7 MB Notification: Performance of matching and sorting (n=42): time 0.01167/3.74, allocations: 1.775 MB / 0.7341 GB, free: 57.17 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.437e-05/3.74, allocations: 135.9 kB / 0.7342 GB, free: 57.01 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001213/3.741, allocations: 0.513 MB / 0.7347 GB, free: 56.71 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001639/3.741, allocations: 28.3 kB / 0.7348 GB, free: 56.68 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002938/3.742, allocations: 358.3 kB / 0.7351 GB, free: 56.37 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001835/3.742, allocations: 151.2 kB / 0.7353 GB, free: 56.24 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.709e-05/3.742, allocations: 3.281 kB / 0.7353 GB, free: 56.24 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001433/3.742, allocations: 379.6 kB / 0.7356 GB, free: 55.88 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006793/3.743, allocations: 232.8 kB / 0.7358 GB, free: 55.77 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008739/3.744, allocations: 0.5382 MB / 0.7364 GB, free: 55.25 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008304/3.752, allocations: 0.9899 MB / 0.7373 GB, free: 54.41 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.932e-05/3.752, allocations: 2.594 kB / 0.7373 GB, free: 54.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.009975/3.762, allocations: 1.478 MB / 0.7388 GB, free: 52.94 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007996/3.763, allocations: 3.91 MB / 0.7426 GB, free: 48.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.765e-05/3.763, allocations: 27.67 kB / 0.7426 GB, free: 48.72 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003384/3.763, allocations: 56.83 kB / 0.7427 GB, free: 48.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002845/3.766, allocations: 227.7 kB / 0.7429 GB, free: 48.44 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002964/3.769, allocations: 1.306 MB / 0.7442 GB, free: 47.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002512/3.772, allocations: 51.97 kB / 0.7442 GB, free: 47.04 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002402/3.772, allocations: 43.98 kB / 0.7443 GB, free: 46.99 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/3.772, allocations: 11.98 kB / 0.7443 GB, free: 46.98 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01239/3.784, allocations: 1.354 MB / 0.7456 GB, free: 45.63 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.837e-05/3.784, allocations: 15.38 kB / 0.7456 GB, free: 45.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002412/3.785, allocations: 60.81 kB / 0.7457 GB, free: 45.55 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001697/3.786, allocations: 216 kB / 0.7459 GB, free: 45.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009619/3.787, allocations: 0.6615 MB / 0.7465 GB, free: 44.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001161/3.789, allocations: 47.89 kB / 0.7466 GB, free: 44.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001014/3.789, allocations: 43.98 kB / 0.7466 GB, free: 44.57 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (98): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002961/3.789, allocations: 128.7 kB / 0.7467 GB, free: 44.43 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001883/3.789, allocations: 75.14 kB / 0.7468 GB, free: 44.36 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003623/3.793, allocations: 0.8744 MB / 0.7477 GB, free: 43.48 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.451e-05/3.793, allocations: 7.984 kB / 0.7477 GB, free: 43.47 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.553e-06/3.793, allocations: 0 / 0.7477 GB, free: 43.47 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.368e-06/3.793, allocations: 0 / 0.7477 GB, free: 43.47 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004584/3.798, allocations: 1.42 MB / 0.749 GB, free: 42.01 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.967e-06/3.798, allocations: 0 / 0.749 GB, free: 42.01 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001299/3.799, allocations: 139.8 kB / 0.7492 GB, free: 41.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002397/3.799, allocations: 44.53 kB / 0.7492 GB, free: 41.83 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.805e-05/3.799, allocations: 19.64 kB / 0.7492 GB, free: 41.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001233/3.8, allocations: 1.22 MB / 0.7504 GB, free: 40.55 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/3.801, allocations: 4.031 kB / 0.7504 GB, free: 40.54 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00326/3.804, allocations: 1.079 MB / 0.7515 GB, free: 39.42 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004291/3.808, allocations: 1.767 MB / 0.7532 GB, free: 37.6 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004717/3.809, allocations: 160.1 kB / 0.7534 GB, free: 37.42 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002902/3.809, allocations: 3.938 kB / 0.7534 GB, free: 37.42 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008739/3.81, allocations: 35.94 kB / 0.7534 GB, free: 37.38 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000156/3.81, allocations: 44.44 kB / 0.7535 GB, free: 37.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.938e-05/3.81, allocations: 23.98 kB / 0.7535 GB, free: 37.32 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0007002/3.811, allocations: 399.1 kB / 0.7539 GB, free: 36.93 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006003/3.817, allocations: 0.6944 MB / 0.7545 GB, free: 36.24 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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[2],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.00242/3.819, allocations: 0.6505 MB / 0.7552 GB, free: 35.64 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004465/3.824, allocations: 1.046 MB / 0.7562 GB, free: 34.61 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.468e-06/3.824, allocations: 4.188 kB / 0.7562 GB, free: 34.6 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001296/3.825, allocations: 345.4 kB / 0.7565 GB, free: 34.27 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003922/3.829, allocations: 242.9 kB / 0.7568 GB, free: 34.04 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005971/3.835, allocations: 1.156 MB / 0.7579 GB, free: 32.85 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001545/3.837, allocations: 1.094 MB / 0.759 GB, free: 31.73 MB / 346.7 MB Notification: Performance of SimCode: time 1.052e-06/3.837, allocations: 0 / 0.759 GB, free: 31.73 MB / 346.7 MB