Performance analysis of piecewise linear systems and model predictive control systems