After updating the packages used by my project I get the following exception:
julia> using RTSim
julia> init_sim(5.0)
ERROR: MethodError: no method matching residual!(::Vector{Float64}, ::StaticArrays.SizedVector{36, Float64, Vector{Float64}}, ::StaticArrays.SizedVector{36, Float64, Vector{Float64}}, ::SciMLBase.NullParameters, ::Float64)
Closest candidates are:
residual!(::Any, ::Any, ::StaticArrays.MVector{S, Float64}, ::Any, ::Any) where S at /home/ufechner/repos/KiteViewer/src/KPS3.jl:274
Stacktrace:
[1] (::SciMLBase.DAEFunction{true, typeof(KPS3.residual!), Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing})(::Vector{Float64}, ::Vararg{Any, N} where N)
@ SciMLBase ~/.julia/packages/SciMLBase/UIp7W/src/scimlfunctions.jl:369
[2] (::Sundials.var"#106#110"{SciMLBase.DAEProblem{StaticArrays.MVector{36, Float64}, StaticArrays.MVector{36, Float64}, Tuple{Float64, Float64}, true, SciMLBase.NullParameters, SciMLBase.DAEFunction{true, typeof(KPS3.residual!), Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing}, Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, Vector{Bool}}, Tuple{Int64}, Tuple{Int64}})(out::Vector{Float64}, du::StaticArrays.SizedVector{36, Float64, Vector{Float64}}, u::StaticArrays.SizedVector{36, Float64, Vector{Float64}}, p::SciMLBase.NullParameters, t::Float64)
@ Sundials ~/.julia/packages/Sundials/YfkdE/src/common_interface/solve.jl:1111
[3] __init(prob::SciMLBase.DAEProblem{StaticArrays.MVector{36, Float64}, StaticArrays.MVector{36, Float64}, Tuple{Float64, Float64}, true, SciMLBase.NullParameters, SciMLBase.DAEFunction{true, typeof(KPS3.residual!), Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing}, Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, Vector{Bool}}, alg::Sundials.IDA{:Dense, Nothing, Nothing}, timeseries::Vector{Any}, ts::Vector{Any}, ks::Vector{Any}; verbose::Bool, dt::Nothing, dtmax::Float64, save_on::Bool, save_start::Bool, callback::Nothing, abstol::Float64, reltol::Float64, saveat::Vector{Float64}, tstops::Vector{Float64}, maxiters::Int64, timeseries_errors::Bool, dense_errors::Bool, save_everystep::Bool, dense::Bool, save_timeseries::Nothing, save_end::Bool, progress::Bool, progress_name::String, progress_message::typeof(DiffEqBase.ODE_DEFAULT_PROG_MESSAGE), advance_to_tstop::Bool, stop_at_next_tstop::Bool, userdata::Nothing, kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Sundials ~/.julia/packages/Sundials/YfkdE/src/common_interface/solve.jl:1312
[4] init_call(_prob::SciMLBase.DAEProblem{StaticArrays.MVector{36, Float64}, StaticArrays.MVector{36, Float64}, Tuple{Float64, Float64}, true, SciMLBase.NullParameters, SciMLBase.DAEFunction{true, typeof(KPS3.residual!), Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing}, Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, Vector{Bool}}, args::Sundials.IDA{:Dense, Nothing, Nothing}; merge_callbacks::Bool, kwargs::Base.Iterators.Pairs{Symbol, Float64, Tuple{Symbol, Symbol}, NamedTuple{(:abstol, :reltol), Tuple{Float64, Float64}}})
@ DiffEqBase ~/.julia/packages/DiffEqBase/gCXSd/src/solve.jl:28
[5] init(prob::SciMLBase.DAEProblem{StaticArrays.MVector{36, Float64}, StaticArrays.MVector{36, Float64}, Tuple{Float64, Float64}, true, SciMLBase.NullParameters, SciMLBase.DAEFunction{true, typeof(KPS3.residual!), Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing}, Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, Vector{Bool}}, args::Sundials.IDA{:Dense, Nothing, Nothing}; kwargs::Base.Iterators.Pairs{Symbol, Float64, Tuple{Symbol, Symbol}, NamedTuple{(:abstol, :reltol), Tuple{Float64, Float64}}})
@ DiffEqBase ~/.julia/packages/DiffEqBase/gCXSd/src/solve.jl:40
[6] init_sim(t_end::Float64)
@ RTSim ~/repos/KiteViewer/src/RTSim.jl:57
[7] top-level scope
@ REPL[2]:1
Full source code is available here: https://github.com/ufechner7/KiteViewer/tree/sim
Any idea?