Skip to content

Failed

gpkit.tests.from_paths.TestFiles.test_solar_solar_py_mosek (from gpkit.tests.from_paths.TestFiles-20180428100542)

Failing for the past 1 build (Since Failed #89 )
Took 11 sec.

Error Message

local variable 'constraints' referenced before assignment

Stacktrace

Traceback (most recent call last):
  File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkit\gpkit\tests\helpers.py", line 62, in test
    testfn(name, import_dict, path)(self)
  File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkit\gpkit\tests\from_paths.py", line 50, in <lambda>
    lambda self: getattr(self, name)()))  # pylint:disable=undefined-variable
  File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkit\gpkit\tests\from_paths.py", line 39, in test_fn
    mod.test()
  File "solar.py", line 654, in test
  File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkit\gpkit\constraints\model.py", line 61, in __init__
    cs = self.setup(*args, **kwargs)  # pylint: disable=no-member
  File "solar.py", line 633, in setup
  File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkit\gpkit\constraints\model.py", line 61, in __init__
    cs = self.setup(*args, **kwargs)  # pylint: disable=no-member
  File "solar.py", line 479, in setup
  File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkit\gpkit\constraints\model.py", line 61, in __init__
    cs = self.setup(*args, **kwargs)  # pylint: disable=no-member
  File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkitmodels\GP\aircraft\wing\sparloading.py", line 70, in setup
    constraints.extend([
UnboundLocalError: local variable 'constraints' referenced before assignment
		

Standard Output

Beginning signomial solve.
Solving took 10 GP solves and 25.4 seconds.
Warning: Variable [CL_Mission/Climb/AircraftDrag/WingAero_(0,), CL_Mission/Climb/AircraftDrag/WingAero_(1,), CL_Missio could cause inaccurate result because it is below lower bound. Solution is 1.0537 but bound is 0.9465
Warning: Variable [Re_Mission/Climb/AircraftDrag/WingAero_(0,), Re_Mission/Climb/AircraftDrag/WingAero_(1,), Re_Missio could cause inaccurate result because it is above upper bound. Solution is 1372944.8238 but bound is 600000.0000
Warning: Variable [Re_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(0,), Re_Mis could cause inaccurate result because it is below lower bound. Solution is 79493.7395 but bound is 50000.0000
Warning: Constraint [0.151*B_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(0,)**-2... >= 0.00633*B_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(0,)**...] is not tight because the left hand side evaluated to 2.1182607537 meter ** 2 / second ** 2 but the right hand side evaluated to 2.11825781223 meter ** 2 / second ** 2 (Allowable error: 0.0001%, Actual error: 0.00014%)

Warning: Constraint [0.151*B_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(1,)**-2... >= 0.00633*B_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(1,)**...] is not tight because the left hand side evaluated to 1.63010986521 meter ** 2 / second ** 2 but the right hand side evaluated to 1.63010574807 meter ** 2 / second ** 2 (Allowable error: 0.0001%, Actual error: 0.00025%)

Warning: Constraint [0.151*B_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(2,)**-2... >= 0.00633*B_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(2,)**...] is not tight because the left hand side evaluated to 0.911985264127 meter ** 2 / second ** 2 but the right hand side evaluated to 0.911983814512 meter ** 2 / second ** 2 (Allowable error: 0.0001%, Actual error: 0.00016%)

Beginning signomial solve.
Solving took 10 GP solves and 26.7 seconds.
Warning: Variable [CL_Mission/Climb/AircraftDrag/WingAero_(0,), CL_Mission/Climb/AircraftDrag/WingAero_(1,), CL_Missio could cause inaccurate result because it is below lower bound. Solution is 1.0537 but bound is 0.9465
Warning: Variable [Re_Mission/Climb/AircraftDrag/WingAero_(0,), Re_Mission/Climb/AircraftDrag/WingAero_(1,), Re_Missio could cause inaccurate result because it is above upper bound. Solution is 1372945.2705 but bound is 600000.0000
Warning: Variable [Re_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(0,), Re_Mis could cause inaccurate result because it is below lower bound. Solution is 79493.7395 but bound is 50000.0000
Warning: Constraint [0.151*B_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(0,)**-2... >= 0.00633*B_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(0,)**...] is not tight because the left hand side evaluated to 2.11826075491 meter ** 2 / second ** 2 but the right hand side evaluated to 2.11825781344 meter ** 2 / second ** 2 (Allowable error: 0.0001%, Actual error: 0.00014%)

Warning: Constraint [0.151*B_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(1,)**-2... >= 0.00633*B_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(1,)**...] is not tight because the left hand side evaluated to 1.63010986522 meter ** 2 / second ** 2 but the right hand side evaluated to 1.63010574808 meter ** 2 / second ** 2 (Allowable error: 0.0001%, Actual error: 0.00025%)

Warning: Constraint [0.151*B_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(2,)**-2... >= 0.00633*B_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(2,)**...] is not tight because the left hand side evaluated to 0.911985264137 meter ** 2 / second ** 2 but the right hand side evaluated to 0.911983814522 meter ** 2 / second ** 2 (Allowable error: 0.0001%, Actual error: 0.00016%)

Using solver 'mosek'
Solving for 12129 variables.
Solving took 16.6 seconds.
Warning: Variable [CL_Mission/Climb/AircraftDrag/WingAero_(0,), CL_Mission/Climb/AircraftDrag/WingAero_(1,), CL_Missio could cause inaccurate result because it is below lower bound. Solution is 1.2985 but bound is 0.9465
Warning: Variable [Re_Mission/Climb/AircraftDrag/WingAero_(0,), Re_Mission/Climb/AircraftDrag/WingAero_(1,), Re_Missio could cause inaccurate result because it is above upper bound. Solution is 720429.8172 but bound is 600000.0000
Using solver 'mosek'
Solving for 12129 variables.
Solving took 6.06 seconds.
Warning: Variable [CL_Mission.1/Climb.1/AircraftDrag.41/WingAero.41_(0,), CL_Mission.1/Climb.1/AircraftDrag.41/WingAer could cause inaccurate result because it is below lower bound. Solution is 1.2521 but bound is 0.9465
Warning: Variable [Re_Mission.1/Climb.1/AircraftDrag.41/WingAero.41_(0,), Re_Mission.1/Climb.1/AircraftDrag.41/WingAer could cause inaccurate result because it is above upper bound. Solution is 791679.4706 but bound is 600000.0000
Using solver 'mosek'
Solving for 12129 variables.
Solving took 8.09 seconds.
Warning: Variable [CL_Mission.2/Climb.2/AircraftDrag.82/WingAero.82_(0,), CL_Mission.2/Climb.2/AircraftDrag.82/WingAer could cause inaccurate result because it is below lower bound. Solution is 1.1920 but bound is 0.9465
Warning: Variable [Re_Mission.2/Climb.2/AircraftDrag.82/WingAero.82_(0,), Re_Mission.2/Climb.2/AircraftDrag.82/WingAer could cause inaccurate result because it is above upper bound. Solution is 883741.3401 but bound is 600000.0000
Using solver 'mosek'
Solving for 6269 variables.
Solving took 3.17 seconds.
Warning: Variable [CL_Mission.3/Climb.3/AircraftDrag.123/WingAero.123_(0,), CL_Mission.3/Climb.3/AircraftDrag.123/Wing could cause inaccurate result because it is below lower bound. Solution is 1.1637 but bound is 0.9465
Warning: Variable [Re_Mission.3/Climb.3/AircraftDrag.123/WingAero.123_(0,), Re_Mission.3/Climb.3/AircraftDrag.123/Wing could cause inaccurate result because it is above upper bound. Solution is 933393.0320 but bound is 600000.0000
Using solver 'mosek'
Solving for 12129 variables.
Solving took 3.17 seconds.
Warning: Variable [CL_Mission/Climb/AircraftDrag/WingAero_(0,), CL_Mission/Climb/AircraftDrag/WingAero_(1,), CL_Missio could cause inaccurate result because it is below lower bound. Solution is 1.2985 but bound is 0.9465
Warning: Variable [Re_Mission/Climb/AircraftDrag/WingAero_(0,), Re_Mission/Climb/AircraftDrag/WingAero_(1,), Re_Missio could cause inaccurate result because it is above upper bound. Solution is 720429.8208 but bound is 600000.0000
Using solver 'mosek'
Solving for 12129 variables.
Solving took 3.72 seconds.
Warning: Variable [CL_Mission.1/Climb.1/AircraftDrag.41/WingAero.41_(0,), CL_Mission.1/Climb.1/AircraftDrag.41/WingAer could cause inaccurate result because it is below lower bound. Solution is 1.2521 but bound is 0.9465
Warning: Variable [Re_Mission.1/Climb.1/AircraftDrag.41/WingAero.41_(0,), Re_Mission.1/Climb.1/AircraftDrag.41/WingAer could cause inaccurate result because it is above upper bound. Solution is 791679.4793 but bound is 600000.0000
Using solver 'mosek'
Solving for 12129 variables.
Solving took 4.92 seconds.
Warning: Variable [CL_Mission.2/Climb.2/AircraftDrag.82/WingAero.82_(0,), CL_Mission.2/Climb.2/AircraftDrag.82/WingAer could cause inaccurate result because it is below lower bound. Solution is 1.1920 but bound is 0.9465
Warning: Variable [Re_Mission.2/Climb.2/AircraftDrag.82/WingAero.82_(0,), Re_Mission.2/Climb.2/AircraftDrag.82/WingAer could cause inaccurate result because it is above upper bound. Solution is 883741.3365 but bound is 600000.0000
Using solver 'mosek'
Solving for 6269 variables.
Solving took 1.51 seconds.
Warning: Variable [CL_Mission.3/Climb.3/AircraftDrag.123/WingAero.123_(0,), CL_Mission.3/Climb.3/AircraftDrag.123/Wing could cause inaccurate result because it is below lower bound. Solution is 1.1637 but bound is 0.9465
Warning: Variable [Re_Mission.3/Climb.3/AircraftDrag.123/WingAero.123_(0,), Re_Mission.3/Climb.3/AircraftDrag.123/Wing could cause inaccurate result because it is above upper bound. Solution is 933393.0303 but bound is 600000.0000
Beginning signomial solve.
Solving took 10 GP solves and 6.98 seconds.
Warning: Variable [CL_Mission/Climb/AircraftDrag/WingAero_(0,), CL_Mission/Climb/AircraftDrag/WingAero_(1,), CL_Missio could cause inaccurate result because it is below lower bound. Solution is 1.0537 but bound is 0.9465
Warning: Variable [Re_Mission/Climb/AircraftDrag/WingAero_(0,), Re_Mission/Climb/AircraftDrag/WingAero_(1,), Re_Missio could cause inaccurate result because it is above upper bound. Solution is 1372945.2651 but bound is 600000.0000
Warning: Variable [Re_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(0,), Re_Mis could cause inaccurate result because it is below lower bound. Solution is 79493.7395 but bound is 50000.0000
Warning: Constraint [0.151*B_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(0,)**-2... >= 0.00633*B_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(0,)**...] is not tight because the left hand side evaluated to 2.1182607549 meter ** 2 / second ** 2 but the right hand side evaluated to 2.11825781342 meter ** 2 / second ** 2 (Allowable error: 0.0001%, Actual error: 0.00014%)

Warning: Constraint [0.151*B_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(1,)**-2... >= 0.00633*B_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(1,)**...] is not tight because the left hand side evaluated to 1.63010986522 meter ** 2 / second ** 2 but the right hand side evaluated to 1.63010574808 meter ** 2 / second ** 2 (Allowable error: 0.0001%, Actual error: 0.00025%)

Warning: Constraint [0.151*B_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(2,)**-2... >= 0.00633*B_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(2,)**...] is not tight because the left hand side evaluated to 0.911985264137 meter ** 2 / second ** 2 but the right hand side evaluated to 0.911983814522 meter ** 2 / second ** 2 (Allowable error: 0.0001%, Actual error: 0.00016%)

Beginning signomial solve.
Solving took 10 GP solves and 6.5 seconds.
Warning: Variable [CL_Mission/Climb/AircraftDrag/WingAero_(0,), CL_Mission/Climb/AircraftDrag/WingAero_(1,), CL_Missio could cause inaccurate result because it is below lower bound. Solution is 1.0537 but bound is 0.9465
Warning: Variable [Re_Mission/Climb/AircraftDrag/WingAero_(0,), Re_Mission/Climb/AircraftDrag/WingAero_(1,), Re_Missio could cause inaccurate result because it is above upper bound. Solution is 1372945.2750 but bound is 600000.0000
Warning: Variable [Re_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(0,), Re_Mis could cause inaccurate result because it is below lower bound. Solution is 79493.7395 but bound is 50000.0000
Warning: Constraint [0.151*B_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(0,)**-2... >= 0.00633*B_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(0,)**...] is not tight because the left hand side evaluated to 2.11826075492 meter ** 2 / second ** 2 but the right hand side evaluated to 2.11825781344 meter ** 2 / second ** 2 (Allowable error: 0.0001%, Actual error: 0.00014%)

Warning: Constraint [0.151*B_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(1,)**-2... >= 0.00633*B_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(1,)**...] is not tight because the left hand side evaluated to 1.63010986522 meter ** 2 / second ** 2 but the right hand side evaluated to 1.63010574807 meter ** 2 / second ** 2 (Allowable error: 0.0001%, Actual error: 0.00025%)

Warning: Constraint [0.151*B_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(2,)**-2... >= 0.00633*B_Mission/FlightSegment/AircraftPerf/AircraftDrag.1/BladeElementProp/BladeElementPerf_(2,)**...] is not tight because the left hand side evaluated to 0.911985264136 meter ** 2 / second ** 2 but the right hand side evaluated to 0.911983814521 meter ** 2 / second ** 2 (Allowable error: 0.0001%, Actual error: 0.00016%)

Using solver 'mosek'
Solving for 702 variables.
Solving took 0.381 seconds.
Warning: Variable [CL_Mission/Climb/AircraftDrag/WingAero_(0,), CL_Mission/Climb/AircraftDrag/WingAero_(1,), CL_Missio could cause inaccurate result because it is below lower bound. Solution is 1.2555 but bound is 0.9465
Warning: Variable [Re_Mission/Climb/AircraftDrag/WingAero_(0,), Re_Mission/Climb/AircraftDrag/WingAero_(1,), Re_Missio could cause inaccurate result because it is above upper bound. Solution is 773120.5118 but bound is 600000.0000
Beginning signomial solve.
Solving took 9 GP solves and 6.44 seconds.
Warning: Variable [CL_Mission.1/Climb.1/AircraftDrag.2/WingAero.2_(0,), CL_Mission.1/Climb.1/AircraftDrag.2/WingAero.2 could cause inaccurate result because it is below lower bound. Solution is 1.0784 but bound is 0.9465
Warning: Variable [Re_Mission.1/Climb.1/AircraftDrag.2/WingAero.2_(0,), Re_Mission.1/Climb.1/AircraftDrag.2/WingAero.2 could cause inaccurate result because it is above upper bound. Solution is 1002038.7230 but bound is 600000.0000
Warning: Variable [Re_Mission.1/FlightSegment.1/AircraftPerf.1/AircraftDrag.3/BladeElementProp/BladeElementPerf_(0,),  could cause inaccurate result because it is below lower bound. Solution is 76735.5639 but bound is 50000.0000
Warning: Constraint [0.151*B_Mission.1/FlightSegment.1/AircraftPerf.1/AircraftDrag.3/BladeElementProp/BladeElementPerf_(1... >= 0.00633*B_Mission.1/FlightSegment.1/AircraftPerf.1/AircraftDrag.3/BladeElementProp/BladeElementPerf_...] is not tight because the left hand side evaluated to 1.39813215992 meter ** 2 / second ** 2 but the right hand side evaluated to 1.39812954853 meter ** 2 / second ** 2 (Allowable error: 0.0001%, Actual error: 0.00019%)

Warning: Constraint [0.151*B_Mission.1/FlightSegment.1/AircraftPerf.1/AircraftDrag.3/BladeElementProp/BladeElementPerf_(2... >= 0.00633*B_Mission.1/FlightSegment.1/AircraftPerf.1/AircraftDrag.3/BladeElementProp/BladeElementPerf_...] is not tight because the left hand side evaluated to 0.803919027519 meter ** 2 / second ** 2 but the right hand side evaluated to 0.803918046084 meter ** 2 / second ** 2 (Allowable error: 0.0001%, Actual error: 0.00012%)

Using solver 'mosek_cli'
Solving for 702 variables.
Solving took 0.571 seconds.
Warning: Variable [CL_Mission/Climb/AircraftDrag/WingAero_(0,), CL_Mission/Climb/AircraftDrag/WingAero_(1,), CL_Missio could cause inaccurate result because it is below lower bound. Solution is 1.2555 but bound is 0.9465
Warning: Variable [Re_Mission/Climb/AircraftDrag/WingAero_(0,), Re_Mission/Climb/AircraftDrag/WingAero_(1,), Re_Missio could cause inaccurate result because it is above upper bound. Solution is 773120.3442 but bound is 600000.0000
Beginning signomial solve.
Solving took 9 GP solves and 21.9 seconds.
Warning: Variable [CL_Mission.1/Climb.1/AircraftDrag.2/WingAero.2_(0,), CL_Mission.1/Climb.1/AircraftDrag.2/WingAero.2 could cause inaccurate result because it is below lower bound. Solution is 1.0784 but bound is 0.9465
Warning: Variable [Re_Mission.1/Climb.1/AircraftDrag.2/WingAero.2_(0,), Re_Mission.1/Climb.1/AircraftDrag.2/WingAero.2 could cause inaccurate result because it is above upper bound. Solution is 1002041.5231 but bound is 600000.0000
Warning: Constraint [dQ_Mission.1/FlightSegment.1/AircraftPerf.1/AircraftDrag.3/BladeElementProp/BladeElementPerf_(0,) [N... >= B_Mission.1/FlightSegment.1/AircraftPerf.1/AircraftDrag.3/BladeElementProp/BladeElementPerf_(0,)*G_M...] is not tight because the left hand side evaluated to 0.0359295931977 meter * newton but the right hand side evaluated to 0.0359295529168 kilogram * meter ** 2 / second ** 2 (Allowable error: 0.0001%, Actual error: 0.00011%)

Warning: Variable [Re_Mission.1/FlightSegment.1/AircraftPerf.1/AircraftDrag.3/BladeElementProp/BladeElementPerf_(0,),  could cause inaccurate result because it is below lower bound. Solution is 76735.5213 but bound is 50000.0000
Warning: Constraint [0.151*B_Mission.1/FlightSegment.1/AircraftPerf.1/AircraftDrag.3/BladeElementProp/BladeElementPerf_(1... >= 0.00633*B_Mission.1/FlightSegment.1/AircraftPerf.1/AircraftDrag.3/BladeElementProp/BladeElementPerf_...] is not tight because the left hand side evaluated to 1.39813162962 meter ** 2 / second ** 2 but the right hand side evaluated to 1.39812837496 meter ** 2 / second ** 2 (Allowable error: 0.0001%, Actual error: 0.00023%)

	

Standard Error

D:\jenkins\workspace\gplibrary_PR_Models\mosek\venv2_gpkit\lib\site-packages\gassolar\environment\solar_irradiance.py:40: RuntimeWarning: overflow encountered in exp
  tau = np.exp(-0.175/costhsun)
D:\jenkins\workspace\gplibrary_PR_Models\mosek\venv2_gpkit\lib\site-packages\gassolar\environment\solar_irradiance.py:40: RuntimeWarning: divide by zero encountered in divide
  tau = np.exp(-0.175/costhsun)