Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.938/1.938, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.91e-05/2.935e-05, allocations: 4 kB / 255.4 MB, free: 3.109 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08993/0.08999, allocations: 44.5 MB / 299.9 MB, free: 6.555 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.935/1.025, allocations: 322.2 MB / 0.6076 GB, free: 66.06 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003014/1.025, allocations: 88.88 kB / 0.6077 GB, free: 66.01 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.615/2.64, allocations: 321.4 MB / 0.9216 GB, free: 57.12 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.154e-06/2.64, allocations: 0 / 0.9216 GB, free: 57.12 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001821/2.641, allocations: 50 kB / 0.9216 GB, free: 57.11 MB / 410.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 0.007731/2.648, allocations: 2.045 MB / 0.9236 GB, free: 56.18 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/2.648, allocations: 10.72 kB / 0.9236 GB, free: 56.18 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006563/2.649, allocations: 183.2 kB / 0.9238 GB, free: 56.13 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001031/2.65, allocations: 199.1 kB / 0.924 GB, free: 56.04 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004477/2.655, allocations: 1.248 MB / 0.9252 GB, free: 55.62 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001346/2.655, allocations: 97.36 kB / 0.9253 GB, free: 55.59 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003946/2.655, allocations: 124.6 kB / 0.9254 GB, free: 55.55 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004781/2.66, allocations: 1.916 MB / 0.9273 GB, free: 54.69 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.242e-05/2.66, allocations: 3.453 kB / 0.9273 GB, free: 54.69 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002619/2.66, allocations: 60.53 kB / 0.9274 GB, free: 54.66 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002241/2.661, allocations: 117.4 kB / 0.9275 GB, free: 54.64 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004924/2.665, allocations: 1.919 MB / 0.9293 GB, free: 53.97 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01783/2.683, allocations: 7.619 MB / 0.9368 GB, free: 49.02 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002749/2.686, allocations: 1.146 MB / 0.9379 GB, free: 48.59 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001656/2.688, allocations: 0.722 MB / 0.9386 GB, free: 48.31 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007199/2.695, allocations: 3.376 MB / 0.9419 GB, free: 46.05 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.046e-05/2.695, allocations: 51 kB / 0.9419 GB, free: 46 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 3.797e-06/2.695, allocations: 0 / 0.9419 GB, free: 46 MB / 410.7 MB Notification: Performance of matching and sorting (n=134): time 0.01414/2.709, allocations: 4.078 MB / 0.9459 GB, free: 44.36 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.123e-05/2.709, allocations: 168.6 kB / 0.9461 GB, free: 44.17 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002233/2.712, allocations: 1.16 MB / 0.9472 GB, free: 43.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004045/2.712, allocations: 59.91 kB / 0.9473 GB, free: 43.65 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005556/2.713, allocations: 0.6887 MB / 0.948 GB, free: 43.05 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006246/2.713, allocations: 475.6 kB / 0.9484 GB, free: 42.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001682/2.713, allocations: 37.91 kB / 0.9484 GB, free: 42.67 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001358/2.714, allocations: 385.3 kB / 0.9488 GB, free: 42.33 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001851/2.715, allocations: 0.7261 MB / 0.9495 GB, free: 42.07 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002098/2.718, allocations: 1.194 MB / 0.9507 GB, free: 41.24 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002047/2.72, allocations: 0.8675 MB / 0.9515 GB, free: 40.62 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.198e-05/2.72, allocations: 10.69 kB / 0.9515 GB, free: 40.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.00571/2.725, allocations: 2.286 MB / 0.9538 GB, free: 38.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00105/2.727, allocations: 5.14 MB / 0.9588 GB, free: 33.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.479e-05/2.727, allocations: 18.5 kB / 0.9588 GB, free: 33.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00901/2.736, allocations: 0.9384 MB / 0.9597 GB, free: 32.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002743/2.738, allocations: 357.5 kB / 0.9601 GB, free: 32.13 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003322/2.742, allocations: 2.887 MB / 0.9629 GB, free: 29.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003202/2.745, allocations: 135 kB / 0.963 GB, free: 29.19 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006896/2.746, allocations: 87.16 kB / 0.9631 GB, free: 29.12 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/2.746, allocations: 6.625 kB / 0.9631 GB, free: 29.11 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005891/2.752, allocations: 2.098 MB / 0.9652 GB, free: 27.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.753e-05/2.752, allocations: 12 kB / 0.9652 GB, free: 27.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006968/2.759, allocations: 0.6603 MB / 0.9658 GB, free: 26.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002672/2.761, allocations: 370.8 kB / 0.9662 GB, free: 26.47 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002437/2.764, allocations: 2.618 MB / 0.9687 GB, free: 23.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002072/2.766, allocations: 126.9 kB / 0.9688 GB, free: 23.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002197/2.766, allocations: 83.59 kB / 0.9689 GB, free: 23.68 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.0005652/2.767, allocations: 233.5 kB / 0.9691 GB, free: 23.45 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004683/2.767, allocations: 162.2 kB / 0.9693 GB, free: 23.29 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007616/2.775, allocations: 2.319 MB / 0.9716 GB, free: 21.32 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.738e-05/2.775, allocations: 16 kB / 0.9716 GB, free: 21.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/2.775, allocations: 4 kB / 0.9716 GB, free: 21.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.552e-05/2.775, allocations: 7.641 kB / 0.9716 GB, free: 21.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01124/2.786, allocations: 3.909 MB / 0.9754 GB, free: 17.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.41e-05/2.786, allocations: 4 kB / 0.9754 GB, free: 17.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002154/2.788, allocations: 239.7 kB / 0.9756 GB, free: 17.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007249/2.796, allocations: 0.8721 MB / 0.9765 GB, free: 16.55 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000286/2.796, allocations: 39.98 kB / 0.9765 GB, free: 16.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003291/2.799, allocations: 2.821 MB / 0.9793 GB, free: 13.59 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/2.799, allocations: 4.031 kB / 0.9793 GB, free: 13.58 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008268/2.808, allocations: 3.164 MB / 0.9824 GB, free: 10.32 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007964/2.809, allocations: 270.8 kB / 0.9826 GB, free: 10.04 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004803/2.809, allocations: 38.98 kB / 0.9827 GB, free: 10 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002092/2.811, allocations: 111.8 kB / 0.9828 GB, free: 9.895 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004673/2.812, allocations: 145 kB / 0.9829 GB, free: 9.754 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002165/2.812, allocations: 59.97 kB / 0.983 GB, free: 9.695 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001985/2.814, allocations: 0.8822 MB / 0.9838 GB, free: 8.812 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.71e-07/2.814, allocations: 0 / 0.9838 GB, free: 8.812 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006015/2.82, allocations: 1.354 MB / 0.9852 GB, free: 7.457 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.01242/2.832, allocations: 5.241 MB / 0.9903 GB, free: 2.27 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.3477/3.18, allocations: 2.989 MB / 0.9932 GB, free: 54.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.355e-05/3.18, allocations: 0 / 0.9932 GB, free: 54.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004248/3.184, allocations: 1.042 MB / 0.9942 GB, free: 54.55 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006317/3.191, allocations: 0.6681 MB / 0.9949 GB, free: 54.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01362/3.204, allocations: 3.605 MB / 0.9984 GB, free: 53.85 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001916/3.206, allocations: 1.421 MB / 0.9998 GB, free: 53.13 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002161/3.209, allocations: 0.668 MB / 1 GB, free: 53.13 MB / 410.7 MB Notification: Performance of SimCode: time 1.303e-06/3.209, allocations: 1.062 kB / 1 GB, free: 53.13 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.887/7.096, allocations: 66.3 MB / 1.065 GB, free: 47.97 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat