Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.081/2.081, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.513e-05/3.522e-05, allocations: 4 kB / 292.2 MB, free: 8.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1179, allocations: 50.41 MB / 342.7 MB, free: 5.801 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.1/1.218, allocations: 322.5 MB / 0.6496 GB, free: 33.53 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003091/1.218, allocations: 85.58 kB / 0.6496 GB, free: 33.48 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8391/2.057, allocations: 140.2 MB / 0.7865 GB, free: 101.6 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.995e-06/2.057, allocations: 0 / 0.7865 GB, free: 101.6 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001072/2.057, allocations: 17.88 kB / 0.7865 GB, free: 101.6 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.004341/2.062, allocations: 1.037 MB / 0.7875 GB, free: 100.6 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.757e-05/2.062, allocations: 8.031 kB / 0.7876 GB, free: 100.6 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000332/2.062, allocations: 88.7 kB / 0.7876 GB, free: 100.5 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007277/2.063, allocations: 91 kB / 0.7877 GB, free: 100.4 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002498/2.065, allocations: 0.5764 MB / 0.7883 GB, free: 99.77 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.82e-05/2.066, allocations: 48.31 kB / 0.7883 GB, free: 99.72 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001837/2.066, allocations: 46.09 kB / 0.7884 GB, free: 99.68 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002598/2.068, allocations: 0.7173 MB / 0.7891 GB, free: 98.94 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.989e-05/2.068, allocations: 0 / 0.7891 GB, free: 98.94 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000156/2.069, allocations: 19.52 kB / 0.7891 GB, free: 98.92 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001421/2.069, allocations: 48.91 kB / 0.7891 GB, free: 98.88 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002569/2.071, allocations: 0.6617 MB / 0.7898 GB, free: 98.21 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009614/2.081, allocations: 2.855 MB / 0.7926 GB, free: 95.2 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001565/2.083, allocations: 462.9 kB / 0.793 GB, free: 94.74 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008583/2.084, allocations: 246 kB / 0.7933 GB, free: 94.5 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004849/2.084, allocations: 344 kB / 0.7936 GB, free: 94.09 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.44e-05/2.084, allocations: 43 kB / 0.7936 GB, free: 94.04 MB / 458.7 MB Notification: Performance of pre-optimization done (n=48): time 6.202e-06/2.084, allocations: 0 / 0.7936 GB, free: 94.04 MB / 458.7 MB Notification: Performance of matching and sorting (n=58): time 0.009628/2.094, allocations: 1.83 MB / 0.7954 GB, free: 92.16 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.518e-05/2.094, allocations: 81.67 kB / 0.7955 GB, free: 92.06 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001428/2.095, allocations: 0.5424 MB / 0.796 GB, free: 91.51 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000173/2.096, allocations: 37.7 kB / 0.7961 GB, free: 91.47 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003872/2.096, allocations: 328 kB / 0.7964 GB, free: 91.14 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003109/2.096, allocations: 207.5 kB / 0.7966 GB, free: 90.94 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.839e-05/2.096, allocations: 16 kB / 0.7966 GB, free: 90.93 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001877/2.097, allocations: 386.7 kB / 0.797 GB, free: 90.54 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001056/2.098, allocations: 277.5 kB / 0.7972 GB, free: 90.27 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001155/2.099, allocations: 441.4 kB / 0.7976 GB, free: 89.77 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001146/2.1, allocations: 326 kB / 0.7979 GB, free: 89.45 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.656e-06/2.1, allocations: 4 kB / 0.798 GB, free: 89.45 MB / 458.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003378/2.103, allocations: 0.9064 MB / 0.7988 GB, free: 88.54 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005835/2.104, allocations: 1.749 MB / 0.8005 GB, free: 86.65 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.014e-05/2.104, allocations: 4 kB / 0.8005 GB, free: 86.64 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00502/2.109, allocations: 344.4 kB / 0.8009 GB, free: 86.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001764/2.111, allocations: 155.7 kB / 0.801 GB, free: 86.15 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001843/2.113, allocations: 0.8099 MB / 0.8018 GB, free: 85.32 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001672/2.115, allocations: 51.94 kB / 0.8019 GB, free: 85.27 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001624/2.115, allocations: 39.98 kB / 0.8019 GB, free: 85.23 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/2.115, allocations: 4 kB / 0.8019 GB, free: 85.22 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002953/2.118, allocations: 0.7645 MB / 0.8027 GB, free: 84.46 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.666e-05/2.118, allocations: 4 kB / 0.8027 GB, free: 84.45 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003645/2.122, allocations: 221.2 kB / 0.8029 GB, free: 84.23 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001812/2.123, allocations: 159.7 kB / 0.803 GB, free: 84.08 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001481/2.125, allocations: 0.7084 MB / 0.8037 GB, free: 83.34 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002658/2.128, allocations: 47.91 kB / 0.8038 GB, free: 83.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003625/2.128, allocations: 27.98 kB / 0.8038 GB, free: 83.27 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0006962/2.129, allocations: 151.7 kB / 0.8039 GB, free: 83.12 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005523/2.129, allocations: 75.11 kB / 0.804 GB, free: 83.04 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005185/2.135, allocations: 0.8191 MB / 0.8048 GB, free: 82.21 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.649e-05/2.135, allocations: 8 kB / 0.8048 GB, free: 82.21 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/2.135, allocations: 0 / 0.8048 GB, free: 82.21 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.571e-05/2.135, allocations: 3.984 kB / 0.8048 GB, free: 82.2 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006268/2.141, allocations: 1.645 MB / 0.8064 GB, free: 80.51 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.234e-05/2.141, allocations: 7.938 kB / 0.8064 GB, free: 80.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001524/2.143, allocations: 108 kB / 0.8065 GB, free: 80.39 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003811/2.147, allocations: 336.5 kB / 0.8069 GB, free: 80.06 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002042/2.147, allocations: 12.06 kB / 0.8069 GB, free: 80.05 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001493/2.148, allocations: 0.806 MB / 0.8076 GB, free: 79.22 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/2.148, allocations: 3.938 kB / 0.8077 GB, free: 79.21 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004134/2.152, allocations: 1.239 MB / 0.8089 GB, free: 77.94 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004983/2.153, allocations: 152.3 kB / 0.809 GB, free: 77.77 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002654/2.153, allocations: 16 kB / 0.809 GB, free: 77.75 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00134/2.155, allocations: 39.88 kB / 0.8091 GB, free: 77.71 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002222/2.155, allocations: 56.48 kB / 0.8091 GB, free: 77.66 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001249/2.155, allocations: 23.98 kB / 0.8091 GB, free: 77.64 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001127/2.156, allocations: 439.1 kB / 0.8096 GB, free: 77.21 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.31e-07/2.156, allocations: 0 / 0.8096 GB, free: 77.21 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00375/2.16, allocations: 0.5854 MB / 0.8101 GB, free: 76.62 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.006788/2.167, allocations: 2.428 MB / 0.8125 GB, free: 74.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004803/2.172, allocations: 1.095 MB / 0.8136 GB, free: 73.11 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.129e-05/2.172, allocations: 4 kB / 0.8136 GB, free: 73.11 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0016/2.173, allocations: 366.8 kB / 0.8139 GB, free: 72.75 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004592/2.178, allocations: 341.2 kB / 0.8142 GB, free: 72.42 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006544/2.185, allocations: 1.518 MB / 0.8157 GB, free: 70.85 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007052/2.185, allocations: 0.984 MB / 0.8167 GB, free: 69.84 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002803/2.188, allocations: 317.4 kB / 0.817 GB, free: 69.53 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007823/2.189, allocations: 247.3 kB / 0.8172 GB, free: 69.29 MB / 458.7 MB Notification: Performance of SimCode: time 2.235e-06/2.189, allocations: 0 / 0.8172 GB, free: 69.29 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08268/2.272, allocations: 28.05 MB / 0.8446 GB, free: 41.48 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001948/2.272, allocations: 188.5 kB / 0.8448 GB, free: 41.25 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.029/6.301, allocations: 0 / 0.8448 GB, free: 41.25 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat does not exist to compare? outputFormat=mat