That error message means that there already is a Diagram instance being hosted by that particular HTML Div element.
I do not know what your situation is, but I suggest that you not re-create the Diagram. Instead, create and initialize it once, including associating the Diagram with the Div. Then whenever you want to show a diagram, create a Model and set the Diagram.model.