If you use the ModelicaSystem API, when buildModel() is run, content (e.g. build warnings) returned by GetErrorString gets swallowed if no compilation error occurs.
Probably this block in current master should get an elif clause that prints the error string if it's not empty.