The model format has changed over time and mixing old and new formats fouls up the net definitions as noted at #2875 (comment)
Ah, some of your layers are a "layer" and others are "layers". You need to make them all consistent as "layer". You probably copied from somewhere else that used the old API.
Caffe could detect this an err out to signal this issue as suggested by @seanbell.