Optimized pump speed control using pump water flow station for HVAC systems