esa / pygmo2

A Python platform to perform parallel computations of optimisation tasks (global and local) via the asynchronous generalized island model.
https://esa.github.io/pygmo2/
Mozilla Public License 2.0
436 stars 56 forks source link

Installing on Mac OS 11.5.2 #88

Closed fedefalo closed 3 years ago

fedefalo commented 3 years ago

Hi. I'm trying to install pygmo through conda as instructed. When I run import pygmo pygmo.test.run_test_suite() the test suite finds different errors. What can I do to fix it?

bluescarni commented 3 years ago

Could you post here the full screen output of the test suite?

fedefalo commented 3 years ago

runTest (pygmo.test.core_test_case) ... ok runTest (pygmo._bfe_test.bfe_test_case) ... ok runTest (pygmo._bfe_test.thread_bfe_test_case) ... ok runTest (pygmo._bfe_test.member_bfe_test_case) ... ok runTest (pygmo._bfe_test.mp_bfe_test_case) ... runTest (pygmo.test.core_test_case) ... runTest (pygmo.test.core_test_case) ... runTest (pygmo.test.core_test_case) ... runTest (pygmo.test.core_test_case) ... ERROR runTest (pygmo._bfe_test.bfe_test_case) ... ok runTest (pygmo._bfe_test.thread_bfe_test_case) ... ok runTest (pygmo._bfe_test.member_bfe_test_case) ... ok runTest (pygmo._bfe_test.mp_bfe_test_case) ... ERROR runTest (pygmo._bfe_test.ipyparallel_bfe_test_case) ... runTest (pygmo.test.core_test_case) ... runTest (pygmo.test.core_test_case) ... ERROR runTest (pygmo._bfe_test.bfe_test_case) ... ok runTest (pygmo._bfe_test.thread_bfe_test_case) ... ok runTest (pygmo._bfe_test.member_bfe_test_case) ... ok runTest (pygmo._bfe_test.mp_bfe_test_case) ... runTest (pygmo.test.core_test_case) ... ERROR runTest (pygmo._bfe_test.bfe_test_case) ... ERROR runTest (pygmo._bfe_test.bfe_test_case) ... ok runTest (pygmo._bfe_test.thread_bfe_test_case) ... ok runTest (pygmo._bfe_test.member_bfe_test_case) ... ok ERROR runTest (pygmo._bfe_test.bfe_test_case) ... ERROR runTest (pygmo._bfe_test.bfe_test_case) ... ok runTest (pygmo._bfe_test.thread_bfe_test_case) ... ok runTest (pygmo._bfe_test.member_bfe_test_case) ... ok runTest (pygmo._bfe_test.mp_bfe_test_case) ... ERROR runTest (pygmo._bfe_test.ipyparallel_bfe_test_case) ... runTest (pygmo.test.core_test_case) ... runTest (pygmo._bfe_test.mp_bfe_test_case) ... ok runTest (pygmo._bfe_test.thread_bfe_test_case) ... ok runTest (pygmo._bfe_test.member_bfe_test_case) ... ERROR ok runTest (pygmo._bfe_test.mp_bfe_test_case) ... runTest (pygmo._bfe_test.ipyparallel_bfe_test_case) ... ERROR runTest (pygmo._bfe_test.bfe_test_case) ... ok runTest (pygmo._bfe_test.thread_bfe_test_case) ... ok runTest (pygmo._bfe_test.member_bfe_test_case) ... ok runTest (pygmo._bfe_test.mp_bfe_test_case) ... ERROR runTest (pygmo._bfe_test.ipyparallel_bfe_test_case) ... ERROR runTest (pygmo._bfe_test.bfe_test_case) ... ok runTest (pygmo._bfe_test.thread_bfe_test_case) ... ok runTest (pygmo._bfe_test.member_bfe_test_case) ... ok runTest (pygmo._bfe_test.mp_bfe_test_case) ... ERROR runTest (pygmo._bfe_test.ipyparallel_bfe_test_case) ... ERROR runTest (pygmo._bfe_test.ipyparallel_bfe_test_case) ... ERROR runTest (pygmo._bfe_test.ipyparallel_bfe_test_case) ... ok runTest (pygmo._bfe_test.thread_bfe_test_case) ... ok runTest (pygmo._bfe_test.member_bfe_test_case) ... ok runTest (pygmo._bfe_test.mp_bfe_test_case) ... ERROR runTest (pygmo._bfe_test.ipyparallel_bfe_test_case) ... Waiting for connection file: ~/.ipython/profile_default/security/ipcontroller-client.json Waiting for connection file: ~/.ipython/profile_default/security/ipcontroller-client.json Waiting for connection file: ~/.ipython/profile_default/security/ipcontroller-client.json Waiting for connection file: ~/.ipython/profile_default/security/ipcontroller-client.json Waiting for connection file: ~/.ipython/profile_default/security/ipcontroller-client.json Waiting for connection file: ~/.ipython/profile_default/security/ipcontroller-client.json Waiting for connection file: ~/.ipython/profile_default/security/ipcontroller-client.json Waiting for connection file: ~/.ipython/profile_default/security/ipcontroller-client.json ok runTest (pygmo._bfe_test.default_bfe_test_case) ... ERROR runTest (pygmo.test.archipelago_test_case) ... ok runTest (pygmo._bfe_test.default_bfe_test_case) ... ERROR runTest (pygmo.test.archipelago_test_case) ... ERROR runTest (pygmo._island_test.island_test_case) ... ERROR runTest (pygmo._s_policy_test.s_policy_test_case) ... ERROR runTest (pygmo._island_test.island_test_case) ... ok runTest (pygmo._r_policy_test.r_policy_test_case) ... ok runTest (pygmo._topology_test.topology_test_case) ... ERROR runTest (pygmo._s_policy_test.s_policy_test_case) ... ok runTest (pygmo._r_policy_test.r_policy_test_case) ... ok runTest (pygmo._topology_test.topology_test_case) ... ok runTest (pygmo._bfe_test.default_bfe_test_case) ... ERROR runTest (pygmo.test.archipelago_test_case) ... ok runTest (pygmo._bfe_test.default_bfe_test_case) ... ERROR ERROR runTest (pygmo.test.archipelago_test_case) ... runTest (pygmo._island_test.island_test_case) ... ERROR runTest (pygmo._s_policy_test.s_policy_test_case) ... ERROR runTest (pygmo._island_test.island_test_case) ... ok runTest (pygmo._r_policy_test.r_policy_test_case) ... ok runTest (pygmo._topology_test.topology_test_case) ... ERROR runTest (pygmo._s_policy_test.s_policy_test_case) ... ok runTest (pygmo._bfe_test.default_bfe_test_case) ... ok runTest (pygmo._r_policy_test.r_policy_test_case) ... ERROR runTest (pygmo.test.archipelago_test_case) ... ok runTest (pygmo._topology_test.topology_test_case) ... ERROR runTest (pygmo._island_test.island_test_case) ... ERROR runTest (pygmo._s_policy_test.s_policy_test_case) ... ok runTest (pygmo._r_policy_test.r_policy_test_case) ... ok ok runTest (pygmo._bfe_test.default_bfe_test_case) ... runTest (pygmo._bfe_test.default_bfe_test_case) ... ok runTest (pygmo._topology_test.topology_test_case) ... ERROR ERROR runTest (pygmo.test.archipelago_test_case) ... runTest (pygmo.test.archipelago_test_case) ... ok runTest (pygmo._bfe_test.default_bfe_test_case) ... ERROR runTest (pygmo.test.archipelago_test_case) ... ERROR runTest (pygmo._island_test.island_test_case) ... ERROR runTest (pygmo._island_test.island_test_case) ... ERROR runTest (pygmo._island_test.island_test_case) ... ERROR runTest (pygmo._s_policy_test.s_policy_test_case) ... ok runTest (pygmo._r_policy_test.r_policy_test_case) ... ok runTest (pygmo._topology_test.topology_test_case) ... ERROR runTest (pygmo._s_policy_test.s_policy_test_case) ... ERROR runTest (pygmo._s_policy_test.s_policy_test_case) ... ok runTest (pygmo._r_policy_test.r_policy_test_case) ... ok runTest (pygmo._r_policy_test.r_policy_test_case) ... ok runTest (pygmo._topology_test.topology_test_case) ... ok runTest (pygmo._topology_test.topology_test_case) ... ok ok runTest (pygmo.test.fair_replace_test_case) ... runTest (pygmo.test.fair_replace_test_case) ... ok ok runTest (pygmo.test.select_best_test_case) ... runTest (pygmo.test.select_best_test_case) ... ok runTest (pygmo.test.unconnected_test_case) ... ok ok runTest (pygmo.test.unconnected_test_case) ... ok runTest (pygmo.test.ring_test_case) ... runTest (pygmo.test.ring_test_case) ... ok runTest (pygmo.test.free_form_test_case) ... ok runTest (pygmo.test.fully_connected_test_case) ... ok runTest (pygmo.test.thread_island_test_case) ... ok runTest (pygmo.test.thread_island_torture_test_case) ... ok runTest (pygmo.test.free_form_test_case) ... ok runTest (pygmo.test.fair_replace_test_case) ... ok runTest (pygmo.test.select_best_test_case) ... ok ok runTest (pygmo.test.unconnected_test_case) ... runTest (pygmo.test.fully_connected_test_case) ... ok runTest (pygmo.test.thread_island_test_case) ... ok runTest (pygmo.test.fair_replace_test_case) ... ok runTest (pygmo.test.select_best_test_case) ... ok runTest (pygmo.test.unconnected_test_case) ... ok runTest (pygmo.test.ring_test_case) ... ok runTest (pygmo.test.free_form_test_case) ... ok runTest (pygmo.test.fully_connected_test_case) ... ok runTest (pygmo.test.thread_island_test_case) ... ok runTest (pygmo.test.thread_island_torture_test_case) ... ok runTest (pygmo.test.thread_island_torture_test_case) ... ok runTest (pygmo.test.ring_test_case) ... ok runTest (pygmo.test.free_form_test_case) ... ok runTest (pygmo.test.fully_connected_test_case) ... ok runTest (pygmo.test.thread_island_test_case) ... ok runTest (pygmo.test.thread_island_torture_test_case) ... ok runTest (pygmo.test.fair_replace_test_case) ... ok runTest (pygmo.test.select_best_test_case) ... ok runTest (pygmo.test.unconnected_test_case) ... ok runTest (pygmo.test.ring_test_case) ... ok runTest (pygmo.test.fair_replace_test_case) ... ok runTest (pygmo.test.select_best_test_case) ... ok runTest (pygmo.test.free_form_test_case) ... ok runTest (pygmo.test.unconnected_test_case) ... ok runTest (pygmo.test.ring_test_case) ... ok runTest (pygmo.test.fully_connected_test_case) ... ok runTest (pygmo.test.thread_island_test_case) ... ok runTest (pygmo.test.free_form_test_case) ... ok runTest (pygmo.test.fully_connected_test_case) ... ok runTest (pygmo.test.thread_island_test_case) ... ok runTest (pygmo.test.thread_island_torture_test_case) ... ok runTest (pygmo.test.thread_island_torture_test_case) ... ok runTest (pygmo.test.fair_replace_test_case) ... ok runTest (pygmo.test.select_best_test_case) ... ok runTest (pygmo.test.unconnected_test_case) ... ok runTest (pygmo.test.ring_test_case) ... ok runTest (pygmo.test.free_form_test_case) ... ok runTest (pygmo.test.fair_replace_test_case) ... ok runTest (pygmo.test.select_best_test_case) ... ok runTest (pygmo.test.unconnected_test_case) ... ok runTest (pygmo.test.ring_test_case) ... ok runTest (pygmo.test.free_form_test_case) ... ok runTest (pygmo.test.fully_connected_test_case) ... ok runTest (pygmo.test.thread_island_test_case) ... ok runTest (pygmo.test.thread_island_torture_test_case) ... ok runTest (pygmo.test.fully_connected_test_case) ... ok runTest (pygmo.test.thread_island_test_case) ... ok runTest (pygmo.test.thread_island_torture_test_case) ... ok runTest (pygmo._problem_test.problem_test_case) ... ok runTest (pygmo._problem_test.problem_test_case) ... ok runTest (pygmo._problem_test.problem_test_case) ... ok runTest (pygmo._algorithm_test.algorithm_test_case) ... ok runTest (pygmo._algorithm_test.algorithm_test_case) ... ok runTest (pygmo._algorithm_test.algorithm_test_case) ... ok runTest (pygmo._problem_test.problem_test_case) ... ok runTest (pygmo._problem_test.problem_test_case) ... ok runTest (pygmo._problem_test.problem_test_case) ... ok runTest (pygmo._algorithm_test.algorithm_test_case) ... ok runTest (pygmo._problem_test.problem_test_case) ... ok runTest (pygmo._problem_test.problem_test_case) ... ok runTest (pygmo._algorithm_test.algorithm_test_case) ... ok runTest (pygmo._algorithm_test.algorithm_test_case) ... ok runTest (pygmo._algorithm_test.algorithm_test_case) ... ok runTest (pygmo._algorithm_test.algorithm_test_case) ... /Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/scipy/optimize/_minimize.py:525: RuntimeWarning: Method L-BFGS-B does not use Hessian information (hess). RuntimeWarning) /Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/scipy/optimize/_minimize.py:525: RuntimeWarning: Method L-BFGS-B does not use Hessian information (hess). RuntimeWarning) /Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/scipy/optimize/_minimize.py:525: RuntimeWarning: Method L-BFGS-B does not use Hessian information (hess). RuntimeWarning) /Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/scipy/optimize/_minimize.py:525: RuntimeWarning: Method L-BFGS-B does not use Hessian information (hess). RuntimeWarning) /Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/scipy/optimize/_minimize.py:525: RuntimeWarning: Method L-BFGS-B does not use Hessian information (hess). RuntimeWarning) /Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/scipy/optimize/_minimize.py:525: RuntimeWarning: Method L-BFGS-B does not use Hessian information (hess). RuntimeWarning) /Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/scipy/optimize/_minimize.py:525: RuntimeWarning: Method L-BFGS-B does not use Hessian information (hess). RuntimeWarning) /Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/scipy/optimize/_minimize.py:525: RuntimeWarning: Method L-BFGS-B does not use Hessian information (hess). RuntimeWarning) /Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/scipy/optimize/_trustregion_constr/projections.py:181: UserWarning: Singular Jacobian matrix. Using SVD decomposition to perform the factorizations. warn('Singular Jacobian matrix. Using SVD decomposition to ' + /Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/scipy/optimize/_trustregion_constr/projections.py:181: UserWarning: Singular Jacobian matrix. Using SVD decomposition to perform the factorizations. warn('Singular Jacobian matrix. Using SVD decomposition to ' + /Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/scipy/optimize/_hessian_update_strategy.py:186: UserWarning: delta_grad == 0.0. Check if the approximated function is linear. If the function is linear better results can be obtained by defining the Hessian as zero instead of using quasi-Newton approximations. 'approximations.', UserWarning) /Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/scipy/optimize/_hessian_update_strategy.py:186: UserWarning: delta_grad == 0.0. Check if the approximated function is linear. If the function is linear better results can be obtained by defining the Hessian as zero instead of using quasi-Newton approximations. 'approximations.', UserWarning) /Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/scipy/optimize/_trustregion_constr/projections.py:181: UserWarning: Singular Jacobian matrix. Using SVD decomposition to perform the factorizations. warn('Singular Jacobian matrix. Using SVD decomposition to ' + /Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/scipy/optimize/_hessian_update_strategy.py:186: UserWarning: delta_grad == 0.0. Check if the approximated function is linear. If the function is linear better results can be obtained by defining the Hessian as zero instead of using quasi-Newton approximations. 'approximations.', UserWarning) /Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/scipy/optimize/_trustregion_constr/projections.py:181: UserWarning: Singular Jacobian matrix. Using SVD decomposition to perform the factorizations. warn('Singular Jacobian matrix. Using SVD decomposition to ' + /Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/scipy/optimize/_hessian_update_strategy.py:186: UserWarning: delta_grad == 0.0. Check if the approximated function is linear. If the function is linear better results can be obtained by defining the Hessian as zero instead of using quasi-Newton approximations. 'approximations.', UserWarning) /Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/scipy/optimize/_trustregion_constr/projections.py:181: UserWarning: Singular Jacobian matrix. Using SVD decomposition to perform the factorizations. warn('Singular Jacobian matrix. Using SVD decomposition to ' + /Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/scipy/optimize/_hessian_update_strategy.py:186: UserWarning: delta_grad == 0.0. Check if the approximated function is linear. If the function is linear better results can be obtained by defining the Hessian as zero instead of using quasi-Newton approximations. 'approximations.', UserWarning) /Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/scipy/optimize/_trustregion_constr/projections.py:181: UserWarning: Singular Jacobian matrix. Using SVD decomposition to perform the factorizations. warn('Singular Jacobian matrix. Using SVD decomposition to ' + /Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/scipy/optimize/_hessian_update_strategy.py:186: UserWarning: delta_grad == 0.0. Check if the approximated function is linear. If the function is linear better results can be obtained by defining the Hessian as zero instead of using quasi-Newton approximations. 'approximations.', UserWarning) /Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_algorithms.py:530: UserWarning: Problem Hock Schittkowsky 71 has constraints and hessians, but trust-constr requires the callable to also accept lagrange multipliers. Thus, hessians of constraints are ignored.

