Density measurement at high pressure