Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="cs",version="2.0",platforms={"dynamic"}) [: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.817/1.817, allocations: 194.9 MB / 202.6 MB, free: 6.902 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2569/2.074, allocations: 46.84 MB / 249.4 MB, free: 5.344 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09371/2.168, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7571/2.925, allocations: 322.9 MB / 0.6024 GB, free: 29.68 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003136/2.925, allocations: 90.27 kB / 0.6024 GB, free: 29.63 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.7603/3.685, allocations: 165.4 MB / 0.7639 GB, free: 27.05 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/3.686, allocations: 8 kB / 0.7639 GB, free: 27.05 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006912/3.686, allocations: 103 kB / 0.764 GB, free: 26.95 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002159/3.688, allocations: 0.664 MB / 0.7647 GB, free: 26.25 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.904e-05/3.688, allocations: 23.98 kB / 0.7647 GB, free: 26.23 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001407/3.689, allocations: 32 kB / 0.7647 GB, free: 26.2 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00202/3.691, allocations: 0.7132 MB / 0.7654 GB, free: 25.48 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001909/3.693, allocations: 0.8 MB / 0.7662 GB, free: 24.62 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.936e-05/3.693, allocations: 4 kB / 0.7662 GB, free: 24.62 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001239/3.693, allocations: 4 kB / 0.7662 GB, free: 24.62 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.606e-05/3.693, allocations: 53.19 kB / 0.7663 GB, free: 24.57 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007466/3.7, allocations: 3.716 MB / 0.7699 GB, free: 20.62 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008231/3.701, allocations: 334.7 kB / 0.7702 GB, free: 20.29 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005679/3.702, allocations: 237.5 kB / 0.7705 GB, free: 20.05 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0035/3.705, allocations: 1.942 MB / 0.7724 GB, free: 17.9 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.725e-05/3.705, allocations: 38.56 kB / 0.7724 GB, free: 17.85 MB / 394.7 MB Notification: Performance of pre-optimization done (n=37): time 3.377e-06/3.705, allocations: 0 / 0.7724 GB, free: 17.85 MB / 394.7 MB Notification: Performance of matching and sorting (n=42): time 0.01076/3.716, allocations: 1.768 MB / 0.7741 GB, free: 16.02 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.417e-05/3.716, allocations: 140.5 kB / 0.7743 GB, free: 15.86 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009166/3.717, allocations: 0.515 MB / 0.7748 GB, free: 15.33 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.787e-05/3.717, allocations: 33.7 kB / 0.7748 GB, free: 15.29 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002527/3.717, allocations: 362.6 kB / 0.7751 GB, free: 14.93 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001434/3.718, allocations: 142 kB / 0.7753 GB, free: 14.79 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.902e-05/3.718, allocations: 0 / 0.7753 GB, free: 14.79 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001231/3.718, allocations: 378.8 kB / 0.7756 GB, free: 14.41 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006305/3.718, allocations: 233.9 kB / 0.7759 GB, free: 14.18 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007838/3.719, allocations: 0.5345 MB / 0.7764 GB, free: 13.5 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008624/3.728, allocations: 0.9846 MB / 0.7773 GB, free: 12.52 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-05/3.728, allocations: 7.906 kB / 0.7773 GB, free: 12.51 MB / 394.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.009945/3.738, allocations: 1.48 MB / 0.7788 GB, free: 11.02 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007203/3.739, allocations: 3.917 MB / 0.7826 GB, free: 6.793 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.878e-05/3.739, allocations: 12 kB / 0.7826 GB, free: 6.781 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003272/3.739, allocations: 60.77 kB / 0.7827 GB, free: 6.719 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002628/3.742, allocations: 235.6 kB / 0.7829 GB, free: 6.488 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001888/3.744, allocations: 1.302 MB / 0.7842 GB, free: 5.137 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001341/3.745, allocations: 48.02 kB / 0.7842 GB, free: 5.09 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001097/3.745, allocations: 47.98 kB / 0.7843 GB, free: 5.043 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.027e-05/3.745, allocations: 8 kB / 0.7843 GB, free: 5.035 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009587/3.755, allocations: 1.346 MB / 0.7856 GB, free: 3.684 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/3.755, allocations: 12 kB / 0.7856 GB, free: 3.672 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002468/3.755, allocations: 60.81 kB / 0.7857 GB, free: 3.609 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001858/3.757, allocations: 215.7 kB / 0.7859 GB, free: 3.398 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001046/3.758, allocations: 0.6657 MB / 0.7865 GB, free: 2.707 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00124/3.759, allocations: 43.94 kB / 0.7866 GB, free: 2.664 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001319/3.759, allocations: 40 kB / 0.7866 GB, free: 2.625 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.0002842/3.76, allocations: 136.7 kB / 0.7867 GB, free: 2.484 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001693/3.76, allocations: 79.06 kB / 0.7868 GB, free: 2.406 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003968/3.764, allocations: 0.8697 MB / 0.7877 GB, free: 1.531 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.295e-05/3.764, allocations: 11.94 kB / 0.7877 GB, free: 1.52 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/3.764, allocations: 4 kB / 0.7877 GB, free: 1.516 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/3.764, allocations: 7.891 kB / 0.7877 GB, free: 1.508 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004556/3.768, allocations: 1.412 MB / 0.7891 GB, free: 40 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.204e-06/3.768, allocations: 144 / 0.7891 GB, free: 40 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1409/3.909, allocations: 143 kB / 0.7892 GB, free: 110.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003604/3.91, allocations: 43.69 kB / 0.7892 GB, free: 110.5 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000122/3.91, allocations: 6.516 kB / 0.7892 GB, free: 110.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0017/3.912, allocations: 1.229 MB / 0.7904 GB, free: 109.4 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.062e-06/3.912, allocations: 3.594 kB / 0.7904 GB, free: 109.4 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004816/3.917, allocations: 1.079 MB / 0.7915 GB, free: 109.2 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006066/3.923, allocations: 1.768 MB / 0.7932 GB, free: 108.6 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003797/3.923, allocations: 155.1 kB / 0.7934 GB, free: 108.5 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003204/3.923, allocations: 7.281 kB / 0.7934 GB, free: 108.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00126/3.925, allocations: 35.44 kB / 0.7934 GB, free: 108.5 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002127/3.925, allocations: 46.11 kB / 0.7935 GB, free: 108.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001175/3.925, allocations: 19.69 kB / 0.7935 GB, free: 108.5 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001006/3.926, allocations: 395.9 kB / 0.7939 GB, free: 108.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007698/3.934, allocations: 0.6933 MB / 0.7945 GB, free: 108.4 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.002955/3.937, allocations: 0.6516 MB / 0.7952 GB, free: 108.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005524/3.942, allocations: 1.053 MB / 0.7962 GB, free: 108.3 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/3.942, allocations: 3.188 kB / 0.7962 GB, free: 108.3 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001742/3.944, allocations: 325.8 kB / 0.7965 GB, free: 108.3 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003396/3.948, allocations: 256.1 kB / 0.7968 GB, free: 108.3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005/3.953, allocations: 1.151 MB / 0.7979 GB, free: 108 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001413/3.954, allocations: 1.094 MB / 0.7989 GB, free: 107.3 MB / 394.7 MB Notification: Performance of SimCode: time 1.593e-06/3.954, allocations: 0 / 0.7989 GB, free: 107.3 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat