Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_2_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.633/1.633, allocations: 194.9 MB / 202.5 MB, free: 6.832 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2339/1.867, allocations: 46.84 MB / 249.4 MB, free: 5.348 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09733/1.964, allocations: 44.5 MB / 293.9 MB, free: 10.9 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7288/2.693, allocations: 322.9 MB / 0.6023 GB, free: 29.91 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003091/2.694, allocations: 94.67 kB / 0.6024 GB, free: 29.86 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.704/3.398, allocations: 165.4 MB / 0.7639 GB, free: 26.73 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/3.398, allocations: 8 kB / 0.7639 GB, free: 26.73 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005951/3.398, allocations: 103 kB / 0.764 GB, free: 26.62 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00197/3.4, allocations: 0.6656 MB / 0.7646 GB, free: 25.93 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.365e-05/3.4, allocations: 20 kB / 0.7646 GB, free: 25.91 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/3.4, allocations: 32 kB / 0.7647 GB, free: 25.88 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001818/3.402, allocations: 0.7171 MB / 0.7654 GB, free: 25.16 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001699/3.404, allocations: 0.798 MB / 0.7662 GB, free: 24.31 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.088e-05/3.404, allocations: 11.88 kB / 0.7662 GB, free: 24.3 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001102/3.404, allocations: 0 / 0.7662 GB, free: 24.3 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.687e-05/3.404, allocations: 53.19 kB / 0.7662 GB, free: 24.25 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007152/3.411, allocations: 3.724 MB / 0.7699 GB, free: 20.3 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007806/3.412, allocations: 330.5 kB / 0.7702 GB, free: 19.98 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005284/3.413, allocations: 229.5 kB / 0.7704 GB, free: 19.75 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003322/3.416, allocations: 1.947 MB / 0.7723 GB, free: 17.61 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.721e-05/3.416, allocations: 38.56 kB / 0.7723 GB, free: 17.56 MB / 394.7 MB Notification: Performance of pre-optimization done (n=37): time 3.076e-06/3.416, allocations: 0 / 0.7723 GB, free: 17.56 MB / 394.7 MB Notification: Performance of matching and sorting (n=42): time 0.01047/3.427, allocations: 1.767 MB / 0.7741 GB, free: 15.74 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.038e-05/3.427, allocations: 136.5 kB / 0.7742 GB, free: 15.57 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009473/3.428, allocations: 0.5227 MB / 0.7747 GB, free: 15.04 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001164/3.428, allocations: 29.7 kB / 0.7747 GB, free: 15.01 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002526/3.428, allocations: 359.5 kB / 0.7751 GB, free: 14.65 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001537/3.428, allocations: 149.9 kB / 0.7752 GB, free: 14.5 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.781e-05/3.428, allocations: 0 / 0.7752 GB, free: 14.5 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001218/3.429, allocations: 374.8 kB / 0.7756 GB, free: 14.12 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006131/3.429, allocations: 237.9 kB / 0.7758 GB, free: 13.89 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007452/3.43, allocations: 0.5383 MB / 0.7763 GB, free: 13.21 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007911/3.438, allocations: 0.9892 MB / 0.7773 GB, free: 12.22 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.276e-05/3.438, allocations: 4 kB / 0.7773 GB, free: 12.22 MB / 394.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.009628/3.448, allocations: 1.481 MB / 0.7787 GB, free: 10.73 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007071/3.448, allocations: 3.917 MB / 0.7826 GB, free: 6.504 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.074e-05/3.448, allocations: 12 kB / 0.7826 GB, free: 6.492 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003314/3.449, allocations: 60.86 kB / 0.7826 GB, free: 6.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002401/3.451, allocations: 239.6 kB / 0.7829 GB, free: 6.195 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001739/3.453, allocations: 1.302 MB / 0.7841 GB, free: 4.844 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001326/3.454, allocations: 43.98 kB / 0.7842 GB, free: 4.801 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001054/3.454, allocations: 47.98 kB / 0.7842 GB, free: 4.754 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/3.454, allocations: 4 kB / 0.7842 GB, free: 4.75 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008928/3.463, allocations: 1.351 MB / 0.7855 GB, free: 3.395 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.648e-05/3.463, allocations: 12 kB / 0.7856 GB, free: 3.383 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002389/3.464, allocations: 56.83 kB / 0.7856 GB, free: 3.324 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001761/3.465, allocations: 219.6 kB / 0.7858 GB, free: 3.109 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001004/3.466, allocations: 0.6616 MB / 0.7865 GB, free: 2.422 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001213/3.468, allocations: 47.92 kB / 0.7865 GB, free: 2.375 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001092/3.468, allocations: 43.98 kB / 0.7865 GB, free: 2.332 MB / 394.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.0002884/3.468, allocations: 140.5 kB / 0.7867 GB, free: 2.188 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001729/3.468, allocations: 71.16 kB / 0.7868 GB, free: 2.117 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003747/3.472, allocations: 0.8627 MB / 0.7876 GB, free: 1.246 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.535e-05/3.472, allocations: 4 kB / 0.7876 GB, free: 1.242 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/3.472, allocations: 11.84 kB / 0.7876 GB, free: 1.23 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.779e-06/3.472, allocations: 3.984 kB / 0.7876 GB, free: 1.227 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1423/3.614, allocations: 1.409 MB / 0.789 GB, free: 110.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.037e-05/3.614, allocations: 3.469 kB / 0.789 GB, free: 110.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001363/3.616, allocations: 144.6 kB / 0.7891 GB, free: 110.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002314/3.616, allocations: 38.81 kB / 0.7892 GB, free: 110.2 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.433e-05/3.616, allocations: 11.8 kB / 0.7892 GB, free: 110.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001181/3.617, allocations: 1.233 MB / 0.7904 GB, free: 109.1 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/3.617, allocations: 3.938 kB / 0.7904 GB, free: 109.1 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00321/3.621, allocations: 1.073 MB / 0.7914 GB, free: 108.9 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003981/3.625, allocations: 1.77 MB / 0.7932 GB, free: 108.3 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003343/3.625, allocations: 150.9 kB / 0.7933 GB, free: 108.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002003/3.625, allocations: 3.469 kB / 0.7933 GB, free: 108.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008363/3.626, allocations: 34.27 kB / 0.7933 GB, free: 108.2 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001611/3.626, allocations: 48.95 kB / 0.7934 GB, free: 108.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.696e-05/3.626, allocations: 21.97 kB / 0.7934 GB, free: 108.2 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0006984/3.627, allocations: 396.4 kB / 0.7938 GB, free: 108.1 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004738/3.632, allocations: 0.693 MB / 0.7945 GB, free: 108.1 MB / 394.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.002198/3.634, allocations: 0.6443 MB / 0.7951 GB, free: 108 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00392/3.638, allocations: 1.059 MB / 0.7961 GB, free: 108 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/3.638, allocations: 3.688 kB / 0.7961 GB, free: 108 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001237/3.639, allocations: 326.2 kB / 0.7964 GB, free: 108 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002489/3.642, allocations: 259.7 kB / 0.7967 GB, free: 108 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003653/3.646, allocations: 1.145 MB / 0.7978 GB, free: 107.7 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009148/3.647, allocations: 1.092 MB / 0.7989 GB, free: 107 MB / 394.7 MB Notification: Performance of SimCode: time 1.382e-06/3.647, allocations: 0 / 0.7989 GB, free: 107 MB / 394.7 MB