using DASSL
u0 = [1.0, 0, 0]
du0 = [-0.04, 0.04, 0.0]
tspan = (0.0,100000.0)
function resrob(r,yp,y,p,t)
r[1] = -0.04y[1] + 1.0e4y[2]y[3]
r[2] = -r[1] - 3.0e7y[2]*y[2] - yp[2]
r[1] -= yp[1]
r[3] = y[1] + y[2] + y[3] - 1.0
end
prob = DAEProblem(resrob,u0,du0,tspan)
sol = solve(prob, dassl())
ERROR: LinearAlgebra.LAPACKException(1)
Stacktrace:
[1] check_channel_state at .\channels.jl:120 [inlined]
[2] take_unbuffered(::Channel{Any}) at .\channels.jl:318
[3] take! at .\channels.jl:306 [inlined]
[4] iterate(::Channel{Any}, ::Nothing) at .\channels.jl:386
[5] iterate at .\channels.jl:385 [inlined]
[6] #dasslSolve#16(::Array{Float64,1}, ::Base.Iterators.Pairs{Symbol,Real,NTuple{7,Symbol},NamedTuple{(:abstol, :reltol, :maxstep, :minstep, :initstep, :maxorder, :factorize_jacobian),Tuple{Float64,Float64,Float64,Float64,Float64,Int64,Bool}}}, ::Function, ::Function, ::Array{Float64,1}, ::Array{Float64,1}) at C:\Users\hzgzh.julia\packages\DASSL\ZVHVR\src\DASSL.jl:163
[7] (::getfield(DASSL, Symbol("#kw##dasslSolve")))(::NamedTuple{(:abstol, :reltol, :maxstep, :minstep, :initstep, :maxorder, :factorize_jacobian),Tuple{Float64,Float64,Float64,Float64,Float64,Int64,Bool}}, ::typeof(dasslSolve), ::Function, ::Array{Float64,1}, ::Array{Float64,1}) at .\none:0
[8] #solve#2(::Bool, ::Float64, ::Float64, ::Float64, ::Float64, ::Float64, ::Nothing, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(solve), ::DAEProblem{Array{Float64,1},Array{Float64,1},Tuple{Float64,Float64},true,Nothing,DAEFunction{true,typeof(resrob),Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Nothing,Nothing}, ::dassl) at C:\Users\hzgzh.julia\packages\DASSL\ZVHVR\src\common.jl:36
[9] solve(::DAEProblem{Array{Float64,1},Array{Float64,1},Tuple{Float64,Float64},true,Nothing,DAEFunction{true,typeof(resrob),Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Nothing,Nothing}, ::dassl)
at C:\Users\hzgzh.julia\packages\DASSL\ZVHVR\src\common.jl:15
[10] top-level scope at none:0