Skip to content

Failed

gpkit.tests.from_paths.TestFiles.test_gpkitmodels_GP_aircraft_motor_motor_test_py_cvxopt (from gpkit.tests.from_paths.TestFiles-20200714100852)

Failing for the past 1 build (Since Failed #87 )
Took 25 ms.

Error Message

Cannot convert from '1 meter * newton * revolutions_per_minute / volt' to '1 attometer_per_second'

Stacktrace

Traceback (most recent call last):
  File "/Users/jenkins/workspace/CE_RM_gplibrary_PR/cvxopt/gpkit/gpkit/nomials/map.py", line 59, in __add__
    other *= float(other.units/self.units)
  File "/Users/jenkins/workspace/CE_RM_gplibrary_PR/cvxopt/venv2_gpkit/lib/python3.7/site-packages/pint/quantity.py", line 788, in __float__
    raise DimensionalityError(self._units, "dimensionless")
pint.errors.DimensionalityError: Cannot convert from 'attometer_per_second * volt / meter / newton / revolutions_per_minute' to 'dimensionless'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/jenkins/workspace/CE_RM_gplibrary_PR/cvxopt/gpkit/gpkit/tests/helpers.py", line 59, in test
    testfn(name, import_dict, path)(self)
  File "/Users/jenkins/workspace/CE_RM_gplibrary_PR/cvxopt/gpkit/gpkit/tests/from_paths.py", line 48, in <lambda>
    lambda self: getattr(self, name)()))  # pylint:disable=undefined-variable
  File "/Users/jenkins/workspace/CE_RM_gplibrary_PR/cvxopt/gpkit/gpkit/tests/from_paths.py", line 37, in test_fn
    mod.test()
  File "/Users/jenkins/workspace/CE_RM_gplibrary_PR/cvxopt/gpkitmodels/GP/aircraft/motor/motor_test.py", line 101, in test
    motor_test()
  File "/Users/jenkins/workspace/CE_RM_gplibrary_PR/cvxopt/gpkitmodels/GP/aircraft/motor/motor_test.py", line 97, in motor_test
    test = Motor_P_Test()
  File "/Users/jenkins/workspace/CE_RM_gplibrary_PR/cvxopt/gpkit/gpkit/constraints/model.py", line 54, in __init__
    cs = self.setup(*args, **kwargs)  # pylint: disable=no-member
  File "/Users/jenkins/workspace/CE_RM_gplibrary_PR/cvxopt/gpkitmodels/GP/aircraft/motor/motor_test.py", line 63, in setup
    mp = MotorPerf(m,fs)
  File "/Users/jenkins/workspace/CE_RM_gplibrary_PR/cvxopt/gpkit/gpkit/constraints/model.py", line 54, in __init__
    cs = self.setup(*args, **kwargs)  # pylint: disable=no-member
  File "/Users/jenkins/workspace/CE_RM_gplibrary_PR/cvxopt/venv2_gpkit/lib/python3.7/site-packages/gpkitmodels/GP/aircraft/motor/motor.py", line 36, in setup
    i >= Q*Kv+i0,
  File "/Users/jenkins/workspace/CE_RM_gplibrary_PR/cvxopt/gpkit/gpkit/nomials/math.py", line 194, in __add__
    out = Signomial(self.hmap + other_hmap)
  File "/Users/jenkins/workspace/CE_RM_gplibrary_PR/cvxopt/gpkit/gpkit/nomials/map.py", line 61, in __add__
    raise DimensionalityError(self.units, other.units)
pint.errors.DimensionalityError: Cannot convert from '1 meter * newton * revolutions_per_minute / volt' to '1 attometer_per_second'
		

Standard Output

Using solver 'cvxopt'
 for 11 free variables
  in 14 posynomial inequalities.
Solving took 0.036 seconds.
Infeasible monomial equality: Cannot convert from 'Motor_P_Test.MotorPerf.v·Motor_P_Test.MotorPerf.i [V·amps]' to 'Motor_P_Test.MotorPerf.Pelec [kW]'
Using solver 'cvxopt'
 for 13 free variables
  in 16 posynomial inequalities.
Solving took 0.00741 seconds.
Starting a sequence of GP solves
 for 53 free variables
  in 11 locally-GP constraints
  and for 117 free variables
       in 190 posynomial inequalities.
Solving took 2.07 seconds and 11 GP solves.
Warning: Variable BladeElementProp.BladeElementPerf.cl[:] could cause inaccurate result because it is below lower bound. Solution is 0.6000 but bound is 0.4742
Warning: Variable BladeElementProp.BladeElementPerf.Re[:] could cause inaccurate result because it is above upper bound. Solution is 1619876.7102 but bound is 700000.0000
Warning: skipped auto-differentiation of linked variable HorizontalTail.Planform.cbarmac because NotImplementedError("Automatic differentiation not yet supported for <class 'pint.quantity.build_quantity_class.<locals>.Quantity'> objects") was raised. Set `gpkit.settings["ad_errors_raise"] = True` to raise such Exceptions directly.

Warning: Variable TailAero.Re could cause inaccurate result because it is above upper bound. Solution is 2220952.7989 but bound is 1000000.0000
Warning: skipped auto-differentiation of linked variable VerticalTail.Planform.cbarmac because NotImplementedError("Automatic differentiation not yet supported for <class 'pint.quantity.build_quantity_class.<locals>.Quantity'> objects") was raised. Set `gpkit.settings["ad_errors_raise"] = True` to raise such Exceptions directly.

Warning: Variable TailAero1.Re could cause inaccurate result because it is above upper bound. Solution is 2499784.9334 but bound is 1000000.0000
Warning: skipped auto-differentiation of linked variable Empennage.HorizontalTail.Planform.cbarmac because NotImplementedError("Automatic differentiation not yet supported for <class 'pint.quantity.build_quantity_class.<locals>.Quantity'> objects") was raised. Set `gpkit.settings["ad_errors_raise"] = True` to raise such Exceptions directly.

Warning: skipped auto-differentiation of linked variable Empennage.VerticalTail.Planform.cbarmac because NotImplementedError("Automatic differentiation not yet supported for <class 'pint.quantity.build_quantity_class.<locals>.Quantity'> objects") was raised. Set `gpkit.settings["ad_errors_raise"] = True` to raise such Exceptions directly.

Warning: Variable TailAero2.Re could cause inaccurate result because it is above upper bound. Solution is 2223840.1738 but bound is 1000000.0000
Warning: Variable TailAero3.Re could cause inaccurate result because it is above upper bound. Solution is 2223840.1106 but bound is 1000000.0000
Warning: skipped auto-differentiation of linked variable Empennage1.HorizontalTail.Planform.cbarmac because NotImplementedError("Automatic differentiation not yet supported for <class 'pint.quantity.build_quantity_class.<locals>.Quantity'> objects") was raised. Set `gpkit.settings["ad_errors_raise"] = True` to raise such Exceptions directly.

Warning: skipped auto-differentiation of linked variable Empennage1.VerticalTail.Planform.cbarmac because NotImplementedError("Automatic differentiation not yet supported for <class 'pint.quantity.build_quantity_class.<locals>.Quantity'> objects") was raised. Set `gpkit.settings["ad_errors_raise"] = True` to raise such Exceptions directly.

Warning: Variable TailAero4.Re could cause inaccurate result because it is above upper bound. Solution is 1849726.5704 but bound is 1000000.0000
Warning: Variable TailAero5.Re could cause inaccurate result because it is above upper bound. Solution is 1849726.5561 but bound is 1000000.0000
Warning: skipped auto-differentiation of linked variable Wing.Planform.cbarmac because NotImplementedError("Automatic differentiation not yet supported for <class 'pint.quantity.build_quantity_class.<locals>.Quantity'> objects") was raised. Set `gpkit.settings["ad_errors_raise"] = True` to raise such Exceptions directly.

Warning: Variable WingAero.Re could cause inaccurate result because it is above upper bound. Solution is 2197590.3832 but bound is 700000.0000
Warning: skipped auto-differentiation of linked variable Wing1.Planform.cbarmac because NotImplementedError("Automatic differentiation not yet supported for <class 'pint.quantity.build_quantity_class.<locals>.Quantity'> objects") was raised. Set `gpkit.settings["ad_errors_raise"] = True` to raise such Exceptions directly.

Warning: Variable WingAero1.Re could cause inaccurate result because it is above upper bound. Solution is 1928321.4249 but bound is 700000.0000
SGP not convergent: Cost rose by 6.1% on GP solve 2. Details can be found in `m.program.results` or by solving at a higher verbosity. Note that convergence is not guaranteed for models with SignomialEqualities.

Starting a sequence of GP solves
 for 4 free variables
  in 1 locally-GP constraints
  and for 21 free variables
       in 22 posynomial inequalities.

GP Solve 1
Using solver 'cvxopt'
 for 21 free variables
  in 22 posynomial inequalities.
Solving took 0.00968 seconds.
Solved cost was 5717.

GP Solve 2
Using solver 'cvxopt'
 for 21 free variables
  in 22 posynomial inequalities.
Solving took 0.00964 seconds.
Solved cost was 4538.

GP Solve 3
Using solver 'cvxopt'
 for 21 free variables
  in 22 posynomial inequalities.
Solving took 0.00938 seconds.
Solved cost was 4536.

GP Solve 4
Using solver 'cvxopt'
 for 21 free variables
  in 22 posynomial inequalities.
Solving took 0.00975 seconds.
Solved cost was 4536.

Solving took 0.0414 seconds and 4 GP solves.
	

Standard Error

/Users/jenkins/workspace/CE_RM_gplibrary_PR/cvxopt/venv2_gpkit/lib/python3.7/site-packages/numpy/core/_asarray.py:136: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
  return array(a, dtype, copy=False, order=order, subok=True)
/Users/jenkins/workspace/CE_RM_gplibrary_PR/cvxopt/venv2_gpkit/lib/python3.7/site-packages/numpy/core/fromnumeric.py:87: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
  return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
/Users/jenkins/workspace/CE_RM_gplibrary_PR/cvxopt/gpkit/gpkit/constraints/prog_factories.py:32: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
  array_calulated[v.veckey] = np.array(ofn(kdc))
/Users/jenkins/workspace/CE_RM_gplibrary_PR/cvxopt/venv2_gpkit/lib/python3.7/site-packages/numpy/core/fromnumeric.py:87: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
  return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
/Users/jenkins/workspace/CE_RM_gplibrary_PR/cvxopt/gpkit/gpkit/constraints/prog_factories.py:32: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
  array_calulated[v.veckey] = np.array(ofn(kdc))
/Users/jenkins/workspace/CE_RM_gplibrary_PR/cvxopt/venv2_gpkit/lib/python3.7/site-packages/numpy/core/fromnumeric.py:87: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
  return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
/Users/jenkins/workspace/CE_RM_gplibrary_PR/cvxopt/gpkit/gpkit/constraints/prog_factories.py:32: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
  array_calulated[v.veckey] = np.array(ofn(kdc))
/Users/jenkins/workspace/CE_RM_gplibrary_PR/cvxopt/venv2_gpkit/lib/python3.7/site-packages/numpy/core/fromnumeric.py:87: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
  return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
/Users/jenkins/workspace/CE_RM_gplibrary_PR/cvxopt/gpkit/gpkit/constraints/prog_factories.py:32: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
  array_calulated[v.veckey] = np.array(ofn(kdc))
/Users/jenkins/workspace/CE_RM_gplibrary_PR/cvxopt/venv2_gpkit/lib/python3.7/site-packages/numpy/core/fromnumeric.py:87: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
  return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
/Users/jenkins/workspace/CE_RM_gplibrary_PR/cvxopt/gpkit/gpkit/constraints/prog_factories.py:32: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
  array_calulated[v.veckey] = np.array(ofn(kdc))
/Users/jenkins/workspace/CE_RM_gplibrary_PR/cvxopt/venv2_gpkit/lib/python3.7/site-packages/numpy/core/fromnumeric.py:87: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
  return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
/Users/jenkins/workspace/CE_RM_gplibrary_PR/cvxopt/gpkit/gpkit/constraints/prog_factories.py:32: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
  array_calulated[v.veckey] = np.array(ofn(kdc))
/Users/jenkins/workspace/CE_RM_gplibrary_PR/cvxopt/venv2_gpkit/lib/python3.7/site-packages/numpy/core/fromnumeric.py:87: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
  return ufunc.reduce(obj, axis, dtype, out, **passkwargs)