Dymola supports generating UML Diagrams, at least since 2022x. However, you should be aware that the diagram is generated by an online service, and hence the content of the image is made available to that server.