Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.922/1.922, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.379e-05/3.397e-05, allocations: 4 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09736/0.09742, allocations: 44.5 MB / 299.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9714/1.069, allocations: 316.4 MB / 0.6019 GB, free: 71.19 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/1.069, allocations: 77.77 kB / 0.602 GB, free: 71.15 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7203/1.789, allocations: 130.2 MB / 0.7291 GB, free: 110.8 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.044e-06/1.79, allocations: 0 / 0.7291 GB, free: 110.8 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.197e-05/1.79, allocations: 22.94 kB / 0.7292 GB, free: 110.8 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003664/1.793, allocations: 1.082 MB / 0.7302 GB, free: 110.1 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/1.793, allocations: 7.25 kB / 0.7302 GB, free: 110.1 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002577/1.794, allocations: 105.1 kB / 0.7303 GB, free: 110 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005105/1.794, allocations: 95.94 kB / 0.7304 GB, free: 110 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001995/1.796, allocations: 0.6481 MB / 0.7311 GB, free: 109.6 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001219/1.796, allocations: 105.5 kB / 0.7312 GB, free: 109.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000159/1.796, allocations: 54.27 kB / 0.7312 GB, free: 109.5 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002137/1.799, allocations: 0.887 MB / 0.7321 GB, free: 109.1 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.013e-05/1.799, allocations: 3.625 kB / 0.7321 GB, free: 109.1 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001248/1.799, allocations: 23.88 kB / 0.7321 GB, free: 109.1 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001174/1.799, allocations: 47.91 kB / 0.7321 GB, free: 109.1 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001988/1.801, allocations: 0.8126 MB / 0.7329 GB, free: 108.8 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008453/1.809, allocations: 3.317 MB / 0.7362 GB, free: 106.6 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001474/1.811, allocations: 0.6459 MB / 0.7368 GB, free: 106.2 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007682/1.812, allocations: 364 kB / 0.7372 GB, free: 106.1 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004308/1.816, allocations: 2.068 MB / 0.7392 GB, free: 103.9 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.923e-05/1.816, allocations: 35.12 kB / 0.7392 GB, free: 103.8 MB / 410.7 MB Notification: Performance of pre-optimization done (n=56): time 4.007e-06/1.816, allocations: 4 kB / 0.7392 GB, free: 103.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=66): time 0.007049/1.823, allocations: 2.222 MB / 0.7414 GB, free: 101.6 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.734e-05/1.823, allocations: 89.67 kB / 0.7415 GB, free: 101.4 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00112/1.825, allocations: 0.5894 MB / 0.742 GB, free: 100.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001365/1.825, allocations: 41.64 kB / 0.7421 GB, free: 100.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002404/1.825, allocations: 366.7 kB / 0.7424 GB, free: 100.4 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002466/1.825, allocations: 224.3 kB / 0.7426 GB, free: 100.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.46e-05/1.825, allocations: 16 kB / 0.7427 GB, free: 100.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.745e-05/1.825, allocations: 338.8 kB / 0.743 GB, free: 99.88 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008677/1.826, allocations: 345.4 kB / 0.7433 GB, free: 99.54 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009569/1.827, allocations: 0.4968 MB / 0.7438 GB, free: 98.98 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009263/1.828, allocations: 405.9 kB / 0.7442 GB, free: 98.59 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/1.828, allocations: 0 / 0.7442 GB, free: 98.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002819/1.831, allocations: 1.083 MB / 0.7452 GB, free: 97.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003473/1.831, allocations: 1.568 MB / 0.7468 GB, free: 95.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/1.831, allocations: 8 kB / 0.7468 GB, free: 95.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001929/1.833, allocations: 431.8 kB / 0.7472 GB, free: 95.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001317/1.835, allocations: 163.7 kB / 0.7473 GB, free: 95.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001685/1.836, allocations: 1.024 MB / 0.7483 GB, free: 94.17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001239/1.838, allocations: 51.86 kB / 0.7484 GB, free: 94.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001241/1.838, allocations: 31.98 kB / 0.7484 GB, free: 94.09 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/1.838, allocations: 4 kB / 0.7484 GB, free: 94.08 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002357/1.84, allocations: 0.9208 MB / 0.7493 GB, free: 93.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/1.84, allocations: 7.938 kB / 0.7493 GB, free: 93.15 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008782/1.841, allocations: 233.1 kB / 0.7496 GB, free: 92.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00124/1.842, allocations: 167.8 kB / 0.7497 GB, free: 92.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009973/1.843, allocations: 0.8059 MB / 0.7505 GB, free: 91.92 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008488/1.844, allocations: 44.02 kB / 0.7506 GB, free: 91.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.811e-05/1.844, allocations: 31.98 kB / 0.7506 GB, free: 91.85 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[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 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.000335/1.845, allocations: 148.8 kB / 0.7507 GB, free: 91.7 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002599/1.845, allocations: 75.16 kB / 0.7508 GB, free: 91.62 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002859/1.848, allocations: 1.086 MB / 0.7519 GB, free: 90.52 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.089e-05/1.848, allocations: 8 kB / 0.7519 GB, free: 90.51 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/1.848, allocations: 7.828 kB / 0.7519 GB, free: 90.51 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.225e-05/1.848, allocations: 3.984 kB / 0.7519 GB, free: 90.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004561/1.853, allocations: 1.985 MB / 0.7538 GB, free: 88.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/1.853, allocations: 0 / 0.7538 GB, free: 88.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001064/1.854, allocations: 123.8 kB / 0.7539 GB, free: 88.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001856/1.856, allocations: 436.5 kB / 0.7543 GB, free: 87.93 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001202/1.856, allocations: 19.98 kB / 0.7544 GB, free: 87.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001582/1.857, allocations: 1.032 MB / 0.7554 GB, free: 86.85 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/1.857, allocations: 0 / 0.7554 GB, free: 86.85 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003486/1.861, allocations: 1.58 MB / 0.7569 GB, free: 85.25 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006807/1.862, allocations: 248 kB / 0.7572 GB, free: 84.99 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001853/1.862, allocations: 16 kB / 0.7572 GB, free: 84.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001107/1.863, allocations: 55.84 kB / 0.7572 GB, free: 84.92 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001948/1.863, allocations: 52.7 kB / 0.7573 GB, free: 84.87 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001037/1.863, allocations: 31.97 kB / 0.7573 GB, free: 84.84 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008056/1.864, allocations: 467.1 kB / 0.7577 GB, free: 84.39 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.81e-07/1.864, allocations: 0 / 0.7577 GB, free: 84.39 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002606/1.867, allocations: 0.6323 MB / 0.7584 GB, free: 83.76 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.005489/1.872, allocations: 2.622 MB / 0.7609 GB, free: 81.13 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00406/1.876, allocations: 1.328 MB / 0.7622 GB, free: 79.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.216e-06/1.876, allocations: 0.6875 kB / 0.7622 GB, free: 79.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001488/1.878, allocations: 464.1 kB / 0.7627 GB, free: 79.35 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002961/1.881, allocations: 353.3 kB / 0.763 GB, free: 79.01 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005942/1.887, allocations: 1.736 MB / 0.7647 GB, free: 77.23 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004981/1.887, allocations: 0.9991 MB / 0.7657 GB, free: 76.21 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007111/1.888, allocations: 299.3 kB / 0.766 GB, free: 75.91 MB / 410.7 MB Notification: Performance of SimCode: time 1.243e-06/1.888, allocations: 0 / 0.766 GB, free: 75.91 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.099/4.988, allocations: 22.58 MB / 0.788 GB, free: 53.36 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat does not exist to compare? outputFormat=mat