Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_1_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.671/1.671, allocations: 171.2 MB / 178.1 MB, free: 8.293 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2269/1.898, allocations: 41.12 MB / 219.3 MB, free: 11.18 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0885/1.987, allocations: 38.76 MB / 258 MB, free: 4.352 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.939/2.926, allocations: 313.9 MB / 0.5585 GB, free: 84.6 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004386/2.927, allocations: 88.34 kB / 0.5586 GB, free: 84.6 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 1.464/4.39, allocations: 280.4 MB / 0.8324 GB, free: 32.91 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/4.39, allocations: 14 kB / 0.8324 GB, free: 32.91 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001437/4.392, allocations: 169.2 kB / 0.8326 GB, free: 32.83 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004717/4.396, allocations: 1.1 MB / 0.8337 GB, free: 32.52 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001652/4.397, allocations: 33.56 kB / 0.8337 GB, free: 32.52 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007814/4.397, allocations: 60.09 kB / 0.8338 GB, free: 32.52 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004909/4.402, allocations: 1.471 MB / 0.8352 GB, free: 32.51 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005029/4.407, allocations: 1.499 MB / 0.8367 GB, free: 32.25 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.103e-05/4.408, allocations: 0 / 0.8367 GB, free: 32.25 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002656/4.408, allocations: 3.844 kB / 0.8367 GB, free: 32.25 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001663/4.408, allocations: 109.8 kB / 0.8368 GB, free: 32.25 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01843/4.426, allocations: 6.341 MB / 0.843 GB, free: 29.24 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001798/4.428, allocations: 0.6366 MB / 0.8436 GB, free: 29.22 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001344/4.43, allocations: 0.5275 MB / 0.8441 GB, free: 29.21 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006067/4.436, allocations: 2.732 MB / 0.8468 GB, free: 27.75 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.575e-05/4.436, allocations: 44.69 kB / 0.8468 GB, free: 27.71 MB / 346.7 MB Notification: Performance of pre-optimization done (n=80): time 3.907e-06/4.436, allocations: 3.812 kB / 0.8468 GB, free: 27.71 MB / 346.7 MB Notification: Performance of matching and sorting (n=90): time 0.0182/4.454, allocations: 3.207 MB / 0.8499 GB, free: 27.15 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/4.454, allocations: 196 kB / 0.8501 GB, free: 26.93 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002264/4.457, allocations: 0.8638 MB / 0.851 GB, free: 26.76 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003447/4.457, allocations: 29.58 kB / 0.851 GB, free: 26.73 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004998/4.457, allocations: 0.5223 MB / 0.8515 GB, free: 26.4 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004744/4.458, allocations: 317.5 kB / 0.8518 GB, free: 26.21 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001478/4.458, allocations: 0 / 0.8518 GB, free: 26.21 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/4.458, allocations: 360.1 kB / 0.8522 GB, free: 25.9 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001513/4.46, allocations: 0.5338 MB / 0.8527 GB, free: 25.9 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002408/4.462, allocations: 0.9978 MB / 0.8537 GB, free: 25.34 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01951/4.482, allocations: 2.317 MB / 0.8559 GB, free: 25.33 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-05/4.482, allocations: 3.969 kB / 0.8559 GB, free: 25.33 MB / 346.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.02355/4.505, allocations: 3.4 MB / 0.8592 GB, free: 25.19 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001314/4.507, allocations: 5.558 MB / 0.8647 GB, free: 19.39 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-05/4.507, allocations: 11.88 kB / 0.8647 GB, free: 19.39 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001927/4.509, allocations: 341.3 kB / 0.865 GB, free: 19.37 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002344/4.511, allocations: 294 kB / 0.8653 GB, free: 19.37 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006235/4.518, allocations: 2.506 MB / 0.8677 GB, free: 33.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002587/4.52, allocations: 77.66 kB / 0.8678 GB, free: 33.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003901/4.521, allocations: 75.05 kB / 0.8679 GB, free: 33.79 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/4.521, allocations: 3.906 kB / 0.8679 GB, free: 33.79 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02212/4.543, allocations: 3.101 MB / 0.8709 GB, free: 33.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.207e-05/4.543, allocations: 14.69 kB / 0.8709 GB, free: 33.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001747/4.545, allocations: 270 kB / 0.8712 GB, free: 33.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003145/4.548, allocations: 306.9 kB / 0.8715 GB, free: 33.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005027/4.553, allocations: 2.247 MB / 0.8737 GB, free: 32.13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002417/4.555, allocations: 74.64 kB / 0.8737 GB, free: 32.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003413/4.556, allocations: 69.66 kB / 0.8738 GB, free: 32.12 MB / 362.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.0005561/4.556, allocations: 161.1 kB / 0.874 GB, free: 31.98 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004109/4.557, allocations: 125.5 kB / 0.8741 GB, free: 31.92 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006994/4.564, allocations: 1.596 MB / 0.8756 GB, free: 31.8 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.638e-05/4.564, allocations: 11.69 kB / 0.8757 GB, free: 31.8 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.916e-06/4.564, allocations: 0 / 0.8757 GB, free: 31.8 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.699e-05/4.564, allocations: 10.72 kB / 0.8757 GB, free: 31.8 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009182/4.573, allocations: 2.712 MB / 0.8783 GB, free: 31.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.127e-06/4.573, allocations: 0 / 0.8783 GB, free: 31.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001375/4.575, allocations: 151.7 kB / 0.8785 GB, free: 31.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001793/4.576, allocations: 333.4 kB / 0.8788 GB, free: 31.35 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001282/4.577, allocations: 15.41 kB / 0.8788 GB, free: 31.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004384/4.581, allocations: 2.301 MB / 0.881 GB, free: 29.54 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.665e-06/4.581, allocations: 2.719 kB / 0.881 GB, free: 29.54 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006941/4.588, allocations: 2.192 MB / 0.8832 GB, free: 28.6 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009067/4.597, allocations: 3.288 MB / 0.8864 GB, free: 26.97 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006921/4.598, allocations: 210.2 kB / 0.8866 GB, free: 26.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004909/4.598, allocations: 13.2 kB / 0.8866 GB, free: 26.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001587/4.6, allocations: 56.16 kB / 0.8867 GB, free: 26.79 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003097/4.6, allocations: 89.78 kB / 0.8867 GB, free: 26.78 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000152/4.6, allocations: 37.11 kB / 0.8868 GB, free: 26.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.00153/4.602, allocations: 0.6333 MB / 0.8874 GB, free: 26.48 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00824/4.61, allocations: 1.299 MB / 0.8887 GB, free: 26.06 MB / 362.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.004434/4.615, allocations: 1.073 MB / 0.8897 GB, free: 25.73 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00717/4.622, allocations: 2.146 MB / 0.8918 GB, free: 25.02 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.149e-05/4.622, allocations: 2.594 kB / 0.8918 GB, free: 25.02 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002327/4.624, allocations: 0.6677 MB / 0.8925 GB, free: 24.81 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004394/4.629, allocations: 449.5 kB / 0.8929 GB, free: 24.73 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007747/4.637, allocations: 2.207 MB / 0.895 GB, free: 23.9 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00193/4.639, allocations: 1.418 MB / 0.8964 GB, free: 22.69 MB / 362.7 MB Notification: Performance of SimCode: time 1.483e-06/4.639, allocations: 0 / 0.8964 GB, free: 22.69 MB / 362.7 MB