Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.929/1.929, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.952e-05/3.952e-05, allocations: 7.984 kB / 255.5 MB, free: 3.078 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1391/0.1391, allocations: 44.5 MB / 300 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.07/1.21, allocations: 316.6 MB / 0.6021 GB, free: 70.18 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000284/1.21, allocations: 76.23 kB / 0.6022 GB, free: 70.14 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.535/2.745, allocations: 266.8 MB / 0.8627 GB, free: 62.04 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.675e-06/2.745, allocations: 0 / 0.8627 GB, free: 62.04 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002195/2.745, allocations: 36.08 kB / 0.8628 GB, free: 62.04 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.01024/2.755, allocations: 1.811 MB / 0.8645 GB, free: 61.24 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.052e-05/2.755, allocations: 11.31 kB / 0.8646 GB, free: 61.24 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007766/2.756, allocations: 167.2 kB / 0.8647 GB, free: 61.2 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001353/2.757, allocations: 171.4 kB / 0.8649 GB, free: 61.12 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005423/2.763, allocations: 1.111 MB / 0.866 GB, free: 60.8 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002672/2.763, allocations: 178.5 kB / 0.8661 GB, free: 60.7 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004628/2.764, allocations: 98.48 kB / 0.8662 GB, free: 60.7 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004957/2.769, allocations: 1.731 MB / 0.8679 GB, free: 60.53 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.385e-05/2.769, allocations: 0 / 0.8679 GB, free: 60.53 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002433/2.769, allocations: 51.77 kB / 0.868 GB, free: 60.53 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002391/2.769, allocations: 109.5 kB / 0.8681 GB, free: 60.52 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004338/2.773, allocations: 1.728 MB / 0.8698 GB, free: 60.52 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01837/2.792, allocations: 6.404 MB / 0.876 GB, free: 58.52 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002819/2.795, allocations: 1.144 MB / 0.8771 GB, free: 58.49 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001804/2.797, allocations: 0.7022 MB / 0.8778 GB, free: 58.48 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008951/2.806, allocations: 4.273 MB / 0.882 GB, free: 56.12 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.637e-05/2.806, allocations: 52.66 kB / 0.882 GB, free: 56.08 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00169/2.807, allocations: 215.8 kB / 0.8822 GB, free: 56.02 MB / 410.7 MB Notification: Performance of pre-optimization done (n=97): time 4.117e-06/2.807, allocations: 0 / 0.8822 GB, free: 56.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=112): time 0.01376/2.821, allocations: 3.776 MB / 0.8859 GB, free: 55.46 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.7e-05/2.821, allocations: 144.9 kB / 0.8861 GB, free: 55.31 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002201/2.824, allocations: 1.091 MB / 0.8871 GB, free: 55.15 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003786/2.824, allocations: 48.42 kB / 0.8872 GB, free: 55.12 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004315/2.824, allocations: 0.5753 MB / 0.8877 GB, free: 54.81 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000464/2.825, allocations: 390.7 kB / 0.8881 GB, free: 54.57 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001712/2.825, allocations: 27.28 kB / 0.8881 GB, free: 54.57 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001171/2.825, allocations: 367.9 kB / 0.8885 GB, free: 54.25 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001602/2.827, allocations: 0.6194 MB / 0.8891 GB, free: 54.25 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001823/2.829, allocations: 0.9434 MB / 0.89 GB, free: 53.9 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00203/2.831, allocations: 0.7458 MB / 0.8908 GB, free: 53.88 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.277e-06/2.831, allocations: 0 / 0.8908 GB, free: 53.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.00526/2.836, allocations: 1.97 MB / 0.8927 GB, free: 53.78 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007912/2.837, allocations: 3.493 MB / 0.8961 GB, free: 50.15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.582e-05/2.837, allocations: 10.59 kB / 0.8961 GB, free: 50.15 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01286/2.85, allocations: 1.209 MB / 0.8973 GB, free: 50.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002466/2.852, allocations: 298.1 kB / 0.8976 GB, free: 50.13 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003608/2.856, allocations: 1.523 MB / 0.899 GB, free: 49.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002654/2.859, allocations: 89.88 kB / 0.8991 GB, free: 49.58 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000318/2.859, allocations: 72.48 kB / 0.8992 GB, free: 49.58 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/2.859, allocations: 6.062 kB / 0.8992 GB, free: 49.58 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004568/2.864, allocations: 1.738 MB / 0.9009 GB, free: 49.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.541e-05/2.864, allocations: 7.875 kB / 0.9009 GB, free: 49.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01117/2.875, allocations: 0.9511 MB / 0.9018 GB, free: 49.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002548/2.877, allocations: 302.1 kB / 0.9021 GB, free: 49.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002508/2.88, allocations: 1.199 MB / 0.9033 GB, free: 49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001972/2.882, allocations: 91.64 kB / 0.9034 GB, free: 48.99 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002539/2.882, allocations: 62.94 kB / 0.9034 GB, free: 48.99 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * 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 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0005729/2.883, allocations: 193 kB / 0.9036 GB, free: 48.88 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005041/2.883, allocations: 145.4 kB / 0.9038 GB, free: 48.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006565/2.89, allocations: 1.99 MB / 0.9057 GB, free: 48.69 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.15e-05/2.89, allocations: 13.78 kB / 0.9057 GB, free: 48.69 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/2.89, allocations: 6.312 kB / 0.9057 GB, free: 48.69 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.523e-05/2.89, allocations: 11.06 kB / 0.9057 GB, free: 48.69 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008867/2.899, allocations: 3.412 MB / 0.9091 GB, free: 48.31 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/2.899, allocations: 0 / 0.9091 GB, free: 48.31 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001881/2.901, allocations: 192.9 kB / 0.9093 GB, free: 48.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006441/2.907, allocations: 0.9505 MB / 0.9102 GB, free: 48.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003495/2.908, allocations: 25.92 kB / 0.9102 GB, free: 48.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003169/2.911, allocations: 1.558 MB / 0.9117 GB, free: 47.75 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/2.911, allocations: 0 / 0.9117 GB, free: 47.75 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006591/2.918, allocations: 2.717 MB / 0.9144 GB, free: 47.48 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001362/2.919, allocations: 394.1 kB / 0.9148 GB, free: 47.31 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005033/2.92, allocations: 22.72 kB / 0.9148 GB, free: 47.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002276/2.922, allocations: 90.23 kB / 0.9149 GB, free: 47.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003907/2.922, allocations: 99.47 kB / 0.915 GB, free: 47.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002032/2.923, allocations: 53.06 kB / 0.915 GB, free: 47.3 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001675/2.924, allocations: 0.8237 MB / 0.9158 GB, free: 47.18 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.81e-07/2.924, allocations: 0 / 0.9158 GB, free: 47.18 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005384/2.93, allocations: 1.244 MB / 0.917 GB, free: 46.98 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.01029/2.94, allocations: 4.247 MB / 0.9212 GB, free: 45.95 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008981/2.949, allocations: 2.46 MB / 0.9236 GB, free: 45.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.174e-05/2.949, allocations: 2.781 kB / 0.9236 GB, free: 45.91 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002987/2.952, allocations: 0.8084 MB / 0.9244 GB, free: 45.89 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005112/2.957, allocations: 0.601 MB / 0.925 GB, free: 45.88 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01112/2.968, allocations: 3.137 MB / 0.928 GB, free: 45.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009021/2.969, allocations: 1.311 MB / 0.9293 GB, free: 44.38 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001433/2.971, allocations: 0.5577 MB / 0.9299 GB, free: 44.38 MB / 410.7 MB Notification: Performance of SimCode: time 1.052e-06/2.971, allocations: 0 / 0.9299 GB, free: 44.38 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.408/6.379, allocations: 41.77 MB / 0.9706 GB, free: 21.07 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat does not exist to compare? outputFormat=mat