Add sum term to ODE in DifferentialEquations

That’s not the syntax for DDEProblem.

https://diffeq.sciml.ai/stable/types/dde_types/

See the tutorial: Delay Differential Equations · DifferentialEquations.jl

A DDEProblem requires a history function for the pre-initial condition in order to be well-defined.