The initial equation does not adequately handle a case when a pulse is initiated prior to simulation start time.
Please see an illustration of the bug in this resolved issue of the modelica-buildings repository and a PR with a fix. The fix is to introduce an initiation condition similar to what is found in the Blocks.Sources.Pulse.