-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
ModelingToolkit extension completely freezing Julia #360
Comments
Many thanks for reporting ! I am looking into this |
I just tried with Julia 1.10.0 and was not able to reproduce the problem: both versions ( Environment:
|
Two observations so far:
|
It seems like it is hanging due to some kind of type inference. Cutting the compiler shows that the compiler is hanging in
The timings before I cut it are here:
|
Many thanks ! I will look closer into this function |
Could be related : #362 |
We are now seeing it crashing / hanging CI when just loading the extension on 1.11: https://github.com/SciML/Catalyst.jl/actions/runs/11239742228/job/31248152175?pr=1053#step:6:1197 |
CI crash on 1.11 seems to be a bug in Julia from JuliaLang/julia#56040. The freeze from the current issue seems to be of different nature: it manifests in 1.10.5 and the offending commit from JuliaLang/julia#56040 is not present in 1.10.5. @pogudingleb How do we debug the freeze in the current issue? The functions |
Very elusive behaviour. Even if I take out the original code from the function: using ModelingToolkit
using StructuralIdentifiability
const SI = StructuralIdentifiability
t = ModelingToolkit.t_nounits
D = ModelingToolkit.D_nounits
@variables X(t)
@parameters p d
eqs = [
D(X) ~ p - d*X
]
@mtkbuild osys = ODESystem(eqs, t)
measured_quantities = [X]
funcs_to_check = [osys.p]
SI.assess_identifiability(osys; measured_quantities, funcs_to_check) It also works fine ! But being enclosed in a function, it hangs... |
Hi, is there any update on this? Is it fixed on 1.10.6 and 1.11.2 (I know the latter isn't released yet, but given it should be soon that would close this issue I think)? |
(I'm just trying to figure out if we can reenable the Catalyst SI extension for our next release or will have to keep it disabled.) |
Sorry, I was busy recently and the bug is tricky so the several hours I could spend were not enough to understand the problem. I will double check that it works on 1.10.6 and 1.11.2 and, if yes, close the issue. It seems that the SI code is completely legal and was not precompiling correctly for some extraterrestrial reason. |
Nope, it hangs as well on 1.10.6. |
Ah, darn. Thanks for checking! |
causes Julia to completely hang (as reported on Slack by @TorkelE).
Note that changing to
funcs_to_check = [p]
fixes the problem.Environment:
on Julia 1.10.5.
The text was updated successfully, but these errors were encountered: