OK… I’ll share the stack traces:
julia> prob_sys = ODEProblem(hps, [], tspan)
Warning: Initialization system is overdetermined. 3 equations for 2 unknowns. Initialization will default to using least squares. To suppress this warning pass warn_initialize_determined = false. To make this warning into an error, pass fully_determined = true
└ @ ModelingToolkit C:\Users\Bernt\.julia\packages\ModelingToolkit\jEIdO\src\systems\diffeqs\abstractodesystem.jl:1547
{
"name": "ArgumentError",
"message": "ArgumentError: Any[p_d1(0)] are either missing from the variable map or missing from the system's unknowns/parameters list.",
"stack": "ArgumentError: Any[p_d1(0)] are either missing from the variable map or missing from the system's unknowns/parameters list.\n\nStacktrace:\n [1] throw_missingvars_in_sys(vars::Vector{Any})\n @ ModelingToolkit C:\\Users\\Bernt\\.julia\\packages\\ModelingToolkit\\jEIdO\\src\\utils.jl:657\n [2] promote_to_concrete(vs::Vector{Any}; tofloat::Bool, use_union::Bool)\n @ ModelingToolkit C:\\Users\\Bernt\\.julia\\packages\\ModelingToolkit\\jEIdO\\src\\utils.jl:676\n [3] varmap_to_vars(varmap::Dict{Any, Any}, varlist::Vector{SymbolicUtils.BasicSymbolic{Real}}; defaults::Dict{Any, Any}, check::Bool, toterm::Function, promotetoconcrete::Nothing, tofloat::Bool, use_union::Bool)\n @ ModelingToolkit C:\\Users\\Bernt\\.julia\\packages\\ModelingToolkit\\jEIdO\\src\\variables.jl:170\n [4] get_u0(sys::NonlinearSystem, u0map::Dict{Any, Any}, parammap::Vector{Pair{SymbolicUtils.BasicSymbolic{Real}, Int64}}; symbolic_u0::Bool, toterm::Function)\n @ ModelingToolkit C:\\Users\\Bernt\\.julia\\packages\\ModelingToolkit\\jEIdO\\src\\systems\\diffeqs\\abstractodesystem.jl:742\n [5] get_u0\n @ C:\\Users\\Bernt\\.julia\\packages\\ModelingToolkit\\jEIdO\\src\\systems\\diffeqs\\abstractodesystem.jl:719 [inlined]\n [6] process_NonlinearProblem(constructor::Type, sys::NonlinearSystem, u0map::Dict{Any, Any}, parammap::Vector{Pair{SymbolicUtils.BasicSymbolic{Real}, Int64}}; version::Nothing, jac::Bool, checkbounds::Bool, sparse::Bool, simplify::Bool, linenumbers::Bool, parallel::Symbolics.SerialForm, eval_expression::Bool, eval_module::Module, use_union::Bool, tofloat::Bool, kwargs::@Kwargs{check_length::Bool})\n @ ModelingToolkit C:\\Users\\Bernt\\.julia\\packages\\ModelingToolkit\\jEIdO\\src\\systems\\nonlinear\\nonlinearsystem.jl:392\n [7] process_NonlinearProblem\n @ C:\\Users\\Bernt\\.julia\\packages\\ModelingToolkit\\jEIdO\\src\\systems\\nonlinear\\nonlinearsystem.jl:377 [inlined]\n [8] (SciMLBase.NonlinearLeastSquaresProblem{true})(sys::NonlinearSystem, u0map::Dict{Any, Any}, parammap::Vector{Pair{SymbolicUtils.BasicSymbolic{Real}, Int64}}; check_length::Bool, kwargs::@Kwargs{eval_expression::Bool, eval_module::Module})\n @ ModelingToolkit C:\\Users\\Bernt\\.julia\\packages\\ModelingToolkit\\jEIdO\\src\\systems\\nonlinear\\nonlinearsystem.jl:459\n [9] NonlinearLeastSquaresProblem\n @ C:\\Users\\Bernt\\.julia\\packages\\ModelingToolkit\\jEIdO\\src\\systems\\nonlinear\\nonlinearsystem.jl:453 [inlined]\n [10] #NonlinearLeastSquaresProblem#589\n @ C:\\Users\\Bernt\\.julia\\packages\\ModelingToolkit\\jEIdO\\src\\systems\\nonlinear\\nonlinearsystem.jl:450 [inlined]\n [11] NonlinearLeastSquaresProblem\n @ C:\\Users\\Bernt\\.julia\\packages\\ModelingToolkit\\jEIdO\\src\\systems\\nonlinear\\nonlinearsystem.jl:449 [inlined]\n [12] ModelingToolkit.InitializationProblem{true, SciMLBase.AutoSpecialize}(sys::ODESystem, t::Int64, u0map::Dict{Any, Any}, parammap::SciMLBase.NullParameters; guesses::Dict{Any, Any}, check_length::Bool, warn_initialize_determined::Bool, initialization_eqs::Vector{Any}, fully_determined::Bool, kwargs::@Kwargs{eval_expression::Bool, eval_module::Module})\n @ ModelingToolkit C:\\Users\\Bernt\\.julia\\packages\\ModelingToolkit\\jEIdO\\src\\systems\\diffeqs\\abstractodesystem.jl:1567\n [13] InitializationProblem\n @ C:\\Users\\Bernt\\.julia\\packages\\ModelingToolkit\\jEIdO\\src\\systems\\diffeqs\\abstractodesystem.jl:1513 [inlined]\n [14] #_#824\n @ C:\\Users\\Bernt\\.julia\\packages\\ModelingToolkit\\jEIdO\\src\\systems\\diffeqs\\abstractodesystem.jl:1491 [inlined]\n [15] InitializationProblem\n @ C:\\Users\\Bernt\\.julia\\packages\\ModelingToolkit\\jEIdO\\src\\systems\\diffeqs\\abstractodesystem.jl:1490 [inlined]\n [16] #InitializationProblem#822\n @ C:\\Users\\Bernt\\.julia\\packages\\ModelingToolkit\\jEIdO\\src\\systems\\diffeqs\\abstractodesystem.jl:1479 [inlined]\n [17] InitializationProblem\n @ C:\\Users\\Bernt\\.julia\\packages\\ModelingToolkit\\jEIdO\\src\\systems\\diffeqs\\abstractodesystem.jl:1478 [inlined]\n [18] process_DEProblem(constructor::Type, sys::ODESystem, u0map::Vector{Any}, parammap::SciMLBase.NullParameters; implicit_dae::Bool, du0map::Nothing, version::Nothing, tgrad::Bool, jac::Bool, checkbounds::Bool, sparse::Bool, simplify::Bool, linenumbers::Bool, parallel::Symbolics.SerialForm, eval_expression::Bool, eval_module::Module, use_union::Bool, tofloat::Bool, symbolic_u0::Bool, u0_constructor::typeof(identity), guesses::Dict{Any, Any}, t::Int64, warn_initialize_determined::Bool, build_initializeprob::Bool, initialization_eqs::Vector{Any}, fully_determined::Bool, kwargs::@Kwargs{check_length::Bool})\n @ ModelingToolkit C:\\Users\\Bernt\\.julia\\packages\\ModelingToolkit\\jEIdO\\src\\systems\\diffeqs\\abstractodesystem.jl:837\n [19] process_DEProblem\n @ C:\\Users\\Bernt\\.julia\\packages\\ModelingToolkit\\jEIdO\\src\\systems\\diffeqs\\abstractodesystem.jl:747 [inlined]\n [20] (ODEProblem{true, SciMLBase.AutoSpecialize})(sys::ODESystem, u0map::Vector{Any}, tspan::Tuple{Int64, Int64}, parammap::SciMLBase.NullParameters; callback::Nothing, check_length::Bool, warn_initialize_determined::Bool, eval_expression::Bool, eval_module::Module, kwargs::@Kwargs{})\n @ ModelingToolkit C:\\Users\\Bernt\\.julia\\packages\\ModelingToolkit\\jEIdO\\src\\systems\\diffeqs\\abstractodesystem.jl:1005\n [21] ODEProblem\n @ C:\\Users\\Bernt\\.julia\\packages\\ModelingToolkit\\jEIdO\\src\\systems\\diffeqs\\abstractodesystem.jl:993 [inlined]\n [22] (ODEProblem{true, SciMLBase.AutoSpecialize})(sys::ODESystem, u0map::Vector{Any}, tspan::Tuple{Int64, Int64})\n @ ModelingToolkit C:\\Users\\Bernt\\.julia\\packages\\ModelingToolkit\\jEIdO\\src\\systems\\diffeqs\\abstractodesystem.jl:993\n [23] (ODEProblem{true})(::ODESystem, ::Vector{Any}, ::Vararg{Any}; kwargs::@Kwargs{})\n @ ModelingToolkit C:\\Users\\Bernt\\.julia\\packages\\ModelingToolkit\\jEIdO\\src\\systems\\diffeqs\\abstractodesystem.jl:980\n [24] (ODEProblem{true})(::ODESystem, ::Vector{Any}, ::Vararg{Any})\n @ ModelingToolkit C:\\Users\\Bernt\\.julia\\packages\\ModelingToolkit\\jEIdO\\src\\systems\\diffeqs\\abstractodesystem.jl:979\n [25] ODEProblem(::ODESystem, ::Vector{Any}, ::Vararg{Any}; kwargs::@Kwargs{})\n @ ModelingToolkit C:\\Users\\Bernt\\.julia\\packages\\ModelingToolkit\\jEIdO\\src\\systems\\diffeqs\\abstractodesystem.jl:969\n [26] ODEProblem(::ODESystem, ::Vector{Any}, ::Vararg{Any})\n @ ModelingToolkit C:\\Users\\Bernt\\.julia\\packages\\ModelingToolkit\\jEIdO\\src\\systems\\diffeqs\\abstractodesystem.jl:968\n [27] top-level scope\n @ c:\\Users\\Bernt\\OneDrive\\Documents\\researchUSN\\Supervisor\\MScThesis\\Fall2023\\jl_notebook_cell_df34fa98e69747e1a8f8a730347b8e2f_X30sZmlsZQ==.jl:1"
}