Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.767/1.767, allocations: 171.2 MB / 183.3 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.23e-05/3.248e-05, allocations: 4 kB / 225.1 MB, free: 2.133 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2622/0.2623, allocations: 38.77 MB / 263.9 MB, free: 9.785 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9688/1.231, allocations: 318.3 MB / 0.5685 GB, free: 68.82 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003359/1.231, allocations: 92.33 kB / 0.5686 GB, free: 68.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7907/2.022, allocations: 164.6 MB / 0.7293 GB, free: 57.81 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.503e-06/2.022, allocations: 0 / 0.7293 GB, free: 57.81 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.407e-05/2.022, allocations: 23.94 kB / 0.7294 GB, free: 57.79 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.003049/2.025, allocations: 1.112 MB / 0.7305 GB, free: 56.64 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.641e-05/2.025, allocations: 16.03 kB / 0.7305 GB, free: 56.63 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001684/2.026, allocations: 102.4 kB / 0.7306 GB, free: 56.52 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000515/2.026, allocations: 98.95 kB / 0.7307 GB, free: 56.43 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001922/2.028, allocations: 0.6598 MB / 0.7313 GB, free: 55.73 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.606e-05/2.028, allocations: 41.31 kB / 0.7313 GB, free: 55.7 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001413/2.028, allocations: 55.91 kB / 0.7314 GB, free: 55.64 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001886/2.03, allocations: 0.8679 MB / 0.7322 GB, free: 54.73 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.147e-05/2.03, allocations: 3.938 kB / 0.7322 GB, free: 54.72 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001162/2.03, allocations: 24.7 kB / 0.7323 GB, free: 54.7 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.03e-05/2.031, allocations: 41.3 kB / 0.7323 GB, free: 54.66 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001757/2.032, allocations: 0.7703 MB / 0.7331 GB, free: 53.89 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006742/2.039, allocations: 3.843 MB / 0.7368 GB, free: 49.78 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/2.04, allocations: 491.2 kB / 0.7373 GB, free: 49.3 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005055/2.041, allocations: 237.5 kB / 0.7375 GB, free: 49.06 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003234/2.044, allocations: 1.958 MB / 0.7394 GB, free: 46.89 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.467e-05/2.044, allocations: 42.55 kB / 0.7395 GB, free: 46.84 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 2.495e-06/2.044, allocations: 0 / 0.7395 GB, free: 46.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.003529/2.048, allocations: 1.233 MB / 0.7407 GB, free: 45.55 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.054e-05/2.048, allocations: 140.4 kB / 0.7408 GB, free: 45.38 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001041/2.049, allocations: 0.6051 MB / 0.7414 GB, free: 44.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.113e-05/2.049, allocations: 37.7 kB / 0.7414 GB, free: 44.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003167/2.049, allocations: 430.9 kB / 0.7418 GB, free: 44.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001568/2.049, allocations: 153.9 kB / 0.742 GB, free: 44.15 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.944e-05/2.049, allocations: 16 kB / 0.742 GB, free: 44.13 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001257/2.05, allocations: 382.8 kB / 0.7424 GB, free: 43.75 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005907/2.05, allocations: 237.9 kB / 0.7426 GB, free: 43.52 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000751/2.051, allocations: 0.5486 MB / 0.7431 GB, free: 42.83 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007242/2.052, allocations: 331 kB / 0.7434 GB, free: 42.51 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.717e-06/2.052, allocations: 4 kB / 0.7434 GB, free: 42.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002104/2.054, allocations: 0.8703 MB / 0.7443 GB, free: 41.62 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007702/2.055, allocations: 3.918 MB / 0.7481 GB, free: 37.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.128e-05/2.055, allocations: 12 kB / 0.7481 GB, free: 37.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001281/2.056, allocations: 116.7 kB / 0.7482 GB, free: 37.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002202/2.058, allocations: 239.6 kB / 0.7485 GB, free: 37.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000929/2.059, allocations: 1.224 MB / 0.7497 GB, free: 35.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00117/2.06, allocations: 59.97 kB / 0.7497 GB, free: 35.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.806e-05/2.06, allocations: 43.98 kB / 0.7498 GB, free: 35.66 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/2.06, allocations: 7.953 kB / 0.7498 GB, free: 35.65 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001776/2.062, allocations: 0.7757 MB / 0.7505 GB, free: 34.87 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/2.062, allocations: 12 kB / 0.7505 GB, free: 34.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001127/2.063, allocations: 116.8 kB / 0.7507 GB, free: 34.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00161/2.065, allocations: 219.7 kB / 0.7509 GB, free: 34.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004657/2.065, allocations: 0.6031 MB / 0.7515 GB, free: 33.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001044/2.067, allocations: 55.94 kB / 0.7515 GB, free: 33.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.96e-05/2.067, allocations: 47.97 kB / 0.7516 GB, free: 33.8 MB / 362.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.0002795/2.067, allocations: 160.6 kB / 0.7517 GB, free: 33.63 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001593/2.067, allocations: 71.16 kB / 0.7518 GB, free: 33.56 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002161/2.069, allocations: 0.7531 MB / 0.7525 GB, free: 32.8 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.327e-05/2.069, allocations: 8 kB / 0.7525 GB, free: 32.8 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/2.069, allocations: 4 kB / 0.7525 GB, free: 32.79 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.799e-06/2.069, allocations: 3.984 kB / 0.7525 GB, free: 32.79 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003126/2.072, allocations: 1.418 MB / 0.7539 GB, free: 31.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/2.072, allocations: 3.938 kB / 0.7539 GB, free: 31.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001259/2.074, allocations: 147.8 kB / 0.7541 GB, free: 31.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007059/2.074, allocations: 80.88 kB / 0.7541 GB, free: 31.07 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.072e-05/2.075, allocations: 19.95 kB / 0.7542 GB, free: 31.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007007/2.075, allocations: 1.181 MB / 0.7553 GB, free: 29.82 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/2.075, allocations: 8.188 kB / 0.7553 GB, free: 29.82 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00203/2.077, allocations: 1 MB / 0.7563 GB, free: 28.77 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002666/2.078, allocations: 164.1 kB / 0.7564 GB, free: 28.59 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001731/2.078, allocations: 12 kB / 0.7565 GB, free: 28.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007586/2.079, allocations: 39.88 kB / 0.7565 GB, free: 28.54 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000163/2.079, allocations: 52.55 kB / 0.7565 GB, free: 28.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.076e-05/2.079, allocations: 23.98 kB / 0.7566 GB, free: 28.46 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007879/2.08, allocations: 471.1 kB / 0.757 GB, free: 28 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.31e-07/2.08, allocations: 4 kB / 0.757 GB, free: 28 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002524/2.082, allocations: 0.6284 MB / 0.7576 GB, free: 27.37 MB / 362.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.004104/2.086, allocations: 2.31 MB / 0.7599 GB, free: 25.02 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00344/2.09, allocations: 1.088 MB / 0.761 GB, free: 23.94 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/2.09, allocations: 0 / 0.761 GB, free: 23.94 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00104/2.091, allocations: 335 kB / 0.7613 GB, free: 23.61 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002172/2.093, allocations: 291 kB / 0.7615 GB, free: 23.33 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00414/2.097, allocations: 1.481 MB / 0.763 GB, free: 21.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004975/2.098, allocations: 1 MB / 0.764 GB, free: 20.77 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002024/2.1, allocations: 383.3 kB / 0.7643 GB, free: 20.39 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005164/2.1, allocations: 283.3 kB / 0.7646 GB, free: 20.11 MB / 362.7 MB Notification: Performance of SimCode: time 1.042e-06/2.1, allocations: 0 / 0.7646 GB, free: 20.11 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3389/2.439, allocations: 27.2 MB / 0.7912 GB, free: 73.66 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002852/2.44, allocations: 234.7 kB / 0.7914 GB, free: 73.36 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.854/6.294, allocations: 0 / 0.7914 GB, free: 73.36 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.TankWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat