Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.703/1.703, allocations: 171.2 MB / 183.3 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.108e-05/3.11e-05, allocations: 0 / 225.1 MB, free: 2.207 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2813/0.2814, allocations: 38.78 MB / 263.9 MB, free: 9.797 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9848/1.266, allocations: 311.3 MB / 0.5617 GB, free: 72.66 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003081/1.267, allocations: 78.98 kB / 0.5617 GB, free: 72.63 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.581/2.848, allocations: 266.8 MB / 0.8223 GB, free: 52.53 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.355e-06/2.848, allocations: 0 / 0.8223 GB, free: 52.53 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001607/2.848, allocations: 39.34 kB / 0.8223 GB, free: 52.52 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.007872/2.856, allocations: 1.808 MB / 0.8241 GB, free: 51.63 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/2.856, allocations: 12.91 kB / 0.8241 GB, free: 51.63 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006011/2.857, allocations: 160.2 kB / 0.8243 GB, free: 51.59 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009397/2.858, allocations: 176.4 kB / 0.8244 GB, free: 51.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003905/2.862, allocations: 1.123 MB / 0.8255 GB, free: 51.18 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001998/2.862, allocations: 173.4 kB / 0.8257 GB, free: 51.08 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003703/2.862, allocations: 100.8 kB / 0.8258 GB, free: 51.08 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004522/2.867, allocations: 1.751 MB / 0.8275 GB, free: 50.9 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.252e-05/2.867, allocations: 0 / 0.8275 GB, free: 50.9 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002493/2.867, allocations: 46.44 kB / 0.8275 GB, free: 50.9 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002537/2.867, allocations: 112.1 kB / 0.8276 GB, free: 50.9 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004794/2.872, allocations: 1.736 MB / 0.8293 GB, free: 50.88 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01969/2.892, allocations: 6.409 MB / 0.8356 GB, free: 48.86 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002968/2.895, allocations: 1.166 MB / 0.8367 GB, free: 48.82 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001805/2.897, allocations: 0.7007 MB / 0.8374 GB, free: 48.81 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009947/2.907, allocations: 4.274 MB / 0.8416 GB, free: 46.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.306e-05/2.907, allocations: 46.47 kB / 0.8416 GB, free: 46.42 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001663/2.908, allocations: 214.2 kB / 0.8418 GB, free: 46.36 MB / 362.7 MB Notification: Performance of pre-optimization done (n=97): time 4.508e-06/2.908, allocations: 0 / 0.8418 GB, free: 46.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=112): time 0.01349/2.922, allocations: 3.779 MB / 0.8455 GB, free: 45.8 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.095e-05/2.922, allocations: 144.8 kB / 0.8457 GB, free: 45.64 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002157/2.924, allocations: 1.089 MB / 0.8467 GB, free: 45.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003377/2.925, allocations: 51.11 kB / 0.8468 GB, free: 45.45 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00051/2.925, allocations: 0.5989 MB / 0.8474 GB, free: 45.2 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004952/2.926, allocations: 385.3 kB / 0.8477 GB, free: 44.96 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/2.926, allocations: 25.06 kB / 0.8478 GB, free: 44.96 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001151/2.926, allocations: 363.5 kB / 0.8481 GB, free: 44.66 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001606/2.928, allocations: 0.6306 MB / 0.8487 GB, free: 44.65 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001794/2.929, allocations: 0.9439 MB / 0.8496 GB, free: 44.3 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00183/2.931, allocations: 0.7519 MB / 0.8504 GB, free: 44.28 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.308e-06/2.931, allocations: 3.656 kB / 0.8504 GB, free: 44.28 MB / 362.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.005456/2.937, allocations: 2.067 MB / 0.8524 GB, free: 44.13 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008127/2.938, allocations: 3.518 MB / 0.8558 GB, free: 40.51 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.276e-05/2.938, allocations: 10.69 kB / 0.8558 GB, free: 40.51 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0128/2.95, allocations: 1.207 MB / 0.857 GB, free: 40.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002429/2.953, allocations: 291.5 kB / 0.8573 GB, free: 40.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003704/2.957, allocations: 1.532 MB / 0.8588 GB, free: 39.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002655/2.959, allocations: 87.31 kB / 0.8589 GB, free: 39.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002617/2.96, allocations: 69.89 kB / 0.8589 GB, free: 39.95 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/2.96, allocations: 3.75 kB / 0.859 GB, free: 39.95 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004708/2.964, allocations: 1.756 MB / 0.8607 GB, free: 39.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.011e-05/2.964, allocations: 7.812 kB / 0.8607 GB, free: 39.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01136/2.976, allocations: 0.9696 MB / 0.8616 GB, free: 39.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002495/2.978, allocations: 307 kB / 0.8619 GB, free: 39.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002402/2.981, allocations: 1.226 MB / 0.8631 GB, free: 39.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00234/2.983, allocations: 86.98 kB / 0.8632 GB, free: 39.35 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002168/2.983, allocations: 71.97 kB / 0.8633 GB, free: 39.35 MB / 362.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.0005741/2.984, allocations: 193.3 kB / 0.8634 GB, free: 39.24 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003899/2.984, allocations: 146.1 kB / 0.8636 GB, free: 39.16 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006251/2.991, allocations: 1.997 MB / 0.8655 GB, free: 38.51 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.945e-05/2.991, allocations: 13.47 kB / 0.8655 GB, free: 38.51 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/2.991, allocations: 0 / 0.8655 GB, free: 38.51 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.995e-05/2.991, allocations: 11.3 kB / 0.8656 GB, free: 38.5 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008376/2.999, allocations: 3.408 MB / 0.8689 GB, free: 37.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.01e-05/2.999, allocations: 0 / 0.8689 GB, free: 37.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00173/3.001, allocations: 190.1 kB / 0.8691 GB, free: 37.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006225/3.007, allocations: 0.9403 MB / 0.87 GB, free: 36.93 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003337/3.008, allocations: 36.58 kB / 0.87 GB, free: 36.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003367/3.011, allocations: 1.569 MB / 0.8716 GB, free: 36 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/3.011, allocations: 3.938 kB / 0.8716 GB, free: 36 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006528/3.018, allocations: 2.706 MB / 0.8742 GB, free: 34.87 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001183/3.019, allocations: 407.2 kB / 0.8746 GB, free: 34.61 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003283/3.019, allocations: 19.94 kB / 0.8746 GB, free: 34.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001887/3.021, allocations: 89.36 kB / 0.8747 GB, free: 34.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003125/3.021, allocations: 99.16 kB / 0.8748 GB, free: 34.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001882/3.022, allocations: 52.84 kB / 0.8748 GB, free: 34.55 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001583/3.023, allocations: 0.8234 MB / 0.8756 GB, free: 33.8 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/3.023, allocations: 0 / 0.8756 GB, free: 33.8 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004432/3.028, allocations: 1.246 MB / 0.8769 GB, free: 32.59 MB / 362.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.009531/3.037, allocations: 4.235 MB / 0.881 GB, free: 28.83 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008128/3.045, allocations: 2.574 MB / 0.8835 GB, free: 26.51 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.604e-06/3.045, allocations: 0 / 0.8835 GB, free: 26.51 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002703/3.048, allocations: 0.826 MB / 0.8843 GB, free: 25.77 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004706/3.053, allocations: 0.5729 MB / 0.8849 GB, free: 25.38 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009625/3.062, allocations: 3.108 MB / 0.8879 GB, free: 22.7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008659/3.063, allocations: 1.318 MB / 0.8892 GB, free: 21.57 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.003732/3.067, allocations: 0.6783 MB / 0.8899 GB, free: 21.14 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009534/3.068, allocations: 0.5223 MB / 0.8904 GB, free: 20.66 MB / 362.7 MB Notification: Performance of SimCode: time 1.583e-06/3.068, allocations: 4 kB / 0.8904 GB, free: 20.66 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4084/3.477, allocations: 56.35 MB / 0.9454 GB, free: 45.05 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002608/3.477, allocations: 171.5 kB / 0.9456 GB, free: 44.83 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.215/8.692, allocations: 0 / 0.9456 GB, free: 44.83 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat does not exist to compare? outputFormat=mat