Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Occasional CVODES failure on OSX in BirthDeath example #17

Open
dweindl opened this issue Apr 20, 2018 · 7 comments
Open

Occasional CVODES failure on OSX in BirthDeath example #17

dweindl opened this issue Apr 20, 2018 · 7 comments

Comments

@dweindl
Copy link
Member

dweindl commented Apr 20, 2018

Works on Ubuntu, fails on OSX:

[CVODES ERROR]  CVode
  At t = 1.51964e-13, mxstep steps taken before reaching tout.
SUNDIALS_ERROR: CVodefailed with flag = -1
Traceback (most recent call last):
  File "models/BirthDeath.py", line 221, in <module>
    MRE, Var, Sens_MRE, Sens_Var,Sens2_MRE,Sens2_Var = BirthDeathLNA.LNA(Theta, tspan, Y0=MRE0, V0=Var0, merr=VarNoise, obsVar=ObsIndex, computeSens2=True)
BirthDeath.error: Error encountered during computation.

See https://travis-ci.org/ICB-DCM/LNAplusplus/jobs/369133949

@JanHasenauer
Copy link
Member

hm, works for the matlab branch

@dweindl
Copy link
Member Author

dweindl commented Apr 20, 2018

Okay, apparently this is not reproducible. The subsequent build worked:
https://travis-ci.org/ICB-DCM/LNAplusplus/jobs/369134440

@dweindl
Copy link
Member Author

dweindl commented Apr 20, 2018

May also occur with 1st-order sensitiivities:

[CVODES ERROR]  CVode
  At t = 0 and h = 2.0825e-16, the corrector convergence test failed repeatedly or with |h| = hmin.
SUNDIALS_ERROR: CVodefailed with flag = -4
Traceback (most recent call last):
  File "models/BirthDeath.py", line 197, in <module>
    MRE, Var, Sens_MRE, Sens_Var = BirthDeathLNA.LNA(Theta, tspan, Y0=MRE0, V0=Var0, merr=VarNoise, obsVar=ObsIndex, computeSens=True)
BirthDeath.error: Error encountered during computation.

https://travis-ci.org/ICB-DCM/LNAplusplus/jobs/369151965

@JanHasenauer
Copy link
Member

strange. the whole thing should be deterministic.

@dweindl
Copy link
Member Author

dweindl commented Apr 20, 2018

Can't find anything suspicious when checking with valgrind (on Ubuntu). Not sure what is wrong there. So far only happened on OSX.

@JanHasenauer
Copy link
Member

I tested it now on my mac under python. everything was running without an issue.

@dweindl
Copy link
Member Author

dweindl commented Apr 21, 2018

This is pretty random. Happens with both clang and gcc, but only on osx. Should try different xcode or osx versions to narrow it down. @JanHasenauer Which versions are you using?

@dweindl dweindl changed the title CVODES failure on OSX in BirthDeath example when computing 2nd order sensitivities Occasional CVODES failure on OSX in BirthDeath example Apr 22, 2018
dweindl added a commit that referenced this issue Apr 22, 2018
dweindl added a commit that referenced this issue Apr 22, 2018
dweindl added a commit that referenced this issue Apr 22, 2018
dweindl added a commit that referenced this issue Apr 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants