If no state variable is present, event indicators are ignored and the event handler is executed too late. Debugging shows that the FMU never triggers a state event. The function saveEventIndicators is never called and the vector of saved indicator variable remains uninitialized.