Reduced basis modeling of hierarchical flow systems