Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.945/1.945, allocations: 194.9 MB / 208 MB, free: 3.18 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.048e-05/4.059e-05, allocations: 4 kB / 255.5 MB, free: 2.629 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1039, allocations: 44.51 MB / 300 MB, free: 6.051 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.087/1.19, allocations: 316.6 MB / 0.6021 GB, free: 69.84 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003005/1.191, allocations: 78.95 kB / 0.6022 GB, free: 69.8 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.612/2.803, allocations: 266.8 MB / 0.8628 GB, free: 61.92 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.274e-06/2.803, allocations: 0 / 0.8628 GB, free: 61.92 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001718/2.803, allocations: 34.95 kB / 0.8628 GB, free: 61.92 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.008378/2.811, allocations: 1.814 MB / 0.8646 GB, free: 61.12 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.538e-05/2.811, allocations: 9.906 kB / 0.8646 GB, free: 61.12 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006995/2.812, allocations: 166.2 kB / 0.8647 GB, free: 61.08 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001063/2.813, allocations: 176 kB / 0.8649 GB, free: 61 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004455/2.818, allocations: 1.112 MB / 0.866 GB, free: 60.67 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000269/2.818, allocations: 174.4 kB / 0.8662 GB, free: 60.57 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006476/2.819, allocations: 102 kB / 0.8663 GB, free: 60.57 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00478/2.823, allocations: 1.731 MB / 0.868 GB, free: 60.4 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.814e-05/2.824, allocations: 6.938 kB / 0.868 GB, free: 60.4 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002556/2.824, allocations: 47.3 kB / 0.868 GB, free: 60.4 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002516/2.824, allocations: 112.1 kB / 0.8681 GB, free: 60.39 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00478/2.829, allocations: 1.724 MB / 0.8698 GB, free: 60.39 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01979/2.849, allocations: 6.4 MB / 0.876 GB, free: 58.39 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002724/2.852, allocations: 1.145 MB / 0.8772 GB, free: 58.36 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001677/2.853, allocations: 0.6993 MB / 0.8778 GB, free: 58.35 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009122/2.862, allocations: 4.283 MB / 0.882 GB, free: 56 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.153e-05/2.862, allocations: 42.12 kB / 0.8821 GB, free: 55.96 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001744/2.864, allocations: 220.8 kB / 0.8823 GB, free: 55.89 MB / 410.7 MB Notification: Performance of pre-optimization done (n=97): time 5.129e-06/2.864, allocations: 0 / 0.8823 GB, free: 55.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=112): time 0.01428/2.879, allocations: 3.779 MB / 0.886 GB, free: 55.34 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.408e-05/2.879, allocations: 144.2 kB / 0.8861 GB, free: 55.18 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002308/2.881, allocations: 1.089 MB / 0.8872 GB, free: 55.02 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004391/2.881, allocations: 51.2 kB / 0.8872 GB, free: 54.99 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005275/2.882, allocations: 0.5931 MB / 0.8878 GB, free: 54.75 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005506/2.883, allocations: 395.1 kB / 0.8882 GB, free: 54.51 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001603/2.883, allocations: 31.59 kB / 0.8882 GB, free: 54.51 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001171/2.883, allocations: 356.2 kB / 0.8885 GB, free: 54.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001691/2.885, allocations: 0.6192 MB / 0.8891 GB, free: 54.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001867/2.887, allocations: 0.949 MB / 0.8901 GB, free: 53.85 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001847/2.888, allocations: 0.7447 MB / 0.8908 GB, free: 53.83 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.798e-06/2.888, allocations: 2.938 kB / 0.8908 GB, free: 53.83 MB / 410.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.005907/2.894, allocations: 2.05 MB / 0.8928 GB, free: 53.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008495/2.895, allocations: 3.522 MB / 0.8962 GB, free: 50.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.946e-05/2.895, allocations: 7.781 kB / 0.8963 GB, free: 50.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0136/2.909, allocations: 1.214 MB / 0.8974 GB, free: 50.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003165/2.912, allocations: 302.2 kB / 0.8977 GB, free: 50.03 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00486/2.917, allocations: 1.513 MB / 0.8992 GB, free: 49.49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003747/2.921, allocations: 95.62 kB / 0.8993 GB, free: 49.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005927/2.922, allocations: 69.25 kB / 0.8994 GB, free: 49.48 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/2.922, allocations: 2.812 kB / 0.8994 GB, free: 49.48 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007403/2.929, allocations: 1.74 MB / 0.9011 GB, free: 49.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-05/2.929, allocations: 6.719 kB / 0.9011 GB, free: 49.44 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01502/2.944, allocations: 0.9661 MB / 0.902 GB, free: 49.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003272/2.947, allocations: 302.2 kB / 0.9023 GB, free: 49.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003326/2.951, allocations: 1.214 MB / 0.9035 GB, free: 48.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003384/2.954, allocations: 91.39 kB / 0.9036 GB, free: 48.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005207/2.955, allocations: 66.61 kB / 0.9036 GB, free: 48.89 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.0007718/2.956, allocations: 192.3 kB / 0.9038 GB, free: 48.78 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006942/2.956, allocations: 145.7 kB / 0.904 GB, free: 48.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008876/2.965, allocations: 2.007 MB / 0.9059 GB, free: 48.59 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.993e-05/2.965, allocations: 12.5 kB / 0.9059 GB, free: 48.59 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.344e-05/2.965, allocations: 0 / 0.9059 GB, free: 48.59 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.28e-05/2.965, allocations: 6.797 kB / 0.9059 GB, free: 48.59 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01255/2.978, allocations: 3.417 MB / 0.9093 GB, free: 48.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.271e-05/2.978, allocations: 0 / 0.9093 GB, free: 48.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002416/2.981, allocations: 192.8 kB / 0.9095 GB, free: 48.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008684/2.989, allocations: 0.9384 MB / 0.9104 GB, free: 48.19 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000438/2.99, allocations: 36.47 kB / 0.9104 GB, free: 48.19 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003388/2.993, allocations: 1.551 MB / 0.9119 GB, free: 47.65 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/2.993, allocations: 0 / 0.9119 GB, free: 47.65 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00676/3, allocations: 2.718 MB / 0.9146 GB, free: 47.38 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001511/3.002, allocations: 398.3 kB / 0.915 GB, free: 47.21 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004597/3.002, allocations: 25.06 kB / 0.915 GB, free: 47.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00202/3.004, allocations: 86.62 kB / 0.9151 GB, free: 47.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002984/3.004, allocations: 102.1 kB / 0.9152 GB, free: 47.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002126/3.005, allocations: 50.56 kB / 0.9152 GB, free: 47.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001652/3.006, allocations: 0.8235 MB / 0.916 GB, free: 47.08 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.02e-07/3.006, allocations: 0 / 0.916 GB, free: 47.08 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005139/3.012, allocations: 1.248 MB / 0.9172 GB, free: 46.88 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.01036/3.022, allocations: 4.252 MB / 0.9214 GB, free: 45.84 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008703/3.031, allocations: 2.523 MB / 0.9239 GB, free: 45.79 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.043e-05/3.031, allocations: 3.875 kB / 0.9239 GB, free: 45.79 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002793/3.034, allocations: 0.813 MB / 0.9246 GB, free: 45.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004637/3.038, allocations: 0.5861 MB / 0.9252 GB, free: 45.77 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01006/3.048, allocations: 3.091 MB / 0.9282 GB, free: 45.02 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009272/3.049, allocations: 1.322 MB / 0.9295 GB, free: 44.3 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003829/3.053, allocations: 0.6693 MB / 0.9302 GB, free: 44.27 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009729/3.054, allocations: 0.5324 MB / 0.9307 GB, free: 44.26 MB / 410.7 MB Notification: Performance of SimCode: time 1.343e-06/3.054, allocations: 0 / 0.9307 GB, free: 44.26 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1323/3.186, allocations: 56.32 MB / 0.9857 GB, free: 5.355 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000224/3.187, allocations: 171.7 kB / 0.9859 GB, free: 5.129 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.172/8.359, allocations: 0 / 0.9859 GB, free: 5.129 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat does not exist to compare? outputFormat=mat