Massive Galaxies in Cosmological Simulations: Ultraviolet-selected Sample at Redshift z = 2