Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.7/1.7, allocations: 171.2 MB / 183.3 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.685e-05/3.713e-05, allocations: 4 kB / 225.1 MB, free: 2.129 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2604, allocations: 38.77 MB / 263.9 MB, free: 9.801 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9078/1.168, allocations: 314 MB / 0.5643 GB, free: 69.97 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003172/1.169, allocations: 91.75 kB / 0.5644 GB, free: 69.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9748/2.143, allocations: 190.1 MB / 0.7501 GB, free: 33.32 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.975e-06/2.143, allocations: 0 / 0.7501 GB, free: 33.32 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001343/2.144, allocations: 31.92 kB / 0.7501 GB, free: 33.29 MB / 362.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.004916/2.149, allocations: 1.29 MB / 0.7513 GB, free: 31.96 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/2.149, allocations: 12.03 kB / 0.7514 GB, free: 31.95 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004264/2.149, allocations: 110.5 kB / 0.7515 GB, free: 31.83 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007359/2.15, allocations: 115.2 kB / 0.7516 GB, free: 31.71 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002922/2.153, allocations: 0.7724 MB / 0.7523 GB, free: 30.9 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001043/2.153, allocations: 53.28 kB / 0.7524 GB, free: 30.85 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003269/2.153, allocations: 59.98 kB / 0.7524 GB, free: 30.79 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002813/2.156, allocations: 1.044 MB / 0.7535 GB, free: 29.69 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.087e-05/2.156, allocations: 4 kB / 0.7535 GB, free: 29.68 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001755/2.156, allocations: 27.98 kB / 0.7535 GB, free: 29.66 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001524/2.157, allocations: 65.27 kB / 0.7535 GB, free: 29.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002872/2.159, allocations: 0.9889 MB / 0.7545 GB, free: 28.61 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01137/2.171, allocations: 4.41 MB / 0.7588 GB, free: 23.93 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001517/2.172, allocations: 0.5208 MB / 0.7593 GB, free: 23.4 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007879/2.173, allocations: 294.1 kB / 0.7596 GB, free: 23.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00413/2.177, allocations: 2.005 MB / 0.7616 GB, free: 20.89 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.323e-05/2.178, allocations: 38.89 kB / 0.7616 GB, free: 20.84 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 3.837e-06/2.178, allocations: 0 / 0.7616 GB, free: 20.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.005525/2.183, allocations: 1.447 MB / 0.763 GB, free: 19.34 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.052e-05/2.183, allocations: 166.2 kB / 0.7632 GB, free: 19.14 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001481/2.185, allocations: 0.7231 MB / 0.7639 GB, free: 18.41 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002014/2.185, allocations: 41.69 kB / 0.7639 GB, free: 18.36 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004629/2.185, allocations: 498.3 kB / 0.7644 GB, free: 17.87 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002715/2.186, allocations: 165.7 kB / 0.7646 GB, free: 17.7 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.783e-05/2.186, allocations: 16 kB / 0.7646 GB, free: 17.69 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001974/2.186, allocations: 402.7 kB / 0.765 GB, free: 17.29 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008634/2.187, allocations: 289.9 kB / 0.7652 GB, free: 17 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00109/2.188, allocations: 0.6482 MB / 0.7659 GB, free: 16.19 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001056/2.189, allocations: 395.1 kB / 0.7662 GB, free: 15.8 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.07e-05/2.189, allocations: 4 kB / 0.7662 GB, free: 15.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.003199/2.192, allocations: 1.089 MB / 0.7673 GB, free: 14.7 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009479/2.193, allocations: 4.45 MB / 0.7717 GB, free: 9.898 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.168e-05/2.193, allocations: 12 kB / 0.7717 GB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003592/2.197, allocations: 321.4 kB / 0.772 GB, free: 9.566 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0014/2.199, allocations: 183.7 kB / 0.7721 GB, free: 9.387 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001578/2.2, allocations: 1.327 MB / 0.7734 GB, free: 8.008 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00165/2.202, allocations: 67.81 kB / 0.7735 GB, free: 7.941 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002708/2.202, allocations: 47.98 kB / 0.7736 GB, free: 7.895 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/2.202, allocations: 4 kB / 0.7736 GB, free: 7.891 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00275/2.205, allocations: 0.9679 MB / 0.7745 GB, free: 6.914 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.966e-05/2.205, allocations: 12 kB / 0.7745 GB, free: 6.902 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003153/2.208, allocations: 289.5 kB / 0.7748 GB, free: 6.613 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001389/2.21, allocations: 195.7 kB / 0.775 GB, free: 6.422 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001342/2.211, allocations: 1.288 MB / 0.7762 GB, free: 5.082 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001494/2.213, allocations: 59.88 kB / 0.7763 GB, free: 5.023 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000253/2.213, allocations: 48.05 kB / 0.7763 GB, free: 4.977 MB / 362.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.0003531/2.213, allocations: 168.6 kB / 0.7765 GB, free: 4.805 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002757/2.214, allocations: 86.97 kB / 0.7766 GB, free: 4.719 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00273/2.216, allocations: 0.7703 MB / 0.7773 GB, free: 3.938 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.357e-05/2.216, allocations: 4 kB / 0.7773 GB, free: 3.934 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/2.216, allocations: 4 kB / 0.7773 GB, free: 3.93 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.295e-05/2.216, allocations: 3.984 kB / 0.7773 GB, free: 3.926 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004334/2.221, allocations: 1.528 MB / 0.7788 GB, free: 2.324 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.074e-05/2.221, allocations: 3.984 kB / 0.7788 GB, free: 2.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007281/2.222, allocations: 71.91 kB / 0.7789 GB, free: 2.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002521/2.224, allocations: 281.5 kB / 0.7792 GB, free: 1.969 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001638/2.224, allocations: 19.98 kB / 0.7792 GB, free: 1.949 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001333/2.226, allocations: 1.308 MB / 0.7805 GB, free: 0.5898 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.359e-06/2.226, allocations: 0 / 0.7805 GB, free: 0.5898 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2576/2.483, allocations: 1.078 MB / 0.7815 GB, free: 62.4 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004853/2.484, allocations: 177.3 kB / 0.7817 GB, free: 62.31 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002846/2.484, allocations: 14.22 kB / 0.7817 GB, free: 62.31 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/2.485, allocations: 45.92 kB / 0.7818 GB, free: 62.31 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000267/2.486, allocations: 49.03 kB / 0.7818 GB, free: 62.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.992e-05/2.486, allocations: 23.16 kB / 0.7818 GB, free: 62.31 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001551/2.487, allocations: 0.5571 MB / 0.7824 GB, free: 62.21 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.82e-07/2.487, allocations: 3.719 kB / 0.7824 GB, free: 62.21 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003652/2.491, allocations: 0.8043 MB / 0.7832 GB, free: 62.21 MB / 362.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.005979/2.497, allocations: 2.464 MB / 0.7856 GB, free: 61.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004242/2.501, allocations: 1.268 MB / 0.7868 GB, free: 61.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.006e-05/2.501, allocations: 2.688 kB / 0.7868 GB, free: 61.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00145/2.503, allocations: 346.1 kB / 0.7871 GB, free: 61.34 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002692/2.506, allocations: 304.4 kB / 0.7874 GB, free: 61.34 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006234/2.512, allocations: 1.764 MB / 0.7891 GB, free: 60.98 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006148/2.512, allocations: 1.056 MB / 0.7902 GB, free: 60.28 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002603/2.515, allocations: 410.5 kB / 0.7906 GB, free: 60.27 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007485/2.516, allocations: 312.1 kB / 0.7909 GB, free: 60.26 MB / 362.7 MB Notification: Performance of SimCode: time 1.763e-06/2.516, allocations: 0 / 0.7909 GB, free: 60.26 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1448/2.661, allocations: 32.36 MB / 0.8225 GB, free: 58.84 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002241/2.661, allocations: 242.3 kB / 0.8227 GB, free: 58.53 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.976/6.637, allocations: 7.828 kB / 0.8227 GB, free: 58.53 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat