Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.682/1.682, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.886e-05/3.902e-05, allocations: 4 kB / 225.1 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.26, allocations: 38.77 MB / 263.8 MB, free: 9.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8927/1.153, allocations: 311.1 MB / 0.5614 GB, free: 72.74 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002318/1.153, allocations: 76.44 kB / 0.5615 GB, free: 72.71 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6856/1.839, allocations: 130.2 MB / 0.6887 GB, free: 94.32 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.543e-06/1.839, allocations: 0 / 0.6887 GB, free: 94.32 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.284e-05/1.839, allocations: 15.56 kB / 0.6887 GB, free: 94.32 MB / 362.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.003515/1.842, allocations: 1.085 MB / 0.6898 GB, free: 93.48 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/1.842, allocations: 6.156 kB / 0.6898 GB, free: 93.48 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002245/1.843, allocations: 108.7 kB / 0.6899 GB, free: 93.39 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005057/1.843, allocations: 93.44 kB / 0.69 GB, free: 93.34 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001993/1.845, allocations: 0.6481 MB / 0.6906 GB, free: 92.85 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001328/1.845, allocations: 111.4 kB / 0.6907 GB, free: 92.77 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001534/1.845, allocations: 53.14 kB / 0.6908 GB, free: 92.75 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00218/1.848, allocations: 0.8848 MB / 0.6916 GB, free: 92.2 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.077e-05/1.848, allocations: 0 / 0.6916 GB, free: 92.2 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001247/1.848, allocations: 23.91 kB / 0.6917 GB, free: 92.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001552/1.848, allocations: 49.28 kB / 0.6917 GB, free: 92.13 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002045/1.85, allocations: 0.8133 MB / 0.6925 GB, free: 91.32 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008696/1.859, allocations: 3.326 MB / 0.6957 GB, free: 87.88 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001506/1.86, allocations: 0.6338 MB / 0.6964 GB, free: 87.24 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007788/1.861, allocations: 362.3 kB / 0.6967 GB, free: 86.88 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004438/1.866, allocations: 2.084 MB / 0.6987 GB, free: 84.62 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.029e-05/1.866, allocations: 39.12 kB / 0.6988 GB, free: 84.57 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 3.817e-06/1.866, allocations: 0 / 0.6988 GB, free: 84.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=66): time 0.00752/1.873, allocations: 2.213 MB / 0.7009 GB, free: 82.31 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.903e-05/1.873, allocations: 85.67 kB / 0.701 GB, free: 82.21 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001142/1.875, allocations: 0.5932 MB / 0.7016 GB, free: 81.61 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002097/1.875, allocations: 49.58 kB / 0.7017 GB, free: 81.55 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002307/1.875, allocations: 353.5 kB / 0.702 GB, free: 81.21 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002517/1.875, allocations: 230.6 kB / 0.7022 GB, free: 80.98 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.3e-05/1.875, allocations: 16 kB / 0.7022 GB, free: 80.97 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.404e-05/1.875, allocations: 338.8 kB / 0.7025 GB, free: 80.63 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000875/1.876, allocations: 349.4 kB / 0.7029 GB, free: 80.29 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009136/1.877, allocations: 0.489 MB / 0.7034 GB, free: 79.74 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009231/1.878, allocations: 405.9 kB / 0.7037 GB, free: 79.35 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/1.878, allocations: 0 / 0.7037 GB, free: 79.35 MB / 362.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002792/1.881, allocations: 1.086 MB / 0.7048 GB, free: 78.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003574/1.881, allocations: 1.575 MB / 0.7063 GB, free: 76.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.477e-05/1.881, allocations: 4 kB / 0.7063 GB, free: 76.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001972/1.883, allocations: 435.7 kB / 0.7068 GB, free: 76.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001373/1.885, allocations: 151.8 kB / 0.7069 GB, free: 75.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0018/1.887, allocations: 1.025 MB / 0.7079 GB, free: 74.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001376/1.888, allocations: 47.92 kB / 0.708 GB, free: 74.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001276/1.888, allocations: 31.98 kB / 0.708 GB, free: 74.85 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/1.888, allocations: 4 kB / 0.708 GB, free: 74.85 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002375/1.891, allocations: 0.9207 MB / 0.7089 GB, free: 73.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/1.891, allocations: 4 kB / 0.7089 GB, free: 73.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008904/1.892, allocations: 246.6 kB / 0.7091 GB, free: 73.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001333/1.893, allocations: 167.7 kB / 0.7093 GB, free: 73.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009705/1.894, allocations: 0.7982 MB / 0.7101 GB, free: 72.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000875/1.895, allocations: 47.95 kB / 0.7101 GB, free: 72.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.773e-05/1.895, allocations: 28 kB / 0.7101 GB, free: 72.61 MB / 362.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.0003346/1.895, allocations: 156.7 kB / 0.7103 GB, free: 72.45 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002671/1.896, allocations: 75.16 kB / 0.7104 GB, free: 72.38 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002884/1.899, allocations: 1.082 MB / 0.7114 GB, free: 71.29 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-05/1.899, allocations: 8 kB / 0.7114 GB, free: 71.28 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/1.899, allocations: 0 / 0.7114 GB, free: 71.28 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/1.899, allocations: 3.984 kB / 0.7114 GB, free: 71.27 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00463/1.903, allocations: 1.985 MB / 0.7134 GB, free: 69.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/1.903, allocations: 7.938 kB / 0.7134 GB, free: 69.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0011/1.904, allocations: 115.9 kB / 0.7135 GB, free: 69.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001916/1.906, allocations: 440.9 kB / 0.7139 GB, free: 68.7 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001621/1.907, allocations: 23.98 kB / 0.7139 GB, free: 68.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001604/1.908, allocations: 1.021 MB / 0.7149 GB, free: 67.63 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/1.908, allocations: 7.984 kB / 0.7149 GB, free: 67.62 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003517/1.912, allocations: 1.587 MB / 0.7165 GB, free: 66.02 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007325/1.913, allocations: 244.1 kB / 0.7167 GB, free: 65.76 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001896/1.913, allocations: 19.94 kB / 0.7167 GB, free: 65.74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001099/1.914, allocations: 51.89 kB / 0.7168 GB, free: 65.69 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001829/1.914, allocations: 52.7 kB / 0.7168 GB, free: 65.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001066/1.914, allocations: 31.97 kB / 0.7169 GB, free: 65.61 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008198/1.915, allocations: 467.1 kB / 0.7173 GB, free: 65.16 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.61e-07/1.915, allocations: 0 / 0.7173 GB, free: 65.16 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002571/1.918, allocations: 0.64 MB / 0.7179 GB, free: 64.52 MB / 362.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.005415/1.923, allocations: 2.619 MB / 0.7205 GB, free: 61.91 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004024/1.927, allocations: 1.33 MB / 0.7218 GB, free: 60.59 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/1.927, allocations: 192 / 0.7218 GB, free: 60.59 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001499/1.929, allocations: 465.3 kB / 0.7222 GB, free: 60.13 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002986/1.932, allocations: 349.9 kB / 0.7226 GB, free: 59.79 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006173/1.938, allocations: 1.734 MB / 0.7243 GB, free: 58.01 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005023/1.939, allocations: 1.011 MB / 0.7253 GB, free: 56.97 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007422/1.939, allocations: 295.2 kB / 0.7255 GB, free: 56.68 MB / 362.7 MB Notification: Performance of SimCode: time 1.252e-06/1.939, allocations: 0 / 0.7255 GB, free: 56.68 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.251/5.19, allocations: 22.57 MB / 0.7476 GB, free: 34.13 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat does not exist to compare? outputFormat=mat