DungNT,
We have a "DowntimeEntity" object in our commercial software TLS (an add-on to JaamSim) that provides this function. It has been used to carry out some large Reliability Availability and Maintainability (RAM) studies, but it is still just a working prototype at this stage. Our plan was to move it to JaamSim once it is fully functional, but if there is interest we can release it much earlier -- say, mid-January.
We created a separate object for downtime so that a server type object can have multiple failure and maintenance modes, each modelled by a separate DowntimeEntity. In one of the RAM studies I mentioned, we modelled individual objects with as many as 200 failure modes. The entire model had a total of 19,000 failure modes.
What kind of model are you planning to build? It is always interesting and helpful to know how JaamSim is being used.
Harry