Sedimentation tanks provided with a plurality of compartments separated by a partition wall