Please check your script file carefully. The parameters in "OptimizeGeometry()" called in your script file is wrong:
device_configuration = OptimizeGeometry(
device_configuration,
max_forces=0.05*eV/Ang,
max_stress=0.001*eV/Ang**3,
max_steps=200,
max_step_length=0.5*Ang,
trajectory_filename=None,
)
The "max_forces" and "max_stress" should be changed into "maximum_forces" and "maximum_stress". see the manual here:
http://quantumwise.com/documents/manuals/latest/ReferenceManual/index.html/ref.optimizegeometry.html
#----------------------------------------
# Iteration Control Settings
#----------------------------------------
device_iteration_control_parameters = NonSelfconsistent
The "NonSelfconsistent" is not defined in your script file. If you don't know how to define, you may simply remove the above line in your script file.