Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.024/2.024, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.399e-05/3.418e-05, allocations: 4 kB / 255.5 MB, free: 2.613 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1009, allocations: 44.5 MB / 300 MB, free: 6.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.492/1.593, allocations: 404.9 MB / 0.6884 GB, free: 106.3 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002934/1.594, allocations: 88.08 kB / 0.6885 GB, free: 106.3 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.119/2.713, allocations: 210.1 MB / 0.8936 GB, free: 82.7 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.755e-06/2.713, allocations: 0 / 0.8936 GB, free: 82.7 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001913/2.713, allocations: 38.62 kB / 0.8936 GB, free: 82.7 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.0091/2.722, allocations: 1.793 MB / 0.8954 GB, free: 81.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.771e-05/2.722, allocations: 7.719 kB / 0.8954 GB, free: 81.75 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001137/2.723, allocations: 166.8 kB / 0.8956 GB, free: 81.71 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001701/2.725, allocations: 166.1 kB / 0.8957 GB, free: 81.63 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004382/2.729, allocations: 0.9928 MB / 0.8967 GB, free: 81.31 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000376/2.73, allocations: 240.8 kB / 0.8969 GB, free: 81.16 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009458/2.731, allocations: 97.84 kB / 0.897 GB, free: 81.16 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007081/2.738, allocations: 1.776 MB / 0.8987 GB, free: 80.95 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.846e-05/2.738, allocations: 1.688 kB / 0.8987 GB, free: 80.95 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000301/2.738, allocations: 41.62 kB / 0.8988 GB, free: 80.95 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002152/2.739, allocations: 103.1 kB / 0.8989 GB, free: 80.95 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005869/2.744, allocations: 1.705 MB / 0.9005 GB, free: 80.64 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02337/2.768, allocations: 6.834 MB / 0.9072 GB, free: 76.95 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004655/2.773, allocations: 1.408 MB / 0.9086 GB, free: 76.41 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002622/2.775, allocations: 0.8246 MB / 0.9094 GB, free: 76.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01151/2.787, allocations: 3.985 MB / 0.9133 GB, free: 73.52 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.311e-05/2.787, allocations: 53.98 kB / 0.9133 GB, free: 73.47 MB / 410.7 MB Notification: Performance of pre-optimization done (n=110): time 4.789e-06/2.787, allocations: 0 / 0.9133 GB, free: 73.47 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.02423/2.811, allocations: 4.606 MB / 0.9178 GB, free: 71.02 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/2.811, allocations: 168.1 kB / 0.918 GB, free: 70.83 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003061/2.814, allocations: 0.9675 MB / 0.9189 GB, free: 70.33 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006242/2.815, allocations: 52.61 kB / 0.919 GB, free: 70.28 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008204/2.816, allocations: 0.523 MB / 0.9195 GB, free: 69.82 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001088/2.817, allocations: 409.4 kB / 0.9199 GB, free: 69.48 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002728/2.817, allocations: 31.28 kB / 0.9199 GB, free: 69.45 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001953/2.818, allocations: 356.8 kB / 0.9203 GB, free: 69.11 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003133/2.821, allocations: 0.7431 MB / 0.921 GB, free: 68.73 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003675/2.825, allocations: 0.9976 MB / 0.922 GB, free: 67.64 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003397/2.828, allocations: 0.8089 MB / 0.9228 GB, free: 66.85 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.4e-05/2.828, allocations: 0 / 0.9228 GB, free: 66.85 MB / 410.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.01046/2.839, allocations: 2.4 MB / 0.9251 GB, free: 64.44 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007027/2.839, allocations: 2.356 MB / 0.9274 GB, free: 61.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.695e-05/2.839, allocations: 8 kB / 0.9274 GB, free: 61.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008307/2.848, allocations: 1.189 MB / 0.9286 GB, free: 60.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002636/2.85, allocations: 223.6 kB / 0.9288 GB, free: 60.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01147/2.862, allocations: 6.174 MB / 0.9348 GB, free: 54.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003564/2.866, allocations: 94.78 kB / 0.9349 GB, free: 53.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005727/2.866, allocations: 59.97 kB / 0.935 GB, free: 53.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/2.866, allocations: 7.125 kB / 0.935 GB, free: 53.89 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008638/2.875, allocations: 1.998 MB / 0.9369 GB, free: 51.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.014e-05/2.875, allocations: 11.94 kB / 0.9369 GB, free: 51.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004284/2.879, allocations: 0.7862 MB / 0.9377 GB, free: 51.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002207/2.882, allocations: 231.6 kB / 0.9379 GB, free: 50.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008343/2.89, allocations: 6.715 MB / 0.9445 GB, free: 43.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002539/2.893, allocations: 91.59 kB / 0.9446 GB, free: 43.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004595/2.893, allocations: 59.3 kB / 0.9446 GB, free: 43.61 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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 (130): * Single equations (assignments): 125 * 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.0006347/2.894, allocations: 192.4 kB / 0.9448 GB, free: 43.42 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000472/2.894, allocations: 134.4 kB / 0.9449 GB, free: 43.29 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00784/2.902, allocations: 2.564 MB / 0.9474 GB, free: 40.71 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.54e-05/2.902, allocations: 12 kB / 0.9474 GB, free: 40.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.757e-06/2.902, allocations: 4 kB / 0.9474 GB, free: 40.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.011e-05/2.902, allocations: 11.92 kB / 0.9475 GB, free: 40.69 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01207/2.914, allocations: 4.154 MB / 0.9515 GB, free: 36.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.982e-05/2.914, allocations: 4 kB / 0.9515 GB, free: 36.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001734/2.916, allocations: 143.8 kB / 0.9517 GB, free: 36.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005783/2.922, allocations: 1.192 MB / 0.9528 GB, free: 35.19 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000455/2.922, allocations: 35.97 kB / 0.9529 GB, free: 35.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008255/2.931, allocations: 6.199 MB / 0.9589 GB, free: 28.64 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/2.931, allocations: 4.031 kB / 0.9589 GB, free: 28.64 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01/2.941, allocations: 3.534 MB / 0.9624 GB, free: 25.08 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00172/2.943, allocations: 439.1 kB / 0.9628 GB, free: 24.63 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005941/2.943, allocations: 27.44 kB / 0.9628 GB, free: 24.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002078/2.945, allocations: 97.91 kB / 0.9629 GB, free: 24.52 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004596/2.946, allocations: 145 kB / 0.963 GB, free: 24.37 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002034/2.946, allocations: 51.97 kB / 0.9631 GB, free: 24.32 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00141/2.947, allocations: 0.739 MB / 0.9638 GB, free: 23.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.623e-06/2.947, allocations: 2.219 kB / 0.9638 GB, free: 23.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004887/2.952, allocations: 1.116 MB / 0.9649 GB, free: 22.45 MB / 410.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.01191/2.964, allocations: 4.816 MB / 0.9696 GB, free: 17.66 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01139/2.976, allocations: 3.494 MB / 0.973 GB, free: 14.12 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.837e-06/2.976, allocations: 4 kB / 0.973 GB, free: 14.11 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004809/2.981, allocations: 1.293 MB / 0.9743 GB, free: 12.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004994/2.986, allocations: 0.5504 MB / 0.9748 GB, free: 12.27 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01468/3, allocations: 3.116 MB / 0.9779 GB, free: 9.133 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009614/3.001, allocations: 1.301 MB / 0.9791 GB, free: 7.797 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.004383/3.006, allocations: 0.6915 MB / 0.9798 GB, free: 7.125 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001322/3.007, allocations: 0.507 MB / 0.9803 GB, free: 6.617 MB / 410.7 MB Notification: Performance of SimCode: time 1.893e-06/3.007, allocations: 3.938 kB / 0.9803 GB, free: 6.613 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4491/3.456, allocations: 54.33 MB / 1.033 GB, free: 70.73 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002377/3.457, allocations: 223.1 kB / 1.034 GB, free: 70.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.36/8.816, allocations: 0 / 1.034 GB, free: 70.5 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat