Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.14/2.14, allocations: 205.8 MB / 218.9 MB, free: 9.355 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.987e-05/2.999e-05, allocations: 0 / 269.5 MB, free: 6.309 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1148, allocations: 47.57 MB / 317 MB, free: 6.656 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.154/1.269, allocations: 326.7 MB / 0.6287 GB, free: 36.75 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003314/1.27, allocations: 96.56 kB / 0.6288 GB, free: 36.7 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.738/3.008, allocations: 325 MB / 0.9461 GB, free: 50.38 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.743e-06/3.008, allocations: 0 / 0.9461 GB, free: 50.38 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000167/3.008, allocations: 46.28 kB / 0.9462 GB, free: 50.34 MB / 426.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.007716/3.016, allocations: 2.043 MB / 0.9482 GB, free: 48.3 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.324e-05/3.016, allocations: 15.97 kB / 0.9482 GB, free: 48.28 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005517/3.017, allocations: 181 kB / 0.9484 GB, free: 48.1 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001001/3.018, allocations: 201.8 kB / 0.9485 GB, free: 47.9 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003912/3.022, allocations: 1.189 MB / 0.9497 GB, free: 46.69 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001166/3.022, allocations: 102.6 kB / 0.9498 GB, free: 46.59 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003204/3.022, allocations: 117.5 kB / 0.9499 GB, free: 46.48 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004505/3.027, allocations: 1.905 MB / 0.9518 GB, free: 44.51 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.197e-05/3.027, allocations: 3.938 kB / 0.9518 GB, free: 44.5 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002513/3.027, allocations: 59.34 kB / 0.9518 GB, free: 44.45 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002236/3.027, allocations: 113.5 kB / 0.9519 GB, free: 44.34 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004634/3.032, allocations: 1.904 MB / 0.9538 GB, free: 42.43 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01723/3.049, allocations: 7.683 MB / 0.9613 GB, free: 34.45 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002643/3.052, allocations: 1.131 MB / 0.9624 GB, free: 33.31 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001583/3.053, allocations: 0.7355 MB / 0.9631 GB, free: 32.57 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007285/3.061, allocations: 3.472 MB / 0.9665 GB, free: 28.86 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.85e-05/3.061, allocations: 51.56 kB / 0.9666 GB, free: 28.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 5.63e-06/3.061, allocations: 3.891 kB / 0.9666 GB, free: 28.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=134): time 0.01423/3.075, allocations: 4.126 MB / 0.9706 GB, free: 24.62 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.648e-05/3.075, allocations: 167.5 kB / 0.9708 GB, free: 24.42 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002413/3.078, allocations: 1.239 MB / 0.972 GB, free: 23.18 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003553/3.078, allocations: 61.7 kB / 0.972 GB, free: 23.11 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006661/3.079, allocations: 0.7024 MB / 0.9727 GB, free: 22.41 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005194/3.079, allocations: 466.7 kB / 0.9732 GB, free: 21.95 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001607/3.079, allocations: 32 kB / 0.9732 GB, free: 21.92 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001331/3.079, allocations: 377.9 kB / 0.9736 GB, free: 21.55 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001851/3.081, allocations: 0.7341 MB / 0.9743 GB, free: 20.81 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002037/3.083, allocations: 1.137 MB / 0.9754 GB, free: 19.51 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001938/3.085, allocations: 0.8529 MB / 0.9762 GB, free: 18.66 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.658e-06/3.085, allocations: 4 kB / 0.9762 GB, free: 18.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.006282/3.092, allocations: 2.327 MB / 0.9785 GB, free: 16.31 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001331/3.093, allocations: 4.347 MB / 0.9827 GB, free: 11.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.55e-05/3.093, allocations: 12 kB / 0.9828 GB, free: 11.69 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01412/3.107, allocations: 0.9397 MB / 0.9837 GB, free: 10.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004176/3.112, allocations: 339.5 kB / 0.984 GB, free: 10.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005089/3.117, allocations: 2.894 MB / 0.9868 GB, free: 7.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004416/3.121, allocations: 131.9 kB / 0.9869 GB, free: 7.281 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003866/3.122, allocations: 83.97 kB / 0.987 GB, free: 7.199 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/3.122, allocations: 6.969 kB / 0.987 GB, free: 7.195 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007745/3.129, allocations: 2.038 MB / 0.989 GB, free: 5.145 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.823e-05/3.129, allocations: 12 kB / 0.989 GB, free: 5.133 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01007/3.14, allocations: 0.6748 MB / 0.9897 GB, free: 4.445 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004157/3.144, allocations: 355.4 kB / 0.99 GB, free: 4.098 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003969/3.148, allocations: 2.646 MB / 0.9926 GB, free: 1.352 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003583/3.151, allocations: 131.8 kB / 0.9927 GB, free: 1.223 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003453/3.152, allocations: 79.97 kB / 0.9928 GB, free: 1.145 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (200): * Single equations (assignments): 196 * 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.000792/3.153, allocations: 213.7 kB / 0.993 GB, free: 0.9297 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006622/3.153, allocations: 173.9 kB / 0.9932 GB, free: 0.7578 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3657/3.519, allocations: 2.327 MB / 0.9955 GB, free: 54.96 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.179e-05/3.519, allocations: 18.62 kB / 0.9955 GB, free: 54.96 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.654e-05/3.519, allocations: 3.938 kB / 0.9955 GB, free: 54.96 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.51e-05/3.519, allocations: 7.812 kB / 0.9955 GB, free: 54.96 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01241/3.532, allocations: 3.979 MB / 0.9994 GB, free: 54.54 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.561e-05/3.532, allocations: 2.5 kB / 0.9994 GB, free: 54.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002234/3.534, allocations: 238.8 kB / 0.9996 GB, free: 54.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0102/3.544, allocations: 0.8696 MB / 1 GB, free: 54.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004718/3.545, allocations: 40.69 kB / 1 GB, free: 54.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003509/3.548, allocations: 2.843 MB / 1.003 GB, free: 52.43 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.635e-06/3.548, allocations: 5.688 kB / 1.003 GB, free: 52.43 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009528/3.558, allocations: 3.201 MB / 1.006 GB, free: 52.03 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00102/3.559, allocations: 279.1 kB / 1.007 GB, free: 51.93 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007128/3.56, allocations: 39.02 kB / 1.007 GB, free: 51.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002368/3.562, allocations: 110.1 kB / 1.007 GB, free: 51.93 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005435/3.563, allocations: 149.2 kB / 1.007 GB, free: 51.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002626/3.563, allocations: 67.41 kB / 1.007 GB, free: 51.93 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002093/3.565, allocations: 0.9548 MB / 1.008 GB, free: 51.81 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.002e-06/3.565, allocations: 1.969 kB / 1.008 GB, free: 51.81 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006491/3.572, allocations: 1.382 MB / 1.009 GB, free: 51.81 MB / 426.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.01352/3.585, allocations: 5.318 MB / 1.014 GB, free: 50.39 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009336/3.595, allocations: 2.964 MB / 1.017 GB, free: 50.35 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.117e-05/3.595, allocations: 0 / 1.017 GB, free: 50.35 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003002/3.598, allocations: 1.042 MB / 1.018 GB, free: 50.34 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00623/3.604, allocations: 0.7466 MB / 1.019 GB, free: 50.32 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01056/3.615, allocations: 3.52 MB / 1.023 GB, free: 49.66 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001117/3.616, allocations: 1.439 MB / 1.024 GB, free: 48.94 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004707/3.62, allocations: 0.8261 MB / 1.025 GB, free: 48.91 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001307/3.622, allocations: 0.637 MB / 1.025 GB, free: 48.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.693e-06/3.622, allocations: 0 / 1.025 GB, free: 48.9 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1634/3.785, allocations: 67.31 MB / 1.091 GB, free: 37.29 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0006588/3.786, allocations: 242.8 kB / 1.091 GB, free: 36.97 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.815/9.601, allocations: 3.906 kB / 1.091 GB, free: 36.96 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat