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 1.885/1.885, allocations: 194.9 MB / 208 MB, free: 3.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.969e-05/2.982e-05, allocations: 4 kB / 255.5 MB, free: 2.617 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1007, allocations: 44.5 MB / 300 MB, free: 6.051 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.024/1.125, allocations: 323.6 MB / 0.609 GB, free: 63.61 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002885/1.125, allocations: 97.5 kB / 0.6091 GB, free: 63.56 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9098/2.035, allocations: 164.6 MB / 0.7698 GB, free: 73.29 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.044e-06/2.035, allocations: 0 / 0.7698 GB, free: 73.29 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.361e-05/2.035, allocations: 24 kB / 0.7699 GB, free: 73.26 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.0034/2.038, allocations: 1.111 MB / 0.771 GB, free: 72.12 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.201e-05/2.038, allocations: 8.031 kB / 0.771 GB, free: 72.11 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002127/2.039, allocations: 101.9 kB / 0.7711 GB, free: 72 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005545/2.039, allocations: 98.92 kB / 0.7712 GB, free: 71.91 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001989/2.041, allocations: 0.6582 MB / 0.7718 GB, free: 71.22 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.91e-05/2.041, allocations: 48.36 kB / 0.7718 GB, free: 71.17 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001421/2.041, allocations: 67.66 kB / 0.7719 GB, free: 71.11 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001913/2.043, allocations: 0.8525 MB / 0.7727 GB, free: 70.21 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.154e-05/2.043, allocations: 4 kB / 0.7727 GB, free: 70.2 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001168/2.044, allocations: 26.27 kB / 0.7728 GB, free: 70.18 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.706e-05/2.044, allocations: 49.23 kB / 0.7728 GB, free: 70.13 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001757/2.045, allocations: 0.7638 MB / 0.7736 GB, free: 69.37 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00731/2.053, allocations: 3.831 MB / 0.7773 GB, free: 65.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/2.054, allocations: 475.2 kB / 0.7778 GB, free: 64.83 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005156/2.054, allocations: 239.9 kB / 0.778 GB, free: 64.6 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003455/2.058, allocations: 1.966 MB / 0.7799 GB, free: 62.44 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.909e-05/2.058, allocations: 42.5 kB / 0.7799 GB, free: 62.39 MB / 410.7 MB Notification: Performance of pre-optimization done (n=37): time 2.915e-06/2.058, allocations: 0 / 0.7799 GB, free: 62.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=42): time 0.003884/2.062, allocations: 1.223 MB / 0.7811 GB, free: 61.11 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.664e-05/2.062, allocations: 132.5 kB / 0.7813 GB, free: 60.95 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001024/2.063, allocations: 0.6089 MB / 0.7819 GB, free: 60.33 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.469e-05/2.063, allocations: 45.62 kB / 0.7819 GB, free: 60.28 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003283/2.064, allocations: 435.7 kB / 0.7823 GB, free: 59.86 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000146/2.064, allocations: 152.8 kB / 0.7825 GB, free: 59.71 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.862e-05/2.064, allocations: 16 kB / 0.7825 GB, free: 59.69 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001322/2.064, allocations: 386.7 kB / 0.7829 GB, free: 59.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005867/2.064, allocations: 237.9 kB / 0.7831 GB, free: 59.07 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007537/2.065, allocations: 0.5462 MB / 0.7836 GB, free: 58.38 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007283/2.066, allocations: 319 kB / 0.7839 GB, free: 58.06 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.256e-06/2.066, allocations: 4 kB / 0.7839 GB, free: 58.06 MB / 410.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002101/2.068, allocations: 0.847 MB / 0.7847 GB, free: 57.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008901/2.069, allocations: 3.921 MB / 0.7886 GB, free: 52.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.988e-05/2.069, allocations: 8 kB / 0.7886 GB, free: 52.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001411/2.071, allocations: 120.7 kB / 0.7887 GB, free: 52.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002233/2.073, allocations: 239.6 kB / 0.7889 GB, free: 52.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009847/2.074, allocations: 1.213 MB / 0.7901 GB, free: 51.35 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001285/2.075, allocations: 59.81 kB / 0.7902 GB, free: 51.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/2.075, allocations: 52 kB / 0.7902 GB, free: 51.24 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/2.075, allocations: 6.031 kB / 0.7902 GB, free: 51.23 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001791/2.077, allocations: 0.7486 MB / 0.791 GB, free: 50.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/2.077, allocations: 11.94 kB / 0.791 GB, free: 50.47 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001165/2.078, allocations: 116.8 kB / 0.7911 GB, free: 50.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001564/2.08, allocations: 219.7 kB / 0.7913 GB, free: 50.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004327/2.08, allocations: 0.5952 MB / 0.7919 GB, free: 49.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001072/2.081, allocations: 63.94 kB / 0.7919 GB, free: 49.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001247/2.082, allocations: 36 kB / 0.792 GB, free: 49.42 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.0003012/2.082, allocations: 168.6 kB / 0.7921 GB, free: 49.25 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00016/2.082, allocations: 71.16 kB / 0.7922 GB, free: 49.18 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002126/2.084, allocations: 0.7406 MB / 0.7929 GB, free: 48.42 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.338e-05/2.084, allocations: 7.984 kB / 0.7929 GB, free: 48.41 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/2.084, allocations: 4 kB / 0.7929 GB, free: 48.41 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.188e-06/2.084, allocations: 0 / 0.7929 GB, free: 48.41 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003224/2.087, allocations: 1.425 MB / 0.7943 GB, free: 46.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/2.087, allocations: 144 / 0.7943 GB, free: 46.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001258/2.089, allocations: 143.8 kB / 0.7945 GB, free: 46.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007318/2.09, allocations: 96.84 kB / 0.7945 GB, free: 46.69 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.489e-05/2.09, allocations: 12 kB / 0.7946 GB, free: 46.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006972/2.09, allocations: 1.181 MB / 0.7957 GB, free: 45.45 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/2.09, allocations: 160 / 0.7957 GB, free: 45.45 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002041/2.092, allocations: 0.9962 MB / 0.7967 GB, free: 44.41 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002924/2.093, allocations: 164.1 kB / 0.7968 GB, free: 44.23 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001774/2.093, allocations: 16 kB / 0.7969 GB, free: 44.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008172/2.094, allocations: 35.92 kB / 0.7969 GB, free: 44.18 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001624/2.094, allocations: 60.41 kB / 0.7969 GB, free: 44.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.214e-05/2.094, allocations: 20 kB / 0.797 GB, free: 44.1 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008101/2.095, allocations: 471.1 kB / 0.7974 GB, free: 43.64 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.31e-07/2.095, allocations: 0 / 0.7974 GB, free: 43.64 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002716/2.098, allocations: 0.6361 MB / 0.798 GB, free: 43.01 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.004203/2.102, allocations: 2.32 MB / 0.8003 GB, free: 40.69 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003489/2.105, allocations: 1.065 MB / 0.8013 GB, free: 39.62 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/2.105, allocations: 0 / 0.8013 GB, free: 39.62 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001126/2.106, allocations: 325.8 kB / 0.8017 GB, free: 39.31 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002272/2.109, allocations: 286.8 kB / 0.8019 GB, free: 39.03 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004473/2.113, allocations: 1.472 MB / 0.8034 GB, free: 37.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005204/2.114, allocations: 1.004 MB / 0.8043 GB, free: 36.47 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002095/2.116, allocations: 374.3 kB / 0.8047 GB, free: 36.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005302/2.116, allocations: 291.3 kB / 0.805 GB, free: 35.81 MB / 410.7 MB Notification: Performance of SimCode: time 1.263e-06/2.117, allocations: 0 / 0.805 GB, free: 35.81 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1012/2.218, allocations: 27.2 MB / 0.8315 GB, free: 8.637 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002747/2.218, allocations: 233.8 kB / 0.8318 GB, free: 8.328 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.834/6.052, allocations: 0 / 0.8318 GB, free: 8.328 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