Thermodynamic fluctuations in solar photospheric three-dimensional convection simulations and observations