============================= test session starts ==============================
platform linux -- Python 3.7.7, pytest-5.4.3, py-1.9.0, pluggy-0.13.1
rootdir: /home/aryaman4/torchdiffeq
collected 42 items

run_all.py ...............F.F........................                    [100%]

=================================== FAILURES ===================================
_________ TestCompareAdjointGradient.test_adams_adjoint_against_dopri5 _________

self = <gradient_tests.TestCompareAdjointGradient testMethod=test_adams_adjoint_against_dopri5>

    def test_adams_adjoint_against_dopri5(self):
        func, y0, t_points = self.problem()
        ys_ = torchdiffeq.odeint_adjoint(func, y0, t_points, method='adams')
        gradys = torch.rand_like(ys_) * 0.1
        ys_.backward(gradys)
    
        adj_y0_grad = y0.grad
        adj_t_grad = t_points.grad
        adj_A_grad = func.A.grad
        self.assertEqual(max_abs(func.unused_module.weight.grad), 0)
        self.assertEqual(max_abs(func.unused_module.bias.grad), 0)
    
        func, y0, t_points = self.problem()
        ys = torchdiffeq.odeint(func, y0, t_points, method='dopri5')
        ys.backward(gradys)
    
>       self.assertLess(max_abs(y0.grad - adj_y0_grad), 5e-2)
E       AssertionError: tensor(0.1377) not less than 0.05

gradient_tests.py:146: AssertionError
__________________________ TestSolverError.test_adams __________________________

self = <odeint_tests.TestSolverError testMethod=test_adams>

    def test_adams(self):
        for ode in problems.PROBLEMS.keys():
            f, y0, t_points, sol = problems.construct_problem(TEST_DEVICE, ode=ode)
            y = torchdiffeq.odeint(f, y0, t_points, method='adams')
            with self.subTest(ode=ode):
>               self.assertLess(rel_error(sol, y), error_tol)
E               AssertionError: tensor(0.0006, grad_fn=<MaxBackward1>) not less than 0.0001

odeint_tests.py:52: AssertionError
=============================== warnings summary ===============================
tests/run_all.py::TestSolverError::test_adams
  /home/aryaman4/anaconda3/envs/torchdiffeq/lib/python3.7/importlib/_bootstrap.py:219: RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility. Expected 192 from C header, got 216 from PyObject
    return f(*args, **kwds)

-- Docs: https://docs.pytest.org/en/latest/warnings.html
============================ slowest test durations ============================
35.05s call     tests/run_all.py::TestSolverError::test_adaptive_heun
15.17s call     tests/run_all.py::TestCompareAdjointGradient::test_adams_adjoint_against_dopri5
2.91s call     tests/run_all.py::TestCompareAdjointGradient::test_dopri5_adjoint_against_dopri5
1.46s call     tests/run_all.py::TestCollectionState::test_dopri8_gradient
1.10s call     tests/run_all.py::TestCollectionState::test_adams_gradient
0.88s call     tests/run_all.py::TestCollectionState::test_dopri5_gradient
0.54s call     tests/run_all.py::TestCollectionState::test_adaptive_heun_gradient
0.48s call     tests/run_all.py::TestGradient::test_dopri8
0.41s call     tests/run_all.py::TestGradient::test_adams
0.38s call     tests/run_all.py::TestSolverError::test_dopri8
0.30s call     tests/run_all.py::TestGradient::test_dopri5
0.19s call     tests/run_all.py::TestGradient::test_adaptive_heun
0.17s call     tests/run_all.py::TestSolverError::test_dopri5
0.15s call     tests/run_all.py::TestSolverError::test_adams
0.14s call     tests/run_all.py::TestGradient::test_rk4
0.14s call     tests/run_all.py::TestGradient::test_adjoint
0.07s call     tests/run_all.py::TestGradient::test_midpoint
0.04s call     tests/run_all.py::TestSolverBackwardsInTimeError::test_dopri8
0.03s call     tests/run_all.py::TestSolverBackwardsInTimeError::test_adams
0.03s call     tests/run_all.py::TestSolverBackwardsInTimeError::test_dopri5
0.02s call     tests/run_all.py::TestCollectionState::test_dopri8
0.02s call     tests/run_all.py::TestCollectionState::test_adams
0.02s call     tests/run_all.py::TestSolverError::test_adjoint
0.02s call     tests/run_all.py::TestSolverBackwardsInTimeError::test_adjoint
0.02s call     tests/run_all.py::TestSolverBackwardsInTimeError::test_adaptive_heun
0.01s call     tests/run_all.py::TestCollectionState::test_dopri5
0.01s call     tests/run_all.py::TestCollectionState::test_adaptive_heun

(0.00 durations hidden.  Use -vv to show these durations.)
=========================== short test summary info ============================
FAILED run_all.py::TestCompareAdjointGradient::test_adams_adjoint_against_dopri5
FAILED run_all.py::TestSolverError::test_adams - AssertionError: tensor(0.000...
============== 2 failed, 40 passed, 1 warning in 60.25s (0:01:00) ==============
