testFullBuffer impure function
Requirements.Internal.TestSlidingWindow.testFullBuffer
ยท source
Test SlidingWindow.push on a buffer that overflows
Extends Modelica.Icons.Function
Tests SlidingWindow.push on a buffer that
overflows: nBuffer + 5 alternating changes at t = 1, 2, ... s are pushed in a window of 100 s. The buffer must
then hold nBuffer elements, the newest at t = nBuffer + 5 s and the oldest at t = 6 s, and
maxDuration must give 1 s. The
warning "buffer of sliding window too small" is printed five times. The function has no inputs or outputs; call
it with Requirements.Internal.TestSlidingWindow.testFullBuffer().
Revisions
2026-12-03, Model Based Innovation LLC: added.