lbl-srg / BuildingsPy

Python modules for automating Modelica simulations and for running unit test for the Buildings library
78 stars 45 forks source link

missing .mos script warning not processed #67

Open mwetter opened 8 years ago

mwetter commented 8 years ago

If a .mo file references a .mos file for the simulate and plot command but this file is missing, Dymola writes a warning. The regression tests do not parse the log for this warning.

See Annex60 library, commit 4ec3cb556f740eb537b8c12fd26b73f4d4f7a06d and https://github.com/iea-annex60/modelica-annex60/issues/313

The warning message is

Check of Annex60.Utilities.Psychrometrics.Examples.Density_pTX:

 Command 'Simulate and plot' in model 'Annex60.Utilities.Psychrometrics.Examples.Density_pTX',
 specified file modelica://Annex60/Resources/Scripts/Dymola/Utilities/Psychrometrics/Examples/Density_pTX.mos which was not found.
mwetter commented 8 years ago

The regression tests do parse the log file. The problem in this case was that no *.mos script caused Annex60.Utilities.Psychrometrics.Examples.Density_pTX to be tested.

The test that is missing is that all non-partial classes in Examples and Validation reference at least one *.mos file in Resources/Scripts/Dymola