Dynamic model of an independent carts system