Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_1_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.777/1.777, allocations: 171.2 MB / 178.1 MB, free: 8.297 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.222/1.999, allocations: 41.11 MB / 219.3 MB, free: 11.2 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/2.106, allocations: 38.76 MB / 258 MB, free: 4.379 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9631/3.069, allocations: 316.5 MB / 0.561 GB, free: 83.37 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003137/3.07, allocations: 89.45 kB / 0.5611 GB, free: 83.37 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 1.765/4.834, allocations: 323.3 MB / 0.8769 GB, free: 31.38 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.913e-05/4.834, allocations: 13.22 kB / 0.8769 GB, free: 31.37 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002382/4.837, allocations: 204.6 kB / 0.8771 GB, free: 31.28 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007792/4.845, allocations: 1.251 MB / 0.8783 GB, free: 30.63 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002195/4.845, allocations: 50.08 kB / 0.8784 GB, free: 30.62 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008504/4.846, allocations: 71.59 kB / 0.8784 GB, free: 30.62 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00862/4.854, allocations: 1.795 MB / 0.8802 GB, free: 30 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006356/4.861, allocations: 1.788 MB / 0.8819 GB, free: 29.23 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.739e-05/4.861, allocations: 4 kB / 0.8819 GB, free: 29.23 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002948/4.861, allocations: 3.688 kB / 0.8819 GB, free: 29.23 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00022/4.861, allocations: 125.2 kB / 0.8821 GB, free: 29.22 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03068/4.892, allocations: 7.375 MB / 0.8893 GB, free: 24.43 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003019/4.895, allocations: 0.8943 MB / 0.8901 GB, free: 24.03 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002069/4.897, allocations: 0.7149 MB / 0.8908 GB, free: 23.38 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008783/4.906, allocations: 3.273 MB / 0.894 GB, free: 20.38 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.688e-05/4.906, allocations: 47.56 kB / 0.8941 GB, free: 20.33 MB / 346.7 MB Notification: Performance of pre-optimization done (n=119): time 3.987e-06/4.906, allocations: 0 / 0.8941 GB, free: 20.33 MB / 346.7 MB Notification: Performance of matching and sorting (n=134): time 0.04326/4.95, allocations: 4.83 MB / 0.8988 GB, free: 15.69 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.707e-05/4.95, allocations: 171.5 kB / 0.899 GB, free: 15.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002991/4.953, allocations: 0.9299 MB / 0.8999 GB, free: 14.55 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005943/4.953, allocations: 33.7 kB / 0.8999 GB, free: 14.51 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007041/4.954, allocations: 0.5512 MB / 0.9004 GB, free: 13.95 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009845/4.955, allocations: 453.4 kB / 0.9009 GB, free: 13.5 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002573/4.955, allocations: 2.781 kB / 0.9009 GB, free: 13.5 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002103/4.956, allocations: 373.9 kB / 0.9012 GB, free: 13.13 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002063/4.958, allocations: 0.7302 MB / 0.9019 GB, free: 12.4 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002325/4.96, allocations: 1.182 MB / 0.9031 GB, free: 11.04 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02228/4.982, allocations: 2.706 MB / 0.9057 GB, free: 8.391 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.681e-05/4.983, allocations: 4 kB / 0.9057 GB, free: 8.387 MB / 346.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.02736/5.01, allocations: 4.097 MB / 0.9097 GB, free: 4.27 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001484/5.011, allocations: 5.151 MB / 0.9148 GB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.192e-05/5.012, allocations: 12 kB / 0.9148 GB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002709/5.014, allocations: 465.9 kB / 0.9152 GB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00321/5.018, allocations: 359.4 kB / 0.9156 GB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009234/5.027, allocations: 3.372 MB / 0.9189 GB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003323/5.03, allocations: 105.5 kB / 0.919 GB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000594/5.031, allocations: 83.97 kB / 0.919 GB, free: 10.24 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/5.031, allocations: 7.938 kB / 0.919 GB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02753/5.058, allocations: 3.722 MB / 0.9227 GB, free: 6.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-05/5.059, allocations: 19.84 kB / 0.9227 GB, free: 6.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00218/5.061, allocations: 347 kB / 0.923 GB, free: 6.133 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003326/5.064, allocations: 367.4 kB / 0.9234 GB, free: 5.773 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007118/5.071, allocations: 3.027 MB / 0.9263 GB, free: 2.648 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00301/5.074, allocations: 107.9 kB / 0.9264 GB, free: 2.543 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006278/5.075, allocations: 83.97 kB / 0.9265 GB, free: 2.461 MB / 362.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.0006472/5.076, allocations: 154.9 kB / 0.9267 GB, free: 2.301 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000616/5.076, allocations: 154.1 kB / 0.9268 GB, free: 2.148 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1663/5.243, allocations: 2.507 MB / 0.9293 GB, free: 73.86 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.412e-05/5.243, allocations: 14.72 kB / 0.9293 GB, free: 73.86 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.217e-05/5.243, allocations: 1.875 kB / 0.9293 GB, free: 73.86 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.506e-05/5.243, allocations: 14.2 kB / 0.9293 GB, free: 73.86 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01992/5.263, allocations: 3.901 MB / 0.9331 GB, free: 73.49 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.642e-05/5.263, allocations: 3.312 kB / 0.9331 GB, free: 73.49 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00242/5.265, allocations: 240.5 kB / 0.9333 GB, free: 73.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002613/5.268, allocations: 454.8 kB / 0.9338 GB, free: 73.46 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004001/5.268, allocations: 20.91 kB / 0.9338 GB, free: 73.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006066/5.274, allocations: 3.101 MB / 0.9368 GB, free: 71.39 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.175e-05/5.274, allocations: 9.594 kB / 0.9368 GB, free: 71.39 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01051/5.285, allocations: 3.316 MB / 0.9401 GB, free: 71.04 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01791/5.303, allocations: 4.786 MB / 0.9447 GB, free: 70.29 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001308/5.304, allocations: 241.1 kB / 0.945 GB, free: 70.16 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001283/5.306, allocations: 15.64 kB / 0.945 GB, free: 70.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003057/5.309, allocations: 81.38 kB / 0.9451 GB, free: 70.16 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005858/5.309, allocations: 137 kB / 0.9452 GB, free: 70.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002294/5.31, allocations: 56.91 kB / 0.9452 GB, free: 70.16 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.00158/5.311, allocations: 0.6976 MB / 0.9459 GB, free: 70.05 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.009512/5.321, allocations: 1.479 MB / 0.9474 GB, free: 70.04 MB / 362.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.004548/5.325, allocations: 1.203 MB / 0.9485 GB, free: 69.93 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009251/5.335, allocations: 2.966 MB / 0.9514 GB, free: 69.89 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.117e-05/5.335, allocations: 0 / 0.9514 GB, free: 69.89 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003344/5.338, allocations: 1.049 MB / 0.9525 GB, free: 69.88 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005919/5.344, allocations: 0.5856 MB / 0.953 GB, free: 69.88 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01006/5.354, allocations: 2.835 MB / 0.9558 GB, free: 69.29 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00268/5.357, allocations: 1.616 MB / 0.9574 GB, free: 68.56 MB / 362.7 MB Notification: Performance of SimCode: time 2.204e-06/5.357, allocations: 0 / 0.9574 GB, free: 68.56 MB / 362.7 MB