Adapt asserts for second order
Adapt asserts for second order

FFroehlich/AMICI,AMICI-developer/AMICI,AMICI-developer/AMICI,AMICI-developer/AMICI,FFroehlich/AMICI,FFroehlich/AMICI,FFroehlich/AMICI,AMICI-developer/AMICI