Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.155/2.155, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.497e-05/2.511e-05, allocations: 4 kB / 249.7 MB, free: 14.8 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3109/0.311, allocations: 44.48 MB / 294.2 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.031/1.342, allocations: 323 MB / 0.6027 GB, free: 110 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000309/1.342, allocations: 92 kB / 0.6028 GB, free: 110 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8774/2.219, allocations: 163.5 MB / 0.7625 GB, free: 95.91 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.044e-06/2.22, allocations: 2.844 kB / 0.7625 GB, free: 95.91 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.91e-05/2.22, allocations: 20.81 kB / 0.7625 GB, free: 95.91 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.003374/2.223, allocations: 1.106 MB / 0.7636 GB, free: 95.32 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.644e-05/2.223, allocations: 7.875 kB / 0.7636 GB, free: 95.32 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000779/2.224, allocations: 107.8 kB / 0.7637 GB, free: 95.28 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002294/2.226, allocations: 0.6603 MB / 0.7644 GB, free: 95.04 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.167e-05/2.226, allocations: 18.72 kB / 0.7644 GB, free: 95.04 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000142/2.226, allocations: 34.06 kB / 0.7644 GB, free: 95.04 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001733/2.228, allocations: 0.7001 MB / 0.7651 GB, free: 95.03 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001743/2.23, allocations: 0.7804 MB / 0.7659 GB, free: 94.86 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.139e-05/2.23, allocations: 5.531 kB / 0.7659 GB, free: 94.86 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001058/2.23, allocations: 3.5 kB / 0.7659 GB, free: 94.86 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.607e-05/2.23, allocations: 41.36 kB / 0.7659 GB, free: 94.86 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01198/2.242, allocations: 3.723 MB / 0.7696 GB, free: 92.73 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001911/2.244, allocations: 468.2 kB / 0.77 GB, free: 92.7 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007481/2.245, allocations: 225.6 kB / 0.7702 GB, free: 92.7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005512/2.251, allocations: 1.935 MB / 0.7721 GB, free: 91.46 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.622e-05/2.251, allocations: 42.09 kB / 0.7721 GB, free: 91.41 MB / 410.7 MB Notification: Performance of pre-optimization done (n=37): time 6.302e-06/2.251, allocations: 0 / 0.7721 GB, free: 91.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=42): time 0.01621/2.267, allocations: 1.677 MB / 0.7738 GB, free: 91.01 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.787e-05/2.267, allocations: 135 kB / 0.7739 GB, free: 90.85 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001322/2.268, allocations: 0.5167 MB / 0.7744 GB, free: 90.71 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001651/2.269, allocations: 30.61 kB / 0.7744 GB, free: 90.68 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005014/2.269, allocations: 439.2 kB / 0.7749 GB, free: 90.45 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002851/2.269, allocations: 152.9 kB / 0.775 GB, free: 90.36 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.251e-05/2.27, allocations: 3.938 kB / 0.775 GB, free: 90.35 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001859/2.27, allocations: 375.9 kB / 0.7754 GB, free: 90.04 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008438/2.271, allocations: 228.1 kB / 0.7756 GB, free: 90.04 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001093/2.272, allocations: 0.5297 MB / 0.7761 GB, free: 89.65 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01162/2.283, allocations: 0.9268 MB / 0.777 GB, free: 89.64 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.512e-05/2.283, allocations: 0 / 0.777 GB, free: 89.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.01404/2.298, allocations: 1.416 MB / 0.7784 GB, free: 89.55 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001221/2.299, allocations: 3.925 MB / 0.7822 GB, free: 85.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-05/2.299, allocations: 11 kB / 0.7822 GB, free: 85.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005068/2.299, allocations: 57.91 kB / 0.7823 GB, free: 85.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003446/2.303, allocations: 239.3 kB / 0.7825 GB, free: 85.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002508/2.306, allocations: 1.287 MB / 0.7838 GB, free: 84.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002045/2.308, allocations: 39.7 kB / 0.7838 GB, free: 84.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002481/2.308, allocations: 44.09 kB / 0.7839 GB, free: 84.36 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.886e-05/2.308, allocations: 7.516 kB / 0.7839 GB, free: 84.36 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01298/2.321, allocations: 1.292 MB / 0.7851 GB, free: 84.33 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.411e-05/2.321, allocations: 7.688 kB / 0.7851 GB, free: 84.33 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003642/2.321, allocations: 53.89 kB / 0.7852 GB, free: 84.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002604/2.324, allocations: 235.5 kB / 0.7854 GB, free: 84.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001503/2.326, allocations: 0.6384 MB / 0.786 GB, free: 83.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001826/2.328, allocations: 52.58 kB / 0.7861 GB, free: 83.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001788/2.328, allocations: 45.25 kB / 0.7861 GB, free: 83.8 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (98): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0004294/2.328, allocations: 133.6 kB / 0.7863 GB, free: 83.68 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005842/2.334, allocations: 0.6324 MB / 0.7869 GB, free: 83.6 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002413/2.334, allocations: 69.53 kB / 0.7869 GB, free: 83.56 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004995/2.339, allocations: 0.7926 MB / 0.7877 GB, free: 83.47 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.136e-05/2.339, allocations: 3.875 kB / 0.7877 GB, free: 83.47 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/2.339, allocations: 0 / 0.7877 GB, free: 83.47 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.639e-05/2.34, allocations: 7.641 kB / 0.7877 GB, free: 83.47 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006857/2.346, allocations: 1.385 MB / 0.7891 GB, free: 83.15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.071e-05/2.346, allocations: 0 / 0.7891 GB, free: 83.15 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001953/2.348, allocations: 142.5 kB / 0.7892 GB, free: 83.15 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003313/2.349, allocations: 43.61 kB / 0.7893 GB, free: 83.14 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.368e-05/2.349, allocations: 6.5 kB / 0.7893 GB, free: 83.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001608/2.351, allocations: 1.223 MB / 0.7905 GB, free: 82.03 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/2.351, allocations: 0 / 0.7905 GB, free: 82.03 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004696/2.355, allocations: 1.051 MB / 0.7915 GB, free: 81.76 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004311/2.356, allocations: 154.1 kB / 0.7916 GB, free: 81.63 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002751/2.356, allocations: 9.625 kB / 0.7916 GB, free: 81.63 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001177/2.357, allocations: 32 kB / 0.7917 GB, free: 81.62 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002394/2.358, allocations: 50.88 kB / 0.7917 GB, free: 81.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000107/2.358, allocations: 22.52 kB / 0.7917 GB, free: 81.62 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009119/2.359, allocations: 392.7 kB / 0.7921 GB, free: 81.53 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.285e-06/2.359, allocations: 0 / 0.7921 GB, free: 81.53 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004143/2.363, allocations: 0.591 MB / 0.7927 GB, free: 81.43 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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[2],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.007927/2.371, allocations: 2.34 MB / 0.795 GB, free: 80.34 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004662/2.375, allocations: 1.023 MB / 0.796 GB, free: 80.31 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.172e-05/2.376, allocations: 3.938 kB / 0.796 GB, free: 80.31 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001657/2.377, allocations: 315.4 kB / 0.7963 GB, free: 80.3 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003488/2.381, allocations: 265.6 kB / 0.7965 GB, free: 80.29 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006999/2.388, allocations: 1.409 MB / 0.7979 GB, free: 79.83 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007928/2.389, allocations: 1.005 MB / 0.7989 GB, free: 79.12 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003463/2.392, allocations: 357 kB / 0.7992 GB, free: 79.11 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009745/2.393, allocations: 280.9 kB / 0.7995 GB, free: 79.1 MB / 410.7 MB Notification: Performance of SimCode: time 2.094e-06/2.393, allocations: 0 / 0.7995 GB, free: 79.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09254/2.486, allocations: 24.05 MB / 0.823 GB, free: 71.38 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002466/2.486, allocations: 194.3 kB / 0.8232 GB, free: 71.18 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.754/6.24, allocations: 3.906 kB / 0.8232 GB, free: 71.18 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat