This is a bug report (incompatibility issue) for OpenMDAO 0.13 pyoptsparse_driver:

I found that when trying to use pyOptSparse to run the example script posted by Kenneth on the stackoverflow page below, it only works with an older version of petsc and petsc4py (3.5) and not with the more recent version (3.6).

http://stackoverflow.com/questions/32106147/openmdao-v0-13-error-only-when-trying-to-run-optimization-in-parallel-indexer

With the petsc/petsc4py version 3.6, I get the following error:

--------------------------------------------------------------------------
[0 1]
[0 1]
In SimpleComp, x = 0.0
In SimpleComp, x = 1.0
In SimpleComp, x = 1.0
In SimpleComp, x = 0.0
Exception: error code 73
[0] KSPSolve() line 604 in /home/pgraf/opt/petsc/src/ksp/ksp/interface/itfunc.c
[0] KSPSolve_FGMRES() line 295 in /home/pgraf/opt/petsc/src/ksp/ksp/impls/gmres/fgmres/fgmres.c
[0] KSPFGMRESCycle() line 168 in /home/pgraf/opt/petsc/src/ksp/ksp/impls/gmres/fgmres/fgmres.c
[0] KSP_PCApply() line 242 in /home/pgraf/opt/petsc/include/petsc/private/kspimpl.h
[0] PCApply() line 483 in /home/pgraf/opt/petsc/src/ksp/pc/interface/precon.c
[0] VecGetArray() line 1646 in /home/pgraf/opt/petsc/src/vec/vec/interface/rvector.c
[0] Object is in wrong state
[0]  Vec is locked read only, argument # 1
======================================================================
Exception: error code 73
[1] KSPSolve() line 604 in /home/pgraf/opt/petsc/src/ksp/ksp/interface/itfunc.c
[1] KSPSolve_FGMRES() line 295 in /home/pgraf/opt/petsc/src/ksp/ksp/impls/gmres/fgmres/fgmres.c
[1] KSPFGMRESCycle() line 168 in /home/pgraf/opt/petsc/src/ksp/ksp/impls/gmres/fgmres/fgmres.c
[1] KSP_PCApply() line 242 in /home/pgraf/opt/petsc/include/petsc/private/kspimpl.h
[1] PCApply() line 483 in /home/pgraf/opt/petsc/src/ksp/pc/interface/precon.c
[1] VecGetArray() line 1646 in /home/pgraf/opt/petsc/src/vec/vec/interface/rvector.c
[1] Object is in wrong state
[1]  Vec is locked read only, argument # 1
======================================================================
Traceback (most recent call last):
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse_driver-0.1-py2.7.egg/pyoptsparse_driver/pyoptsparse_driver.py", line 363, in gradfunc
Traceback (most recent call last):
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse_driver-0.1-py2.7.egg/pyoptsparse_driver/pyoptsparse_driver.py", line 363, in gradfunc
    return_format='dict')
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/workflow.py", line 174, in calc_gradient
    return_format='dict')
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/workflow.py", line 174, in calc_gradient
    return_format=return_format)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/systems.py", line 861, in calc_gradient
    return_format=return_format)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/systems.py", line 861, in calc_gradient
    J = self.ln_solver.calc_gradient(inputs, outputs, return_format)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/linearsolver.py", line 354, in calc_gradient
    J = self.ln_solver.calc_gradient(inputs, outputs, return_format)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/linearsolver.py", line 354, in calc_gradient
    solvec = system._compute_derivatives(param_tup, irhs)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/systems.py", line 945, in _compute_derivatives
    self.ln_solver.ksp.solve(self.rhs_buf_petsc, self.sol_buf_petsc)
  File "PETSc/KSP.pyx", line 363, in petsc4py.PETSc.KSP.solve (src/petsc4py.PETSc.c:149872)
    solvec = system._compute_derivatives(param_tup, irhs)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/systems.py", line 945, in _compute_derivatives
    self.ln_solver.ksp.solve(self.rhs_buf_petsc, self.sol_buf_petsc)
  File "PETSc/KSP.pyx", line 363, in petsc4py.PETSc.KSP.solve (src/petsc4py.PETSc.c:149872)
  File "libpetsc4py/libpetsc4py.pyx", line 1330, in libpetsc4py.PCApply_Python (src/libpetsc4py/libpetsc4py.c:15030)
  File "libpetsc4py/libpetsc4py.pyx", line 1330, in libpetsc4py.PCApply_Python (src/libpetsc4py/libpetsc4py.c:15030)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/linearsolver.py", line 438, in apply
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/linearsolver.py", line 438, in apply
    rhs_vec.array[:] = sol_vec.array[:]
    rhs_vec.array[:] = sol_vec.array[:]
  File "PETSc/Vec.pyx", line 855, in petsc4py.PETSc.Vec.array.__get__ (src/petsc4py.PETSc.c:100879)
  File "PETSc/Vec.pyx", line 855, in petsc4py.PETSc.Vec.array.__get__ (src/petsc4py.PETSc.c:100879)
  File "PETSc/Vec.pyx", line 839, in petsc4py.PETSc.Vec.array_w.__get__ (src/petsc4py.PETSc.c:100469)
  File "PETSc/Vec.pyx", line 839, in petsc4py.PETSc.Vec.array_w.__get__ (src/petsc4py.PETSc.c:100469)
  File "PETSc/Vec.pyx", line 369, in petsc4py.PETSc.Vec.getArray (src/petsc4py.PETSc.c:89249)
  File "PETSc/Vec.pyx", line 369, in petsc4py.PETSc.Vec.getArray (src/petsc4py.PETSc.c:89249)
  File "PETSc/petscvec.pxi", line 345, in petsc4py.PETSc.vec_getarray_w (src/petsc4py.PETSc.c:18567)
  File "PETSc/petscvec.pxi", line 345, in petsc4py.PETSc.vec_getarray_w (src/petsc4py.PETSc.c:18567)
  File "PETSc/arraynpy.pxi", line 67, in petsc4py.PETSc.asarray (src/petsc4py.PETSc.c:7525)
  File "PETSc/arraynpy.pxi", line 67, in petsc4py.PETSc.asarray (src/petsc4py.PETSc.c:7525)
  File "PETSc/petscvec.pxi", line 501, in petsc4py.PETSc._Vec_buffer.__getreadbuffer__ (src/petsc4py.PETSc.c:20767)
  File "PETSc/petscvec.pxi", line 501, in petsc4py.PETSc._Vec_buffer.__getreadbuffer__ (src/petsc4py.PETSc.c:20767)
  File "PETSc/petscvec.pxi", line 486, in petsc4py.PETSc._Vec_buffer.getbuffer (src/petsc4py.PETSc.c:20552)
  File "PETSc/petscvec.pxi", line 486, in petsc4py.PETSc._Vec_buffer.getbuffer (src/petsc4py.PETSc.c:20552)
  File "PETSc/petscvec.pxi", line 434, in petsc4py.PETSc._Vec_buffer.acquire (src/petsc4py.PETSc.c:19846)
  File "PETSc/petscvec.pxi", line 434, in petsc4py.PETSc._Vec_buffer.acquire (src/petsc4py.PETSc.c:19846)
  File "PETSc/petscvec.pxi", line 399, in petsc4py.PETSc.Vec_AcquireArray (src/petsc4py.PETSc.c:19418)
  File "PETSc/petscvec.pxi", line 399, in petsc4py.PETSc.Vec_AcquireArray (src/petsc4py.PETSc.c:19418)
Error: error code 73
[1] KSPSolve() line 604 in /home/pgraf/opt/petsc/src/ksp/ksp/interface/itfunc.c
[1] KSPSolve_FGMRES() line 295 in /home/pgraf/opt/petsc/src/ksp/ksp/impls/gmres/fgmres/fgmres.c
[1] KSPFGMRESCycle() line 168 in /home/pgraf/opt/petsc/src/ksp/ksp/impls/gmres/fgmres/fgmres.c
[1] KSP_PCApply() line 242 in /home/pgraf/opt/petsc/include/petsc/private/kspimpl.h
[1] PCApply() line 483 in /home/pgraf/opt/petsc/src/ksp/pc/interface/precon.c
[1] VecGetArray() line 1646 in /home/pgraf/opt/petsc/src/vec/vec/interface/rvector.c
[1] Object is in wrong state
[1]  Vec is locked read only, argument # 1
======================================================================
Error: error code 73
[0] KSPSolve() line 604 in /home/pgraf/opt/petsc/src/ksp/ksp/interface/itfunc.c
[0] KSPSolve_FGMRES() line 295 in /home/pgraf/opt/petsc/src/ksp/ksp/impls/gmres/fgmres/fgmres.c
[0] KSPFGMRESCycle() line 168 in /home/pgraf/opt/petsc/src/ksp/ksp/impls/gmres/fgmres/fgmres.c
[0] KSP_PCApply() line 242 in /home/pgraf/opt/petsc/include/petsc/private/kspimpl.h
[0] PCApply() line 483 in /home/pgraf/opt/petsc/src/ksp/pc/interface/precon.c
[0] VecGetArray() line 1646 in /home/pgraf/opt/petsc/src/vec/vec/interface/rvector.c
[0] Object is in wrong state
[0]  Vec is locked read only, argument # 1

+------------------------------------------------------------------------------+
| pyOptSparse Error: The key for the objective gradient, '_pseudo_0.out0',     |
| was not found.                                                               |
+------------------------------------------------------------------------------+

======================================================================
capi_return is NULL
Call-back cb_userfg_in_snoptc__user__routines failed.

+------------------------------------------------------------------------------+
| pyOptSparse Error: The key for the objective gradient, '_pseudo_0.out0',     |
| was not found.                                                               |
+------------------------------------------------------------------------------+

Traceback (most recent call last):
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/component.py", line 559, in run
    self.execute()
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse_driver-0.1-py2.7.egg/pyoptsparse_driver/pyoptsparse_driver.py", line 228, in execute
    sol = opt(opt_prob, sens=self.gradfunc)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse/pyoptsparse/pySNOPT/pySNOPT.py", line 504, in __call__
    self._waitLoop()
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse/pyoptsparse/pyOpt_optimizer.py", line 581, in _waitLoop
    self._masterFunc2(*info)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse/pyoptsparse/pyOpt_optimizer.py", line 422, in _masterFunc2
    gobj = self.optProb.processObjectiveGradient(funcsSens)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse/pyoptsparse/pyOpt_optimization.py", line 1302, in processObjectiveGradient
    objKey)
Error

Traceback (most recent call last):
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/component.py", line 559, in run
    self.execute()
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse_driver-0.1-py2.7.egg/pyoptsparse_driver/pyoptsparse_driver.py", line 228, in execute
    sol = opt(opt_prob, sens=self.gradfunc)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse/pyoptsparse/pySNOPT/pySNOPT.py", line 477, in __call__
    nS, ninf, sinf, ff, cu, iu, ru, cw, iw, rw)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse/pyoptsparse/pySNOPT/pySNOPT.py", line 533, in _userfg_wrap
    gobj, gcon, fail2 = self._masterFunc(x, ['gobj', 'gcon'])
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse/pyoptsparse/pyOpt_optimizer.py", line 280, in _masterFunc
    result = self._masterFunc2(*args)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse/pyoptsparse/pyOpt_optimizer.py", line 422, in _masterFunc2
    gobj = self.optProb.processObjectiveGradient(funcsSens)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse/pyoptsparse/pyOpt_optimization.py", line 1302, in processObjectiveGradient
    objKey)
Error

Traceback (most recent call last):
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/component.py", line 559, in run
    self.execute()
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/assembly.py", line 725, in execute
    self._system.run(self.itername, case_uuid=self._case_uuid)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/systems.py", line 1168, in run
    self._comp.run(case_uuid=case_uuid)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/driver.py", line 568, in run
    super(Driver, self).run(case_uuid)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/component.py", line 559, in run
    self.execute()
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse_driver-0.1-py2.7.egg/pyoptsparse_driver/pyoptsparse_driver.py", line 228, in execute
    sol = opt(opt_prob, sens=self.gradfunc)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse/pyoptsparse/pySNOPT/pySNOPT.py", line 504, in __call__
    self._waitLoop()
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse/pyoptsparse/pyOpt_optimizer.py", line 581, in _waitLoop
    self._masterFunc2(*info)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse/pyoptsparse/pyOpt_optimizer.py", line 422, in _masterFunc2
    gobj = self.optProb.processObjectiveGradient(funcsSens)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse/pyoptsparse/pyOpt_optimization.py", line 1302, in processObjectiveGradient
    objKey)
Error

Traceback (most recent call last):
  File "test2_forParallel_floats.py", line 82, in <module>
Traceback (most recent call last):
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/component.py", line 559, in run
    self.execute()
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/assembly.py", line 725, in execute
    self._system.run(self.itername, case_uuid=self._case_uuid)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/systems.py", line 1168, in run
    self._comp.run(case_uuid=case_uuid)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/driver.py", line 568, in run
    super(Driver, self).run(case_uuid)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/component.py", line 559, in run
    self.execute()
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse_driver-0.1-py2.7.egg/pyoptsparse_driver/pyoptsparse_driver.py", line 228, in execute
    sol = opt(opt_prob, sens=self.gradfunc)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse/pyoptsparse/pySNOPT/pySNOPT.py", line 477, in __call__
    nS, ninf, sinf, ff, cu, iu, ru, cw, iw, rw)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse/pyoptsparse/pySNOPT/pySNOPT.py", line 533, in _userfg_wrap
    gobj, gcon, fail2 = self._masterFunc(x, ['gobj', 'gcon'])
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse/pyoptsparse/pyOpt_optimizer.py", line 280, in _masterFunc
    result = self._masterFunc2(*args)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse/pyoptsparse/pyOpt_optimizer.py", line 422, in _masterFunc2
    gobj = self.optProb.processObjectiveGradient(funcsSens)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse/pyoptsparse/pyOpt_optimization.py", line 1302, in processObjectiveGradient
    objKey)
Error

Traceback (most recent call last):
  File "test2_forParallel_floats.py", line 82, in <module>
    sim.run()
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/component.py", line 559, in run
    self.execute()
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/assembly.py", line 725, in execute
    self._system.run(self.itername, case_uuid=self._case_uuid)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/systems.py", line 1168, in run
    self._comp.run(case_uuid=case_uuid)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/driver.py", line 568, in run
    super(Driver, self).run(case_uuid)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/component.py", line 559, in run
    self.execute()
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse_driver-0.1-py2.7.egg/pyoptsparse_driver/pyoptsparse_driver.py", line 228, in execute
    sol = opt(opt_prob, sens=self.gradfunc)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse/pyoptsparse/pySNOPT/pySNOPT.py", line 504, in __call__
    sim.run()
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/component.py", line 559, in run
    self.execute()
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/assembly.py", line 725, in execute
    self._system.run(self.itername, case_uuid=self._case_uuid)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/systems.py", line 1168, in run
    self._comp.run(case_uuid=case_uuid)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/driver.py", line 568, in run
    super(Driver, self).run(case_uuid)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/component.py", line 559, in run
    self.execute()
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse_driver-0.1-py2.7.egg/pyoptsparse_driver/pyoptsparse_driver.py", line 228, in execute
    sol = opt(opt_prob, sens=self.gradfunc)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse/pyoptsparse/pySNOPT/pySNOPT.py", line 477, in __call__
    nS, ninf, sinf, ff, cu, iu, ru, cw, iw, rw)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse/pyoptsparse/pySNOPT/pySNOPT.py", line 533, in _userfg_wrap
    self._waitLoop()
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse/pyoptsparse/pyOpt_optimizer.py", line 581, in _waitLoop
    gobj, gcon, fail2 = self._masterFunc(x, ['gobj', 'gcon'])
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse/pyoptsparse/pyOpt_optimizer.py", line 280, in _masterFunc
    result = self._masterFunc2(*args)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse/pyoptsparse/pyOpt_optimizer.py", line 422, in _masterFunc2
    self._masterFunc2(*info)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse/pyoptsparse/pyOpt_optimizer.py", line 422, in _masterFunc2
    gobj = self.optProb.processObjectiveGradient(funcsSens)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse/pyoptsparse/pyOpt_optimization.py", line 1302, in processObjectiveGradient
    gobj = self.optProb.processObjectiveGradient(funcsSens)
  File "/scratch/pgebraad/OpenMDAO/openmdao-0.13.0/lib/python2.7/site-packages/pyoptsparse/pyoptsparse/pyOpt_optimization.py", line 1302, in processObjectiveGradient
    objKey)
pyoptsparse.pyoptsparse.pyOpt_error.Error
    objKey)
pyoptsparse.pyoptsparse.pyOpt_error.Error
-------------------------------------------------------
Primary job  terminated normally, but 1 process returned
a non-zero exit code.. Per user-direction, the job has been aborted.
-------------------------------------------------------
--------------------------------------------------------------------------
mpirun detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:

  Process name: [[62069,1],1]
  Exit code:    1
--------------------------------------------------------------------------

asked 21 Aug '15, 13:22

pieterg's gravatar image

pieterg
1214

edited 21 Aug '15, 13:24


Thanks for the info. The petSC stack has been notoriously difficult to build. When I first tried to do it on my Ubuntu machine, I pulled my hair our for a while only to find out that they had accepted a commit that broke their latest branch.

Your findings matched mine though. I tried to get Petsc and Petsc4py to work on our new cluster, and I also had to revert to 3.5. In my case though, I couldn't get petc4py to build at all.

link

answered 21 Aug '15, 13:33

Kenneth%20T%20Moore's gravatar image

Kenneth T Moore ♦
1.1k1212

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×16

Asked: 21 Aug '15, 13:22

Seen: 5,440 times

Last updated: 21 Aug '15, 13:33

powered by OSQA