Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.575/2.575, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.803e-05/3.809e-05, allocations: 3.719 kB / 249.8 MB, free: 5.23 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.109, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.214/1.323, allocations: 323 MB / 0.6028 GB, free: 62.9 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003675/1.323, allocations: 85.83 kB / 0.6029 GB, free: 62.86 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.049/2.372, allocations: 163.5 MB / 0.7626 GB, free: 75.48 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.006e-06/2.372, allocations: 0 / 0.7626 GB, free: 75.48 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001044/2.372, allocations: 27.77 kB / 0.7626 GB, free: 75.46 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.004137/2.376, allocations: 1.099 MB / 0.7637 GB, free: 74.32 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.555e-05/2.376, allocations: 12.03 kB / 0.7637 GB, free: 74.31 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007839/2.377, allocations: 106.9 kB / 0.7638 GB, free: 74.2 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002476/2.38, allocations: 0.6591 MB / 0.7644 GB, free: 73.51 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.689e-05/2.38, allocations: 24 kB / 0.7645 GB, free: 73.49 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001674/2.38, allocations: 35.91 kB / 0.7645 GB, free: 73.45 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002174/2.382, allocations: 0.6937 MB / 0.7652 GB, free: 72.76 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002087/2.384, allocations: 0.789 MB / 0.7659 GB, free: 71.91 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.467e-05/2.384, allocations: 0 / 0.7659 GB, free: 71.91 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001328/2.384, allocations: 4 kB / 0.7659 GB, free: 71.91 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001176/2.385, allocations: 49.23 kB / 0.766 GB, free: 71.86 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008807/2.393, allocations: 3.72 MB / 0.7696 GB, free: 67.92 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001281/2.395, allocations: 463.6 kB / 0.7701 GB, free: 67.46 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005969/2.395, allocations: 237.5 kB / 0.7703 GB, free: 67.23 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004251/2.4, allocations: 1.926 MB / 0.7722 GB, free: 65.11 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.284e-05/2.4, allocations: 46.45 kB / 0.7722 GB, free: 65.05 MB / 410.7 MB Notification: Performance of pre-optimization done (n=37): time 3.737e-06/2.4, allocations: 0 / 0.7722 GB, free: 65.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=42): time 0.01234/2.412, allocations: 1.675 MB / 0.7738 GB, free: 63.32 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.592e-05/2.412, allocations: 132.5 kB / 0.774 GB, free: 63.16 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001069/2.413, allocations: 0.5227 MB / 0.7745 GB, free: 62.63 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001186/2.413, allocations: 25.7 kB / 0.7745 GB, free: 62.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004043/2.414, allocations: 434.7 kB / 0.7749 GB, free: 62.17 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000192/2.414, allocations: 149.8 kB / 0.7751 GB, free: 62.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.003e-05/2.414, allocations: 0 / 0.7751 GB, free: 62.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001549/2.414, allocations: 378.8 kB / 0.7754 GB, free: 61.64 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006925/2.415, allocations: 226.5 kB / 0.7756 GB, free: 61.42 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008638/2.416, allocations: 0.5408 MB / 0.7762 GB, free: 60.73 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009576/2.425, allocations: 0.9237 MB / 0.7771 GB, free: 59.81 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.617e-05/2.426, allocations: 4 kB / 0.7771 GB, free: 59.81 MB / 410.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.01142/2.437, allocations: 1.424 MB / 0.7785 GB, free: 58.37 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008141/2.438, allocations: 3.917 MB / 0.7823 GB, free: 54.15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.593e-05/2.438, allocations: 12 kB / 0.7823 GB, free: 54.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003896/2.438, allocations: 60.86 kB / 0.7824 GB, free: 54.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002972/2.441, allocations: 243.6 kB / 0.7826 GB, free: 53.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002052/2.443, allocations: 1.287 MB / 0.7839 GB, free: 52.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001689/2.445, allocations: 55.88 kB / 0.7839 GB, free: 52.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001507/2.445, allocations: 36 kB / 0.7839 GB, free: 52.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/2.445, allocations: 6.031 kB / 0.7839 GB, free: 52.41 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0108/2.456, allocations: 1.29 MB / 0.7852 GB, free: 51.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.057e-05/2.456, allocations: 12 kB / 0.7852 GB, free: 51.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000278/2.456, allocations: 56.83 kB / 0.7853 GB, free: 51.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002151/2.459, allocations: 228.2 kB / 0.7855 GB, free: 50.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001115/2.46, allocations: 0.6382 MB / 0.7861 GB, free: 50.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001426/2.461, allocations: 39.95 kB / 0.7862 GB, free: 50.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001324/2.461, allocations: 43.98 kB / 0.7862 GB, free: 50.07 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.0003264/2.462, allocations: 145.2 kB / 0.7863 GB, free: 49.93 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004198/2.466, allocations: 0.6298 MB / 0.7869 GB, free: 49.29 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001736/2.466, allocations: 67.16 kB / 0.787 GB, free: 49.22 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003977/2.47, allocations: 0.7834 MB / 0.7878 GB, free: 48.42 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.624e-05/2.47, allocations: 4 kB / 0.7878 GB, free: 48.41 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/2.47, allocations: 0 / 0.7878 GB, free: 48.41 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.317e-05/2.47, allocations: 7.984 kB / 0.7878 GB, free: 48.41 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007769/2.478, allocations: 1.391 MB / 0.7891 GB, free: 46.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.448e-06/2.478, allocations: 0 / 0.7891 GB, free: 46.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001653/2.48, allocations: 143.8 kB / 0.7893 GB, free: 46.83 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002971/2.48, allocations: 44.92 kB / 0.7893 GB, free: 46.79 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.976e-05/2.48, allocations: 11.97 kB / 0.7893 GB, free: 46.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001407/2.482, allocations: 1.216 MB / 0.7905 GB, free: 45.51 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.864e-06/2.482, allocations: 0 / 0.7905 GB, free: 45.51 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004101/2.486, allocations: 1.043 MB / 0.7915 GB, free: 44.42 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000403/2.486, allocations: 152.2 kB / 0.7917 GB, free: 44.25 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002677/2.487, allocations: 4 kB / 0.7917 GB, free: 44.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001002/2.488, allocations: 27.91 kB / 0.7917 GB, free: 44.22 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002191/2.488, allocations: 60.48 kB / 0.7918 GB, free: 44.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.232e-05/2.488, allocations: 23.98 kB / 0.7918 GB, free: 44.14 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008219/2.489, allocations: 399.1 kB / 0.7922 GB, free: 43.75 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.743e-06/2.489, allocations: 0 / 0.7922 GB, free: 43.75 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003402/2.492, allocations: 0.5853 MB / 0.7928 GB, free: 43.17 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.006693/2.499, allocations: 2.355 MB / 0.7951 GB, free: 40.81 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004329/2.503, allocations: 1.018 MB / 0.796 GB, free: 39.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.846e-06/2.503, allocations: 0 / 0.796 GB, free: 39.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001447/2.505, allocations: 322.2 kB / 0.7964 GB, free: 39.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003087/2.508, allocations: 263.5 kB / 0.7966 GB, free: 39.22 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006022/2.514, allocations: 1.407 MB / 0.798 GB, free: 37.76 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006517/2.515, allocations: 1.008 MB / 0.799 GB, free: 36.72 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002879/2.518, allocations: 342.2 kB / 0.7993 GB, free: 36.38 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007719/2.519, allocations: 283.3 kB / 0.7996 GB, free: 36.11 MB / 410.7 MB Notification: Performance of SimCode: time 1.543e-06/2.519, allocations: 4 kB / 0.7996 GB, free: 36.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1079/2.626, allocations: 24.06 MB / 0.8231 GB, free: 12.09 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002815/2.627, allocations: 198.8 kB / 0.8232 GB, free: 11.85 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.547/7.174, allocations: 3.938 kB / 0.8233 GB, free: 11.84 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat