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.739/1.739, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.827e-05/3.834e-05, allocations: 7.984 kB / 225.1 MB, free: 2.234 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2779, allocations: 38.77 MB / 263.9 MB, free: 9.707 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9183/1.196, allocations: 318.3 MB / 0.5685 GB, free: 65.55 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002773/1.197, allocations: 87.2 kB / 0.5686 GB, free: 65.51 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8058/2.002, allocations: 164.6 MB / 0.7294 GB, free: 54.68 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.713e-06/2.002, allocations: 0 / 0.7294 GB, free: 54.68 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.106e-05/2.003, allocations: 23.94 kB / 0.7294 GB, free: 54.66 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.003501/2.006, allocations: 1.104 MB / 0.7305 GB, free: 53.52 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/2.006, allocations: 8.031 kB / 0.7305 GB, free: 53.52 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003528/2.007, allocations: 114.3 kB / 0.7306 GB, free: 53.4 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006675/2.007, allocations: 103 kB / 0.7307 GB, free: 53.3 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002298/2.01, allocations: 0.6679 MB / 0.7313 GB, free: 52.59 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.656e-05/2.01, allocations: 41.31 kB / 0.7314 GB, free: 52.55 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001973/2.01, allocations: 55.98 kB / 0.7314 GB, free: 52.49 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002143/2.012, allocations: 0.8548 MB / 0.7323 GB, free: 51.58 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.381e-05/2.012, allocations: 7.938 kB / 0.7323 GB, free: 51.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001345/2.012, allocations: 24 kB / 0.7323 GB, free: 51.55 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.804e-05/2.012, allocations: 41.3 kB / 0.7323 GB, free: 51.51 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001876/2.014, allocations: 0.7599 MB / 0.7331 GB, free: 50.75 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007535/2.022, allocations: 3.844 MB / 0.7368 GB, free: 46.64 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001222/2.023, allocations: 479.8 kB / 0.7373 GB, free: 46.16 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005295/2.024, allocations: 245.4 kB / 0.7375 GB, free: 45.92 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003523/2.027, allocations: 1.961 MB / 0.7394 GB, free: 43.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.756e-05/2.027, allocations: 42.55 kB / 0.7395 GB, free: 43.7 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 3.978e-06/2.027, allocations: 0 / 0.7395 GB, free: 43.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.005028/2.032, allocations: 1.233 MB / 0.7407 GB, free: 42.41 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.737e-05/2.032, allocations: 136.5 kB / 0.7408 GB, free: 42.24 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001421/2.034, allocations: 0.6051 MB / 0.7414 GB, free: 41.63 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001138/2.034, allocations: 37.7 kB / 0.7414 GB, free: 41.59 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004711/2.035, allocations: 434.9 kB / 0.7419 GB, free: 41.16 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002088/2.035, allocations: 153.8 kB / 0.742 GB, free: 41.01 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.255e-05/2.035, allocations: 16 kB / 0.742 GB, free: 40.99 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001709/2.035, allocations: 382.8 kB / 0.7424 GB, free: 40.61 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008442/2.036, allocations: 237.9 kB / 0.7426 GB, free: 40.38 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001083/2.037, allocations: 0.5423 MB / 0.7431 GB, free: 39.69 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001041/2.038, allocations: 323 kB / 0.7434 GB, free: 39.38 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.071e-05/2.038, allocations: 4 kB / 0.7434 GB, free: 39.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003167/2.041, allocations: 0.8462 MB / 0.7443 GB, free: 38.52 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001025/2.042, allocations: 3.92 MB / 0.7481 GB, free: 34.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.768e-05/2.042, allocations: 16 kB / 0.7481 GB, free: 34.28 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001891/2.044, allocations: 112.7 kB / 0.7482 GB, free: 34.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003108/2.047, allocations: 239.7 kB / 0.7485 GB, free: 33.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001293/2.049, allocations: 1.212 MB / 0.7496 GB, free: 32.67 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001921/2.051, allocations: 64.06 kB / 0.7497 GB, free: 32.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002308/2.051, allocations: 43.98 kB / 0.7497 GB, free: 32.56 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/2.051, allocations: 7.953 kB / 0.7497 GB, free: 32.55 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002839/2.054, allocations: 0.7486 MB / 0.7505 GB, free: 31.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.99e-05/2.054, allocations: 8 kB / 0.7505 GB, free: 31.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001631/2.056, allocations: 120.7 kB / 0.7506 GB, free: 31.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00235/2.058, allocations: 223.7 kB / 0.7508 GB, free: 31.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006611/2.059, allocations: 0.599 MB / 0.7514 GB, free: 30.83 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001682/2.06, allocations: 59.94 kB / 0.7515 GB, free: 30.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001529/2.061, allocations: 43.98 kB / 0.7515 GB, free: 30.73 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.000387/2.061, allocations: 161.1 kB / 0.7517 GB, free: 30.56 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002529/2.061, allocations: 71.16 kB / 0.7517 GB, free: 30.49 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003045/2.064, allocations: 0.7447 MB / 0.7524 GB, free: 29.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.62e-05/2.064, allocations: 4 kB / 0.7525 GB, free: 29.72 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/2.064, allocations: 0 / 0.7525 GB, free: 29.72 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.33e-05/2.064, allocations: 3.984 kB / 0.7525 GB, free: 29.72 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004466/2.069, allocations: 1.422 MB / 0.7538 GB, free: 28.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.297e-06/2.069, allocations: 0 / 0.7538 GB, free: 28.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001699/2.071, allocations: 147.9 kB / 0.754 GB, free: 28.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009797/2.072, allocations: 84.78 kB / 0.7541 GB, free: 28 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.171e-05/2.072, allocations: 19.95 kB / 0.7541 GB, free: 27.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009412/2.073, allocations: 1.181 MB / 0.7552 GB, free: 26.75 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.127e-06/2.073, allocations: 0 / 0.7552 GB, free: 26.75 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002934/2.076, allocations: 1 MB / 0.7562 GB, free: 25.7 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003737/2.076, allocations: 160.3 kB / 0.7564 GB, free: 25.53 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002528/2.076, allocations: 20 kB / 0.7564 GB, free: 25.51 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001124/2.078, allocations: 51.86 kB / 0.7564 GB, free: 25.46 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002109/2.078, allocations: 52.48 kB / 0.7565 GB, free: 25.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.975e-05/2.078, allocations: 19.98 kB / 0.7565 GB, free: 25.38 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001169/2.079, allocations: 471.1 kB / 0.757 GB, free: 24.93 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.01e-07/2.079, allocations: 4 kB / 0.757 GB, free: 24.93 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003775/2.083, allocations: 0.6284 MB / 0.7576 GB, free: 24.3 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.005752/2.089, allocations: 2.32 MB / 0.7598 GB, free: 21.95 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004875/2.094, allocations: 1.054 MB / 0.7609 GB, free: 20.89 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.876e-06/2.094, allocations: 448 / 0.7609 GB, free: 20.89 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001528/2.095, allocations: 333.9 kB / 0.7612 GB, free: 20.57 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003084/2.098, allocations: 286.5 kB / 0.7615 GB, free: 20.29 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006125/2.104, allocations: 1.48 MB / 0.7629 GB, free: 18.75 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007335/2.105, allocations: 1.004 MB / 0.7639 GB, free: 17.72 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002596/2.108, allocations: 378.2 kB / 0.7642 GB, free: 17.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005669/2.108, allocations: 283.3 kB / 0.7645 GB, free: 17.07 MB / 362.7 MB Notification: Performance of SimCode: time 1.223e-06/2.108, allocations: 0 / 0.7645 GB, free: 17.07 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3272/2.436, allocations: 27.18 MB / 0.7911 GB, free: 72.72 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002602/2.436, allocations: 231.9 kB / 0.7913 GB, free: 72.42 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.85/6.286, allocations: 3.938 kB / 0.7913 GB, free: 72.41 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