Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",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.727/1.727, allocations: 194.9 MB / 202.6 MB, free: 6.895 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.24/1.967, allocations: 46.83 MB / 249.4 MB, free: 5.32 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08952/2.056, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7668/2.823, allocations: 321.5 MB / 0.601 GB, free: 29.38 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003109/2.824, allocations: 88.33 kB / 0.6011 GB, free: 29.33 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.537/4.36, allocations: 323.4 MB / 0.9169 GB, free: 13.89 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/4.36, allocations: 15.98 kB / 0.9169 GB, free: 13.88 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001456/4.362, allocations: 197.8 kB / 0.9171 GB, free: 13.68 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005466/4.367, allocations: 1.261 MB / 0.9184 GB, free: 12.39 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001149/4.367, allocations: 43.98 kB / 0.9184 GB, free: 12.34 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003697/4.368, allocations: 68 kB / 0.9185 GB, free: 12.28 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006323/4.374, allocations: 1.793 MB / 0.9202 GB, free: 10.48 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005437/4.38, allocations: 1.798 MB / 0.922 GB, free: 8.578 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.44e-05/4.38, allocations: 3.938 kB / 0.922 GB, free: 8.574 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000269/4.38, allocations: 4 kB / 0.922 GB, free: 8.57 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000222/4.38, allocations: 126.3 kB / 0.9221 GB, free: 8.445 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02153/4.402, allocations: 7.372 MB / 0.9293 GB, free: 0.7422 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1583/4.56, allocations: 0.8982 MB / 0.9302 GB, free: 81.64 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002118/4.562, allocations: 0.7182 MB / 0.9309 GB, free: 81.63 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007604/4.57, allocations: 3.269 MB / 0.9341 GB, free: 80.14 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.852e-05/4.57, allocations: 49.66 kB / 0.9341 GB, free: 80.1 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 4.799e-06/4.57, allocations: 0 / 0.9341 GB, free: 80.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=134): time 0.02937/4.599, allocations: 4.811 MB / 0.9388 GB, free: 79.62 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.899e-05/4.6, allocations: 174.1 kB / 0.939 GB, free: 79.43 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002102/4.602, allocations: 0.9347 MB / 0.9399 GB, free: 79.28 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003744/4.602, allocations: 37.02 kB / 0.9399 GB, free: 79.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004774/4.603, allocations: 0.5534 MB / 0.9405 GB, free: 78.98 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005646/4.603, allocations: 454.2 kB / 0.9409 GB, free: 78.74 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001752/4.603, allocations: 0 / 0.9409 GB, free: 78.74 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001414/4.603, allocations: 379.8 kB / 0.9413 GB, free: 78.44 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002126/4.606, allocations: 0.7257 MB / 0.942 GB, free: 78.44 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002368/4.608, allocations: 1.187 MB / 0.9431 GB, free: 77.93 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02468/4.633, allocations: 2.688 MB / 0.9458 GB, free: 77.91 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-05/4.633, allocations: 8.922 kB / 0.9458 GB, free: 77.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.02945/4.662, allocations: 4.102 MB / 0.9498 GB, free: 77.72 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001003/4.663, allocations: 5.15 MB / 0.9548 GB, free: 72.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.355e-05/4.663, allocations: 14.84 kB / 0.9548 GB, free: 72.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002644/4.666, allocations: 464.2 kB / 0.9553 GB, free: 72.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0032/4.669, allocations: 357.8 kB / 0.9556 GB, free: 72.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00859/4.678, allocations: 3.376 MB / 0.9589 GB, free: 70.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003291/4.681, allocations: 109.5 kB / 0.959 GB, free: 70.26 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003091/4.682, allocations: 86.84 kB / 0.9591 GB, free: 70.26 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/4.682, allocations: 3.062 kB / 0.9591 GB, free: 70.26 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02769/4.709, allocations: 3.725 MB / 0.9627 GB, free: 70.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.4e-05/4.709, allocations: 14.09 kB / 0.9627 GB, free: 70.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002159/4.712, allocations: 337.8 kB / 0.9631 GB, free: 70.15 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003161/4.715, allocations: 371.2 kB / 0.9634 GB, free: 70.15 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006692/4.721, allocations: 3.027 MB / 0.9664 GB, free: 68.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002983/4.724, allocations: 103.4 kB / 0.9665 GB, free: 68.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002665/4.725, allocations: 80.67 kB / 0.9665 GB, free: 68.07 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.0006244/4.725, allocations: 173.1 kB / 0.9667 GB, free: 67.95 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004097/4.726, allocations: 150.6 kB / 0.9669 GB, free: 67.88 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01139/4.737, allocations: 2.491 MB / 0.9693 GB, free: 67.73 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.034e-05/4.737, allocations: 15.59 kB / 0.9693 GB, free: 67.73 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.1e-05/4.737, allocations: 0 / 0.9693 GB, free: 67.73 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-05/4.737, allocations: 9.891 kB / 0.9693 GB, free: 67.73 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01439/4.752, allocations: 3.909 MB / 0.9731 GB, free: 67.33 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.369e-05/4.752, allocations: 5.219 kB / 0.9731 GB, free: 67.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002364/4.754, allocations: 241 kB / 0.9734 GB, free: 67.33 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002676/4.757, allocations: 457.5 kB / 0.9738 GB, free: 67.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002845/4.757, allocations: 20.44 kB / 0.9738 GB, free: 67.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006092/4.763, allocations: 3.109 MB / 0.9769 GB, free: 65.21 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.045e-05/4.763, allocations: 7.906 kB / 0.9769 GB, free: 65.21 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01111/4.774, allocations: 3.312 MB / 0.9801 GB, free: 64.75 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0137/4.788, allocations: 4.788 MB / 0.9848 GB, free: 63.91 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007246/4.789, allocations: 237.3 kB / 0.985 GB, free: 63.73 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005926/4.79, allocations: 11 kB / 0.985 GB, free: 63.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002188/4.792, allocations: 84.33 kB / 0.9851 GB, free: 63.73 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000428/4.792, allocations: 142.7 kB / 0.9852 GB, free: 63.72 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002165/4.793, allocations: 58.05 kB / 0.9853 GB, free: 63.72 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.001478/4.794, allocations: 0.6947 MB / 0.986 GB, free: 63.61 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.008347/4.802, allocations: 1.48 MB / 0.9874 GB, free: 63.61 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.004451/4.807, allocations: 1.198 MB / 0.9886 GB, free: 63.51 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009134/4.816, allocations: 2.966 MB / 0.9915 GB, free: 63.46 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/4.816, allocations: 0 / 0.9915 GB, free: 63.46 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003374/4.819, allocations: 1.048 MB / 0.9925 GB, free: 63.45 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006084/4.826, allocations: 0.5896 MB / 0.9931 GB, free: 63.45 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009303/4.835, allocations: 2.839 MB / 0.9958 GB, free: 62.87 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002266/4.837, allocations: 1.617 MB / 0.9974 GB, free: 62.14 MB / 410.7 MB Notification: Performance of SimCode: time 1.323e-06/4.837, allocations: 0 / 0.9974 GB, free: 62.14 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat