Title: Optimal control of differential systems with discontinuous right-hand side