Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",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.714/1.714, allocations: 194.9 MB / 202.5 MB, free: 6.914 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.246/1.96, allocations: 46.83 MB / 249.3 MB, free: 5.359 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08815/2.048, allocations: 44.51 MB / 293.9 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7086/2.757, allocations: 318.9 MB / 0.5984 GB, free: 35.36 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002973/2.757, allocations: 93.88 kB / 0.5985 GB, free: 35.31 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 1.314/4.071, allocations: 280.5 MB / 0.8724 GB, free: 59.93 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.662e-05/4.071, allocations: 9.734 kB / 0.8724 GB, free: 59.93 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002035/4.073, allocations: 165.8 kB / 0.8726 GB, free: 59.86 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006873/4.08, allocations: 1.097 MB / 0.8736 GB, free: 59.28 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001706/4.08, allocations: 42.64 kB / 0.8737 GB, free: 59.27 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006161/4.081, allocations: 55.03 kB / 0.8737 GB, free: 59.27 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008272/4.089, allocations: 1.464 MB / 0.8752 GB, free: 58.77 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006367/4.096, allocations: 1.502 MB / 0.8766 GB, free: 58.11 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.857e-05/4.096, allocations: 1.766 kB / 0.8766 GB, free: 58.11 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002552/4.096, allocations: 7.438 kB / 0.8766 GB, free: 58.1 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002063/4.096, allocations: 109.1 kB / 0.8767 GB, free: 58.09 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01791/4.114, allocations: 6.318 MB / 0.8829 GB, free: 53.24 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001705/4.116, allocations: 0.6478 MB / 0.8835 GB, free: 52.59 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001209/4.117, allocations: 0.5269 MB / 0.884 GB, free: 52.06 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005667/4.123, allocations: 2.744 MB / 0.8867 GB, free: 49.09 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.219e-05/4.123, allocations: 47.2 kB / 0.8868 GB, free: 49.04 MB / 394.7 MB Notification: Performance of pre-optimization done (n=80): time 4.038e-06/4.123, allocations: 0 / 0.8868 GB, free: 49.04 MB / 394.7 MB Notification: Performance of matching and sorting (n=90): time 0.0179/4.141, allocations: 3.221 MB / 0.8899 GB, free: 45.78 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.843e-05/4.141, allocations: 195.9 kB / 0.8901 GB, free: 45.55 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001756/4.143, allocations: 0.8499 MB / 0.8909 GB, free: 44.68 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003183/4.143, allocations: 29.7 kB / 0.891 GB, free: 44.65 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004284/4.143, allocations: 0.5287 MB / 0.8915 GB, free: 44.11 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003678/4.144, allocations: 307.6 kB / 0.8918 GB, free: 43.8 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001351/4.144, allocations: 0 / 0.8918 GB, free: 43.8 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001216/4.144, allocations: 368.7 kB / 0.8921 GB, free: 43.44 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001383/4.146, allocations: 0.5271 MB / 0.8926 GB, free: 42.92 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001655/4.147, allocations: 1.008 MB / 0.8936 GB, free: 41.71 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01905/4.166, allocations: 2.321 MB / 0.8959 GB, free: 39.45 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.061e-05/4.166, allocations: 4 kB / 0.8959 GB, free: 39.45 MB / 394.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.0225/4.189, allocations: 3.389 MB / 0.8992 GB, free: 36.09 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00111/4.19, allocations: 5.567 MB / 0.9046 GB, free: 30.14 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.525e-05/4.19, allocations: 12 kB / 0.9047 GB, free: 30.12 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001923/4.192, allocations: 337.1 kB / 0.905 GB, free: 29.79 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00231/4.194, allocations: 295.5 kB / 0.9053 GB, free: 29.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005654/4.2, allocations: 2.502 MB / 0.9077 GB, free: 26.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002592/4.203, allocations: 86.62 kB / 0.9078 GB, free: 26.85 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002723/4.203, allocations: 71.98 kB / 0.9078 GB, free: 26.78 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/4.203, allocations: 0 / 0.9078 GB, free: 26.78 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02164/4.225, allocations: 3.098 MB / 0.9109 GB, free: 23.72 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.168e-05/4.225, allocations: 23.94 kB / 0.9109 GB, free: 23.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001551/4.226, allocations: 266.1 kB / 0.9112 GB, free: 23.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002154/4.229, allocations: 307.5 kB / 0.9114 GB, free: 23.13 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00426/4.233, allocations: 2.248 MB / 0.9136 GB, free: 20.82 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002309/4.235, allocations: 77.36 kB / 0.9137 GB, free: 20.75 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003061/4.236, allocations: 71.97 kB / 0.9138 GB, free: 20.68 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],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 (171): * Single equations (assignments): 168 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.000498/4.236, allocations: 167.2 kB / 0.9139 GB, free: 20.52 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003976/4.236, allocations: 122.5 kB / 0.9141 GB, free: 20.39 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006968/4.243, allocations: 1.591 MB / 0.9156 GB, free: 18.82 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.67e-05/4.244, allocations: 15.98 kB / 0.9156 GB, free: 18.81 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/4.244, allocations: 0 / 0.9156 GB, free: 18.81 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.604e-05/4.244, allocations: 3.984 kB / 0.9156 GB, free: 18.8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009087/4.253, allocations: 2.71 MB / 0.9183 GB, free: 16.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.157e-06/4.253, allocations: 0 / 0.9183 GB, free: 16.07 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001354/4.254, allocations: 155.8 kB / 0.9184 GB, free: 15.92 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001859/4.256, allocations: 324.3 kB / 0.9187 GB, free: 15.6 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000216/4.256, allocations: 15.98 kB / 0.9187 GB, free: 15.59 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003936/4.26, allocations: 2.306 MB / 0.921 GB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.832e-06/4.26, allocations: 3.938 kB / 0.921 GB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006742/4.267, allocations: 2.193 MB / 0.9231 GB, free: 10.96 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008313/4.275, allocations: 3.278 MB / 0.9263 GB, free: 7.617 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000633/4.276, allocations: 219.3 kB / 0.9266 GB, free: 7.383 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003839/4.276, allocations: 15.61 kB / 0.9266 GB, free: 7.371 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001492/4.278, allocations: 59.89 kB / 0.9266 GB, free: 7.312 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002673/4.278, allocations: 92.77 kB / 0.9267 GB, free: 7.223 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001272/4.278, allocations: 31.98 kB / 0.9267 GB, free: 7.191 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001258/4.28, allocations: 0.6342 MB / 0.9274 GB, free: 6.551 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007288/4.287, allocations: 1.296 MB / 0.9286 GB, free: 5.258 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003783/4.291, allocations: 1.068 MB / 0.9297 GB, free: 4.281 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006216/4.297, allocations: 2.152 MB / 0.9318 GB, free: 2.133 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.968e-06/4.297, allocations: 0 / 0.9318 GB, free: 2.133 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002048/4.299, allocations: 0.6643 MB / 0.9324 GB, free: 1.469 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004233/4.303, allocations: 448.7 kB / 0.9329 GB, free: 1.035 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00754/4.311, allocations: 2.202 MB / 0.935 GB, free: 14.81 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002435/4.314, allocations: 1.418 MB / 0.9364 GB, free: 13.36 MB / 410.7 MB Notification: Performance of SimCode: time 1.172e-06/4.314, allocations: 0 / 0.9364 GB, free: 13.36 MB / 410.7 MB