fixed row assignments for matrices in lhs and rhs, with compiled model tests