Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",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.672/1.672, allocations: 194.9 MB / 202.5 MB, free: 6.926 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2393/1.911, allocations: 46.84 MB / 249.3 MB, free: 5.316 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08899/2, allocations: 44.5 MB / 293.9 MB, free: 10.92 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7296/2.73, allocations: 321.5 MB / 0.6009 GB, free: 32.77 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003982/2.731, allocations: 88.39 kB / 0.601 GB, free: 32.72 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 1.716/4.446, allocations: 323.4 MB / 0.9169 GB, free: 1.73 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/4.446, allocations: 15.94 kB / 0.9169 GB, free: 1.715 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001358/4.448, allocations: 197.8 kB / 0.9171 GB, free: 1.52 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004582/4.452, allocations: 1.254 MB / 0.9183 GB, free: 240 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/4.453, allocations: 47.98 kB / 0.9183 GB, free: 192 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003614/4.453, allocations: 68 kB / 0.9184 GB, free: 124 kB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005591/4.458, allocations: 1.797 MB / 0.9202 GB, free: 14.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005215/4.464, allocations: 1.794 MB / 0.9219 GB, free: 12.42 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.69e-05/4.464, allocations: 0 / 0.9219 GB, free: 12.42 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002584/4.464, allocations: 11.98 kB / 0.9219 GB, free: 12.41 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002097/4.464, allocations: 126.2 kB / 0.922 GB, free: 12.28 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02035/4.485, allocations: 7.372 MB / 0.9292 GB, free: 4.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002643/4.487, allocations: 0.8903 MB / 0.9301 GB, free: 3.672 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001932/4.489, allocations: 0.7226 MB / 0.9308 GB, free: 2.945 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1559/4.645, allocations: 3.272 MB / 0.934 GB, free: 78.79 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/4.645, allocations: 50.34 kB / 0.9341 GB, free: 78.75 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 4.157e-06/4.645, allocations: 3.906 kB / 0.9341 GB, free: 78.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=134): time 0.0263/4.672, allocations: 4.815 MB / 0.9388 GB, free: 78.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.985e-05/4.672, allocations: 170.1 kB / 0.9389 GB, free: 78.12 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001906/4.674, allocations: 0.9305 MB / 0.9398 GB, free: 77.97 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004123/4.674, allocations: 36.64 kB / 0.9399 GB, free: 77.94 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004503/4.675, allocations: 0.5478 MB / 0.9404 GB, free: 77.67 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005632/4.675, allocations: 454.6 kB / 0.9408 GB, free: 77.44 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001522/4.675, allocations: 0 / 0.9408 GB, free: 77.44 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001295/4.676, allocations: 382.4 kB / 0.9412 GB, free: 77.13 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001891/4.677, allocations: 0.724 MB / 0.9419 GB, free: 77.13 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00211/4.68, allocations: 1.179 MB / 0.9431 GB, free: 76.62 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02173/4.701, allocations: 2.702 MB / 0.9457 GB, free: 76.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.336e-05/4.701, allocations: 3.219 kB / 0.9457 GB, free: 76.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.02626/4.728, allocations: 4.1 MB / 0.9497 GB, free: 76.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001079/4.729, allocations: 5.152 MB / 0.9547 GB, free: 71.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.301e-05/4.729, allocations: 11.56 kB / 0.9547 GB, free: 71.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002449/4.731, allocations: 466.4 kB / 0.9552 GB, free: 71.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002982/4.734, allocations: 356.2 kB / 0.9555 GB, free: 71.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0078/4.742, allocations: 3.384 MB / 0.9588 GB, free: 68.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003011/4.745, allocations: 101.3 kB / 0.9589 GB, free: 68.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003401/4.746, allocations: 85.73 kB / 0.959 GB, free: 68.95 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/4.746, allocations: 3.5 kB / 0.959 GB, free: 68.95 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02461/4.77, allocations: 3.723 MB / 0.9627 GB, free: 68.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.299e-05/4.77, allocations: 10.69 kB / 0.9627 GB, free: 68.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00189/4.772, allocations: 351.4 kB / 0.963 GB, free: 68.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002963/4.775, allocations: 370.5 kB / 0.9634 GB, free: 68.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005979/4.781, allocations: 3.02 MB / 0.9663 GB, free: 66.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00285/4.784, allocations: 104.8 kB / 0.9664 GB, free: 66.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00031/4.785, allocations: 87.64 kB / 0.9665 GB, free: 66.75 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (207): * Single equations (assignments): 203 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006065/4.785, allocations: 168.2 kB / 0.9666 GB, free: 66.64 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004171/4.786, allocations: 151.3 kB / 0.9668 GB, free: 66.56 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01041/4.796, allocations: 2.496 MB / 0.9692 GB, free: 66.42 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.682e-05/4.796, allocations: 17.34 kB / 0.9692 GB, free: 66.42 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/4.796, allocations: 3.906 kB / 0.9692 GB, free: 66.41 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.368e-05/4.796, allocations: 7.406 kB / 0.9693 GB, free: 66.41 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01355/4.81, allocations: 3.907 MB / 0.9731 GB, free: 66.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-05/4.81, allocations: 6.469 kB / 0.9731 GB, free: 66.02 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002139/4.812, allocations: 239.9 kB / 0.9733 GB, free: 66.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002337/4.814, allocations: 458.2 kB / 0.9737 GB, free: 65.98 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002718/4.815, allocations: 21.25 kB / 0.9738 GB, free: 65.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005479/4.82, allocations: 3.1 MB / 0.9768 GB, free: 63.9 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.933e-06/4.82, allocations: 0 / 0.9768 GB, free: 63.9 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01018/4.83, allocations: 3.32 MB / 0.98 GB, free: 63.44 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01358/4.844, allocations: 4.785 MB / 0.9847 GB, free: 62.59 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007094/4.845, allocations: 243.7 kB / 0.9849 GB, free: 62.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000508/4.845, allocations: 13.02 kB / 0.985 GB, free: 62.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001987/4.847, allocations: 84.75 kB / 0.985 GB, free: 62.41 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003961/4.848, allocations: 142.5 kB / 0.9852 GB, free: 62.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001973/4.848, allocations: 55.44 kB / 0.9852 GB, free: 62.41 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.001362/4.849, allocations: 0.6946 MB / 0.9859 GB, free: 62.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007824/4.857, allocations: 1.478 MB / 0.9873 GB, free: 62.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003935/4.861, allocations: 1.203 MB / 0.9885 GB, free: 62.19 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008367/4.87, allocations: 2.963 MB / 0.9914 GB, free: 62.15 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/4.87, allocations: 3.562 kB / 0.9914 GB, free: 62.15 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003008/4.873, allocations: 1.045 MB / 0.9924 GB, free: 62.14 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005508/4.878, allocations: 0.5863 MB / 0.993 GB, free: 62.13 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008698/4.887, allocations: 2.842 MB / 0.9958 GB, free: 61.55 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002057/4.889, allocations: 1.608 MB / 0.9974 GB, free: 60.82 MB / 410.7 MB Notification: Performance of SimCode: time 1.342e-06/4.889, allocations: 0 / 0.9974 GB, free: 60.82 MB / 410.7 MB