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

Issue with useSparseJac #130

Open
JoepVanlier opened this issue Aug 7, 2018 · 0 comments
Open

Issue with useSparseJac #130

JoepVanlier opened this issue Aug 7, 2018 · 0 comments
Assignees
Labels

Comments

@JoepVanlier
Copy link
Member

It seems that ar.config.useSparseJac is set to 1 in arCompileAll in paricular cases? There's already a default for useSparseJac in arInitFields (which is 0). I've reversed the logic in commit db4e312 , since it seems strange to use a sparse jac when you set the flag to 0.

I have a model where if useSparseJac is set to one, the model crashes (including MATLAB).

The error I see in the terminal is:
*** Error in `/usr/local/MATLAB/R2017a/bin/glnxa64/MATLAB': realloc(): invalid next size: 0x00007fb92cd74510 ***

In MATLAB the following is displayed when simulating with full error info:
image

Example case where it happens here:
crashcase.zip

@JoepVanlier JoepVanlier added the bug label Aug 7, 2018
@JoepVanlier JoepVanlier removed their assignment Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants