Non-Markovian Modeling of Equilibrium and Non-Equilibrium Complex Systems