Interaction of initval, endval, and histval for deterministic simulations