Deactivating calls to GC
and running JET.@report_opt create_model(1000)
I see
═════ 35 possible errors found ═════
┌ @ C:\Users\Win10\source\repos\julia\1.jl:13 GLPK.Optimizer()
│┌ @ C:\Users\Win10\.julia\packages\GLPK\oTTtu\src\MOI_wrapper.jl:124 $(QuoteNode(GLPK.var"#Optimizer#5#6"()))(false, GLPK.SIMPLEX, Base.pairs(Core.NamedTuple()), #self#)
││┌ @ C:\Users\Win10\.julia\packages\GLPK\oTTtu\src\MOI_wrapper.jl:133 MathOptInterface.set(model, MathOptInterface.RawParameter("msg_lev"), GLPK.MSG_ERR)
│││┌ @ C:\Users\Win10\.julia\packages\GLPK\oTTtu\src\MOI_wrapper.jl:312 set_intopt = GLPK.set_parameter(Base.getproperty(model, :intopt_param), key, value)
││││┌ @ C:\Users\Win10\.julia\packages\GLPK\oTTtu\src\MOI_wrapper.jl:300 GLPK.convert(%39, value)
│││││ runtime dispatch detected: GLPK.convert(%39::DataType, value::Int32)
││││└────────────────────────────────────────────────────────────────────
│││┌ @ C:\Users\Win10\.julia\packages\GLPK\oTTtu\src\MOI_wrapper.jl:310 GLPK.Symbol(%13)
││││ runtime dispatch detected: GLPK.Symbol(%13::Any)
│││└────────────────────────────────────────────────────────────────────
│││┌ @ C:\Users\Win10\.julia\packages\GLPK\oTTtu\src\MOI_wrapper.jl:311 GLPK.set_parameter(%15, %14, value)
││││ runtime dispatch detected: GLPK.set_parameter(%15::InteriorParam, %14::Any, value::Int32)
│││└────────────────────────────────────────────────────────────────────
│││┌ @ C:\Users\Win10\.julia\packages\GLPK\oTTtu\src\MOI_wrapper.jl:312 GLPK.set_parameter(%25, %14, value)
││││ runtime dispatch detected: GLPK.set_parameter(%25::IntoptParam, %14::Any, value::Int32)
│││└────────────────────────────────────────────────────────────────────
│││┌ @ C:\Users\Win10\.julia\packages\GLPK\oTTtu\src\MOI_wrapper.jl:313 GLPK.set_parameter(%35, %14, value)
││││ runtime dispatch detected: GLPK.set_parameter(%35::SimplexParam, %14::Any, value::Int32)
│││└────────────────────────────────────────────────────────────────────
││┌ @ C:\Users\Win10\.julia\packages\GLPK\oTTtu\src\MOI_wrapper.jl:141 Core.apply_type(MathOptInterface.Utilities.CleverDicts.CleverDict, MathOptInterface.VariableIndex, GLPK.VariableInfo)()
│││┌ @ C:\Users\Win10\.julia\packages\MathOptInterface\YDdD3\src\Utilities\CleverDicts.jl:92 #self#(0)
││││┌ @ C:\Users\Win10\.julia\packages\MathOptInterface\YDdD3\src\Utilities\CleverDicts.jl:92 Core.apply_type(MathOptInterface.Utilities.CleverDicts.CleverDict, _, _)(MathOptInterface.Utilities.CleverDicts.key_to_index, MathOptInterface.Utilities.CleverDicts.index_to_key, n)
│││││┌ @ C:\Users\Win10\.julia\packages\MathOptInterface\YDdD3\src\Utilities\CleverDicts.jl:80 Base.convert(Core.fieldtype(Core.apply_type(MathOptInterface.Utilities.CleverDicts.CleverDict, _,
_, _, _), 6), vec)
││││││┌ @ array.jl:614 _(a)
│││││││┌ @ array.jl:623 Base.copyto_axcheck!(Core.apply_type(Base.Array, _, _)(Base.undef, Base.size(x)), x)
││││││││┌ @ abstractarray.jl:1110 Base.copyto!(dest, src)
│││││││││┌ @ array.jl:343 Base.copyto!(dest, 1, src, 1, Base.length(src))
││││││││││┌ @ array.jl:317 Base._copyto_impl!(dest, doffs, src, soffs, n)
│││││││││││┌ @ array.jl:331 Base.unsafe_copyto!(dest, doffs, src, soffs, n)
││││││││││││┌ @ array.jl:307 Base._unsafe_copyto!(dest, doffs, src, soffs, n)
│││││││││││││┌ @ array.jl:253 Base.setindex!(dest, Base.getindex(src, Base.-(Base.+(soffs, i), 1)), Base.-(Base.+(doffs, i), 1))
││││││││││││││┌ @ array.jl:963 Base.convert(_, x)
│││││││││││││││ runtime dispatch detected: Base.convert(_::Type{GLPK.VariableInfo}, x::MathOptInterface.VariableIndex)
││││││││││││││└────────────────
││┌ @ C:\Users\Win10\.julia\packages\GLPK\oTTtu\src\MOI_wrapper.jl:142 Core.apply_type(MathOptInterface.Utilities.CleverDicts.CleverDict, GLPK.ConstraintKey, GLPK.ConstraintInfo)()
│││┌ @ C:\Users\Win10\.julia\packages\MathOptInterface\YDdD3\src\Utilities\CleverDicts.jl:92 #self#(0)
││││┌ @ C:\Users\Win10\.julia\packages\MathOptInterface\YDdD3\src\Utilities\CleverDicts.jl:92 Core.apply_type(MathOptInterface.Utilities.CleverDicts.CleverDict, _, _)(MathOptInterface.Utilities.CleverDicts.key_to_index, MathOptInterface.Utilities.CleverDicts.index_to_key, n)
│││││┌ @ C:\Users\Win10\.julia\packages\MathOptInterface\YDdD3\src\Utilities\CleverDicts.jl:80 Base.convert(Core.fieldtype(Core.apply_type(MathOptInterface.Utilities.CleverDicts.CleverDict, _,
_, _, _), 6), vec)
││││││┌ @ array.jl:614 _(a)
│││││││┌ @ array.jl:623 Base.copyto_axcheck!(Core.apply_type(Base.Array, _, _)(Base.undef, Base.size(x)), x)
││││││││┌ @ abstractarray.jl:1110 Base.copyto!(dest, src)
│││││││││┌ @ array.jl:343 Base.copyto!(dest, 1, src, 1, Base.length(src))
││││││││││┌ @ array.jl:317 Base._copyto_impl!(dest, doffs, src, soffs, n)
│││││││││││┌ @ array.jl:331 Base.unsafe_copyto!(dest, doffs, src, soffs, n)
││││││││││││┌ @ array.jl:307 Base._unsafe_copyto!(dest, doffs, src, soffs, n)
│││││││││││││┌ @ array.jl:253 Base.setindex!(dest, Base.getindex(src, Base.-(Base.+(soffs, i), 1)), Base.-(Base.+(doffs, i), 1))
││││││││││││││┌ @ array.jl:963 Base.convert(_, x)
│││││││││││││││ runtime dispatch detected: Base.convert(_::Type{GLPK.ConstraintInfo}, x::GLPK.ConstraintKey)
││││││││││││││└────────────────
││┌ @ C:\Users\Win10\.julia\packages\GLPK\oTTtu\src\MOI_wrapper.jl:144 MathOptInterface.empty!(model)
│││┌ @ C:\Users\Win10\.julia\packages\GLPK\oTTtu\src\MOI_wrapper.jl:222 GLPK.set_callback(model, #9)
││││┌ @ C:\Users\Win10\.julia\packages\GLPK\oTTtu\src\MOI_wrapper.jl:188 c_callback = $(Expr(:cfunction, Base.CFunction, :(_6), Int32, svec(Ptr{Nothing}, Ptr{Nothing}), :(:ccall)))
│││││┌ @ C:\Users\Win10\.julia\packages\GLPK\oTTtu\src\MOI_wrapper.jl:184 Base.setproperty!(%57, :exception, %59)
││││││ runtime dispatch detected: Base.setproperty!(%57::GLPK.CallbackData, :exception::Symbol, %59::Any)
│││││└────────────────────────────────────────────────────────────────────
┌ @ C:\Users\Win10\source\repos\julia\1.jl:14 Main.set_time_limit_sec(model, 0.001)
│┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\JuMP.jl:986 MathOptInterface.set(model, MathOptInterface.TimeLimitSec(), limit)
││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\JuMP.jl:1251 %1(%2, attr, value)
│││ runtime dispatch detected: %1::typeof(MathOptInterface.set)(%2::MathOptInterface.AbstractOptimizer, attr::MathOptInterface.TimeLimitSec, value::Float64)
││└──────────────────────────────────────────────────────────────
┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\macros.jl:1261 JuMP.set_objective(model, JuMP._throw_error_for_invalid_sense(_error, MIN_SENSE), ##291)
│┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\objective.jl:155 JuMP.set_objective_sense(model, sense)
││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\objective.jl:78 MathOptInterface.set(model, MathOptInterface.ObjectiveSense(), sense)
│││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\JuMP.jl:1254 %1(%2, attr, value)
││││ runtime dispatch detected: %1::typeof(MathOptInterface.set)(%2::MathOptInterface.AbstractOptimizer, attr::MathOptInterface.ObjectiveSense, value::MathOptInterface.OptimizationSense)
│││└──────────────────────────────────────────────────────────────
│┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\objective.jl:156 JuMP.set_objective_function(model, func)
││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\objective.jl:127 JuMP.set_objective_function(model, 0.0)
│││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\objective.jl:117 JuMP.set_objective_function(model, MathOptInterface.ScalarAffineFunction(Base.getindex(Core.apply_type(MathOptInterface.ScalarAffineTerm, JuMP.Float64)), JuMP.Float64(func)))
││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\objective.jl:102 MathOptInterface.set(model, attr, func)
│││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\JuMP.jl:1254 %1(%2, attr, value)
││││││ runtime dispatch detected: %1::typeof(MathOptInterface.set)(%2::MathOptInterface.AbstractOptimizer, attr::MathOptInterface.ObjectiveFunction{MathOptInterface.ScalarAffineFunction{Float64}}, value::MathOptInterface.ScalarAffineFunction{Float64})
│││││└──────────────────────────────────────────────────────────────
││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\objective.jl:95 %2(%3, %1)
│││││ runtime dispatch detected: %2::typeof(MathOptInterface.supports)(%3::MathOptInterface.AbstractOptimizer, %1::MathOptInterface.ObjectiveFunction{MathOptInterface.ScalarAffineFunction{Float64}})
││││└─────────────────────────────────────────────────────────────────
││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\objective.jl:95 JuMP.!(%4)
│││││ runtime dispatch detected: JuMP.!(%4::Any)
││││└─────────────────────────────────────────────────────────────────
││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\objective.jl:106 Base.setproperty!(%26, :nlobj, JuMP.nothing)
│││││ runtime dispatch detected: Base.setproperty!(%26::Any, :nlobj::Symbol, JuMP.nothing)
││││└──────────────────────────────────────────────────────────────────
│┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\objective.jl:156 JuMP.set_objective_function(model, func)
││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\objective.jl:113 JuMP.moi_function(func)
│││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\aff_expr.jl:550 MathOptInterface.ScalarAffineFunction(a)
││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\aff_expr.jl:507 JuMP._assert_isfinite(a)
│││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\aff_expr.jl:473 Base.string("Invalid coefficient ", coef, " on variable ", var, ".")
││││││┌ @ strings/io.jl:185 Base.print_to_string(xs...)
│││││││┌ @ strings/io.jl:144 Base.print(s, x)
││││││││┌ @ strings/io.jl:35 Base.show(io, x)
│││││││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\print.jl:821 JuMP.function_string(JuMP.REPLMode, f)
││││││││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\print.jl:625 var_name = JuMP.name(v)
│││││││││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\variables.jl:316 MathOptInterface.get(JuMP.owner_model(v), MathOptInterface.VariableName(), v)
││││││││││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\JuMP.jl:1234 %10(%11, attr, %12)
│││││││││││││ runtime dispatch detected: %10::typeof(MathOptInterface.get)(%11::MathOptInterface.AbstractOptimizer, attr::MathOptInterface.VariableName, %12::MathOptInterface.VariableIndex)
││││││││││││└──────────────────────────────────────────────────────────────
│┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\objective.jl:156 JuMP.set_objective_function(model, func)
││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\objective.jl:113 JuMP.set_objective_function(model, JuMP.moi_function(func))
│││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\objective.jl:102 MathOptInterface.set(model, attr, func)
││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\JuMP.jl:1254 %1(%2, attr, value)
│││││ runtime dispatch detected: %1::typeof(MathOptInterface.set)(%2::MathOptInterface.AbstractOptimizer, attr::MathOptInterface.ObjectiveFunction{MathOptInterface.SingleVariable}, value::MathOptInterface.SingleVariable)
││││└──────────────────────────────────────────────────────────────
│││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\objective.jl:95 %2(%3, %1)
││││ runtime dispatch detected: %2::typeof(MathOptInterface.supports)(%3::MathOptInterface.AbstractOptimizer, %1::MathOptInterface.ObjectiveFunction{MathOptInterface.SingleVariable})
│││└─────────────────────────────────────────────────────────────────
┌ @ C:\Users\Win10\source\repos\julia\1.jl:18 x = JuMP.Containers.container(#7, JuMP.Containers.vectorized_product(I, T))
│┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\Containers\container.jl:66 JuMP.Containers.container(f, indices, JuMP.Containers.default_container(indices))
││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\Containers\container.jl:105 JuMP.Containers.map(#38, indices)
│││┌ @ abstractarray.jl:2887 Base.collect(Base.Generator(f, A))
││││┌ @ array.jl:784 y = Base.iterate(itr)
│││││┌ @ generator.jl:47 Base.getproperty(g, :f)(Base.getindex(y, 1))
││││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\Containers\container.jl:105 Core.getfield(#self#, :f)(I...)
│││││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\Containers\macro.jl:194 JuMP.add_variable(Core.getfield(#self#, :model), JuMP.build_variable(_error, JuMP.VariableInfo(true, 0, true, 100, false, NaN, false, NaN, false, false)), "")
││││││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\variables.jl:977 JuMP._moi_add_variable(JuMP.backend(model), model, v, name)
│││││││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\variables.jl:983 JuMP._moi_constrain_variable(moi_backend, index, Base.getproperty(v, :info))
││││││││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\variables.jl:994 JuMP.moi_add_constraint(moi_backend, MathOptInterface.SingleVariable(index), Core.apply_type(MathOptInterface.GreaterThan, JuMP.Float64)(Base.getproperty(info, :lower_bound)))
│││││││││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\constraints.jl:537 Base.string("Constraints of type ", JuMP.typeof(f), "-in-", JuMP.typeof(s), " are not supported by the solver")
││││││││││││┌ @ strings/io.jl:185 Base.print_to_string(xs...)
│││││││││││││┌ @ strings/io.jl:144 Base.print(s, x)
││││││││││││││┌ @ strings/io.jl:35 Base.show(io, x)
│││││││││││││││┌ @ show.jl:879 Base._show_type(io, Base.inferencebarrier(x))
││││││││││││││││┌ @ show.jl:882 Base.show_type_name(io, Base.getproperty(Base.unwrap_unionall(x), :name))
│││││││││││││││││┌ @ show.jl:969 Base.show(io, Base.getproperty(tn, :module))
││││││││││││││││││┌ @ show.jl:1101 Base.is_root_module(m)
│││││││││││││││││││┌ @ lock.jl:219 Base.lock(temp)
││││││││││││││││││││┌ @ lock.jl:101 slowlock(rl)
│││││││││││││││││││││┌ @ lock.jl:110 Base.wait(c)
││││││││││││││││││││││┌ @ condition.jl:126 Base.list_deletefirst!(%46, %40)
│││││││││││││││││││││││ runtime dispatch detected: Base.list_deletefirst!(%46::Any, %40::Task)
││││││││││││││││││││││└────────────────────
│││││││││││││││││││┌ @ lock.jl:223 Base.unlock(temp)
││││││││││││││││││││┌ @ lock.jl:131 _unlock(rl)
│││││││││││││││││││││┌ @ lock.jl:137 notifywaiters(rl)
││││││││││││││││││││││┌ @ lock.jl:141 = Base.notify(cond_wait)
│││││││││││││││││││││││┌ @ condition.jl:142 #self#(c, Base.nothing)
││││││││││││││││││││││││┌ @ condition.jl:142 Base.#notify#570(true, false, #self#, c, arg)
│││││││││││││││││││││││││┌ @ condition.jl:142 Base.notify(c, arg, all, error)
││││││││││││││││││││││││││┌ @ condition.jl:148 Core.kwfunc(Base.schedule)(Core.apply_type(Core.NamedTuple, (:error,))(Core.tuple(error)), Base.schedule, t, arg)
│││││││││││││││││││││││││││┌ @ task.jl:740 Base.#schedule#594(error, _3, t, arg)
││││││││││││││││││││││││││││┌ @ task.jl:742 %10(%11, t)
│││││││││││││││││││││││││││││ runtime dispatch detected: %10::typeof(Base.list_deletefirst!)(%11::Any, t::Task)
││││││││││││││││││││││││││││└───────────────
││││││││││││││││┌ @ show.jl:884 Base.show_typealias(io, x)
│││││││││││││││││┌ @ show.jl:724 Base.show_typealias(io, Base.getindex(alias, 1), x, Base.getindex(alias, 2), wheres)
││││││││││││││││││┌ @ show.jl:671 Base.show_typeparams(io, env, Core.svec(vars...), wheres)
│││││││││││││││││││┌ @ show.jl:630 Base.show(io, %266)
││││││││││││││││││││ runtime dispatch detected: Base.show(io::IOContext{IOBuffer}, %266::Any)
│││││││││││││││││││└───────────────
│││││││││││││││││││┌ @ show.jl:633 Base.show(io, %324)
││││││││││││││││││││ runtime dispatch detected: Base.show(io::IOContext{IOBuffer}, %324::Any)
│││││││││││││││││││└───────────────
│││││││││││││││││││┌ @ show.jl:638 Base.show(io, %207)
││││││││││││││││││││ runtime dispatch detected: Base.show(io::IOContext{IOBuffer}, %207::Any)
│││││││││││││││││││└───────────────
││││││││││││││││┌ @ show.jl:887 Base.show_datatype(io, x)
│││││││││││││││││┌ @ show.jl:987 #self#(io, x, Base.getindex(Base.TypeVar))
││││││││││││││││││┌ @ show.jl:1009 Base.show_typeparams(io, parameters, Base.getproperty(Base.unwrap_unionall(Base.getproperty(Base.getproperty(x, :name), :wrapper)), :parameters), wheres)
│││││││││││││││││││┌ @ show.jl:630 Base.show(io, %264)
││││││││││││││││││││ runtime dispatch detected: Base.show(io::IOBuffer, %264::Any)
│││││││││││││││││││└───────────────
│││││││││││││││││││┌ @ show.jl:633 Base.show(io, %321)
││││││││││││││││││││ runtime dispatch detected: Base.show(io::IOBuffer, %321::Any)
│││││││││││││││││││└───────────────
│││││││││││││││││││┌ @ show.jl:638 Base.show(io, %206)
││││││││││││││││││││ runtime dispatch detected: Base.show(io::IOBuffer, %206::Any)
│││││││││││││││││││└───────────────
││││││││││││││││┌ @ show.jl:890 Base.show_unionaliases(io, x)
│││││││││││││││││┌ @ show.jl:811 Base.make_typealiases(properx)
││││││││││││││││││┌ @ show.jl:732 mods = Base.modulesof!(Core.apply_type(Base.Set, Base.Module)(), x)
│││││││││││││││││││┌ @ show.jl:506 Base.modulesof!(s, Base.getproperty(x, :a))
││││││││││││││││││││┌ @ show.jl:500 Base.modulesof!(s, %1)
│││││││││││││││││││││ runtime dispatch detected: Base.modulesof!(s::Set{Module}, %1::Any)
││││││││││││││││││││└───────────────
││││││││││││││││││┌ @ show.jl:788 Core.kwfunc(Base.sort!)(Core.apply_type(Core.NamedTuple, (:by, :rev))(Core.tuple(#479, true)), Base.sort!, aliases)
│││││││││││││││││││┌ @ sort.jl:711 Base.Sort.#sort!#8(alg, lt, by, rev, order, _3, v)
││││││││││││││││││││┌ @ sort.jl:723 Base.Sort.sort!(v, alg, ordr)
│││││││││││││││││││││┌ @ sort.jl:662 Base.Sort.sort!(v, Base.Sort.first(inds), Base.Sort.last(inds), alg, order)
││││││││││││││││││││││┌ @ sort.jl:591 #self#(v, lo, hi, a, o, Base.Sort.similar(v, 0))
│││││││││││││││││││││││┌ @ sort.jl:592 Base.Sort.sort!(v, lo, hi, Base.Sort.SMALL_ALGORITHM, o)
││││││││││││││││││││││││┌ @ sort.jl:507 Base.Sort.lt(o, x, Base.getindex(v, Base.Sort.-(j, 1)))
│││││││││││││││││││││││││┌ @ ordering.jl:119 Base.Order.lt($(QuoteNode(Base.Order.ReverseOrdering{Base.Order.ForwardOrdering}(Base.Order.ForwardOrdering()))), %9, %20)
││││││││││││││││││││││││││ runtime dispatch detected: Base.Order.lt($(QuoteNode(Base.Order.ReverseOrdering{Base.Order.ForwardOrdering}(Base.Order.ForwardOrdering())))::Base.Order.ReverseOrdering{Base.Order.ForwardOrdering}, %9::Any, %20::Any)
│││││││││││││││││││││││││└───────────────────
││││││││││││││││┌ @ show.jl:894 Base.show_delim_array(io, Base.uniontypes(x), '{', ',', '}', false)
│││││││││││││││││┌ @ show.jl:1199 #self#(io, itr, op, delim, cl, delim_one, Base.first(Base.LinearIndices(itr)), Base.last(Base.LinearIndices(itr)))
││││││││││││││││││┌ @ show.jl:1210 Base.show(%6, %44)
│││││││││││││││││││ runtime dispatch detected: Base.show(%6::IOContext{IOBuffer}, %44::Any)
││││││││││││││││││└────────────────
││││││││││││││││┌ @ show.jl:921 Base.show_datatype(io, x, wheres)
│││││││││││││││││┌ @ show.jl:1008 Base.show_type_name(io, Base.getproperty(x, :name))
││││││││││││││││││┌ @ show.jl:968 Base.isvisible(%38, %86, %80)
│││││││││││││││││││ runtime dispatch detected: Base.isvisible(%38::Symbol, %86::Module, %80::Any)
││││││││││││││││││└───────────────
│││││││││││││┌ @ strings/io.jl:139 Base._str_sizehint(%4)
││││││││││││││ runtime dispatch detected: Base._str_sizehint(%4::Union{DataType, String})
│││││││││││││└─────────────────────
│││││││││││││┌ @ strings/io.jl:144 Base.print(%54, %58)
││││││││││││││ runtime dispatch detected: Base.print(%54::IOBuffer, %58::Union{DataType, String})
│││││││││││││└─────────────────────
│││││││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\variables.jl:985 JuMP.set_name(var_ref, name)
││││││││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\variables.jl:324 MathOptInterface.set(JuMP.owner_model(v), MathOptInterface.VariableName(), v, s)
│││││││││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\JuMP.jl:1263 %9(%10, attr, %11, value)
││││││││││││ runtime dispatch detected: %9::typeof(MathOptInterface.set)(%10::MathOptInterface.AbstractOptimizer, attr::MathOptInterface.VariableName, %11::MathOptInterface.VariableIndex, value::String)
│││││││││││└──────────────────────────────────────────────────────────────
││││││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\variables.jl:977 JuMP._moi_add_variable(%1, model, v, name)
│││││││││ runtime dispatch detected: JuMP._moi_add_variable(%1::MathOptInterface.AbstractOptimizer, model::Model, v::ScalarVariable{Int64, Int64, Float64, Float64}, name::String)
││││││││└──────────────────────────────────────────────────────────────────
┌ @ C:\Users\Win10\source\repos\julia\1.jl:19 JuMP.Containers.container(#8, JuMP.Containers.vectorized_product(I, T2))
│┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\Containers\container.jl:66 JuMP.Containers.container(f, indices, JuMP.Containers.default_container(indices))
││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\Containers\container.jl:105 JuMP.Containers.map(#38, indices)
│││┌ @ abstractarray.jl:2887 Base.collect(Base.Generator(f, A))
││││┌ @ array.jl:784 y = Base.iterate(itr)
│││││┌ @ generator.jl:47 Base.getproperty(g, :f)(Base.getindex(y, 1))
││││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\Containers\container.jl:105 Core.getfield(#self#, :f)(I...)
│││││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\macros.jl:677 JuMP.add_constraint(Core.getfield(#self#, :model), JuMP.build_constraint(_error, JuMP._functionize(##281), LessThan{Float64}(0.0)), "")
││││││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\constraints.jl:570 JuMP.set_name(con_ref, name)
│││││││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\constraints.jl:147 MathOptInterface.set(Base.getproperty(con_ref, :model), MathOptInterface.ConstraintName(), con_ref, s)
││││││││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\JuMP.jl:1272 %9(%10, attr, %11, value)
│││││││││││ runtime dispatch detected: %9::typeof(MathOptInterface.set)(%10::MathOptInterface.AbstractOptimizer, attr::MathOptInterface.ConstraintName, %11::MathOptInterface.ConstraintIndex{MathOptInterface.ScalarAffineFunction{Float64}, MathOptInterface.LessThan{Float64}}, value::String)
││││││││││└──────────────────────────────────────────────────────────────
││││││││┌ @ C:\Users\Win10\.julia\packages\JuMP\klrjG\src\constraints.jl:559 JuMP.moi_add_constraint(%7, %5, %6)
│││││││││ runtime dispatch detected: JuMP.moi_add_constraint(%7::MathOptInterface.AbstractOptimizer, %5::MathOptInterface.ScalarAffineFunction{Float64}, %6::MathOptInterface.LessThan{Float64})
││││││││└────────────────────────────────────────────────────────────────────
So quite a bit of dynamic dispatch going on, maybe room for improvement?