Initialize a sliding window buffer
function init input Modelica.SIunits.Time T "Length of window"; input Modelica.SIunits.Time t0 "Initial time instant"; output Buffer buffer = Buffer(T = T, t0 = t0, t = fill(0, nBuffer), b = fill(false, nBuffer), first = 0, last = 0, nElem = 0) "Initialized buffer"; end init;