Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.199/2.199, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.638e-05/3.651e-05, allocations: 0 / 292.2 MB, free: 8.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1253, allocations: 50.4 MB / 342.6 MB, free: 5.801 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.549/1.674, allocations: 412.3 MB / 0.7372 GB, free: 125.9 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002739/1.675, allocations: 85.56 kB / 0.7373 GB, free: 125.9 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.186/2.861, allocations: 216.8 MB / 0.9491 GB, free: 100.7 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.925e-06/2.861, allocations: 0 / 0.9491 GB, free: 100.7 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001578/2.861, allocations: 38.66 kB / 0.9491 GB, free: 100.7 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.008568/2.87, allocations: 1.796 MB / 0.9508 GB, free: 99.73 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.503e-05/2.87, allocations: 11.16 kB / 0.9509 GB, free: 99.73 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006833/2.87, allocations: 165.9 kB / 0.951 GB, free: 99.68 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009082/2.871, allocations: 171.2 kB / 0.9512 GB, free: 99.6 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003578/2.875, allocations: 0.9941 MB / 0.9522 GB, free: 99.05 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002505/2.875, allocations: 234.2 kB / 0.9524 GB, free: 98.87 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003817/2.876, allocations: 97.08 kB / 0.9525 GB, free: 98.84 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00452/2.88, allocations: 1.769 MB / 0.9542 GB, free: 98.1 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.481e-05/2.88, allocations: 0 / 0.9542 GB, free: 98.1 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002506/2.88, allocations: 41.25 kB / 0.9542 GB, free: 98.07 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002183/2.881, allocations: 106.2 kB / 0.9543 GB, free: 98.06 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004482/2.885, allocations: 1.703 MB / 0.956 GB, free: 97.3 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0189/2.904, allocations: 6.815 MB / 0.9627 GB, free: 92.38 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003935/2.908, allocations: 1.406 MB / 0.964 GB, free: 91.7 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002046/2.91, allocations: 0.8257 MB / 0.9648 GB, free: 91.29 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009127/2.919, allocations: 3.946 MB / 0.9687 GB, free: 88.17 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.524e-05/2.919, allocations: 51.36 kB / 0.9687 GB, free: 88.12 MB / 458.7 MB Notification: Performance of pre-optimization done (n=110): time 4.809e-06/2.919, allocations: 0 / 0.9687 GB, free: 88.12 MB / 458.7 MB Notification: Performance of matching and sorting (n=122): time 0.01675/2.936, allocations: 4.595 MB / 0.9732 GB, free: 85.03 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.679e-05/2.936, allocations: 167.2 kB / 0.9734 GB, free: 84.82 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002018/2.938, allocations: 0.9865 MB / 0.9743 GB, free: 83.82 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004946/2.939, allocations: 49.7 kB / 0.9744 GB, free: 83.77 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004986/2.939, allocations: 0.5148 MB / 0.9749 GB, free: 83.25 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000646/2.94, allocations: 415.6 kB / 0.9753 GB, free: 82.85 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001827/2.94, allocations: 32 kB / 0.9753 GB, free: 82.82 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001243/2.94, allocations: 353.9 kB / 0.9757 GB, free: 82.46 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002012/2.942, allocations: 0.738 MB / 0.9764 GB, free: 81.73 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002285/2.945, allocations: 0.9817 MB / 0.9773 GB, free: 80.66 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002312/2.947, allocations: 0.8075 MB / 0.9781 GB, free: 79.87 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.726e-06/2.947, allocations: 4 kB / 0.9781 GB, free: 79.86 MB / 458.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.00735/2.955, allocations: 2.376 MB / 0.9805 GB, free: 77.47 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005146/2.955, allocations: 2.192 MB / 0.9826 GB, free: 75.13 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.96e-05/2.955, allocations: 11.22 kB / 0.9826 GB, free: 75.12 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00618/2.961, allocations: 1.192 MB / 0.9838 GB, free: 73.96 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00205/2.963, allocations: 215.7 kB / 0.984 GB, free: 73.75 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008187/2.972, allocations: 6.173 MB / 0.99 GB, free: 67.27 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002837/2.975, allocations: 105.2 kB / 0.9901 GB, free: 67.17 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004107/2.975, allocations: 55.97 kB / 0.9902 GB, free: 67.12 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/2.975, allocations: 5.25 kB / 0.9902 GB, free: 67.11 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006628/2.982, allocations: 2.186 MB / 0.9923 GB, free: 64.92 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.525e-05/2.982, allocations: 8 kB / 0.9923 GB, free: 64.91 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004296/2.986, allocations: 1.003 MB / 0.9933 GB, free: 63.92 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002098/2.988, allocations: 223.6 kB / 0.9935 GB, free: 63.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007648/2.996, allocations: 6.024 MB / 0.9994 GB, free: 57.34 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002683/2.999, allocations: 99.84 kB / 0.9995 GB, free: 57.25 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000265/2.999, allocations: 59.97 kB / 0.9995 GB, free: 57.19 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 123 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 9,2 3,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005844/2.999, allocations: 188.6 kB / 0.9997 GB, free: 57 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000425/3, allocations: 134.4 kB / 0.9998 GB, free: 56.86 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007404/3.007, allocations: 2.557 MB / 1.002 GB, free: 54.28 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.853e-05/3.007, allocations: 16 kB / 1.002 GB, free: 54.27 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.617e-06/3.007, allocations: 4 kB / 1.002 GB, free: 54.26 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-05/3.007, allocations: 11.92 kB / 1.002 GB, free: 54.25 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01057/3.018, allocations: 4.158 MB / 1.006 GB, free: 50.05 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.337e-05/3.018, allocations: 3.953 kB / 1.006 GB, free: 50.04 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001551/3.02, allocations: 143.8 kB / 1.007 GB, free: 49.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005687/3.025, allocations: 1.2 MB / 1.008 GB, free: 48.71 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004252/3.026, allocations: 35.97 kB / 1.008 GB, free: 48.68 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008081/3.034, allocations: 6.207 MB / 1.014 GB, free: 42.14 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/3.034, allocations: 0 / 1.014 GB, free: 42.14 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009269/3.043, allocations: 3.538 MB / 1.017 GB, free: 38.57 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001539/3.045, allocations: 439.1 kB / 1.018 GB, free: 38.12 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004783/3.045, allocations: 24 kB / 1.018 GB, free: 38.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002229/3.048, allocations: 83.94 kB / 1.018 GB, free: 38.02 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005342/3.048, allocations: 149.1 kB / 1.018 GB, free: 37.87 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002296/3.048, allocations: 52.14 kB / 1.018 GB, free: 37.82 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001508/3.05, allocations: 0.7431 MB / 1.019 GB, free: 37.07 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.21e-07/3.05, allocations: 0 / 1.019 GB, free: 37.07 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005415/3.055, allocations: 1.124 MB / 1.02 GB, free: 35.94 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.medium.T,upperTank.level,lowerTank.medium.T,lowerTank.level) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 12,2 4,4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01248/3.068, allocations: 4.851 MB / 1.025 GB, free: 31.11 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.012/3.08, allocations: 3.479 MB / 1.028 GB, free: 27.59 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.939e-06/3.08, allocations: 0 / 1.028 GB, free: 27.59 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004361/3.084, allocations: 1.3 MB / 1.029 GB, free: 26.28 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004873/3.089, allocations: 0.5471 MB / 1.03 GB, free: 25.75 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01379/3.103, allocations: 3.105 MB / 1.033 GB, free: 22.61 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009409/3.104, allocations: 1.301 MB / 1.034 GB, free: 21.28 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0039/3.108, allocations: 0.693 MB / 1.035 GB, free: 20.59 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001163/3.109, allocations: 0.4915 MB / 1.035 GB, free: 20.11 MB / 458.7 MB Notification: Performance of SimCode: time 1.562e-06/3.109, allocations: 0 / 1.035 GB, free: 20.11 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.598/3.707, allocations: 55.09 MB / 1.089 GB, free: 86.64 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002771/3.708, allocations: 225.3 kB / 1.089 GB, free: 86.42 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.873/9.581, allocations: 4 kB / 1.089 GB, free: 86.41 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat