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.759/1.759, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.135e-05/3.141e-05, allocations: 7.984 kB / 225.1 MB, free: 2.242 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3249/0.325, allocations: 38.76 MB / 263.9 MB, free: 9.703 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.004/1.329, allocations: 314 MB / 0.5643 GB, free: 69.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002905/1.33, allocations: 86.14 kB / 0.5644 GB, free: 69.71 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9312/2.261, allocations: 190.1 MB / 0.7501 GB, free: 32.99 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.134e-06/2.261, allocations: 0 / 0.7501 GB, free: 32.99 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001045/2.261, allocations: 35.92 kB / 0.7501 GB, free: 32.95 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.004638/2.266, allocations: 1.286 MB / 0.7514 GB, free: 31.62 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.435e-05/2.266, allocations: 12.03 kB / 0.7514 GB, free: 31.61 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003699/2.266, allocations: 110.5 kB / 0.7515 GB, free: 31.49 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006519/2.267, allocations: 119.2 kB / 0.7516 GB, free: 31.38 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002779/2.27, allocations: 0.7724 MB / 0.7524 GB, free: 30.56 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.8e-05/2.27, allocations: 49.23 kB / 0.7524 GB, free: 30.51 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002287/2.27, allocations: 59.98 kB / 0.7525 GB, free: 30.45 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002589/2.273, allocations: 1.04 MB / 0.7535 GB, free: 29.35 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.747e-05/2.273, allocations: 4 kB / 0.7535 GB, free: 29.35 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001611/2.273, allocations: 27.98 kB / 0.7535 GB, free: 29.32 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001432/2.273, allocations: 65.27 kB / 0.7536 GB, free: 29.26 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002656/2.276, allocations: 0.9785 MB / 0.7545 GB, free: 28.28 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01473/2.291, allocations: 4.41 MB / 0.7588 GB, free: 23.6 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001907/2.293, allocations: 0.5197 MB / 0.7593 GB, free: 23.07 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009339/2.294, allocations: 294 kB / 0.7596 GB, free: 22.79 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0118/2.305, allocations: 1.989 MB / 0.7616 GB, free: 20.58 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.042e-05/2.305, allocations: 42.88 kB / 0.7616 GB, free: 20.53 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 4.619e-06/2.305, allocations: 0 / 0.7616 GB, free: 20.53 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.01241/2.318, allocations: 1.45 MB / 0.763 GB, free: 19.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.566e-05/2.318, allocations: 162.2 kB / 0.7632 GB, free: 18.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001989/2.32, allocations: 0.727 MB / 0.7639 GB, free: 18.09 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002004/2.32, allocations: 37.7 kB / 0.7639 GB, free: 18.05 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005722/2.321, allocations: 0.4905 MB / 0.7644 GB, free: 17.55 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000253/2.321, allocations: 165.7 kB / 0.7646 GB, free: 17.39 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/2.321, allocations: 20 kB / 0.7646 GB, free: 17.37 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002049/2.321, allocations: 398.7 kB / 0.765 GB, free: 16.97 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007784/2.329, allocations: 289.9 kB / 0.7652 GB, free: 16.69 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001446/2.331, allocations: 0.6463 MB / 0.7659 GB, free: 15.87 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001305/2.332, allocations: 395.1 kB / 0.7662 GB, free: 15.49 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.199e-05/2.332, allocations: 4 kB / 0.7662 GB, free: 15.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.003116/2.335, allocations: 1.062 MB / 0.7673 GB, free: 14.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001006/2.336, allocations: 4.443 MB / 0.7716 GB, free: 9.617 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.155e-05/2.336, allocations: 12 kB / 0.7716 GB, free: 9.605 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003381/2.34, allocations: 313.4 kB / 0.7719 GB, free: 9.293 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001381/2.341, allocations: 191.7 kB / 0.7721 GB, free: 9.105 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001476/2.343, allocations: 1.327 MB / 0.7734 GB, free: 7.727 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001593/2.344, allocations: 71.98 kB / 0.7735 GB, free: 7.656 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001616/2.345, allocations: 48 kB / 0.7735 GB, free: 7.609 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/2.345, allocations: 4 kB / 0.7735 GB, free: 7.605 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002424/2.347, allocations: 0.9328 MB / 0.7744 GB, free: 6.664 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.45e-05/2.347, allocations: 12.19 kB / 0.7744 GB, free: 6.652 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00306/2.35, allocations: 297.3 kB / 0.7747 GB, free: 6.355 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001365/2.352, allocations: 191.7 kB / 0.7749 GB, free: 6.168 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001188/2.353, allocations: 1.284 MB / 0.7762 GB, free: 4.832 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001242/2.354, allocations: 59.88 kB / 0.7762 GB, free: 4.773 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001397/2.354, allocations: 51.98 kB / 0.7763 GB, free: 4.723 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.0002961/2.355, allocations: 169.2 kB / 0.7764 GB, free: 4.551 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001727/2.355, allocations: 82.97 kB / 0.7765 GB, free: 4.469 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002382/2.357, allocations: 0.7607 MB / 0.7773 GB, free: 3.699 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/2.357, allocations: 8 kB / 0.7773 GB, free: 3.691 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/2.357, allocations: 0 / 0.7773 GB, free: 3.691 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/2.357, allocations: 0 / 0.7773 GB, free: 3.691 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003411/2.361, allocations: 1.536 MB / 0.7788 GB, free: 2.082 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/2.361, allocations: 3.938 kB / 0.7788 GB, free: 2.078 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006673/2.361, allocations: 79.89 kB / 0.7788 GB, free: 2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002295/2.364, allocations: 285.5 kB / 0.7791 GB, free: 1.715 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.327e-05/2.364, allocations: 15.98 kB / 0.7791 GB, free: 1.699 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001163/2.365, allocations: 1.304 MB / 0.7804 GB, free: 352 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/2.365, allocations: 4.031 kB / 0.7804 GB, free: 348 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2625/2.627, allocations: 1.076 MB / 0.7815 GB, free: 62.25 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004613/2.628, allocations: 173.7 kB / 0.7816 GB, free: 62.16 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002172/2.628, allocations: 13.19 kB / 0.7816 GB, free: 62.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000916/2.629, allocations: 41.61 kB / 0.7817 GB, free: 62.16 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002039/2.629, allocations: 52.81 kB / 0.7817 GB, free: 62.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.731e-05/2.629, allocations: 20.59 kB / 0.7818 GB, free: 62.16 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001282/2.631, allocations: 0.5583 MB / 0.7823 GB, free: 62.06 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.72e-07/2.631, allocations: 0 / 0.7823 GB, free: 62.06 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003543/2.634, allocations: 0.802 MB / 0.7831 GB, free: 62.06 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.005309/2.64, allocations: 2.485 MB / 0.7855 GB, free: 61.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003845/2.644, allocations: 1.218 MB / 0.7867 GB, free: 61.17 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.827e-06/2.644, allocations: 1.172 kB / 0.7867 GB, free: 61.17 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001369/2.645, allocations: 349.4 kB / 0.787 GB, free: 61.17 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002579/2.648, allocations: 304.2 kB / 0.7873 GB, free: 61.17 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005883/2.653, allocations: 1.757 MB / 0.789 GB, free: 60.81 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006665/2.654, allocations: 1.057 MB / 0.7901 GB, free: 60.11 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002278/2.656, allocations: 400.9 kB / 0.7905 GB, free: 60.09 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006072/2.657, allocations: 319.1 kB / 0.7908 GB, free: 60.09 MB / 362.7 MB Notification: Performance of SimCode: time 1.402e-06/2.657, allocations: 0.6562 kB / 0.7908 GB, free: 60.09 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08518/2.742, allocations: 32.33 MB / 0.8223 GB, free: 58.58 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003119/2.743, allocations: 245.3 kB / 0.8226 GB, free: 58.26 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.95/6.692, allocations: 0 / 0.8226 GB, free: 58.26 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