MAINT: in integrate.ode, generate understandable error for f2py issue.
MAINT: in integrate.ode, generate understandable error for f2py issue.

Closes ticket 1187.  Note that this cannot be tested without a warning message
being printed by vodemodule.c, even when redirecting stderr::

    import sys
    from scipy import integrate

    class RedirectStdStreams(object):
        def __init__(self, stdout=None, stderr=None):
            self._stdout = stdout or sys.stdout
            self._stderr = stderr or sys.stderr

        def __enter__(self):
            self.old_stdout, self.old_stderr = sys.stdout, sys.stderr
            self.old_stdout.flush(); self.old_stderr.flush()
            sys.stdout, sys.stderr = self._stdout, self._stderr

        def __exit__(self, exc_type, exc_value, traceback):
            self._stdout.flush(); self._stderr.flush()
            sys.stdout = self.old_stdout

    y0, t0 = [1.0j, 2.0], 0
    def f(t, y, arg1):
        return (1j*arg1*y[0] + y[1], -arg1*y[1]**2)

    def jac(t, y, arg1):
        return [[1j*arg1, 1], [0, -arg1*2*y[1]]]

    with RedirectStdStreams():
        r = integrate.ode(f, jac).set_integrator('zvode', method='bdf', with_jacobian=True)
        r.set_initial_value(y0, t0).set_f_params(2.0).set_jac_params(2.0)
        t1 = 10
        dt = 1
        while r.successful() and r.t < t1:
            r.integrate(r.t+dt)

