You can check the validity of a Dymola behavior library with the command Check Class.
A behavior library is a class. To check any class with the command Check Class , see Checking a Class.