Necessary conditions for optimal control problems with sweeping systems and end point constraints. (2nd November 2022)