The flattening tests from OpenModelica testsuite should be ported to the repository for testing (or supported directly).