Optimisation return status: NLOPT_XTOL_REACHED (value = 4, Optimization stopped because xtol_rel or xtol_abs was reached)

objevals: objval: violated: viol. norm: 1 50476.8 18 281.259 i 6 13337 18 143.151 i 11 6513.19 18 93.2251 i 16 1627.15 18 20.598 i 21 108.016 9 0.563107 i 26 8.94764e-08 0 0

Optimisation return status: NLOPT_XTOL_REACHED (value = 4, Optimization stopped because xtol_rel or xtol_abs was reached) ok runTest (pygmo.test.cmaes_test_case) ... ok runTest (pygmo.test.xnes_test_case) ... ok runTest (pygmo.test.dtlz_test_case) ... ok runTest (pygmo.test.cec2006_test_case) ... ok runTest (pygmo.test.cec2009_test_case) ... ok runTest (pygmo.test.cec2013_test_case) ... ok runTest (pygmo.test.cec2014_test_case) ... ok runTest (pygmo.test.luksan_vlcek1_test_case) ... ok runTest (pygmo.test.minlp_rastrigin_test_case) ... ok runTest (pygmo.test.rastrigin_test_case) ... ok runTest (pygmo.test.translate_test_case) ... ok runTest (pygmo.test.decompose_test_case) ... ok runTest (pygmo.test.mo_utils_test_case) ... ok runTest (pygmo.test.con_utils_test_case) ... ok runTest (pygmo.test.global_rng_test_case) ... ok runTest (pygmo.test.estimate_sparsity_test_case) ... ok runTest (pygmo.test.estimate_gradient_test_case) ... ok runTest (pygmo.test.random_decision_vector_test_case) ... ok runTest (pygmo.test.ipopt_test_case) ... ok runTest (pygmo.test.unconstrain_test_case) ... ok runTest (pygmo.test.batch_random_decision_vector_test_case) ... ok runTest (pygmo.test.mbh_test_case) ... ok runTest (pygmo.test.cstrs_self_adaptive_test_case) ... ok runTest (pygmo.test.decorator_problem_test_case) ...


