Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",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.793/1.793, allocations: 171.2 MB / 178.1 MB, free: 8.297 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1985/1.991, allocations: 41.12 MB / 219.3 MB, free: 11.19 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/2.093, allocations: 38.76 MB / 258 MB, free: 4.367 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9411/3.034, allocations: 313.5 MB / 0.5582 GB, free: 84.55 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003202/3.035, allocations: 90.02 kB / 0.5582 GB, free: 84.55 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.9685/4.003, allocations: 191 MB / 0.7448 GB, free: 47.66 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/4.003, allocations: 12 kB / 0.7448 GB, free: 47.65 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009728/4.004, allocations: 114.8 kB / 0.7449 GB, free: 47.54 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00308/4.007, allocations: 0.7795 MB / 0.7457 GB, free: 46.73 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.503e-05/4.008, allocations: 24 kB / 0.7457 GB, free: 46.71 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002215/4.008, allocations: 36 kB / 0.7457 GB, free: 46.67 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002796/4.011, allocations: 0.9201 MB / 0.7466 GB, free: 45.75 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002357/4.013, allocations: 0.9693 MB / 0.7476 GB, free: 44.72 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.245e-05/4.013, allocations: 4 kB / 0.7476 GB, free: 44.72 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001371/4.013, allocations: 4 kB / 0.7476 GB, free: 44.71 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.923e-05/4.013, allocations: 69.27 kB / 0.7476 GB, free: 44.65 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01031/4.024, allocations: 4.277 MB / 0.7518 GB, free: 40.16 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/4.025, allocations: 399.4 kB / 0.7522 GB, free: 39.77 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006679/4.025, allocations: 294.1 kB / 0.7525 GB, free: 39.47 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003984/4.029, allocations: 1.953 MB / 0.7544 GB, free: 37.32 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.526e-05/4.03, allocations: 38.89 kB / 0.7544 GB, free: 37.27 MB / 346.7 MB Notification: Performance of pre-optimization done (n=40): time 3.597e-06/4.03, allocations: 4 kB / 0.7544 GB, free: 37.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=45): time 0.01452/4.044, allocations: 1.77 MB / 0.7561 GB, free: 35.45 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.668e-05/4.044, allocations: 158.2 kB / 0.7563 GB, free: 35.25 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001718/4.046, allocations: 0.6249 MB / 0.7569 GB, free: 34.62 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001685/4.046, allocations: 29.7 kB / 0.7569 GB, free: 34.59 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003005/4.046, allocations: 406 kB / 0.7573 GB, free: 34.18 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001809/4.047, allocations: 157.8 kB / 0.7575 GB, free: 34.02 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.124e-05/4.047, allocations: 0 / 0.7575 GB, free: 34.02 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001439/4.047, allocations: 394.7 kB / 0.7578 GB, free: 33.63 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000751/4.048, allocations: 289.9 kB / 0.7581 GB, free: 33.34 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009306/4.049, allocations: 0.6465 MB / 0.7588 GB, free: 32.53 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01207/4.061, allocations: 1.462 MB / 0.7602 GB, free: 31.06 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-05/4.061, allocations: 7.938 kB / 0.7602 GB, free: 31.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.01509/4.076, allocations: 2.097 MB / 0.7622 GB, free: 28.95 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009179/4.077, allocations: 4.438 MB / 0.7666 GB, free: 24.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.215e-05/4.077, allocations: 8 kB / 0.7666 GB, free: 24.15 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001315/4.078, allocations: 165.6 kB / 0.7667 GB, free: 23.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001559/4.08, allocations: 191.7 kB / 0.7669 GB, free: 23.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003044/4.083, allocations: 1.518 MB / 0.7684 GB, free: 22.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002645/4.086, allocations: 44.03 kB / 0.7684 GB, free: 22.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004319/4.086, allocations: 43.94 kB / 0.7685 GB, free: 22.14 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/4.086, allocations: 7.125 kB / 0.7685 GB, free: 22.14 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01787/4.104, allocations: 1.909 MB / 0.7704 GB, free: 20.22 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.805e-05/4.104, allocations: 12 kB / 0.7704 GB, free: 20.21 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009694/4.105, allocations: 165.6 kB / 0.7705 GB, free: 20.04 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001231/4.106, allocations: 187.7 kB / 0.7707 GB, free: 19.86 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002263/4.109, allocations: 1.429 MB / 0.7721 GB, free: 18.38 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001241/4.11, allocations: 48.03 kB / 0.7722 GB, free: 18.33 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001388/4.11, allocations: 51.98 kB / 0.7722 GB, free: 18.28 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * 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 (109): * Single equations (assignments): 107 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002961/4.11, allocations: 140.6 kB / 0.7723 GB, free: 18.13 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001756/4.111, allocations: 79.06 kB / 0.7724 GB, free: 18.05 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003587/4.114, allocations: 0.8372 MB / 0.7732 GB, free: 17.21 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/4.114, allocations: 8 kB / 0.7732 GB, free: 17.2 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.882e-06/4.114, allocations: 0 / 0.7732 GB, free: 17.2 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/4.114, allocations: 3.984 kB / 0.7732 GB, free: 17.2 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004194/4.118, allocations: 1.52 MB / 0.7747 GB, free: 15.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/4.118, allocations: 0 / 0.7747 GB, free: 15.64 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006727/4.119, allocations: 75.91 kB / 0.7748 GB, free: 15.56 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009469/4.12, allocations: 157.7 kB / 0.7749 GB, free: 15.4 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.528e-05/4.12, allocations: 8 kB / 0.775 GB, free: 15.39 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002301/4.122, allocations: 1.409 MB / 0.7763 GB, free: 13.94 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.598e-06/4.122, allocations: 8 kB / 0.7763 GB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003791/4.126, allocations: 1.135 MB / 0.7774 GB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004464/4.131, allocations: 1.873 MB / 0.7793 GB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000411/4.131, allocations: 164 kB / 0.7794 GB, free: 10.66 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002369/4.132, allocations: 4 kB / 0.7794 GB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009416/4.132, allocations: 35.97 kB / 0.7795 GB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000156/4.133, allocations: 52.2 kB / 0.7795 GB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.195e-05/4.133, allocations: 16 kB / 0.7795 GB, free: 10.55 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0008597/4.134, allocations: 471.1 kB / 0.78 GB, free: 10.09 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005844/4.139, allocations: 0.8742 MB / 0.7808 GB, free: 9.219 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003522/4.143, allocations: 0.7843 MB / 0.7816 GB, free: 8.48 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003736/4.147, allocations: 1.192 MB / 0.7828 GB, free: 7.289 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.495e-06/4.147, allocations: 0 / 0.7828 GB, free: 7.289 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001141/4.148, allocations: 303.1 kB / 0.7831 GB, free: 6.996 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002788/4.151, allocations: 279.1 kB / 0.7833 GB, free: 6.723 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004638/4.156, allocations: 1.344 MB / 0.7846 GB, free: 5.348 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00106/4.157, allocations: 1.147 MB / 0.7858 GB, free: 4.172 MB / 346.7 MB Notification: Performance of SimCode: time 1.232e-06/4.157, allocations: 0 / 0.7858 GB, free: 4.172 MB / 346.7 MB