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.821/1.821, allocations: 194.9 MB / 208.4 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.159e-05/3.162e-05, allocations: 4 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09367/0.09372, allocations: 44.5 MB / 299.9 MB, free: 6.551 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9892/1.083, allocations: 317.2 MB / 0.6026 GB, free: 70.49 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003117/1.083, allocations: 86.27 kB / 0.6027 GB, free: 70.45 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7298/1.813, allocations: 135.7 MB / 0.7353 GB, free: 109.1 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.693e-06/1.813, allocations: 0 / 0.7353 GB, free: 109.1 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.719e-05/1.813, allocations: 19.94 kB / 0.7353 GB, free: 109.1 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.003032/1.816, allocations: 1.028 MB / 0.7363 GB, free: 108 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.411e-05/1.816, allocations: 8.031 kB / 0.7363 GB, free: 108 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002004/1.817, allocations: 90.34 kB / 0.7364 GB, free: 107.9 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004624/1.817, allocations: 91.05 kB / 0.7365 GB, free: 107.8 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001856/1.819, allocations: 0.5757 MB / 0.737 GB, free: 107.2 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.86e-05/1.819, allocations: 40.36 kB / 0.7371 GB, free: 107.2 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001535/1.819, allocations: 47.2 kB / 0.7371 GB, free: 107.1 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001706/1.821, allocations: 0.7282 MB / 0.7378 GB, free: 106.4 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.14e-05/1.821, allocations: 7.984 kB / 0.7378 GB, free: 106.4 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000102/1.821, allocations: 23.44 kB / 0.7378 GB, free: 106.4 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.872e-05/1.821, allocations: 36.98 kB / 0.7379 GB, free: 106.3 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001615/1.823, allocations: 0.6754 MB / 0.7385 GB, free: 105.7 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006403/1.829, allocations: 2.862 MB / 0.7413 GB, free: 102.6 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/1.83, allocations: 464.6 kB / 0.7418 GB, free: 102.2 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005292/1.831, allocations: 250.1 kB / 0.742 GB, free: 101.9 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003674/1.831, allocations: 344 kB / 0.7423 GB, free: 101.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.149e-05/1.831, allocations: 35 kB / 0.7424 GB, free: 101.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=48): time 2.866e-06/1.831, allocations: 4 kB / 0.7424 GB, free: 101.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=58): time 0.006631/1.838, allocations: 1.826 MB / 0.7442 GB, free: 99.59 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5e-05/1.838, allocations: 85.66 kB / 0.7442 GB, free: 99.49 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009766/1.839, allocations: 0.5423 MB / 0.7448 GB, free: 98.94 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001722/1.839, allocations: 37.7 kB / 0.7448 GB, free: 98.9 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002334/1.84, allocations: 350.8 kB / 0.7451 GB, free: 98.56 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002014/1.84, allocations: 206.3 kB / 0.7453 GB, free: 98.36 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.13e-05/1.84, allocations: 16 kB / 0.7454 GB, free: 98.34 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.068e-05/1.84, allocations: 338.8 kB / 0.7457 GB, free: 98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006817/1.841, allocations: 277.5 kB / 0.7459 GB, free: 97.73 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007449/1.841, allocations: 447 kB / 0.7464 GB, free: 97.23 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007363/1.842, allocations: 326 kB / 0.7467 GB, free: 96.92 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/1.842, allocations: 4 kB / 0.7467 GB, free: 96.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002111/1.844, allocations: 0.8751 MB / 0.7475 GB, free: 96.03 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003635/1.845, allocations: 1.746 MB / 0.7492 GB, free: 94.15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/1.845, allocations: 8 kB / 0.7493 GB, free: 94.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00335/1.848, allocations: 352.4 kB / 0.7496 GB, free: 93.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001216/1.849, allocations: 151.8 kB / 0.7497 GB, free: 93.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001229/1.851, allocations: 0.8136 MB / 0.7505 GB, free: 92.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001202/1.852, allocations: 55.97 kB / 0.7506 GB, free: 92.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001147/1.852, allocations: 24 kB / 0.7506 GB, free: 92.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/1.852, allocations: 4 kB / 0.7506 GB, free: 92.72 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001911/1.854, allocations: 0.784 MB / 0.7514 GB, free: 91.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.799e-06/1.854, allocations: 4 kB / 0.7514 GB, free: 91.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002433/1.856, allocations: 221.2 kB / 0.7516 GB, free: 91.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001261/1.858, allocations: 151.8 kB / 0.7517 GB, free: 91.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008134/1.859, allocations: 0.6851 MB / 0.7524 GB, free: 90.85 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008485/1.859, allocations: 55.88 kB / 0.7525 GB, free: 90.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.327e-05/1.859, allocations: 31.94 kB / 0.7525 GB, free: 90.76 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.0002835/1.86, allocations: 148.8 kB / 0.7526 GB, free: 90.61 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000241/1.86, allocations: 71.16 kB / 0.7527 GB, free: 90.54 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002201/1.862, allocations: 0.8211 MB / 0.7535 GB, free: 89.72 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.093e-05/1.862, allocations: 12 kB / 0.7535 GB, free: 89.71 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/1.862, allocations: 3.938 kB / 0.7535 GB, free: 89.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/1.862, allocations: 3.984 kB / 0.7535 GB, free: 89.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003895/1.866, allocations: 1.642 MB / 0.7551 GB, free: 88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/1.866, allocations: 4.094 kB / 0.7551 GB, free: 88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/1.867, allocations: 111.8 kB / 0.7552 GB, free: 87.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0024/1.87, allocations: 340.5 kB / 0.7556 GB, free: 87.55 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001381/1.87, allocations: 15.98 kB / 0.7556 GB, free: 87.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009837/1.871, allocations: 0.7981 MB / 0.7563 GB, free: 86.71 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/1.871, allocations: 8.094 kB / 0.7564 GB, free: 86.7 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002663/1.874, allocations: 1.231 MB / 0.7576 GB, free: 85.44 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003354/1.874, allocations: 152.3 kB / 0.7577 GB, free: 85.27 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001824/1.874, allocations: 16 kB / 0.7577 GB, free: 85.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000919/1.875, allocations: 43.91 kB / 0.7578 GB, free: 85.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001848/1.875, allocations: 60.38 kB / 0.7578 GB, free: 85.15 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.676e-05/1.875, allocations: 27.92 kB / 0.7578 GB, free: 85.12 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007317/1.876, allocations: 439.1 kB / 0.7583 GB, free: 84.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.81e-07/1.876, allocations: 0 / 0.7583 GB, free: 84.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002318/1.878, allocations: 0.5893 MB / 0.7588 GB, free: 84.11 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.004439/1.883, allocations: 2.42 MB / 0.7612 GB, free: 81.69 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003167/1.886, allocations: 1.105 MB / 0.7623 GB, free: 80.59 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/1.886, allocations: 0 / 0.7623 GB, free: 80.59 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000962/1.887, allocations: 367 kB / 0.7626 GB, free: 80.23 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002779/1.89, allocations: 335.2 kB / 0.763 GB, free: 79.9 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004439/1.894, allocations: 1.539 MB / 0.7645 GB, free: 78.31 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004735/1.895, allocations: 0.9868 MB / 0.7654 GB, free: 77.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007034/1.896, allocations: 259.3 kB / 0.7657 GB, free: 77.05 MB / 410.7 MB Notification: Performance of SimCode: time 1.383e-06/1.896, allocations: 0 / 0.7657 GB, free: 77.05 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.14/5.035, allocations: 21.01 MB / 0.7862 GB, free: 56.05 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