This program contains Ipopt, a library for large-scale nonlinear optimization. Ipopt is released as open source code under the Eclipse Public License (EPL). For more information visit https://github.com/coin-or/Ipopt


objevals: objval: violated: viol. norm: 1 312051 18 776.051 i ok runTest (pygmo.test.cmaes_test_case) ... ok runTest (pygmo.test.xnes_test_case) ... ok runTest (pygmo.test.dtlz_test_case) ... ok runTest (pygmo.test.cec2006_test_case) ... ok runTest (pygmo.test.cec2009_test_case) ... ok runTest (pygmo.test.cec2013_test_case) ... ok runTest (pygmo.test.cec2014_test_case) ... ok runTest (pygmo.test.luksan_vlcek1_test_case) ... ok runTest (pygmo.test.minlp_rastrigin_test_case) ... ok runTest (pygmo.test.rastrigin_test_case) ... ok runTest (pygmo.test.translate_test_case) ... ok runTest (pygmo.test.decompose_test_case) ... ok runTest (pygmo.test.unconstrain_test_case) ... ok runTest (pygmo.test.mo_utils_test_case) ... ok runTest (pygmo.test.con_utils_test_case) ... ok runTest (pygmo.test.global_rng_test_case) ... ok runTest (pygmo.test.estimate_sparsity_test_case) ... ERROR runTest (pygmo.test.wfg_test_case) ... ok runTest (pygmo.test.nlopt_test_case) ... ok runTest (pygmo.test.mo_utils_test_case) ... ok runTest (pygmo.test.con_utils_test_case) ... ok runTest (pygmo.test.global_rng_test_case) ... ok runTest (pygmo.test.estimate_sparsity_test_case) ... ok runTest (pygmo.test.estimate_gradient_test_case) ... ok runTest (pygmo.test.random_decision_vector_test_case) ... objevals: objval: violated: viol. norm: 1 163823 18 1376.88 i 6 13057.9 18 125.729 i 11 12.1031 11 0.0568701 i 16 6.23361 2 0.000149399 i

Optimisation return status: NLOPT_XTOL_REACHED (value = 4, Optimization stopped because xtol_rel or xtol_abs was reached)

objevals: objval: violated: viol. norm: 1 50476.8 18 281.259 i 6 13337 18 143.151 i 11 6513.19 18 93.2251 i 16 1627.15 18 20.598 i 21 108.016 9 0.563107 i 26 8.94764e-08 0 0 ok

Optimisation return status: NLOPT_XTOL_REACHED (value = 4, Optimization stopped because xtol_rel or xtol_abs was reached) runTest (pygmo.test.batch_random_decision_vector_test_case) ... ok runTest (pygmo.test.estimate_gradient_test_case) ... ok runTest (pygmo.test.random_decision_vector_test_case) ... ok runTest (pygmo.test.mbh_test_case) ... ok runTest (pygmo.test.cstrs_self_adaptive_test_case) ... ok runTest (pygmo.test.batch_random_decision_vector_test_case) ... ok runTest (pygmo.test.decorator_problem_test_case) ... ok ok runTest (pygmo.test.cmaes_test_case) ... runTest (pygmo.test.cmaes_test_case) ... ok ok runTest (pygmo.test.xnes_test_case) ... runTest (pygmo.test.xnes_test_case) ... ok ok runTest (pygmo.test.dtlz_test_case) ... runTest (pygmo.test.dtlz_test_case) ... ok ok runTest (pygmo.test.cec2006_test_case) ... runTest (pygmo.test.cec2006_test_case) ... ok ok runTest (pygmo.test.cec2009_test_case) ... runTest (pygmo.test.cec2009_test_case) ... ok ok runTest (pygmo.test.cec2013_test_case) ... runTest (pygmo.test.cec2013_test_case) ... ok runTest (pygmo.test.cec2014_test_case) ... ok runTest (pygmo.test.luksan_vlcek1_test_case) ... ok runTest (pygmo.test.minlp_rastrigin_test_case) ... ok ok runTest (pygmo.test.cec2014_test_case) ... runTest (pygmo.test.rastrigin_test_case) ... ok runTest (pygmo.test.luksan_vlcek1_test_case) ... ERROR ok runTest (pygmo.test.minlp_rastrigin_test_case) ... runTest (pygmo.test.wfg_test_case) ... ok runTest (pygmo.test.rastrigin_test_case) ... ok runTest (pygmo.test.nlopt_test_case) ... ok runTest (pygmo.test.translate_test_case) ... ok runTest (pygmo.test.translate_test_case) ... objevals: objval: violated: viol. norm: 1 163823 18 1376.88 i 6 13057.9 18 125.729 i 11 12.1031 11 0.0568701 i ok runTest (pygmo.test.decompose_test_case) ... 16 6.23361 2 0.000149399 i

