Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.936/1.936, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.707e-05/3.724e-05, allocations: 4 kB / 255.5 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1012, allocations: 44.5 MB / 300 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9739/1.075, allocations: 317.2 MB / 0.6027 GB, free: 69.77 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003139/1.076, allocations: 84.02 kB / 0.6027 GB, free: 69.73 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7165/1.792, allocations: 135.7 MB / 0.7353 GB, free: 108.6 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.914e-06/1.792, allocations: 7.938 kB / 0.7353 GB, free: 108.6 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.981e-05/1.792, allocations: 16 kB / 0.7353 GB, free: 108.6 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.00276/1.795, allocations: 1.031 MB / 0.7363 GB, free: 107.5 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/1.795, allocations: 8.031 kB / 0.7363 GB, free: 107.5 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001434/1.795, allocations: 93.33 kB / 0.7364 GB, free: 107.4 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003886/1.796, allocations: 83.11 kB / 0.7365 GB, free: 107.3 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001496/1.797, allocations: 0.5776 MB / 0.737 GB, free: 106.7 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.946e-05/1.797, allocations: 43 kB / 0.7371 GB, free: 106.7 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001448/1.797, allocations: 47.91 kB / 0.7371 GB, free: 106.6 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001569/1.799, allocations: 0.7202 MB / 0.7378 GB, free: 105.9 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.756e-05/1.799, allocations: 7.938 kB / 0.7378 GB, free: 105.9 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.548e-05/1.799, allocations: 18.89 kB / 0.7379 GB, free: 105.8 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.4e-05/1.799, allocations: 44.97 kB / 0.7379 GB, free: 105.8 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001507/1.801, allocations: 0.6656 MB / 0.7386 GB, free: 105.1 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005979/1.807, allocations: 2.856 MB / 0.7413 GB, free: 102.1 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009762/1.808, allocations: 462.4 kB / 0.7418 GB, free: 101.7 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005197/1.808, allocations: 246.1 kB / 0.742 GB, free: 101.4 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000301/1.809, allocations: 343.5 kB / 0.7423 GB, free: 101 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.777e-05/1.809, allocations: 43 kB / 0.7424 GB, free: 101 MB / 410.7 MB Notification: Performance of pre-optimization done (n=48): time 2.635e-06/1.809, allocations: 0 / 0.7424 GB, free: 101 MB / 410.7 MB Notification: Performance of matching and sorting (n=58): time 0.006264/1.815, allocations: 1.827 MB / 0.7442 GB, free: 99.07 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.453e-05/1.815, allocations: 81.67 kB / 0.7443 GB, free: 98.97 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009338/1.816, allocations: 0.5423 MB / 0.7448 GB, free: 98.43 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.732e-05/1.816, allocations: 41.7 kB / 0.7448 GB, free: 98.38 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002306/1.816, allocations: 350.5 kB / 0.7452 GB, free: 98.04 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001841/1.816, allocations: 200.4 kB / 0.7453 GB, free: 97.84 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.932e-05/1.817, allocations: 16 kB / 0.7454 GB, free: 97.83 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.433e-05/1.817, allocations: 342.8 kB / 0.7457 GB, free: 97.48 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006793/1.817, allocations: 277.5 kB / 0.746 GB, free: 97.21 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007364/1.818, allocations: 437.5 kB / 0.7464 GB, free: 96.72 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007232/1.819, allocations: 337.9 kB / 0.7467 GB, free: 96.39 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/1.819, allocations: 0 / 0.7467 GB, free: 96.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002009/1.821, allocations: 0.8597 MB / 0.7475 GB, free: 95.52 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003512/1.821, allocations: 1.749 MB / 0.7492 GB, free: 93.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.583e-05/1.821, allocations: 6.812 kB / 0.7492 GB, free: 93.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00323/1.824, allocations: 356.4 kB / 0.7496 GB, free: 93.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001194/1.826, allocations: 143.8 kB / 0.7497 GB, free: 93.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00118/1.827, allocations: 0.8215 MB / 0.7505 GB, free: 92.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001073/1.828, allocations: 47.91 kB / 0.7506 GB, free: 92.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.003e-05/1.828, allocations: 36.05 kB / 0.7506 GB, free: 92.21 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/1.828, allocations: 4 kB / 0.7506 GB, free: 92.21 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001824/1.83, allocations: 0.7612 MB / 0.7514 GB, free: 91.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/1.83, allocations: 4 kB / 0.7514 GB, free: 91.44 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002347/1.832, allocations: 224.7 kB / 0.7516 GB, free: 91.22 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001152/1.834, allocations: 151.8 kB / 0.7517 GB, free: 91.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007583/1.834, allocations: 0.689 MB / 0.7524 GB, free: 90.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007357/1.835, allocations: 51.81 kB / 0.7524 GB, free: 90.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.26e-05/1.835, allocations: 32.02 kB / 0.7525 GB, free: 90.27 MB / 410.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.0002733/1.835, allocations: 152.8 kB / 0.7526 GB, free: 90.12 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002192/1.836, allocations: 71.16 kB / 0.7527 GB, free: 90.05 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002121/1.838, allocations: 0.8176 MB / 0.7535 GB, free: 89.23 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.809e-06/1.838, allocations: 8.094 kB / 0.7535 GB, free: 89.22 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/1.838, allocations: 3.938 kB / 0.7535 GB, free: 89.22 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/1.838, allocations: 3.984 kB / 0.7535 GB, free: 89.21 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003616/1.841, allocations: 1.643 MB / 0.7551 GB, free: 87.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/1.842, allocations: 0 / 0.7551 GB, free: 87.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009611/1.843, allocations: 115.9 kB / 0.7552 GB, free: 87.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00239/1.845, allocations: 336.4 kB / 0.7555 GB, free: 87.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.218e-05/1.845, allocations: 19.98 kB / 0.7555 GB, free: 87.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009663/1.846, allocations: 0.7942 MB / 0.7563 GB, free: 86.23 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/1.846, allocations: 0 / 0.7563 GB, free: 86.23 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002486/1.849, allocations: 1.246 MB / 0.7575 GB, free: 84.95 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002994/1.849, allocations: 152.3 kB / 0.7577 GB, free: 84.78 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001633/1.849, allocations: 16.06 kB / 0.7577 GB, free: 84.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008879/1.85, allocations: 43.91 kB / 0.7577 GB, free: 84.72 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001585/1.85, allocations: 56.44 kB / 0.7578 GB, free: 84.67 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.943e-05/1.85, allocations: 27.92 kB / 0.7578 GB, free: 84.64 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007082/1.851, allocations: 431.2 kB / 0.7582 GB, free: 84.23 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.71e-07/1.851, allocations: 0 / 0.7582 GB, free: 84.23 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002202/1.853, allocations: 0.5932 MB / 0.7588 GB, free: 83.63 MB / 410.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.004326/1.857, allocations: 2.435 MB / 0.7612 GB, free: 81.19 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002966/1.86, allocations: 1.081 MB / 0.7622 GB, free: 80.11 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.66e-06/1.861, allocations: 4.062 kB / 0.7623 GB, free: 80.11 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009184/1.861, allocations: 365.9 kB / 0.7626 GB, free: 79.75 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002623/1.864, allocations: 328 kB / 0.7629 GB, free: 79.44 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004029/1.868, allocations: 1.537 MB / 0.7644 GB, free: 77.86 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000472/1.869, allocations: 0.9829 MB / 0.7654 GB, free: 76.84 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005608/1.869, allocations: 255.3 kB / 0.7656 GB, free: 76.6 MB / 410.7 MB Notification: Performance of SimCode: time 1.162e-06/1.869, allocations: 4 kB / 0.7656 GB, free: 76.59 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.11/4.979, allocations: 21 MB / 0.7861 GB, free: 55.61 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat does not exist to compare? outputFormat=mat