I\'m creating my model this way:
var model = new joint.shapes.devs.Model({ position: { x: 50, y: 50 }, size: { width: 100, height: 40 }, inPorts: [\'in1\']