Optimisation return status: NLOPT_XTOL_REACHED (value = 4, Optimization stopped because xtol_rel or xtol_abs was reached) ok runTest (pygmo.test.decompose_test_case) ... objevals: objval: violated: viol. norm: 1 50476.8 18 281.259 i 6 13337 18 143.151 i 11 6513.19 18 93.2251 i ok 16 1627.15 18 20.598 i runTest (pygmo.test.unconstrain_test_case) ... 21 108.016 9 0.563107 i ok runTest (pygmo.test.unconstrain_test_case) ... 26 8.94764e-08 0 0

Optimisation return status: NLOPT_XTOL_REACHED (value = 4, Optimization stopped because xtol_rel or xtol_abs was reached) ok runTest (pygmo.test.mbh_test_case) ... ok runTest (pygmo.test.mbh_test_case) ... ok runTest (pygmo.test.cstrs_self_adaptive_test_case) ... ok runTest (pygmo.test.decorator_problem_test_case) ... 6 1026.21 18 22.274 i ok runTest (pygmo.test.ipopt_test_case) ... ok runTest (pygmo.test.mo_utils_test_case) ... ok runTest (pygmo.test.con_utils_test_case) ... ok runTest (pygmo.test.global_rng_test_case) ... ok runTest (pygmo.test.estimate_sparsity_test_case) ... ok runTest (pygmo.test.estimate_gradient_test_case) ... ok runTest (pygmo.test.random_decision_vector_test_case) ...


This program contains Ipopt, a library for large-scale nonlinear optimization. Ipopt is released as open source code under the Eclipse Public License (EPL). For more information visit https://github.com/coin-or/Ipopt


objevals: objval: violated: viol. norm: 1 312051 18 776.051 i ok runTest (pygmo.test.cstrs_self_adaptive_test_case) ... ok runTest (pygmo.test.batch_random_decision_vector_test_case) ... ok runTest (pygmo.test.decorator_problem_test_case) ... ok runTest (pygmo.test.cmaes_test_case) ... ok runTest (pygmo.test.xnes_test_case) ... ok runTest (pygmo.test.dtlz_test_case) ... ok runTest (pygmo.test.cec2006_test_case) ... ok runTest (pygmo.test.cec2009_test_case) ... ok runTest (pygmo.test.cec2013_test_case) ... ok runTest (pygmo.test.cec2014_test_case) ... ok ERROR runTest (pygmo.test.wfg_test_case) ... ok runTest (pygmo.test.nlopt_test_case) ... ok runTest (pygmo.test.ipopt_test_case) ... objevals: objval: violated: viol. norm: 1 163823 18 1376.88 i 6 13057.9 18 125.729 i 11 12.1031 11 0.0568701 i 16 6.23361 2 0.000149399 i

Optimisation return status: NLOPT_XTOL_REACHED (value = 4, Optimization stopped because xtol_rel or xtol_abs was reached)

objevals: objval: violated: viol. norm: 1 50476.8 18 281.259 i 6 13337 18 143.151 i 11 6513.19 18 93.2251 i 16 1627.15 18 20.598 i 21 108.016 9 0.563107 i


This program contains Ipopt, a library for large-scale nonlinear optimization. 26 8.94764e-08 0 0

Optimisation return status: NLOPT_XTOL_REACHED (value = 4, Optimization stopped because xtol_rel or xtol_abs was reached)

Ipopt is released as open source code under the Eclipse Public License (EPL). For more information visit https://github.com/coin-or/Ipopt


ERROR

objevals: objval: violated: viol. norm: 1 312051 18 776.051 i runTest (pygmo.test.wfg_test_case) ... /Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_algorithms.py:530: UserWarning: Problem Hock Schittkowsky 71 has constraints and hessians, but trust-constr requires the callable to also accept lagrange multipliers. Thus, hessians of constraints are ignored.

Optimisation return status: NLOPT_XTOL_REACHED (value = 4, Optimization stopped because xtol_rel or xtol_abs was reached)

objevals: objval: violated: viol. norm: 1 50476.8 18 281.259 i 6 13337 18 143.151 i 11 6513.19 18 93.2251 i 16 1627.15 18 20.598 i 21 108.016 9 0.563107 i 26 8.94764e-08 0 0 ok

Optimisation return status: NLOPT_XTOL_REACHED (value = 4, Optimization stopped because xtol_rel or xtol_abs was reached) runTest (pygmo.test.decompose_test_case) ... ok runTest (pygmo.test.unconstrain_test_case) ... ok runTest (pygmo.test.mbh_test_case) ... 11 6.32633 5 0.00651249 i ok runTest (pygmo.test.cstrs_self_adaptive_test_case) ... ok runTest (pygmo.test.decorator_problem_test_case) ... ERROR runTest (pygmo.test.wfg_test_case) ... 6 1026.21 18 22.274 i ok runTest (pygmo.test.nlopt_test_case) ... ok

objevals: objval: violated: viol. norm: 1 163823 18 1376.88 i 6 13057.9 18 125.729 i 11 12.1031 11 0.0568701 i 16 6.23361 2 0.000149399 i

Optimisation return status: NLOPT_XTOL_REACHED (value = 4, Optimization stopped because xtol_rel or xtol_abs was reached) runTest (pygmo.test.ipopt_test_case) ... objevals: objval: violated: viol. norm: 1 50476.8 18 281.259 i 6 13337 18 143.151 i 11 6513.19 18 93.2251 i 16 1627.15 18 20.598 i 21 108.016 9 0.563107 i 26 8.94764e-08 0 0

Optimisation return status: NLOPT_XTOL_REACHED (value = 4, Optimization stopped because xtol_rel or xtol_abs was reached)


This program contains Ipopt, a library for large-scale nonlinear optimization. Ipopt is released as open source code under the Eclipse Public License (EPL). For more information visit https://github.com/coin-or/Ipopt


ok runTest (pygmo.test.ipopt_test_case) ...


This program contains Ipopt, a library for large-scale nonlinear optimization. Ipopt is released as open source code under the Eclipse Public License (EPL). For more information visit https://github.com/coin-or/Ipopt


objevals: objval: violated: viol. norm: 1 312051 18 776.051 i

objevals: objval: violated: viol. norm: 1 312051 18 776.051 i 6 1026.21 18 22.274 i 11 6.32633 5 0.00651249 i ok

runTest (pygmo.test.ipopt_test_case) ...


This program contains Ipopt, a library for large-scale nonlinear optimization. Ipopt is released as open source code under the Eclipse Public License (EPL). For more information visit https://github.com/coin-or/Ipopt


Optimisation return status: Solve_Succeeded (value = 0)

objevals: objval: violated: viol. norm: 1 312051 18 776.051 i 6 1026.21 18 22.274 i

objevals: objval: violated: viol. norm: 1 143465 18 723.615 i 6 1026.21 18 22.274 i 11 6.32633 5 0.00651249 i 6 2069.31 18 43.8783 i

Optimisation return status: Solve_Succeeded (value = 0) 11 6.32633 5 0.00651249 i

objevals: objval: violated: viol. norm: 1 143465 18 723.615 i 11 6.32633 5 0.00651249 i 6 1026.21 18 22.274 i

Optimisation return status: Solve_Succeeded (value = 0) 6 2069.31 18 43.8783 i ok

