Hello Julia experts. I am getting the following error message randomly while running an optimization in a for loop.
Can someone help me to identify the issue?
julia> status = solve(m2)
in callback catch
ERROR: Base.LinAlg.LAPACKException(1)
Stacktrace:
[1] chklapackerror(::Int64) at ./linalg/lapack.jl:34
[2] trtrs!(::Char, ::Char, ::Char, ::Array{Float64,2}, ::Array{Float64,2}) at ./linalg/lapack.jl:3291
[3] inv at ./linalg/triangular.jl:536 [inlined]
[4] inv(::Array{Float64,2}) at ./linalg/dense.jl:655
[5] myf2(::Float64, ::Float64, ::Float64, ::Float64, ::Float64, ::Float64, ::Float64, ::Float64, ::Float64, ::Float64) at ./REPL[94]:13
[6] (::JuMP.##166#168{#myf2})(::SubArray{Float64,1,Array{Float64,1},Tuple{UnitRange{Int64}},true}) at /Users/jangikcho/.julia/v0.6/JuMP/src/nlp.jl:1363
[7] eval_f(::JuMP.UserFunctionEvaluator, ::SubArray{Float64,1,Array{Float64,1},Tuple{UnitRange{Int64}},true}) at /Users/jangikcho/.julia/v0.6/JuMP/src/nlp.jl:1355
[8] #forward_eval#7(::ReverseDiffSparse.UserOperatorRegistry, ::Function, ::Array{Float64,1}, ::Array{Float64,1}, ::Array{ReverseDiffSparse.NodeData,1}, ::SparseMatrixCSC{Bool,Int64}, ::Array{Float64,1}, ::Array{Float64,1}, ::Array{Float64,1}, ::Array{Float64,1}, ::Array{Float64,1}, ::Array{Float64,1}) at /Users/jangikcho/.julia/v0.6/ReverseDiffSparse/src/forward.jl:128
[9] (::ReverseDiffSparse.#kw##forward_eval)(::Array{Any,1}, ::ReverseDiffSparse.#forward_eval, ::Array{Float64,1}, ::Array{Float64,1}, ::Array{ReverseDiffSparse.NodeData,1}, ::SparseMatrixCSC{Bool,Int64}, ::Array{Float64,1}, ::Array{Float64,1}, ::Array{Float64,1}, ::Array{Float64,1}, ::Array{Float64,1}, ::Array{Float64,1}) at ./:0
[10] forward_eval_all(::JuMP.NLPEvaluator, ::Array{Float64,1}) at /Users/jangikcho/.julia/v0.6/JuMP/src/nlp.jl:447
[11] eval_f(::JuMP.NLPEvaluator, ::Array{Float64,1}) at /Users/jangikcho/.julia/v0.6/JuMP/src/nlp.jl:480
[12] (::NLopt.#f#4{JuMP.NLPEvaluator})(::Array{Float64,1}, ::Array{Float64,1}) at /Users/jangikcho/.julia/v0.6/NLopt/src/NLoptSolverInterface.jl:123
[13] nlopt_callback_wrapper(::UInt32, ::Ptr{Float64}, ::Ptr{Float64}, ::Ptr{Void}) at /Users/jangikcho/.julia/v0.6/NLopt/src/NLopt.jl:427
[14] optimize!(::NLopt.Opt, ::Array{Float64,1}) at /Users/jangikcho/.julia/v0.6/NLopt/src/NLopt.jl:526
[15] optimize!(::NLopt.NLoptMathProgModel) at /Users/jangikcho/.julia/v0.6/NLopt/src/NLoptSolverInterface.jl:203
[16] #solvenlp#165(::Bool, ::Function, ::JuMP.Model, ::JuMP.ProblemTraits) at /Users/jangikcho/.julia/v0.6/JuMP/src/nlp.jl:1271
[17] (::JuMP.#kw##solvenlp)(::Array{Any,1}, ::JuMP.#solvenlp, ::JuMP.Model, ::JuMP.ProblemTraits) at ./:0
[18] #solve#116(::Bool, ::Bool, ::Bool, ::Array{Any,1}, ::Function, ::JuMP.Model) at /Users/jangikcho/.julia/v0.6/JuMP/src/solvers.jl:172
[19] solve(::JuMP.Model) at /Users/jangikcho/.julia/v0.6/JuMP/src/solvers.jl:150