Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.717/1.717, allocations: 171.2 MB / 183.8 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.39e-05/3.407e-05, allocations: 4 kB / 225.1 MB, free: 2.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3185, allocations: 38.76 MB / 263.8 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.229/1.548, allocations: 399.6 MB / 0.6478 GB, free: 101.7 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002815/1.548, allocations: 83.25 kB / 0.6479 GB, free: 101.7 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9795/2.528, allocations: 210 MB / 0.853 GB, free: 63.29 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.923e-06/2.528, allocations: 0 / 0.853 GB, free: 63.29 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001346/2.528, allocations: 43.31 kB / 0.8531 GB, free: 63.25 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.007761/2.536, allocations: 1.784 MB / 0.8548 GB, free: 61.44 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.308e-05/2.536, allocations: 15.34 kB / 0.8548 GB, free: 61.43 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007332/2.537, allocations: 163.9 kB / 0.855 GB, free: 61.26 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008648/2.537, allocations: 166.3 kB / 0.8552 GB, free: 61.1 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003755/2.541, allocations: 0.9912 MB / 0.8561 GB, free: 60.08 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002597/2.542, allocations: 234.3 kB / 0.8563 GB, free: 59.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004405/2.542, allocations: 103.3 kB / 0.8564 GB, free: 59.73 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004705/2.547, allocations: 1.769 MB / 0.8582 GB, free: 57.91 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.678e-05/2.547, allocations: 0 / 0.8582 GB, free: 57.91 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002665/2.547, allocations: 46.02 kB / 0.8582 GB, free: 57.88 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002182/2.547, allocations: 102 kB / 0.8583 GB, free: 57.77 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005267/2.553, allocations: 1.722 MB / 0.86 GB, free: 56.04 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02246/2.575, allocations: 6.832 MB / 0.8667 GB, free: 49.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005525/2.581, allocations: 1.423 MB / 0.8681 GB, free: 47.59 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003092/2.584, allocations: 0.8313 MB / 0.8689 GB, free: 46.76 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02088/2.605, allocations: 3.97 MB / 0.8727 GB, free: 42.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.744e-05/2.605, allocations: 51.56 kB / 0.8728 GB, free: 42.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=110): time 5.3e-06/2.605, allocations: 0 / 0.8728 GB, free: 42.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=122): time 0.04704/2.652, allocations: 4.606 MB / 0.8773 GB, free: 37.83 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.886e-05/2.652, allocations: 145.5 kB / 0.8774 GB, free: 37.66 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001982/2.654, allocations: 0.9667 MB / 0.8784 GB, free: 36.67 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004199/2.655, allocations: 53.7 kB / 0.8784 GB, free: 36.61 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004339/2.655, allocations: 0.5059 MB / 0.8789 GB, free: 36.11 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005906/2.656, allocations: 418.6 kB / 0.8793 GB, free: 35.7 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001706/2.656, allocations: 28 kB / 0.8793 GB, free: 35.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000118/2.656, allocations: 366.8 kB / 0.8797 GB, free: 35.31 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001989/2.658, allocations: 0.738 MB / 0.8804 GB, free: 34.57 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002075/2.66, allocations: 0.998 MB / 0.8814 GB, free: 33.48 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002079/2.662, allocations: 0.813 MB / 0.8822 GB, free: 32.67 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/2.662, allocations: 0 / 0.8822 GB, free: 32.67 MB / 362.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.006752/2.669, allocations: 2.327 MB / 0.8845 GB, free: 30.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005211/2.669, allocations: 2.364 MB / 0.8868 GB, free: 27.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.723e-05/2.669, allocations: 7.984 kB / 0.8868 GB, free: 27.76 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006196/2.676, allocations: 1.207 MB / 0.8879 GB, free: 26.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00214/2.678, allocations: 219.7 kB / 0.8882 GB, free: 26.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00813/2.686, allocations: 6.173 MB / 0.8942 GB, free: 19.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002688/2.689, allocations: 91.84 kB / 0.8943 GB, free: 19.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000251/2.689, allocations: 70.62 kB / 0.8943 GB, free: 19.69 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/2.689, allocations: 4 kB / 0.8943 GB, free: 19.68 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005667/2.695, allocations: 2.002 MB / 0.8963 GB, free: 17.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.958e-05/2.695, allocations: 8 kB / 0.8963 GB, free: 17.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003175/2.698, allocations: 0.7459 MB / 0.897 GB, free: 16.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002093/2.7, allocations: 239.6 kB / 0.8973 GB, free: 16.67 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007394/2.707, allocations: 6.734 MB / 0.9038 GB, free: 9.504 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001917/2.709, allocations: 95.97 kB / 0.9039 GB, free: 9.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002058/2.71, allocations: 63.97 kB / 0.904 GB, free: 9.348 MB / 362.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.000589/2.71, allocations: 180.7 kB / 0.9042 GB, free: 9.164 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004542/2.711, allocations: 130.4 kB / 0.9043 GB, free: 9.035 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00773/2.718, allocations: 2.561 MB / 0.9068 GB, free: 6.453 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.335e-05/2.719, allocations: 24 kB / 0.9068 GB, free: 6.43 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/2.719, allocations: 3.938 kB / 0.9068 GB, free: 6.426 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.784e-05/2.719, allocations: 7.969 kB / 0.9068 GB, free: 6.418 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01049/2.729, allocations: 4.149 MB / 0.9109 GB, free: 2.227 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-05/2.729, allocations: 3.984 kB / 0.9109 GB, free: 2.223 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001548/2.731, allocations: 144.3 kB / 0.911 GB, free: 2.082 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005523/2.736, allocations: 1.202 MB / 0.9122 GB, free: 0.8672 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003816/2.737, allocations: 39.97 kB / 0.9122 GB, free: 0.8281 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2801/3.017, allocations: 6.188 MB / 0.9183 GB, free: 60.41 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/3.017, allocations: 1.375 kB / 0.9183 GB, free: 60.41 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009013/3.026, allocations: 3.541 MB / 0.9217 GB, free: 60.22 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001358/3.027, allocations: 437.1 kB / 0.9221 GB, free: 60.13 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000347/3.028, allocations: 27.03 kB / 0.9222 GB, free: 60.13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00204/3.03, allocations: 97.92 kB / 0.9223 GB, free: 60.12 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004651/3.03, allocations: 136.6 kB / 0.9224 GB, free: 60.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002056/3.03, allocations: 56.58 kB / 0.9225 GB, free: 60.12 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001424/3.032, allocations: 0.7379 MB / 0.9232 GB, free: 60.01 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.41e-07/3.032, allocations: 0 / 0.9232 GB, free: 60.01 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004587/3.036, allocations: 1.116 MB / 0.9243 GB, free: 60.01 MB / 362.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.01161/3.048, allocations: 4.805 MB / 0.929 GB, free: 59.24 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01103/3.059, allocations: 3.541 MB / 0.9324 GB, free: 58.63 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/3.059, allocations: 0.7656 kB / 0.9324 GB, free: 58.63 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004603/3.064, allocations: 1.309 MB / 0.9337 GB, free: 58.39 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004713/3.069, allocations: 0.5356 MB / 0.9342 GB, free: 58.38 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01325/3.082, allocations: 3.149 MB / 0.9373 GB, free: 57.85 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000926/3.083, allocations: 1.285 MB / 0.9385 GB, free: 57.13 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001399/3.084, allocations: 0.5304 MB / 0.9391 GB, free: 57.12 MB / 362.7 MB Notification: Performance of SimCode: time 1.202e-06/3.084, allocations: 6.5 kB / 0.9391 GB, free: 57.12 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.829/6.913, allocations: 56.79 MB / 0.9945 GB, free: 40.78 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat