I've been curious how others do this as well...
For me I created a model that I put in all my Examples that does a regression test and spits out reports on pass/fails. The "correct" data can be input from a combiTable (as many dimensions as you'd like) or put directly as the input variable.
The regression test is a function that takes an array with a tolerance.
Of course you could always take things outside of Modelica to Python, etc. using the mat file results (like BuildingsPy) or both.
Below is representative of what has worked for me so far:
model TestCheck
parameter Integer n "Length of variable vector";
parameter Real tolerance = 100;
input Real[n] x_1 "Values of interest" annotation(Dialog(group="Input Variables:"));
input Real[n] x_2 "Reference values" annotation(Dialog(group="Input Variables:"));
Real passedTest "if 0 (false) then expected and actual values do not match within the expected error";
Real Error_rms "Root Mean Square error sqrt(sum(Error_abs.^2)/n)";
Real[n] Error_abs "Absolute error (x_1 - x_2)";
SIadd.nonDim[n] Error_rel "Relative error (x_1 - x_2)/x_2";
Boolean allPassed(start=true);
equation
(Error_rms,Error_abs,Error_rel,passedTest) = ErrorTestFunction(x_1,x_2, tolerance);
when passedTest < 1 then
allPassed = false;
end when;
end TestCheck;