====================================================================== ERROR: runTest (pygmo.test.core_test_case)

Traceback (most recent call last): File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/test.py", line 68, in runTest self.run_s11n_test() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/test.py", line 112, in run_s11n_test isl = island(prob=p, algo=de(gen=500), size=20) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/init.py", line 389, in _island_init original_island_init(self, *args) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 119, in init self._init(use_pool) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 130, in _init mp_island.init_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 338, in init_pool mp_island._init_pool_impl(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 315, in _init_pool_impl mp_island._pool, mp_island._pool_size = _make_pool(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_mp_utils.py", line 62, in _make_pool pool = mp_ctx.Pool(processes=processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 119, in Pool context=self.get_context()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 176, in init self._repopulate_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 241, in _repopulate_pool w.start() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/process.py", line 112, in start self._popen = self._Popen(self) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_fork.py", line 20, in init__ self._launch(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 143, in get_preparation_data _check_not_importing_main() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 136, in _check_not_importing_main is not going to be frozen to produce an executable.''') RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

====================================================================== ERROR: runTest (pygmo._bfe_test.mp_bfe_test_case)

Traceback (most recent call last): File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_bfe_test.py", line 402, in runTest udbfe = mp_bfe() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 99, in init mp_bfe.init_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 237, in init_pool mp_bfe._init_pool_impl(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 214, in _init_pool_impl mp_bfe._pool, mp_bfe._pool_size = _make_pool(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_mp_utils.py", line 62, in _make_pool pool = mp_ctx.Pool(processes=processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 119, in Pool context=self.get_context()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 176, in init self._repopulate_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 241, in _repopulate_pool w.start() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/process.py", line 112, in start self._popen = self._Popen(self) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_fork.py", line 20, in init self._launch(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 143, in get_preparation_data _check_not_importing_main() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 136, in _check_not_importing_main is not going to be frozen to produce an executable.''') RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

====================================================================== ERROR: runTest (pygmo._bfe_test.default_bfe_test_case)

Traceback (most recent call last): File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_bfe_test.py", line 615, in runTest fvs = b(prob, dvs) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_patch_bfe.py", line 110, in _bfe_call return self._call_impl(prob, dvs) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 99, in init mp_bfe.init_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 237, in init_pool mp_bfe._init_pool_impl(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 214, in _init_pool_impl mp_bfe._pool, mp_bfe._pool_size = _make_pool(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_mp_utils.py", line 62, in _make_pool pool = mp_ctx.Pool(processes=processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 119, in Pool context=self.get_context()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 176, in init self._repopulate_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 241, in _repopulate_pool w.start() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/process.py", line 112, in start self._popen = self._Popen(self) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_fork.py", line 20, in init self._launch(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 143, in get_preparation_data _check_not_importing_main() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 136, in _check_not_importing_main is not going to be frozen to produce an executable.''') RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

====================================================================== ERROR: runTest (pygmo.test.archipelago_test_case)

Traceback (most recent call last): File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/test.py", line 877, in runTest self.run_init_tests() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/test.py", line 959, in run_init_tests pop_size=10, udi=mp_island(), seed=5) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 119, in init self._init(use_pool) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 130, in _init mp_island.init_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 338, in init_pool mp_island._init_pool_impl(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 315, in _init_pool_impl mp_island._pool, mp_island._pool_size = _make_pool(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_mp_utils.py", line 62, in _make_pool pool = mp_ctx.Pool(processes=processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 119, in Pool context=self.get_context()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 176, in init self._repopulate_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 241, in _repopulate_pool w.start() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/process.py", line 112, in start self._popen = self._Popen(self) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_fork.py", line 20, in init self._launch(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 143, in get_preparation_data _check_not_importing_main() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 136, in _check_not_importing_main is not going to be frozen to produce an executable.''') RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

====================================================================== ERROR: runTest (pygmo._island_test.island_test_case)

Traceback (most recent call last): File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_island_test.py", line 76, in runTest self.run_basic_tests() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_island_test.py", line 234, in run_basic_tests isl = island(prob=p, size=20, b=bfe(default_bfe()), algo=de()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/init.py", line 356, in _island_init b=kwargs.pop('b') if 'b' in kwargs else None) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/init.py", line 301, in _population_init b) == bfe else bfe(b), size, seed) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 99, in init mp_bfe.init_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 237, in init_pool mp_bfe._init_pool_impl(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 214, in _init_pool_impl mp_bfe._pool, mp_bfe._pool_size = _make_pool(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_mp_utils.py", line 62, in _make_pool pool = mp_ctx.Pool(processes=processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 119, in Pool context=self.get_context()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 176, in init self._repopulate_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 241, in _repopulate_pool w.start() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/process.py", line 112, in start self._popen = self._Popen(self) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_fork.py", line 20, in init self._launch(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 143, in get_preparation_data _check_not_importing_main() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 136, in _check_not_importing_main is not going to be frozen to produce an executable.''') RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

====================================================================== ERROR: runTest (pygmo._island_test.mp_island_test_case)

Traceback (most recent call last): File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_island_test.py", line 438, in runTest self.run_basic_tests() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_island_test.py", line 450, in run_basic_tests isl = island(algo=de(), prob=rosenbrock(), size=25, udi=mp_island()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 119, in init self._init(use_pool) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 130, in _init mp_island.init_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 338, in init_pool mp_island._init_pool_impl(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 315, in _init_pool_impl mp_island._pool, mp_island._pool_size = _make_pool(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_mp_utils.py", line 62, in _make_pool pool = mp_ctx.Pool(processes=processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 119, in Pool context=self.get_context()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 176, in init self._repopulate_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 241, in _repopulate_pool w.start() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/process.py", line 112, in start self._popen = self._Popen(self) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_fork.py", line 20, in init self._launch(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 143, in get_preparation_data _check_not_importing_main() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 136, in _check_not_importing_main is not going to be frozen to produce an executable.''') RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

====================================================================== ERROR: runTest (pygmo.test.population_test_case)

Traceback (most recent call last): File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/test.py", line 136, in runTest self.run_init_test() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/test.py", line 185, in run_init_test pop = population(prob=p, size=20, b=bfe(default_bfe())) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/init.py", line 301, in _population_init b) == bfe else bfe(b), size, seed) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 99, in init mp_bfe.init_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 237, in init_pool mp_bfe._init_pool_impl(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 214, in _init_pool_impl mp_bfe._pool, mp_bfe._pool_size = _make_pool(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_mp_utils.py", line 62, in _make_pool pool = mp_ctx.Pool(processes=processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 119, in Pool context=self.get_context()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 176, in init self._repopulate_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 241, in _repopulate_pool w.start() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/process.py", line 112, in start self._popen = self._Popen(self) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_fork.py", line 20, in init self._launch(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 143, in get_preparation_data _check_not_importing_main() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 136, in _check_not_importing_main is not going to be frozen to produce an executable.''') RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

====================================================================== ERROR: runTest (pygmo.test.decorator_problem_test_case)

Traceback (most recent call last): File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/test.py", line 2553, in runTest pop_size=10, udi=mp_island(), seed=5) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 119, in init self._init(use_pool) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 130, in _init mp_island.init_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 338, in init_pool mp_island._init_pool_impl(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 315, in _init_pool_impl mp_island._pool, mp_island._pool_size = _make_pool(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_mp_utils.py", line 62, in _make_pool pool = mp_ctx.Pool(processes=processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 119, in Pool context=self.get_context()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 176, in init self._repopulate_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 241, in _repopulate_pool w.start() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/process.py", line 112, in start self._popen = self._Popen(self) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_fork.py", line 20, in init self._launch(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 143, in get_preparation_data _check_not_importing_main() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 136, in _check_not_importing_main is not going to be frozen to produce an executable.''') RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

Ran 69 tests in 37.343s

FAILED (errors=8) Traceback (most recent call last): File "", line 1, in File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 105, in spawn_main exitcode = _main(fd) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 114, in _main prepare(preparation_data) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 225, in prepare _fixup_main_from_path(data['init_main_from_path']) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 277, in _fixup_main_from_path run_name="__mp_main__") File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/runpy.py", line 263, in run_path pkg_name=pkg_name, script_name=fname) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/runpy.py", line 96, in _run_module_code mod_name, mod_spec, pkg_name, script_name) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/Users/federicofalorni/Documents/GitHub/test_thesis/Codes/bho.py", line 2, in pygmo.test.run_test_suite() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/test.py", line 2968, in run_test_suite raise RuntimeError('One or more tests failed.') RuntimeError: One or more tests failed.

Optimisation return status: Solve_Succeeded (value = 0)

objevals: objval: violated: viol. norm: 1 143465 18 723.615 i 6 2069.31 18 43.8783 i 11 300.481 7 13.6892 i 11 300.481 7 13.6892 i ok runTest (pygmo.test.ipopt_test_case) ...


This program contains Ipopt, a library for large-scale nonlinear optimization. Ipopt is released as open source code under the Eclipse Public License (EPL). For more information visit https://github.com/coin-or/Ipopt


objevals: objval: violated: viol. norm: 1 312051 18 776.051 i 11 300.481 7 13.6892 i 6 2069.31 18 43.8783 i 11 300.481 7 13.6892 i 16 7.37596 3 0.0130333 i 16 7.37596 3 0.0130333 i 6 1026.21 18 22.274 i 16 7.37596 3 0.0130333 i 11 300.481 7 13.6892 i 11 6.32633 5 0.00651249 i 16 7.37596 3 0.0130333 i 21 6.23246 0 0

Optimisation return status: Solve_Succeeded (value = 0) ok

====================================================================== ERROR: runTest (pygmo.test.core_test_case)

Traceback (most recent call last): File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/test.py", line 68, in runTest self.run_s11n_test() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/test.py", line 112, in run_s11n_test isl = island(prob=p, algo=de(gen=500), size=20) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/init.py", line 389, in _island_init original_island_init(self, *args) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 119, in init self._init(use_pool) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 130, in _init mp_island.init_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 338, in init_pool mp_island._init_pool_impl(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 315, in _init_pool_impl mp_island._pool, mp_island._pool_size = _make_pool(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_mp_utils.py", line 62, in _make_pool pool = mp_ctx.Pool(processes=processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 119, in Pool context=self.get_context()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 176, in init self._repopulate_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 241, in _repopulate_pool w.start() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/process.py", line 112, in start self._popen = self._Popen(self) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_fork.py", line 20, in init__ self._launch(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 143, in get_preparation_data _check_not_importing_main() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 136, in _check_not_importing_main is not going to be frozen to produce an executable.''') RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

====================================================================== ERROR: runTest (pygmo._bfe_test.mp_bfe_test_case)

Traceback (most recent call last): File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_bfe_test.py", line 402, in runTest udbfe = mp_bfe() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 99, in init mp_bfe.init_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 237, in init_pool mp_bfe._init_pool_impl(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 214, in _init_pool_impl mp_bfe._pool, mp_bfe._pool_size = _make_pool(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_mp_utils.py", line 62, in _make_pool pool = mp_ctx.Pool(processes=processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 119, in Pool context=self.get_context()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 176, in init self._repopulate_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 241, in _repopulate_pool w.start() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/process.py", line 112, in start self._popen = self._Popen(self) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_fork.py", line 20, in init self._launch(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 143, in get_preparation_data _check_not_importing_main() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 136, in _check_not_importing_main is not going to be frozen to produce an executable.''') RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

====================================================================== ERROR: runTest (pygmo._bfe_test.default_bfe_test_case)

Traceback (most recent call last): File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_bfe_test.py", line 615, in runTest fvs = b(prob, dvs) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_patch_bfe.py", line 110, in _bfe_call return self._call_impl(prob, dvs) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 99, in init mp_bfe.init_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 237, in init_pool mp_bfe._init_pool_impl(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 214, in _init_pool_impl mp_bfe._pool, mp_bfe._pool_size = _make_pool(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_mp_utils.py", line 62, in _make_pool pool = mp_ctx.Pool(processes=processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 119, in Pool context=self.get_context()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 176, in init self._repopulate_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 241, in _repopulate_pool w.start() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/process.py", line 112, in start self._popen = self._Popen(self) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_fork.py", line 20, in init self._launch(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 143, in get_preparation_data _check_not_importing_main() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 136, in _check_not_importing_main is not going to be frozen to produce an executable.''') RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

====================================================================== ERROR: runTest (pygmo.test.archipelago_test_case)

Traceback (most recent call last): File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/test.py", line 877, in runTest self.run_init_tests() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/test.py", line 959, in run_init_tests pop_size=10, udi=mp_island(), seed=5) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 119, in init self._init(use_pool) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 130, in _init mp_island.init_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 338, in init_pool mp_island._init_pool_impl(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 315, in _init_pool_impl mp_island._pool, mp_island._pool_size = _make_pool(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_mp_utils.py", line 62, in _make_pool pool = mp_ctx.Pool(processes=processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 119, in Pool context=self.get_context()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 176, in init self._repopulate_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 241, in _repopulate_pool w.start() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/process.py", line 112, in start self._popen = self._Popen(self) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_fork.py", line 20, in init self._launch(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 143, in get_preparation_data _check_not_importing_main() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 136, in _check_not_importing_main is not going to be frozen to produce an executable.''') RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

====================================================================== ERROR: runTest (pygmo._island_test.island_test_case)

Traceback (most recent call last): File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_island_test.py", line 76, in runTest self.run_basic_tests() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_island_test.py", line 234, in run_basic_tests isl = island(prob=p, size=20, b=bfe(default_bfe()), algo=de()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/init.py", line 356, in _island_init b=kwargs.pop('b') if 'b' in kwargs else None) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/init.py", line 301, in _population_init b) == bfe else bfe(b), size, seed) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 99, in init mp_bfe.init_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 237, in init_pool mp_bfe._init_pool_impl(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 214, in _init_pool_impl mp_bfe._pool, mp_bfe._pool_size = _make_pool(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_mp_utils.py", line 62, in _make_pool pool = mp_ctx.Pool(processes=processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 119, in Pool context=self.get_context()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 176, in init self._repopulate_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 241, in _repopulate_pool w.start() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/process.py", line 112, in start self._popen = self._Popen(self) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_fork.py", line 20, in init self._launch(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 143, in get_preparation_data _check_not_importing_main() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 136, in _check_not_importing_main is not going to be frozen to produce an executable.''') RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

====================================================================== ERROR: runTest (pygmo._island_test.mp_island_test_case)

Traceback (most recent call last): File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_island_test.py", line 438, in runTest self.run_basic_tests() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_island_test.py", line 450, in run_basic_tests isl = island(algo=de(), prob=rosenbrock(), size=25, udi=mp_island()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 119, in init self._init(use_pool) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 130, in _init mp_island.init_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 338, in init_pool mp_island._init_pool_impl(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 315, in _init_pool_impl mp_island._pool, mp_island._pool_size = _make_pool(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_mp_utils.py", line 62, in _make_pool pool = mp_ctx.Pool(processes=processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 119, in Pool context=self.get_context()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 176, in init self._repopulate_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 241, in _repopulate_pool w.start() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/process.py", line 112, in start self._popen = self._Popen(self) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_fork.py", line 20, in init self._launch(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 143, in get_preparation_data _check_not_importing_main() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 136, in _check_not_importing_main is not going to be frozen to produce an executable.''') RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

====================================================================== ERROR: runTest (pygmo.test.population_test_case)

Traceback (most recent call last): File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/test.py", line 136, in runTest self.run_init_test() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/test.py", line 185, in run_init_test pop = population(prob=p, size=20, b=bfe(default_bfe())) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/init.py", line 301, in _population_init b) == bfe else bfe(b), size, seed) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 99, in init mp_bfe.init_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 237, in init_pool mp_bfe._init_pool_impl(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 214, in _init_pool_impl mp_bfe._pool, mp_bfe._pool_size = _make_pool(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_mp_utils.py", line 62, in _make_pool pool = mp_ctx.Pool(processes=processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 119, in Pool context=self.get_context()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 176, in init self._repopulate_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 241, in _repopulate_pool w.start() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/process.py", line 112, in start self._popen = self._Popen(self) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_fork.py", line 20, in init self._launch(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 143, in get_preparation_data _check_not_importing_main() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 136, in _check_not_importing_main is not going to be frozen to produce an executable.''') RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

====================================================================== ERROR: runTest (pygmo.test.decorator_problem_test_case)

Traceback (most recent call last): File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/test.py", line 2553, in runTest pop_size=10, udi=mp_island(), seed=5) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 119, in init self._init(use_pool) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 130, in _init mp_island.init_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 338, in init_pool mp_island._init_pool_impl(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 315, in _init_pool_impl mp_island._pool, mp_island._pool_size = _make_pool(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_mp_utils.py", line 62, in _make_pool pool = mp_ctx.Pool(processes=processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 119, in Pool context=self.get_context()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 176, in init self._repopulate_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 241, in _repopulate_pool w.start() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/process.py", line 112, in start self._popen = self._Popen(self) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_fork.py", line 20, in init self._launch(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 143, in get_preparation_data _check_not_importing_main() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 136, in _check_not_importing_main is not going to be frozen to produce an executable.''') RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

Ran 69 tests in 35.864s

FAILED (errors=8) Traceback (most recent call last): File "", line 1, in File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 105, in spawn_main exitcode = _main(fd) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 114, in _main prepare(preparation_data) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 225, in prepare _fixup_main_from_path(data['init_main_from_path']) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 277, in _fixup_main_from_path run_name="__mp_main__") File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/runpy.py", line 263, in run_path pkg_name=pkg_name, script_name=fname) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/runpy.py", line 96, in _run_module_code mod_name, mod_spec, pkg_name, script_name) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/Users/federicofalorni/Documents/GitHub/test_thesis/Codes/bho.py", line 2, in pygmo.test.run_test_suite() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/test.py", line 2968, in run_test_suite raise RuntimeError('One or more tests failed.') RuntimeError: One or more tests failed. 16 7.37596 3 0.0130333 i 21 6.23246 0 0

Optimisation return status: Solve_Succeeded (value = 0) ok

====================================================================== ERROR: runTest (pygmo.test.core_test_case)

Traceback (most recent call last): File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/test.py", line 68, in runTest self.run_s11n_test() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/test.py", line 112, in run_s11n_test isl = island(prob=p, algo=de(gen=500), size=20) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/init.py", line 389, in _island_init original_island_init(self, *args) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 119, in init self._init(use_pool) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 130, in _init mp_island.init_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 338, in init_pool mp_island._init_pool_impl(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 315, in _init_pool_impl mp_island._pool, mp_island._pool_size = _make_pool(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_mp_utils.py", line 62, in _make_pool pool = mp_ctx.Pool(processes=processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 119, in Pool context=self.get_context()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 176, in init self._repopulate_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 241, in _repopulate_pool w.start() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/process.py", line 112, in start self._popen = self._Popen(self) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_fork.py", line 20, in init__ self._launch(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 143, in get_preparation_data _check_not_importing_main() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 136, in _check_not_importing_main is not going to be frozen to produce an executable.''') RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

====================================================================== ERROR: runTest (pygmo._bfe_test.mp_bfe_test_case)

Traceback (most recent call last): File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_bfe_test.py", line 402, in runTest udbfe = mp_bfe() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 99, in init mp_bfe.init_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 237, in init_pool mp_bfe._init_pool_impl(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 214, in _init_pool_impl mp_bfe._pool, mp_bfe._pool_size = _make_pool(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_mp_utils.py", line 62, in _make_pool pool = mp_ctx.Pool(processes=processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 119, in Pool context=self.get_context()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 176, in init self._repopulate_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 241, in _repopulate_pool w.start() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/process.py", line 112, in start self._popen = self._Popen(self) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_fork.py", line 20, in init self._launch(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 143, in get_preparation_data _check_not_importing_main() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 136, in _check_not_importing_main is not going to be frozen to produce an executable.''') RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

====================================================================== ERROR: runTest (pygmo._bfe_test.default_bfe_test_case)

Traceback (most recent call last): File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_bfe_test.py", line 615, in runTest fvs = b(prob, dvs) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_patch_bfe.py", line 110, in _bfe_call return self._call_impl(prob, dvs) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 99, in init mp_bfe.init_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 237, in init_pool mp_bfe._init_pool_impl(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 214, in _init_pool_impl mp_bfe._pool, mp_bfe._pool_size = _make_pool(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_mp_utils.py", line 62, in _make_pool pool = mp_ctx.Pool(processes=processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 119, in Pool context=self.get_context()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 176, in init self._repopulate_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 241, in _repopulate_pool w.start() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/process.py", line 112, in start self._popen = self._Popen(self) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_fork.py", line 20, in init self._launch(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 143, in get_preparation_data _check_not_importing_main() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 136, in _check_not_importing_main is not going to be frozen to produce an executable.''') RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

====================================================================== ERROR: runTest (pygmo.test.archipelago_test_case)

Traceback (most recent call last): File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/test.py", line 877, in runTest self.run_init_tests() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/test.py", line 959, in run_init_tests pop_size=10, udi=mp_island(), seed=5) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 119, in init self._init(use_pool) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 130, in _init mp_island.init_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 338, in init_pool mp_island._init_pool_impl(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 315, in _init_pool_impl mp_island._pool, mp_island._pool_size = _make_pool(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_mp_utils.py", line 62, in _make_pool pool = mp_ctx.Pool(processes=processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 119, in Pool context=self.get_context()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 176, in init self._repopulate_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 241, in _repopulate_pool w.start() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/process.py", line 112, in start self._popen = self._Popen(self) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_fork.py", line 20, in init self._launch(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 143, in get_preparation_data _check_not_importing_main() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 136, in _check_not_importing_main is not going to be frozen to produce an executable.''') RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

====================================================================== ERROR: runTest (pygmo._island_test.island_test_case)

Traceback (most recent call last): File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_island_test.py", line 76, in runTest self.run_basic_tests() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_island_test.py", line 234, in run_basic_tests isl = island(prob=p, size=20, b=bfe(default_bfe()), algo=de()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/init.py", line 356, in _island_init b=kwargs.pop('b') if 'b' in kwargs else None) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/init.py", line 301, in _population_init b) == bfe else bfe(b), size, seed) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 99, in init mp_bfe.init_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 237, in init_pool mp_bfe._init_pool_impl(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 214, in _init_pool_impl mp_bfe._pool, mp_bfe._pool_size = _make_pool(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_mp_utils.py", line 62, in _make_pool pool = mp_ctx.Pool(processes=processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 119, in Pool context=self.get_context()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 176, in init self._repopulate_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 241, in _repopulate_pool w.start() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/process.py", line 112, in start self._popen = self._Popen(self) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_fork.py", line 20, in init self._launch(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 143, in get_preparation_data _check_not_importing_main() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 136, in _check_not_importing_main is not going to be frozen to produce an executable.''') RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

====================================================================== ERROR: runTest (pygmo._island_test.mp_island_test_case)

Traceback (most recent call last): File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_island_test.py", line 438, in runTest self.run_basic_tests() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_island_test.py", line 450, in run_basic_tests isl = island(algo=de(), prob=rosenbrock(), size=25, udi=mp_island()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 119, in init self._init(use_pool) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 130, in _init mp_island.init_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 338, in init_pool mp_island._init_pool_impl(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 315, in _init_pool_impl mp_island._pool, mp_island._pool_size = _make_pool(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_mp_utils.py", line 62, in _make_pool pool = mp_ctx.Pool(processes=processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 119, in Pool context=self.get_context()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 176, in init self._repopulate_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 241, in _repopulate_pool w.start() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/process.py", line 112, in start self._popen = self._Popen(self) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_fork.py", line 20, in init self._launch(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 143, in get_preparation_data _check_not_importing_main() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 136, in _check_not_importing_main is not going to be frozen to produce an executable.''') RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

====================================================================== ERROR: runTest (pygmo.test.population_test_case)

Traceback (most recent call last): File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/test.py", line 136, in runTest self.run_init_test() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/test.py", line 185, in run_init_test pop = population(prob=p, size=20, b=bfe(default_bfe())) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/init.py", line 301, in _population_init b) == bfe else bfe(b), size, seed) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 99, in init mp_bfe.init_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 237, in init_pool mp_bfe._init_pool_impl(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_bfes.py", line 214, in _init_pool_impl mp_bfe._pool, mp_bfe._pool_size = _make_pool(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_mp_utils.py", line 62, in _make_pool pool = mp_ctx.Pool(processes=processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 119, in Pool context=self.get_context()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 176, in init self._repopulate_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 241, in _repopulate_pool w.start() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/process.py", line 112, in start self._popen = self._Popen(self) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_fork.py", line 20, in init self._launch(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 143, in get_preparation_data _check_not_importing_main() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 136, in _check_not_importing_main is not going to be frozen to produce an executable.''') RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

====================================================================== ERROR: runTest (pygmo.test.decorator_problem_test_case)

Traceback (most recent call last): File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/test.py", line 2553, in runTest pop_size=10, udi=mp_island(), seed=5) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 119, in init self._init(use_pool) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 130, in _init mp_island.init_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 338, in init_pool mp_island._init_pool_impl(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_islands.py", line 315, in _init_pool_impl mp_island._pool, mp_island._pool_size = _make_pool(processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_mp_utils.py", line 62, in _make_pool pool = mp_ctx.Pool(processes=processes) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 119, in Pool context=self.get_context()) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 176, in init self._repopulate_pool() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/pool.py", line 241, in _repopulate_pool w.start() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/process.py", line 112, in start self._popen = self._Popen(self) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_fork.py", line 20, in init self._launch(process_obj) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 143, in get_preparation_data _check_not_importing_main() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 136, in _check_not_importing_main is not going to be frozen to produce an executable.''') RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

Ran 69 tests in 36.288s

FAILED (errors=8) Traceback (most recent call last): File "", line 1, in File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 105, in spawn_main exitcode = _main(fd) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 114, in _main prepare(preparation_data) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 225, in prepare _fixup_main_from_path(data['init_main_from_path']) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/multiprocessing/spawn.py", line 277, in _fixup_main_from_path run_name="__mp_main__") File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/runpy.py", line 263, in run_path pkg_name=pkg_name, script_name=fname) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/runpy.py", line 96, in _run_module_code mod_name, mod_spec, pkg_name, script_name) File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/Users/federicofalorni/Documents/GitHub/test_thesis/Codes/bho.py", line 2, in pygmo.test.run_test_suite() File "/Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/test.py", line 2968, in run_test_suite raise RuntimeError('One or more tests failed.') RuntimeError: One or more tests failed.

fedefalo commented 3 years ago

Sorry, it is a bit long

bluescarni commented 3 years ago

@fedefalo I am a bit confused because from the screen output it seems like the test suite is being run multiple times (there's a lot of repetition in the output). Are you trying to execute the test suite in some sort of multiprocessing environment?

fedefalo commented 3 years ago

@bluescarni No, I'm just running the two-lines script as suggested in the documentation. I don't know why the test suite runs multiple times. In fact I have to manually interrupt the process because it loops.

bluescarni commented 3 years ago

@fedefalo are you running the test suite from an interactive Python session? If so, could you try to run this command from your terminal instead:

python -c "import pygmo; pygmo.test.run_test_suite(1); pygmo.mp_island.shutdown_pool(); pygmo.mp_bfe.shutdown_pool()"
fedefalo commented 3 years ago

@bluescarni I run it. This is the full output:

runTest (pygmo.test.core_test_case) ... ok runTest (pygmo._bfe_test.bfe_test_case) ... ok runTest (pygmo._bfe_test.thread_bfe_test_case) ... ok runTest (pygmo._bfe_test.member_bfe_test_case) ... ok runTest (pygmo._bfe_test.mp_bfe_test_case) ... ok runTest (pygmo._bfe_test.ipyparallel_bfe_test_case) ... Waiting for connection file: ~/.ipython/profile_default/security/ipcontroller-client.json ok runTest (pygmo._bfe_test.default_bfe_test_case) ... ok runTest (pygmo.test.archipelago_test_case) ... ok runTest (pygmo._island_test.island_test_case) ... ok runTest (pygmo._s_policy_test.s_policy_test_case) ... ok runTest (pygmo._r_policy_test.r_policy_test_case) ... ok runTest (pygmo._topology_test.topology_test_case) ... ok runTest (pygmo.test.fair_replace_test_case) ... ok runTest (pygmo.test.select_best_test_case) ... ok runTest (pygmo.test.unconnected_test_case) ... ok runTest (pygmo.test.ring_test_case) ... ok runTest (pygmo.test.free_form_test_case) ... ok runTest (pygmo.test.fully_connected_test_case) ... ok runTest (pygmo.test.thread_island_test_case) ... ok runTest (pygmo.test.thread_island_torture_test_case) ... ok runTest (pygmo._problem_test.problem_test_case) ... ok runTest (pygmo._algorithm_test.algorithm_test_case) ... /Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/scipy/optimize/_minimize.py:525: RuntimeWarning: Method L-BFGS-B does not use Hessian information (hess). RuntimeWarning) /Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/scipy/optimize/_trustregion_constr/projections.py:181: UserWarning: Singular Jacobian matrix. Using SVD decomposition to perform the factorizations. warn('Singular Jacobian matrix. Using SVD decomposition to ' + /Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/scipy/optimize/_hessian_update_strategy.py:186: UserWarning: delta_grad == 0.0. Check if the approximated function is linear. If the function is linear better results can be obtained by defining the Hessian as zero instead of using quasi-Newton approximations. 'approximations.', UserWarning) /Users/federicofalorni/opt/anaconda3/envs/prova/lib/python3.7/site-packages/pygmo/_py_algorithms.py:530: UserWarning: Problem Hock Schittkowsky 71 has constraints and hessians, but trust-constr requires the callable to also accept lagrange multipliers. Thus, hessians of constraints are ignored.

Optimisation return status: NLOPT_XTOL_REACHED (value = 4, Optimization stopped because xtol_rel or xtol_abs was reached)

objevals: objval: violated: viol. norm: 1 192142 18 788.428 i 6 1058.66 18 23.5218 i 11 40.2465 12 0.423956 i 16 0.511989 5 0.0350397 i 21 1.55861e-13 0 0

Optimisation return status: NLOPT_XTOL_REACHED (value = 4, Optimization stopped because xtol_rel or xtol_abs was reached) ok runTest (pygmo.test.ipopt_test_case) ...


This program contains Ipopt, a library for large-scale nonlinear optimization. Ipopt is released as open source code under the Eclipse Public License (EPL). For more information visit https://github.com/coin-or/Ipopt


objevals: objval: violated: viol. norm: 1 217330 18 678.508 i 6 107.986 18 4.81889 i 11 6.23246 0 0

Optimisation return status: Solve_Succeeded (value = 0)

objevals: objval: violated: viol. norm: 1 249667 18 674.318 i 6 526.836 18 6.70519 i 11 90.7682 6 0.437948 i 16 0.00068101 3 0.000356771 i

Optimisation return status: Solve_Succeeded (value = 0) ok


Ran 69 tests in 58.970s

OK

fedefalo commented 3 years ago

It seems that everything is fine now. Thanks for the help

bluescarni commented 3 years ago

Ok good to hear! I think we need to modify the docs to specifically say that the test suite should be run from the command line.