Changed LOG_EVENT to LOG_CONSTRAINT; fixed numerical derivative evaluation of contact accelerations