Error / bug linked to library file with multiple .lib .endl entries

Hello,

I am simulating a schematic which contains following .lib statement with a ‘tm’ [ENTRY] parameter:

.lib .\spice_models\mos.lib tm

The mos.lib file which is referenced contains several .lib .endl entries (see it at the end of this message).
With the “.lib .\spice_models\mos.lib tm” statement, Qspice gives following error:

Fatal error: Could not open file “ff”

Note that the ff section directly follows the tm section in the mos.lib file

However, if using “.lib .\spice_models\mos.lib ss” statement in the schematic (instead of tm), there is no error. I attribute that to the fact that ss section is the last in the mos.lib file.

Thanks

mos.lib file

.lib tm
.inc .\spice_models\xt018\models\mos\tm_mos.mod
.inc .\spice_models\xt018\models\mos\ne.mod
.inc .\spice_models\xt018\models\mos\pe.mod
.endl

.lib ff
.inc .\spice_models\xt018\models\mos\wp_mos.mod
.inc .\spice_models\xt018\models\mos\ne.mod
.inc .\spice_models\xt018\models\mos\pe.mod
.endl

.lib ss
.inc .\spice_models\xt018\models\mos\ws_mos.mod
.inc .\spice_models\xt018\models\mos\ne.mod
.inc .\spice_models\xt018\models\mos\pe.mod
.endl