Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.898/1.898, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.674e-05/3.688e-05, allocations: 7.984 kB / 255.4 MB, free: 3.113 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09958/0.09965, allocations: 44.51 MB / 299.9 MB, free: 6.547 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.337/1.437, allocations: 404.9 MB / 0.6883 GB, free: 106.9 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002806/1.437, allocations: 82.02 kB / 0.6884 GB, free: 106.9 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.029/2.466, allocations: 210.1 MB / 0.8935 GB, free: 82.52 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.064e-06/2.466, allocations: 2.625 kB / 0.8935 GB, free: 82.52 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001343/2.466, allocations: 29.66 kB / 0.8936 GB, free: 82.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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.007599/2.474, allocations: 1.795 MB / 0.8953 GB, free: 81.58 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.208e-05/2.474, allocations: 10.66 kB / 0.8953 GB, free: 81.58 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006748/2.475, allocations: 163.6 kB / 0.8955 GB, free: 81.54 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008532/2.475, allocations: 167.3 kB / 0.8956 GB, free: 81.46 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003474/2.479, allocations: 0.9908 MB / 0.8966 GB, free: 81.14 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002357/2.479, allocations: 240.7 kB / 0.8968 GB, free: 80.98 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003714/2.48, allocations: 99.97 kB / 0.8969 GB, free: 80.98 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004439/2.484, allocations: 1.783 MB / 0.8987 GB, free: 80.78 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.501e-05/2.484, allocations: 3.312 kB / 0.8987 GB, free: 80.78 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002386/2.484, allocations: 46.22 kB / 0.8987 GB, free: 80.78 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001999/2.485, allocations: 102.7 kB / 0.8988 GB, free: 80.78 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004442/2.489, allocations: 1.719 MB / 0.9005 GB, free: 80.55 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01929/2.508, allocations: 6.831 MB / 0.9072 GB, free: 76.84 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00399/2.512, allocations: 1.428 MB / 0.9086 GB, free: 76.3 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002131/2.515, allocations: 0.824 MB / 0.9094 GB, free: 75.98 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009246/2.524, allocations: 3.983 MB / 0.9133 GB, free: 73.48 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.463e-05/2.524, allocations: 58.05 kB / 0.9133 GB, free: 73.43 MB / 410.7 MB Notification: Performance of pre-optimization done (n=110): time 4.268e-06/2.524, allocations: 2.938 kB / 0.9133 GB, free: 73.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.01658/2.541, allocations: 4.606 MB / 0.9178 GB, free: 71.23 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.782e-05/2.541, allocations: 169.4 kB / 0.918 GB, free: 71.04 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001949/2.543, allocations: 0.9697 MB / 0.9189 GB, free: 70.54 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004536/2.543, allocations: 52.05 kB / 0.919 GB, free: 70.49 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000437/2.544, allocations: 0.5041 MB / 0.9195 GB, free: 70.02 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005415/2.544, allocations: 410.8 kB / 0.9199 GB, free: 69.68 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001681/2.544, allocations: 27.62 kB / 0.9199 GB, free: 69.66 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001209/2.545, allocations: 366.9 kB / 0.9202 GB, free: 69.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001954/2.546, allocations: 0.7393 MB / 0.921 GB, free: 68.95 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002127/2.549, allocations: 1.005 MB / 0.9219 GB, free: 68.01 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002267/2.551, allocations: 0.8116 MB / 0.9227 GB, free: 67.21 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.035e-05/2.551, allocations: 0 / 0.9227 GB, free: 67.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.00691/2.558, allocations: 2.335 MB / 0.925 GB, free: 64.86 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000542/2.559, allocations: 2.361 MB / 0.9273 GB, free: 62.35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.749e-05/2.559, allocations: 11.98 kB / 0.9273 GB, free: 62.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006091/2.565, allocations: 1.191 MB / 0.9285 GB, free: 61.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002087/2.567, allocations: 223.6 kB / 0.9287 GB, free: 60.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008253/2.575, allocations: 6.182 MB / 0.9347 GB, free: 54.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002715/2.578, allocations: 98.97 kB / 0.9348 GB, free: 54.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002821/2.578, allocations: 59.97 kB / 0.9349 GB, free: 54.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/2.578, allocations: 4 kB / 0.9349 GB, free: 54.3 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0058/2.584, allocations: 2.015 MB / 0.9369 GB, free: 52.28 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.195e-05/2.584, allocations: 4 kB / 0.9369 GB, free: 52.28 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003259/2.587, allocations: 0.731 MB / 0.9376 GB, free: 51.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00213/2.59, allocations: 242.7 kB / 0.9378 GB, free: 51.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007679/2.597, allocations: 6.736 MB / 0.9444 GB, free: 44.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002006/2.599, allocations: 94.23 kB / 0.9445 GB, free: 44.08 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002035/2.6, allocations: 63.97 kB / 0.9445 GB, free: 44.02 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.0006144/2.6, allocations: 188.6 kB / 0.9447 GB, free: 43.82 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000464/2.601, allocations: 134.3 kB / 0.9449 GB, free: 43.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007274/2.608, allocations: 2.562 MB / 0.9474 GB, free: 41.12 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.823e-05/2.608, allocations: 22.92 kB / 0.9474 GB, free: 41.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.186e-06/2.608, allocations: 0 / 0.9474 GB, free: 41.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.239e-05/2.608, allocations: 7.938 kB / 0.9474 GB, free: 41.09 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0104/2.618, allocations: 4.154 MB / 0.9514 GB, free: 36.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.088e-05/2.619, allocations: 0 / 0.9514 GB, free: 36.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001532/2.62, allocations: 147.8 kB / 0.9516 GB, free: 36.76 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005616/2.626, allocations: 1.202 MB / 0.9528 GB, free: 35.59 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004787/2.626, allocations: 31.98 kB / 0.9528 GB, free: 35.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008004/2.634, allocations: 6.199 MB / 0.9588 GB, free: 29.04 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/2.634, allocations: 3.781 kB / 0.9588 GB, free: 29.04 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008907/2.643, allocations: 3.539 MB / 0.9623 GB, free: 25.47 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001377/2.645, allocations: 435.1 kB / 0.9627 GB, free: 25.03 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003443/2.645, allocations: 20 kB / 0.9627 GB, free: 25.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002054/2.647, allocations: 105.2 kB / 0.9628 GB, free: 24.91 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004872/2.648, allocations: 141.1 kB / 0.963 GB, free: 24.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002049/2.648, allocations: 55.47 kB / 0.963 GB, free: 24.72 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001382/2.649, allocations: 0.739 MB / 0.9637 GB, free: 23.97 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.603e-06/2.649, allocations: 0 / 0.9637 GB, free: 23.97 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004714/2.654, allocations: 1.123 MB / 0.9648 GB, free: 22.85 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.0114/2.665, allocations: 4.803 MB / 0.9695 GB, free: 18.08 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01007/2.676, allocations: 3.537 MB / 0.973 GB, free: 14.48 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.106e-06/2.676, allocations: 0.9375 kB / 0.973 GB, free: 14.48 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004788/2.68, allocations: 1.319 MB / 0.9743 GB, free: 13.14 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004817/2.685, allocations: 0.5347 MB / 0.9748 GB, free: 12.62 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01473/2.7, allocations: 3.158 MB / 0.9779 GB, free: 9.441 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009651/2.701, allocations: 1.287 MB / 0.9791 GB, free: 8.121 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001499/2.703, allocations: 0.5343 MB / 0.9797 GB, free: 7.586 MB / 410.7 MB Notification: Performance of SimCode: time 1.804e-06/2.703, allocations: 0 / 0.9797 GB, free: 7.586 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.089/6.792, allocations: 56.8 MB / 1.035 GB, free: 69.32 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat