Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",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.707/1.707, allocations: 194.9 MB / 202.6 MB, free: 6.871 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2155/1.923, allocations: 46.82 MB / 249.4 MB, free: 5.32 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09368/2.017, allocations: 44.51 MB / 293.9 MB, free: 10.87 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7687/2.786, allocations: 318.6 MB / 0.5981 GB, free: 35.56 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002804/2.786, allocations: 91.88 kB / 0.5982 GB, free: 35.52 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.8805/3.666, allocations: 191.1 MB / 0.7848 GB, free: 6.871 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/3.666, allocations: 8 kB / 0.7848 GB, free: 6.863 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007675/3.667, allocations: 114.8 kB / 0.7849 GB, free: 6.75 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002772/3.67, allocations: 0.7763 MB / 0.7857 GB, free: 5.934 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.864e-05/3.67, allocations: 20 kB / 0.7857 GB, free: 5.914 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001795/3.67, allocations: 36 kB / 0.7857 GB, free: 5.879 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00256/3.673, allocations: 0.9123 MB / 0.7866 GB, free: 4.965 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002435/3.675, allocations: 0.9694 MB / 0.7875 GB, free: 3.934 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.691e-05/3.675, allocations: 11.91 kB / 0.7876 GB, free: 3.922 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001585/3.676, allocations: 0 / 0.7876 GB, free: 3.922 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001115/3.676, allocations: 69.27 kB / 0.7876 GB, free: 3.855 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1507/3.826, allocations: 4.286 MB / 0.7918 GB, free: 98.59 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001073/3.828, allocations: 393.2 kB / 0.7922 GB, free: 98.57 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007313/3.828, allocations: 292.4 kB / 0.7925 GB, free: 98.57 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003642/3.832, allocations: 1.948 MB / 0.7944 GB, free: 97.35 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.722e-05/3.832, allocations: 37.92 kB / 0.7944 GB, free: 97.31 MB / 394.7 MB Notification: Performance of pre-optimization done (n=40): time 4.318e-06/3.832, allocations: 3.844 kB / 0.7944 GB, free: 97.31 MB / 394.7 MB Notification: Performance of matching and sorting (n=45): time 0.00976/3.842, allocations: 1.78 MB / 0.7961 GB, free: 96.95 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.054e-05/3.842, allocations: 165.7 kB / 0.7963 GB, free: 96.76 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00126/3.843, allocations: 0.6222 MB / 0.7969 GB, free: 96.63 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001225/3.843, allocations: 25.7 kB / 0.7969 GB, free: 96.6 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003051/3.844, allocations: 409.6 kB / 0.7973 GB, free: 96.38 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002139/3.844, allocations: 159.8 kB / 0.7975 GB, free: 96.3 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.381e-05/3.844, allocations: 0 / 0.7975 GB, free: 96.3 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001438/3.844, allocations: 390.1 kB / 0.7978 GB, free: 95.99 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008452/3.845, allocations: 294.5 kB / 0.7981 GB, free: 95.99 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009981/3.846, allocations: 0.6471 MB / 0.7988 GB, free: 95.55 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01328/3.859, allocations: 1.464 MB / 0.8002 GB, free: 95.55 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-05/3.859, allocations: 3.438 kB / 0.8002 GB, free: 95.55 MB / 394.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.01544/3.875, allocations: 2.091 MB / 0.8022 GB, free: 95.45 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009065/3.876, allocations: 4.432 MB / 0.8066 GB, free: 90.83 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.311e-05/3.876, allocations: 17.66 kB / 0.8066 GB, free: 90.83 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001126/3.877, allocations: 165.3 kB / 0.8067 GB, free: 90.81 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001538/3.879, allocations: 190.6 kB / 0.8069 GB, free: 90.81 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003277/3.882, allocations: 1.518 MB / 0.8084 GB, free: 89.77 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001727/3.884, allocations: 43.8 kB / 0.8084 GB, free: 89.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002001/3.884, allocations: 49.75 kB / 0.8085 GB, free: 89.77 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/3.884, allocations: 3.594 kB / 0.8085 GB, free: 89.77 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01494/3.899, allocations: 1.912 MB / 0.8104 GB, free: 89.74 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.505e-05/3.899, allocations: 14.72 kB / 0.8104 GB, free: 89.74 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001112/3.9, allocations: 164.1 kB / 0.8105 GB, free: 89.72 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001553/3.902, allocations: 191.5 kB / 0.8107 GB, free: 89.72 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002676/3.904, allocations: 1.412 MB / 0.8121 GB, free: 88.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001507/3.906, allocations: 41.33 kB / 0.8121 GB, free: 88.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001263/3.906, allocations: 55.28 kB / 0.8122 GB, free: 88.68 MB / 394.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.0003349/3.906, allocations: 146.8 kB / 0.8123 GB, free: 88.57 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000195/3.907, allocations: 85.34 kB / 0.8124 GB, free: 88.53 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004099/3.911, allocations: 0.8358 MB / 0.8132 GB, free: 88.46 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.38e-05/3.911, allocations: 6.844 kB / 0.8132 GB, free: 88.46 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/3.911, allocations: 0 / 0.8132 GB, free: 88.46 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/3.911, allocations: 7.406 kB / 0.8132 GB, free: 88.46 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005099/3.916, allocations: 1.522 MB / 0.8147 GB, free: 88.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.316e-06/3.916, allocations: 0 / 0.8147 GB, free: 88.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007832/3.917, allocations: 80.64 kB / 0.8148 GB, free: 88.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001082/3.918, allocations: 161 kB / 0.815 GB, free: 88.14 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.439e-05/3.918, allocations: 10.95 kB / 0.815 GB, free: 88.14 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002387/3.92, allocations: 1.402 MB / 0.8163 GB, free: 87.1 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.444e-06/3.92, allocations: 3.906 kB / 0.8163 GB, free: 87.1 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003668/3.924, allocations: 1.148 MB / 0.8175 GB, free: 86.84 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004743/3.929, allocations: 1.856 MB / 0.8193 GB, free: 86.21 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004436/3.929, allocations: 173.4 kB / 0.8194 GB, free: 86.08 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002757/3.93, allocations: 3 kB / 0.8194 GB, free: 86.08 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001043/3.931, allocations: 39.31 kB / 0.8195 GB, free: 86.07 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001739/3.931, allocations: 46.22 kB / 0.8195 GB, free: 86.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.697e-05/3.931, allocations: 15.81 kB / 0.8195 GB, free: 86.07 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0009648/3.932, allocations: 473.6 kB / 0.82 GB, free: 85.98 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005861/3.938, allocations: 0.8688 MB / 0.8208 GB, free: 85.98 MB / 394.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.002888/3.941, allocations: 0.8028 MB / 0.8216 GB, free: 85.88 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003682/3.945, allocations: 1.185 MB / 0.8228 GB, free: 85.87 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.278e-06/3.945, allocations: 0 / 0.8228 GB, free: 85.87 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009573/3.946, allocations: 300.7 kB / 0.8231 GB, free: 85.87 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002755/3.948, allocations: 279.8 kB / 0.8233 GB, free: 85.87 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004561/3.953, allocations: 1.34 MB / 0.8246 GB, free: 85.55 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001072/3.954, allocations: 1.137 MB / 0.8258 GB, free: 84.84 MB / 394.7 MB Notification: Performance of SimCode: time 1.332e-06/3.954, allocations: 0 / 0.8258 GB, free: 84.84 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.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat