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.705/1.705, allocations: 171.3 MB / 178.4 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.436e-05/2.445e-05, allocations: 8 kB / 219.6 MB, free: 6.945 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.2647, allocations: 38.76 MB / 258.4 MB, free: 12.19 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9734/1.238, allocations: 317.6 MB / 0.5625 GB, free: 76.56 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002935/1.238, allocations: 83.97 kB / 0.5626 GB, free: 76.53 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7905/2.029, allocations: 163.5 MB / 0.7222 GB, free: 69.86 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.693e-06/2.029, allocations: 11.94 kB / 0.7223 GB, free: 69.84 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.253e-05/2.029, allocations: 16 kB / 0.7223 GB, free: 69.83 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.002979/2.032, allocations: 1.115 MB / 0.7234 GB, free: 68.68 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/2.032, allocations: 8.031 kB / 0.7234 GB, free: 68.67 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004683/2.033, allocations: 98.95 kB / 0.7235 GB, free: 68.57 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001852/2.035, allocations: 0.6598 MB / 0.7241 GB, free: 67.88 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.482e-05/2.035, allocations: 24 kB / 0.7241 GB, free: 67.86 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001209/2.035, allocations: 36 kB / 0.7242 GB, free: 67.82 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001597/2.036, allocations: 0.6976 MB / 0.7248 GB, free: 67.12 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001552/2.038, allocations: 0.785 MB / 0.7256 GB, free: 66.29 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.954e-05/2.038, allocations: 0 / 0.7256 GB, free: 66.29 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001166/2.038, allocations: 4 kB / 0.7256 GB, free: 66.28 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.489e-05/2.038, allocations: 45.28 kB / 0.7257 GB, free: 66.23 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006755/2.045, allocations: 3.727 MB / 0.7293 GB, free: 62.29 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009784/2.046, allocations: 467.3 kB / 0.7297 GB, free: 61.82 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004482/2.046, allocations: 233.5 kB / 0.73 GB, free: 61.59 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00327/2.05, allocations: 1.94 MB / 0.7319 GB, free: 59.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.772e-05/2.05, allocations: 42.5 kB / 0.7319 GB, free: 59.41 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 2.845e-06/2.05, allocations: 0 / 0.7319 GB, free: 59.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.009246/2.059, allocations: 1.687 MB / 0.7335 GB, free: 57.66 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.55e-05/2.059, allocations: 132.5 kB / 0.7337 GB, free: 57.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008655/2.06, allocations: 0.515 MB / 0.7342 GB, free: 56.98 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.329e-05/2.06, allocations: 29.7 kB / 0.7342 GB, free: 56.95 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003327/2.061, allocations: 438.6 kB / 0.7346 GB, free: 56.51 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001428/2.061, allocations: 142 kB / 0.7348 GB, free: 56.37 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.142e-05/2.061, allocations: 3.938 kB / 0.7348 GB, free: 56.37 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001281/2.061, allocations: 386.8 kB / 0.7351 GB, free: 55.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000515/2.061, allocations: 222.5 kB / 0.7353 GB, free: 55.77 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006691/2.062, allocations: 0.5331 MB / 0.7359 GB, free: 55.08 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007167/2.069, allocations: 0.9191 MB / 0.7368 GB, free: 54.16 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.485e-05/2.069, allocations: 4 kB / 0.7368 GB, free: 54.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.008565/2.078, allocations: 1.417 MB / 0.7381 GB, free: 52.73 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007892/2.079, allocations: 3.917 MB / 0.742 GB, free: 48.51 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.285e-05/2.079, allocations: 12 kB / 0.742 GB, free: 48.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003198/2.079, allocations: 56.83 kB / 0.742 GB, free: 48.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002191/2.081, allocations: 239.6 kB / 0.7423 GB, free: 48.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001537/2.083, allocations: 1.29 MB / 0.7435 GB, free: 46.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001257/2.084, allocations: 48 kB / 0.7436 GB, free: 46.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001147/2.084, allocations: 39.98 kB / 0.7436 GB, free: 46.78 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/2.084, allocations: 4 kB / 0.7436 GB, free: 46.77 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008167/2.093, allocations: 1.29 MB / 0.7449 GB, free: 45.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.746e-05/2.093, allocations: 11.98 kB / 0.7449 GB, free: 45.47 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002307/2.093, allocations: 68.75 kB / 0.745 GB, free: 45.4 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001586/2.094, allocations: 223.7 kB / 0.7452 GB, free: 45.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008741/2.095, allocations: 0.6342 MB / 0.7458 GB, free: 44.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001041/2.096, allocations: 43.94 kB / 0.7458 GB, free: 44.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.715e-05/2.096, allocations: 43.98 kB / 0.7459 GB, free: 44.43 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.000277/2.097, allocations: 140.6 kB / 0.746 GB, free: 44.29 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003172/2.1, allocations: 0.6336 MB / 0.7466 GB, free: 43.64 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001326/2.1, allocations: 67.16 kB / 0.7467 GB, free: 43.58 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002949/2.103, allocations: 0.787 MB / 0.7475 GB, free: 42.78 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.347e-05/2.103, allocations: 12.14 kB / 0.7475 GB, free: 42.77 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/2.103, allocations: 3.953 kB / 0.7475 GB, free: 42.76 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/2.103, allocations: 7.969 kB / 0.7475 GB, free: 42.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004032/2.107, allocations: 1.381 MB / 0.7488 GB, free: 41.33 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/2.107, allocations: 0 / 0.7488 GB, free: 41.33 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001191/2.108, allocations: 143.8 kB / 0.749 GB, free: 41.19 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002119/2.109, allocations: 48.88 kB / 0.749 GB, free: 41.14 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.534e-05/2.109, allocations: 7.984 kB / 0.749 GB, free: 41.13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00101/2.11, allocations: 1.22 MB / 0.7502 GB, free: 39.86 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/2.11, allocations: 0 / 0.7502 GB, free: 39.86 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002842/2.113, allocations: 1.043 MB / 0.7512 GB, free: 38.77 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002555/2.113, allocations: 156.1 kB / 0.7514 GB, free: 38.6 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001971/2.113, allocations: 4 kB / 0.7514 GB, free: 38.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007238/2.114, allocations: 31.94 kB / 0.7514 GB, free: 38.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001654/2.114, allocations: 52.48 kB / 0.7515 GB, free: 38.51 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.892e-05/2.114, allocations: 23.98 kB / 0.7515 GB, free: 38.49 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006394/2.115, allocations: 391.2 kB / 0.7519 GB, free: 38.11 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.51e-07/2.115, allocations: 0 / 0.7519 GB, free: 38.11 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00259/2.117, allocations: 0.5892 MB / 0.7524 GB, free: 37.52 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.005005/2.122, allocations: 2.35 MB / 0.7547 GB, free: 35.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003123/2.126, allocations: 1.011 MB / 0.7557 GB, free: 34.17 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/2.126, allocations: 4.094 kB / 0.7557 GB, free: 34.17 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001036/2.127, allocations: 325.8 kB / 0.756 GB, free: 33.85 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002225/2.129, allocations: 261.2 kB / 0.7563 GB, free: 33.6 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004489/2.133, allocations: 1.411 MB / 0.7577 GB, free: 32.13 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005146/2.134, allocations: 1.016 MB / 0.7586 GB, free: 31.09 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002141/2.136, allocations: 353.8 kB / 0.759 GB, free: 30.74 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005357/2.137, allocations: 283.3 kB / 0.7593 GB, free: 30.46 MB / 362.7 MB Notification: Performance of SimCode: time 1.453e-06/2.137, allocations: 0 / 0.7593 GB, free: 30.46 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08704/2.224, allocations: 24.03 MB / 0.7827 GB, free: 6.402 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002123/2.224, allocations: 193.9 kB / 0.7829 GB, free: 6.203 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.527/5.752, allocations: 0 / 0.7829 GB, free: 6.203 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