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 2.323/2.323, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.343e-05/3.363e-05, allocations: 4 kB / 249.7 MB, free: 14.82 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4045/0.4046, allocations: 44.5 MB / 294.2 MB, free: 14.38 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.091/1.495, allocations: 315.9 MB / 0.5959 GB, free: 112.9 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003022/1.496, allocations: 79.92 kB / 0.5959 GB, free: 112.9 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.353/2.849, allocations: 265.1 MB / 0.8548 GB, free: 41.55 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.166e-06/2.849, allocations: 0 / 0.8548 GB, free: 41.55 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002289/2.849, allocations: 35.84 kB / 0.8548 GB, free: 41.52 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.0091/2.858, allocations: 1.806 MB / 0.8566 GB, free: 39.67 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.646e-05/2.858, allocations: 15.97 kB / 0.8566 GB, free: 39.66 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00162/2.86, allocations: 170.1 kB / 0.8568 GB, free: 39.49 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004686/2.865, allocations: 1.118 MB / 0.8579 GB, free: 38.35 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002554/2.865, allocations: 139.1 kB / 0.858 GB, free: 38.2 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007525/2.866, allocations: 56 kB / 0.8581 GB, free: 38.14 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00505/2.871, allocations: 1.597 MB / 0.8596 GB, free: 36.54 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005601/2.876, allocations: 1.608 MB / 0.8612 GB, free: 34.87 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.545e-05/2.877, allocations: 0 / 0.8612 GB, free: 34.87 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002594/2.877, allocations: 7.984 kB / 0.8612 GB, free: 34.86 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002617/2.877, allocations: 105.9 kB / 0.8613 GB, free: 34.76 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02105/2.898, allocations: 6.154 MB / 0.8673 GB, free: 28.4 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002955/2.901, allocations: 1.131 MB / 0.8684 GB, free: 27.25 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001886/2.903, allocations: 0.6879 MB / 0.8691 GB, free: 26.57 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01094/2.914, allocations: 4.188 MB / 0.8732 GB, free: 22 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.313e-05/2.914, allocations: 51.27 kB / 0.8732 GB, free: 21.93 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002022/2.916, allocations: 167 kB / 0.8734 GB, free: 21.77 MB / 410.7 MB Notification: Performance of pre-optimization done (n=97): time 9.788e-06/2.916, allocations: 0 / 0.8734 GB, free: 21.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=112): time 0.02147/2.938, allocations: 4.133 MB / 0.8774 GB, free: 17.59 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.66e-05/2.938, allocations: 137.8 kB / 0.8775 GB, free: 17.43 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001744/2.94, allocations: 0.8159 MB / 0.8783 GB, free: 16.59 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004648/2.94, allocations: 25.7 kB / 0.8784 GB, free: 16.56 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005325/2.941, allocations: 0.6198 MB / 0.879 GB, free: 15.93 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007146/2.942, allocations: 366.5 kB / 0.8793 GB, free: 15.57 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001859/2.942, allocations: 0 / 0.8793 GB, free: 15.57 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001547/2.942, allocations: 361.9 kB / 0.8797 GB, free: 15.21 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001689/2.944, allocations: 0.613 MB / 0.8803 GB, free: 14.6 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002096/2.946, allocations: 0.9315 MB / 0.8812 GB, free: 13.54 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01876/2.965, allocations: 2.32 MB / 0.8834 GB, free: 11.22 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.549e-05/2.965, allocations: 4 kB / 0.8834 GB, free: 11.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.0232/2.988, allocations: 3.56 MB / 0.8869 GB, free: 7.645 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008246/2.989, allocations: 3.494 MB / 0.8903 GB, free: 3.883 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-05/2.989, allocations: 12 kB / 0.8903 GB, free: 3.871 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01154/3, allocations: 1.078 MB / 0.8914 GB, free: 2.789 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002571/3.003, allocations: 295.5 kB / 0.8917 GB, free: 2.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006567/3.01, allocations: 1.902 MB / 0.8935 GB, free: 0.5703 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002818/3.013, allocations: 59.8 kB / 0.8936 GB, free: 0.5117 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006328/3.013, allocations: 71.95 kB / 0.8937 GB, free: 452 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/3.013, allocations: 4 kB / 0.8937 GB, free: 448 kB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.3454/3.359, allocations: 2.964 MB / 0.8966 GB, free: 62.65 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.776e-05/3.359, allocations: 10.28 kB / 0.8966 GB, free: 62.65 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01115/3.37, allocations: 0.9053 MB / 0.8975 GB, free: 62.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002652/3.373, allocations: 303.8 kB / 0.8977 GB, free: 62.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00287/3.376, allocations: 1.283 MB / 0.899 GB, free: 62.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002553/3.378, allocations: 53.17 kB / 0.899 GB, free: 62.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006085/3.379, allocations: 71.72 kB / 0.8991 GB, free: 62.12 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 {9 17} Notification: Performance of prepare postOptimizeDAE: time 0.0006593/3.38, allocations: 142.2 kB / 0.8993 GB, free: 62.01 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009145/3.389, allocations: 1.82 MB / 0.901 GB, free: 61.94 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008204/3.39, allocations: 127.9 kB / 0.9012 GB, free: 61.94 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01022/3.4, allocations: 2.133 MB / 0.9032 GB, free: 61.86 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.235e-05/3.4, allocations: 15.5 kB / 0.9032 GB, free: 61.86 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.197e-05/3.4, allocations: 0 / 0.9032 GB, free: 61.86 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-05/3.4, allocations: 6.562 kB / 0.9033 GB, free: 61.86 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01356/3.414, allocations: 3.453 MB / 0.9066 GB, free: 61.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.275e-05/3.414, allocations: 0 / 0.9066 GB, free: 61.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001951/3.416, allocations: 191.7 kB / 0.9068 GB, free: 61.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005531/3.421, allocations: 0.7946 MB / 0.9076 GB, free: 61.54 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004251/3.422, allocations: 19.31 kB / 0.9076 GB, free: 61.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006092/3.428, allocations: 1.889 MB / 0.9094 GB, free: 61 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.544e-06/3.428, allocations: 0 / 0.9094 GB, free: 61 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01025/3.438, allocations: 2.868 MB / 0.9122 GB, free: 60.75 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001526/3.44, allocations: 375.9 kB / 0.9126 GB, free: 60.59 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006393/3.441, allocations: 5.812 kB / 0.9126 GB, free: 60.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002472/3.443, allocations: 67.38 kB / 0.9127 GB, free: 60.59 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005789/3.444, allocations: 100.3 kB / 0.9128 GB, free: 60.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002392/3.444, allocations: 51.02 kB / 0.9128 GB, free: 60.58 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001332/3.445, allocations: 0.604 MB / 0.9134 GB, free: 60.47 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.11e-07/3.445, allocations: 0 / 0.9134 GB, free: 60.47 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006691/3.452, allocations: 1.156 MB / 0.9145 GB, free: 60.47 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.01545/3.468, allocations: 4.361 MB / 0.9188 GB, free: 59.69 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009204/3.477, allocations: 2.437 MB / 0.9212 GB, free: 59.65 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.889e-06/3.477, allocations: 0 / 0.9212 GB, free: 59.65 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003415/3.48, allocations: 0.7883 MB / 0.9219 GB, free: 59.64 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005229/3.486, allocations: 0.5285 MB / 0.9225 GB, free: 59.62 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01206/3.498, allocations: 2.94 MB / 0.9253 GB, free: 59.08 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001016/3.499, allocations: 1.318 MB / 0.9266 GB, free: 58.36 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.004359/3.503, allocations: 0.5794 MB / 0.9272 GB, free: 58.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001423/3.505, allocations: 0.5259 MB / 0.9277 GB, free: 58.33 MB / 410.7 MB Notification: Performance of SimCode: time 1.623e-06/3.505, allocations: 0 / 0.9277 GB, free: 58.33 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1476/3.652, allocations: 49.73 MB / 0.9763 GB, free: 55.54 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002862/3.653, allocations: 123.5 kB / 0.9764 GB, free: 55.36 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.059/8.712, allocations: 0 / 0.9764 GB, free: 55.36 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