Why use the entire height of the dam if only the top two meters allows water through? The cross sectional area of water flow is 500x2=1000m^2, and rate of flow is 5m/sec, so volume flow is 1000x5=5000m^3/sec
density is 1000kg/m^3, so mass of flow is 5000x1000=5x10^6kg/sec