My model is a large factory, in part of which I encounter a deadlock problem. In the first container flow process, the trolley takes the product to the warehouse located in front of the machine, where the crane takes the product from the trolley and places it in the inventory. In the second container flow process, the crane loads the products processed by the machine, and the trolley comes to the crane, loads these products, and takes them from the crane to another station. As the model progresses, at some point the trolley loads a product that goes to the crane, and the crane loads a product from the machine that unloads onto the trolley, and a deadlock occurs here. Unfortunately, I cannot send the model due to confidentiality.