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 2.143/2.143, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.181e-05/3.187e-05, allocations: 4 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09477/0.09483, allocations: 44.5 MB / 300 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.367/1.461, allocations: 404.9 MB / 0.6883 GB, free: 106.8 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002969/1.462, allocations: 85.55 kB / 0.6884 GB, free: 106.8 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.056/2.518, allocations: 210.1 MB / 0.8936 GB, free: 82.54 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.816e-06/2.518, allocations: 0 / 0.8936 GB, free: 82.54 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002037/2.518, allocations: 40.75 kB / 0.8936 GB, free: 82.54 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.01073/2.529, allocations: 1.786 MB / 0.8954 GB, free: 81.6 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.391e-05/2.529, allocations: 9.688 kB / 0.8954 GB, free: 81.6 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007094/2.53, allocations: 171.6 kB / 0.8955 GB, free: 81.56 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008862/2.531, allocations: 167 kB / 0.8957 GB, free: 81.48 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003383/2.534, allocations: 0.989 MB / 0.8967 GB, free: 81.16 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000216/2.534, allocations: 237.8 kB / 0.8969 GB, free: 81.01 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000309/2.535, allocations: 101.9 kB / 0.897 GB, free: 81.01 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004293/2.539, allocations: 1.772 MB / 0.8987 GB, free: 80.81 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.474e-05/2.539, allocations: 2.75 kB / 0.8987 GB, free: 80.81 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002377/2.539, allocations: 41.22 kB / 0.8987 GB, free: 80.81 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001934/2.54, allocations: 103.9 kB / 0.8988 GB, free: 80.8 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004303/2.544, allocations: 1.707 MB / 0.9005 GB, free: 80.55 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01862/2.563, allocations: 6.831 MB / 0.9072 GB, free: 76.85 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003923/2.567, allocations: 1.41 MB / 0.9086 GB, free: 76.31 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002024/2.569, allocations: 0.8305 MB / 0.9094 GB, free: 75.98 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009086/2.578, allocations: 3.981 MB / 0.9133 GB, free: 73.49 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.97e-05/2.578, allocations: 51.17 kB / 0.9133 GB, free: 73.44 MB / 410.7 MB Notification: Performance of pre-optimization done (n=110): time 3.807e-06/2.578, allocations: 0 / 0.9133 GB, free: 73.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.01662/2.595, allocations: 4.602 MB / 0.9178 GB, free: 71.16 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.779e-05/2.595, allocations: 170.2 kB / 0.918 GB, free: 70.97 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00196/2.597, allocations: 0.9764 MB / 0.9189 GB, free: 70.47 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004557/2.597, allocations: 48.83 kB / 0.919 GB, free: 70.42 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004122/2.598, allocations: 0.5151 MB / 0.9195 GB, free: 69.95 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005565/2.598, allocations: 406.7 kB / 0.9199 GB, free: 69.61 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001775/2.598, allocations: 31.88 kB / 0.9199 GB, free: 69.58 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001211/2.598, allocations: 361.8 kB / 0.9202 GB, free: 69.23 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001929/2.6, allocations: 0.7419 MB / 0.921 GB, free: 68.88 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002101/2.602, allocations: 0.9942 MB / 0.9219 GB, free: 68.07 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002143/2.605, allocations: 0.8119 MB / 0.9227 GB, free: 67.28 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.765e-06/2.605, allocations: 4 kB / 0.9227 GB, free: 67.28 MB / 410.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.006757/2.611, allocations: 2.312 MB / 0.925 GB, free: 64.96 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005256/2.612, allocations: 2.364 MB / 0.9273 GB, free: 62.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.887e-05/2.612, allocations: 4 kB / 0.9273 GB, free: 62.44 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005935/2.618, allocations: 1.196 MB / 0.9285 GB, free: 61.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002006/2.62, allocations: 223.6 kB / 0.9287 GB, free: 61.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00792/2.628, allocations: 6.171 MB / 0.9347 GB, free: 54.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002624/2.631, allocations: 91.62 kB / 0.9348 GB, free: 54.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002362/2.631, allocations: 67.95 kB / 0.9349 GB, free: 54.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.114e-05/2.631, allocations: 4 kB / 0.9349 GB, free: 54.41 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005591/2.637, allocations: 1.994 MB / 0.9368 GB, free: 52.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.791e-05/2.637, allocations: 8 kB / 0.9368 GB, free: 52.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003305/2.64, allocations: 0.7416 MB / 0.9375 GB, free: 51.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002149/2.642, allocations: 235.6 kB / 0.9378 GB, free: 51.45 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007884/2.65, allocations: 6.725 MB / 0.9443 GB, free: 44.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00204/2.652, allocations: 98.94 kB / 0.9444 GB, free: 44.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002329/2.652, allocations: 55.97 kB / 0.9445 GB, free: 44.15 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.0006199/2.653, allocations: 188.1 kB / 0.9447 GB, free: 43.96 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004755/2.653, allocations: 130.4 kB / 0.9448 GB, free: 43.84 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007469/2.661, allocations: 2.568 MB / 0.9473 GB, free: 41.26 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.783e-05/2.661, allocations: 20 kB / 0.9473 GB, free: 41.24 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/2.661, allocations: 3.094 kB / 0.9473 GB, free: 41.24 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.269e-05/2.661, allocations: 11.92 kB / 0.9473 GB, free: 41.23 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01046/2.672, allocations: 4.149 MB / 0.9514 GB, free: 37.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.164e-05/2.672, allocations: 0 / 0.9514 GB, free: 37.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001513/2.673, allocations: 151.7 kB / 0.9515 GB, free: 36.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005559/2.679, allocations: 1.202 MB / 0.9527 GB, free: 35.73 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000482/2.679, allocations: 39.97 kB / 0.9527 GB, free: 35.69 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008006/2.687, allocations: 6.192 MB / 0.9588 GB, free: 29.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/2.687, allocations: 0 / 0.9588 GB, free: 29.18 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008953/2.696, allocations: 3.537 MB / 0.9622 GB, free: 25.61 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001408/2.698, allocations: 435.1 kB / 0.9626 GB, free: 25.17 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003603/2.698, allocations: 26.78 kB / 0.9627 GB, free: 25.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002027/2.7, allocations: 98.83 kB / 0.9628 GB, free: 25.05 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004789/2.701, allocations: 144.3 kB / 0.9629 GB, free: 24.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002082/2.701, allocations: 55.72 kB / 0.963 GB, free: 24.86 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001401/2.702, allocations: 0.7351 MB / 0.9637 GB, free: 24.12 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.182e-06/2.702, allocations: 0 / 0.9637 GB, free: 24.12 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005312/2.708, allocations: 1.12 MB / 0.9648 GB, free: 23 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.01172/2.719, allocations: 4.82 MB / 0.9695 GB, free: 18.21 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01008/2.73, allocations: 3.465 MB / 0.9729 GB, free: 14.71 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.197e-06/2.73, allocations: 4.938 kB / 0.9729 GB, free: 14.71 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004244/2.734, allocations: 1.292 MB / 0.9741 GB, free: 13.4 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00463/2.739, allocations: 0.5414 MB / 0.9747 GB, free: 12.87 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01269/2.751, allocations: 3.147 MB / 0.9777 GB, free: 9.703 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009087/2.752, allocations: 1.283 MB / 0.979 GB, free: 8.383 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001385/2.754, allocations: 0.5382 MB / 0.9795 GB, free: 7.844 MB / 410.7 MB Notification: Performance of SimCode: time 1.462e-06/2.754, allocations: 0 / 0.9795 GB, free: 7.844 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.128/6.882, allocations: 56.79 MB / 1.035 GB, free: 69.04 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