It is very strange that the word tinml is used for school in Morocco, i don't think that this word never excisted or used in the same context, let me share with you an example from mauritania:
ighara: il lit...
taghrid: lecture, fait d'apprendre des livres
anaghrid: école
- abelmud ighara issenta taghrid-es ass n adjarba -
l'éléve lit a commencé étude sa le jour de mercredi
Source| NICOLAS, F. (1953). La langue berbère de Mauritanie, Dakar, mémoire de l'IFAN, n° 33.
abelmud - amelmud - anelmud * LMD
ps. there are more interessting vocabulary in the field of study in this book