Added log of qpproblem in matlab format when error occurs.