Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_3_2_2_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.606/1.606, allocations: 194.9 MB / 202.5 MB, free: 6.914 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2044/1.81, allocations: 46.83 MB / 249.3 MB, free: 5.367 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09304/1.903, allocations: 44.5 MB / 293.8 MB, free: 10.92 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7019/2.605, allocations: 316.4 MB / 0.596 GB, free: 37.81 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002946/2.606, allocations: 83.2 kB / 0.5961 GB, free: 37.77 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.6162/3.222, allocations: 136.6 MB / 0.7295 GB, free: 62.59 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/3.222, allocations: 8 kB / 0.7295 GB, free: 62.58 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004861/3.222, allocations: 87.05 kB / 0.7296 GB, free: 62.49 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001673/3.224, allocations: 0.5753 MB / 0.7301 GB, free: 61.89 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.894e-05/3.224, allocations: 16 kB / 0.7302 GB, free: 61.87 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001122/3.224, allocations: 31.91 kB / 0.7302 GB, free: 61.84 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00204/3.226, allocations: 0.6189 MB / 0.7308 GB, free: 61.22 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001616/3.228, allocations: 0.6737 MB / 0.7315 GB, free: 60.52 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.857e-05/3.228, allocations: 7.938 kB / 0.7315 GB, free: 60.51 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.539e-05/3.228, allocations: 0 / 0.7315 GB, free: 60.51 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.046e-05/3.228, allocations: 48.97 kB / 0.7315 GB, free: 60.46 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006121/3.234, allocations: 2.738 MB / 0.7342 GB, free: 57.58 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007964/3.235, allocations: 370.9 kB / 0.7345 GB, free: 57.21 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005621/3.236, allocations: 242.1 kB / 0.7348 GB, free: 56.97 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002994/3.236, allocations: 344.7 kB / 0.7351 GB, free: 56.57 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.437e-05/3.236, allocations: 47 kB / 0.7351 GB, free: 56.51 MB / 394.7 MB Notification: Performance of pre-optimization done (n=48): time 3.196e-06/3.236, allocations: 0 / 0.7351 GB, free: 56.51 MB / 394.7 MB Notification: Performance of matching and sorting (n=58): time 0.008703/3.245, allocations: 1.867 MB / 0.737 GB, free: 54.6 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.982e-05/3.245, allocations: 89.61 kB / 0.737 GB, free: 54.49 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007942/3.246, allocations: 450.1 kB / 0.7375 GB, free: 54.05 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001062/3.246, allocations: 33.64 kB / 0.7375 GB, free: 54.01 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001814/3.246, allocations: 256.2 kB / 0.7378 GB, free: 53.75 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001942/3.246, allocations: 197.1 kB / 0.7379 GB, free: 53.55 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.488e-05/3.246, allocations: 0 / 0.7379 GB, free: 53.55 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001144/3.246, allocations: 374.8 kB / 0.7383 GB, free: 53.18 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000672/3.247, allocations: 273.5 kB / 0.7386 GB, free: 52.91 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007916/3.248, allocations: 441.3 kB / 0.739 GB, free: 52.42 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007033/3.255, allocations: 0.8888 MB / 0.7398 GB, free: 51.53 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.208e-05/3.255, allocations: 0 / 0.7398 GB, free: 51.53 MB / 394.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.008735/3.264, allocations: 1.444 MB / 0.7413 GB, free: 50.08 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003344/3.264, allocations: 1.748 MB / 0.743 GB, free: 48.19 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/3.264, allocations: 8 kB / 0.743 GB, free: 48.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008416/3.265, allocations: 160.7 kB / 0.7431 GB, free: 48.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001141/3.266, allocations: 147.8 kB / 0.7433 GB, free: 47.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002686/3.269, allocations: 0.9815 MB / 0.7442 GB, free: 46.87 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001132/3.27, allocations: 43.88 kB / 0.7443 GB, free: 46.83 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.526e-05/3.27, allocations: 32 kB / 0.7443 GB, free: 46.8 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/3.27, allocations: 6.344 kB / 0.7443 GB, free: 46.79 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008038/3.278, allocations: 1.264 MB / 0.7455 GB, free: 45.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/3.278, allocations: 4 kB / 0.7455 GB, free: 45.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006592/3.279, allocations: 108.7 kB / 0.7456 GB, free: 45.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001151/3.28, allocations: 155.8 kB / 0.7458 GB, free: 45.26 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001928/3.282, allocations: 0.8253 MB / 0.7466 GB, free: 44.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009763/3.283, allocations: 32.03 kB / 0.7466 GB, free: 44.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.144e-05/3.283, allocations: 32.06 kB / 0.7467 GB, free: 44.34 MB / 394.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.0003225/3.284, allocations: 132.5 kB / 0.7468 GB, free: 44.21 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001762/3.284, allocations: 67.19 kB / 0.7469 GB, free: 44.14 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003182/3.287, allocations: 0.8492 MB / 0.7477 GB, free: 43.29 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.003e-05/3.287, allocations: 8 kB / 0.7477 GB, free: 43.28 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/3.287, allocations: 0 / 0.7477 GB, free: 43.28 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.212e-05/3.287, allocations: 7.984 kB / 0.7477 GB, free: 43.27 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004647/3.292, allocations: 1.592 MB / 0.7493 GB, free: 41.64 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.306e-06/3.292, allocations: 4.062 kB / 0.7493 GB, free: 41.64 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009568/3.293, allocations: 111.9 kB / 0.7494 GB, free: 41.53 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00082/3.294, allocations: 168.7 kB / 0.7495 GB, free: 41.36 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.096e-05/3.294, allocations: 11.98 kB / 0.7495 GB, free: 41.35 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001835/3.295, allocations: 0.8956 MB / 0.7504 GB, free: 40.43 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/3.295, allocations: 3.938 kB / 0.7504 GB, free: 40.43 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003645/3.299, allocations: 1.281 MB / 0.7517 GB, free: 39.1 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004664/3.304, allocations: 2.051 MB / 0.7537 GB, free: 37.02 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002909/3.304, allocations: 144.3 kB / 0.7538 GB, free: 36.86 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001802/3.304, allocations: 7.906 kB / 0.7538 GB, free: 36.85 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008834/3.305, allocations: 35.91 kB / 0.7538 GB, free: 36.82 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001576/3.305, allocations: 48.58 kB / 0.7539 GB, free: 36.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.511e-05/3.306, allocations: 23.98 kB / 0.7539 GB, free: 36.75 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0005708/3.306, allocations: 346.9 kB / 0.7542 GB, free: 36.41 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004528/3.311, allocations: 0.6362 MB / 0.7549 GB, free: 35.77 MB / 394.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.001917/3.313, allocations: 0.5897 MB / 0.7554 GB, free: 35.21 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003202/3.316, allocations: 1.096 MB / 0.7565 GB, free: 34.11 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/3.316, allocations: 3.859 kB / 0.7565 GB, free: 34.11 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009673/3.317, allocations: 363.5 kB / 0.7569 GB, free: 33.76 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002645/3.32, allocations: 266 kB / 0.7571 GB, free: 33.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003415/3.323, allocations: 1.195 MB / 0.7583 GB, free: 32.26 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009021/3.324, allocations: 1.065 MB / 0.7593 GB, free: 31.17 MB / 394.7 MB Notification: Performance of SimCode: time 1.152e-06/3.324, allocations: 0 / 0.7593 GB, free: 31.17 MB / 394.7 MB