Newman101/scipy,njwilson23/scipy,Gillu13/scipy,jamestwebber/scipy,sriki18/scipy,anntzer/scipy,zaxliu/scipy,Eric89GXL/scipy,WarrenWeckesser/scipy,surhudm/scipy,minhlongdo/scipy,ilayn/scipy,scipy/scipy,nmayorov/scipy,grlee77/scipy,ortylp/scipy,njwilson23/scipy,nonhermitian/scipy,person142/scipy,anielsen001/scipy,niknow/scipy,woodscn/scipy,fredrikw/scipy,jor-/scipy,pbrod/scipy,sonnyhu/scipy,jor-/scipy,Newman101/scipy,ortylp/scipy,jsilter/scipy,pbrod/scipy,niknow/scipy,giorgiop/scipy,jonycgn/scipy,ales-erjavec/scipy,kalvdans/scipy,mgaitan/scipy,ortylp/scipy,anntzer/scipy,haudren/scipy,maniteja123/scipy,vanpact/scipy,Newman101/scipy,tylerjereddy/scipy,newemailjdm/scipy,gdooper/scipy,cpaulik/scipy,fernand/scipy,gef756/scipy,fredrikw/scipy,vanpact/scipy,anielsen001/scipy,Kamp9/scipy,nvoron23/scipy,mortonjt/scipy,josephcslater/scipy,apbard/scipy,njwilson23/scipy,sonnyhu/scipy,surhudm/scipy,raoulbq/scipy,gfyoung/scipy,haudren/scipy,jor-/scipy,ortylp/scipy,rgommers/scipy,pizzathief/scipy,sauliusl/scipy,andyfaff/scipy,Stefan-Endres/scipy,perimosocordiae/scipy,sauliusl/scipy,Srisai85/scipy,pnedunuri/scipy,gfyoung/scipy,kleskjr/scipy,felipebetancur/scipy,Eric89GXL/scipy,ChanderG/scipy,FRidh/scipy,vanpact/scipy,FRidh/scipy,rmcgibbo/scipy,dominicelse/scipy,sargas/scipy,nmayorov/scipy,chatcannon/scipy,jamestwebber/scipy,vberaudi/scipy,mgaitan/scipy,fernand/scipy,FRidh/scipy,gfyoung/scipy,raoulbq/scipy,minhlongdo/scipy,lhilt/scipy,ogrisel/scipy,efiring/scipy,mhogg/scipy,niknow/scipy,pbrod/scipy,Shaswat27/scipy,mdhaber/scipy,jseabold/scipy,zerothi/scipy,endolith/scipy,apbard/scipy,andim/scipy,matthewalbani/scipy,fernand/scipy,pbrod/scipy,argriffing/scipy,zaxliu/scipy,mhogg/scipy,pschella/scipy,sonnyhu/scipy,ortylp/scipy,futurulus/scipy,mtrbean/scipy,mortada/scipy,mikebenfield/scipy,maniteja123/scipy,andyfaff/scipy,dominicelse/scipy,befelix/scipy,scipy/scipy,e-q/scipy,behzadnouri/scipy,zerothi/scipy,gertingold/scipy,larsmans/scipy,surhudm/scipy,Gillu13/scipy,nmayorov/scipy,matthewalbani/scipy,woodscn/scipy,dch312/scipy,pizzathief/scipy,mtrbean/scipy,mortada/scipy,dch312/scipy,aarchiba/scipy,sargas/scipy,apbard/scipy,ogrisel/scipy,WillieMaddox/scipy,tylerjereddy/scipy,aeklant/scipy,piyush0609/scipy,vberaudi/scipy,kalvdans/scipy,aarchiba/scipy,nvoron23/scipy,andyfaff/scipy,haudren/scipy,zaxliu/scipy,giorgiop/scipy,hainm/scipy,futurulus/scipy,mortonjt/scipy,cpaulik/scipy,Gillu13/scipy,perimosocordiae/scipy,jjhelmus/scipy,vhaasteren/scipy,sonnyhu/scipy,pyramania/scipy,chatcannon/scipy,mdhaber/scipy,mortonjt/scipy,pyramania/scipy,niknow/scipy,josephcslater/scipy,perimosocordiae/scipy,nonhermitian/scipy,josephcslater/scipy,niknow/scipy,jamestwebber/scipy,efiring/scipy,nvoron23/scipy,josephcslater/scipy,ortylp/scipy,pnedunuri/scipy,trankmichael/scipy,matthewalbani/scipy,vigna/scipy,gef756/scipy,maciejkula/scipy,jsilter/scipy,witcxc/scipy,ndchorley/scipy,pnedunuri/scipy,ChanderG/scipy,witcxc/scipy,WarrenWeckesser/scipy,pizzathief/scipy,Kamp9/scipy,ales-erjavec/scipy,argriffing/scipy,Dapid/scipy,petebachant/scipy,mikebenfield/scipy,newemailjdm/scipy,kalvdans/scipy,sonnyhu/scipy,piyush0609/scipy,argriffing/scipy,WillieMaddox/scipy,trankmichael/scipy,jseabold/scipy,jseabold/scipy,efiring/scipy,gdooper/scipy,efiring/scipy,gdooper/scipy,matthew-brett/scipy,maniteja123/scipy,rgommers/scipy,giorgiop/scipy,aarchiba/scipy,befelix/scipy,aeklant/scipy,sargas/scipy,raoulbq/scipy,apbard/scipy,Stefan-Endres/scipy,niknow/scipy,sargas/scipy,person142/scipy,rmcgibbo/scipy,Shaswat27/scipy,sauliusl/scipy,njwilson23/scipy,behzadnouri/scipy,richardotis/scipy,richardotis/scipy,nmayorov/scipy,sriki18/scipy,witcxc/scipy,juliantaylor/scipy,ilayn/scipy,pyramania/scipy,gef756/scipy,hainm/scipy,gertingold/scipy,futurulus/scipy,futurulus/scipy,ChanderG/scipy,behzadnouri/scipy,juliantaylor/scipy,Kamp9/scipy,woodscn/scipy,scipy/scipy,dch312/scipy,endolith/scipy,zaxliu/scipy,pnedunuri/scipy,witcxc/scipy,witcxc/scipy,mortonjt/scipy,zerothi/scipy,argriffing/scipy,zxsted/scipy,FRidh/scipy,aarchiba/scipy,jor-/scipy,petebachant/scipy,piyush0609/scipy,nmayorov/scipy,mingwpy/scipy,apbard/scipy,anntzer/scipy,Shaswat27/scipy,anntzer/scipy,endolith/scipy,dch312/scipy,WillieMaddox/scipy,lhilt/scipy,hainm/scipy,vanpact/scipy,vigna/scipy,FRidh/scipy,hainm/scipy,maciejkula/scipy,fernand/scipy,gdooper/scipy,Gillu13/scipy,nonhermitian/scipy,fernand/scipy,chatcannon/scipy,minhlongdo/scipy,fredrikw/scipy,gertingold/scipy,mikebenfield/scipy,behzadnouri/scipy,lukauskas/scipy,pizzathief/scipy,FRidh/scipy,rmcgibbo/scipy,rgommers/scipy,ales-erjavec/scipy,Stefan-Endres/scipy,piyush0609/scipy,vanpact/scipy,aman-iitj/scipy,vigna/scipy,larsmans/scipy,giorgiop/scipy,person142/scipy,sauliusl/scipy,zaxliu/scipy,jakevdp/scipy,nvoron23/scipy,richardotis/scipy,mingwpy/scipy,WarrenWeckesser/scipy,woodscn/scipy,lukauskas/scipy,newemailjdm/scipy,Kamp9/scipy,kalvdans/scipy,aeklant/scipy,gef756/scipy,sriki18/scipy,mingwpy/scipy,tylerjereddy/scipy,Srisai85/scipy,mtrbean/scipy,juliantaylor/scipy,befelix/scipy,woodscn/scipy,dominicelse/scipy,endolith/scipy,mdhaber/scipy,mgaitan/scipy,lukauskas/scipy,juliantaylor/scipy,Dapid/scipy,nvoron23/scipy,jseabold/scipy,chatcannon/scipy,anielsen001/scipy,ilayn/scipy,Srisai85/scipy,raoulbq/scipy,WillieMaddox/scipy,grlee77/scipy,chatcannon/scipy,jor-/scipy,petebachant/scipy,Stefan-Endres/scipy,newemailjdm/scipy,kleskjr/scipy,mdhaber/scipy,cpaulik/scipy,richardotis/scipy,ndchorley/scipy,petebachant/scipy,jseabold/scipy,surhudm/scipy,zxsted/scipy,aarchiba/scipy,felipebetancur/scipy,jjhelmus/scipy,andyfaff/scipy,zxsted/scipy,vhaasteren/scipy,jjhelmus/scipy,nonhermitian/scipy,pnedunuri/scipy,andyfaff/scipy,pschella/scipy,trankmichael/scipy,matthewalbani/scipy,sriki18/scipy,mtrbean/scipy,matthew-brett/scipy,jjhelmus/scipy,jamestwebber/scipy,Kamp9/scipy,ndchorley/scipy,fernand/scipy,lhilt/scipy,andim/scipy,mhogg/scipy,mikebenfield/scipy,Eric89GXL/scipy,newemailjdm/scipy,aman-iitj/scipy,ogrisel/scipy,njwilson23/scipy,mortada/scipy,aman-iitj/scipy,gef756/scipy,arokem/scipy,e-q/scipy,minhlongdo/scipy,giorgiop/scipy,jakevdp/scipy,jseabold/scipy,mhogg/scipy,minhlongdo/scipy,zerothi/scipy,bkendzior/scipy,pbrod/scipy,pnedunuri/scipy,zaxliu/scipy,kleskjr/scipy,futurulus/scipy,jsilter/scipy,Stefan-Endres/scipy,ales-erjavec/scipy,pyramania/scipy,anntzer/scipy,haudren/scipy,Eric89GXL/scipy,jamestwebber/scipy,trankmichael/scipy,Srisai85/scipy,larsmans/scipy,trankmichael/scipy,Eric89GXL/scipy,lukauskas/scipy,Newman101/scipy,mortonjt/scipy,larsmans/scipy,mortada/scipy,jakevdp/scipy,fredrikw/scipy,felipebetancur/scipy,Shaswat27/scipy,zerothi/scipy,aman-iitj/scipy,grlee77/scipy,WillieMaddox/scipy,bkendzior/scipy,giorgiop/scipy,petebachant/scipy,vhaasteren/scipy,Dapid/scipy,aman-iitj/scipy,mtrbean/scipy,pizzathief/scipy,arokem/scipy,petebachant/scipy,Dapid/scipy,sauliusl/scipy,piyush0609/scipy,zxsted/scipy,jakevdp/scipy,jonycgn/scipy,ndchorley/scipy,gfyoung/scipy,ilayn/scipy,jakevdp/scipy,vhaasteren/scipy,bkendzior/scipy,kleskjr/scipy,richardotis/scipy,Gillu13/scipy,ChanderG/scipy,WillieMaddox/scipy,gertingold/scipy,e-q/scipy,anielsen001/scipy,mortonjt/scipy,mdhaber/scipy,Shaswat27/scipy,behzadnouri/scipy,matthewalbani/scipy,mgaitan/scipy,maciejkula/scipy,ogrisel/scipy,vanpact/scipy,mingwpy/scipy,Srisai85/scipy,WarrenWeckesser/scipy,scipy/scipy,Kamp9/scipy,cpaulik/scipy,scipy/scipy,WarrenWeckesser/scipy,matthew-brett/scipy,jsilter/scipy,felipebetancur/scipy,andim/scipy,sonnyhu/scipy,maciejkula/scipy,cpaulik/scipy,trankmichael/scipy,surhudm/scipy,nonhermitian/scipy,mortada/scipy,pyramania/scipy,minhlongdo/scipy,lukauskas/scipy,endolith/scipy,vberaudi/scipy,efiring/scipy,aeklant/scipy,jonycgn/scipy,ndchorley/scipy,vigna/scipy,futurulus/scipy,behzadnouri/scipy,bkendzior/scipy,ChanderG/scipy,argriffing/scipy,larsmans/scipy,andyfaff/scipy,surhudm/scipy,person142/scipy,juliantaylor/scipy,dominicelse/scipy,Srisai85/scipy,rmcgibbo/scipy,vigna/scipy,Newman101/scipy,mgaitan/scipy,ndchorley/scipy,felipebetancur/scipy,zxsted/scipy,mhogg/scipy,rmcgibbo/scipy,zxsted/scipy,lukauskas/scipy,e-q/scipy,befelix/scipy,nvoron23/scipy,bkendzior/scipy,maciejkula/scipy,gfyoung/scipy,rgommers/scipy,mhogg/scipy,ales-erjavec/scipy,gdooper/scipy,rgommers/scipy,person142/scipy,ogrisel/scipy,haudren/scipy,e-q/scipy,vberaudi/scipy,ilayn/scipy,fredrikw/scipy,anielsen001/scipy,lhilt/scipy,arokem/scipy,sargas/scipy,newemailjdm/scipy,Gillu13/scipy,maniteja123/scipy,WarrenWeckesser/scipy,gertingold/scipy,chatcannon/scipy,maniteja123/scipy,larsmans/scipy,vberaudi/scipy,Eric89GXL/scipy,dch312/scipy,vberaudi/scipy,grlee77/scipy,jonycgn/scipy,jjhelmus/scipy,befelix/scipy,rmcgibbo/scipy,vhaasteren/scipy,aman-iitj/scipy,tylerjereddy/scipy,piyush0609/scipy,woodscn/scipy,gef756/scipy,matthew-brett/scipy,dominicelse/scipy,jonycgn/scipy,pschella/scipy,anielsen001/scipy,andim/scipy,haudren/scipy,felipebetancur/scipy,mdhaber/scipy,josephcslater/scipy,sriki18/scipy,kalvdans/scipy,Newman101/scipy,Stefan-Endres/scipy,Dapid/scipy,ilayn/scipy,andim/scipy,zerothi/scipy,tylerjereddy/scipy,mingwpy/scipy,mingwpy/scipy,kleskjr/scipy,hainm/scipy,sauliusl/scipy,scipy/scipy,kleskjr/scipy,Shaswat27/scipy,pbrod/scipy,arokem/scipy,hainm/scipy,Dapid/scipy,andim/scipy,richardotis/scipy,mikebenfield/scipy,mortada/scipy,mgaitan/scipy,ales-erjavec/scipy,jsilter/scipy,ChanderG/scipy,raoulbq/scipy,mtrbean/scipy,vhaasteren/scipy,endolith/scipy,arokem/scipy,cpaulik/scipy,perimosocordiae/scipy,fredrikw/scipy,perimosocordiae/scipy,maniteja123/scipy,pschella/scipy,aeklant/scipy,jonycgn/scipy,grlee77/scipy,perimosocordiae/scipy,lhilt/scipy,efiring/scipy,pschella/scipy,njwilson23/scipy,matthew-brett/scipy,raoulbq/scipy,anntzer/scipy,sriki18/scipy,argriffing/scipy