Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide some sensible settings for stress tests on 32-bit platforms, otherwise they freeze forever #121

Open
barracuda156 opened this issue Dec 10, 2023 · 11 comments

Comments

@barracuda156
Copy link

I am testing prima on powerpc 32-bit, and test suite freezes on stress tests. Prior to that tests (examples really) pass.

Then I have to interrupt the process, since nothing is happening.

Process sample, if it is helpful:

Analysis of sampling stress_c_exe (pid 52062) every 1 millisecond
Call graph:
    2530 Thread_360f
      2530 0xffc
        2530 start
          2530 main
            2530 prima_bobyqa
              2530 bobyqa_c
                2530 __bobyqa_mod_MOD_bobyqa
                  2530 __bobyqb_mod_MOD_bobyqb
                    2091 __geometry_bobyqa_mod_MOD_geostep
                      1200 __linalg_mod_MOD_trueloc
                        808 __linalg_mod_MOD_linspace_i
                          381 __linalg_mod_MOD_linspace_i
                            381 lround
                              381 lround
                          307 __linalg_mod_MOD_linspace_r
                            307 __linalg_mod_MOD_linspace_r
                          46 dyld_stub_lround
                            46 dyld_stub_lround
                          38 __linalg_mod_MOD_linspace_i
                          35 lround
                            35 lround
                          1 malloc
                            1 malloc_zone_malloc
                              1 szone_malloc
                                1 small_malloc_from_free_list
                                  1 small_malloc_from_free_list
                        284 _gfortran_pow_c16_i8
                          149 _gfortran_pow_c16_i8
                          134 backtrace_alloc
                            134 backtrace_alloc
                          1 _gfortran_set_max_subrecord_length
                            1 dyld_stub_malloc
                              1 dyld_stub_malloc
                        79 __linalg_mod_MOD_trueloc
                        22 __memory_mod_MOD_alloc_ivector
                          19 __memory_mod_MOD_alloc_ivector
                          3 malloc
                            3 malloc_zone_malloc
                              3 szone_malloc
                                2 szone_malloc
                                1 small_malloc_from_free_list
                                  1 small_malloc_from_free_list
                        4 szone_free
                          4 szone_free
                        1 dyld_stub__gfortran_pack
                          1 dyld_stub__gfortran_pack
                        1 malloc_zone_free
                          1 malloc_zone_free
                        1 small_free_list_remove_ptr
                          1 small_free_list_remove_ptr
                      437 _gfortran_pow_c16_i8
                        437 _gfortran_pow_c16_i8
                          437 _gfortran_pow_c16_i8
                      269 __geometry_bobyqa_mod_MOD_geostep
                      92 __infnan_mod_MOD_is_nan_dp
                        37 __inf_mod_MOD_is_finite_dp
                          27 __inf_mod_MOD_is_finite_dp
                          10 __huge_mod_MOD_huge_value_dp
                            10 __huge_mod_MOD_huge_value_dp
                        36 __infnan_mod_MOD_is_nan_dp
                        16 __inf_mod_MOD_is_inf_dp
                          12 __inf_mod_MOD_is_inf_dp
                          4 __huge_mod_MOD_huge_value_dp
                            4 __huge_mod_MOD_huge_value_dp
                        3 __huge_mod_MOD_huge_value_dp
                          3 __huge_mod_MOD_huge_value_dp
                      34 __powalg_mod_MOD_hess_mul
                        18 __linalg_mod_MOD_matprod12
                          17 __linalg_mod_MOD_inprod
                            17 __linalg_mod_MOD_inprod
                          1 __linalg_mod_MOD_matprod12
                        15 __linalg_mod_MOD_matprod21
                          15 __linalg_mod_MOD_matprod21
                        1 __powalg_mod_MOD_hess_mul
                      18 __linalg_mod_MOD_matprod12
                        18 __linalg_mod_MOD_inprod
                          18 __linalg_mod_MOD_inprod
                      18 _gfortran_sum_r8
                        18 _gfortran_sum_r8
                      15 __linalg_mod_MOD_matprod21
                        15 __linalg_mod_MOD_matprod21
                      4 szone_free
                        2 small_free_list_remove_ptr
                          2 small_free_list_remove_ptr
                        2 szone_free
                      2 deallocate_pages
                        2 munmap$UNIX2003
                          2 munmap$UNIX2003
                      1 dyld_stub_free
                        1 dyld_stub_free
                      1 malloc
                        1 malloc_zone_malloc
                          1 szone_malloc
                            1 small_malloc_from_free_list
                              1 small_free_list_add_ptr
                                1 small_free_list_add_ptr
                    315 _gfortran_pow_c16_i8
                      315 _gfortran_pow_c16_i8
                        315 _gfortran_pow_c16_i8
                    103 __bobyqb_mod_MOD_bobyqb
                    18 _gfortran_sum_r8
                      18 _gfortran_sum_r8
                    2 deallocate_pages
                      2 munmap$UNIX2003
                        2 munmap$UNIX2003
                    1 restGPRx
                      1 restGPRx

Total number in stack (recursive counted multiple, when >=5):
        5       _gfortran_pow_c16_i8

Sort by top of stack, same collapsed (when >= 5):
        _gfortran_pow_c16_i8        901
        lround        416
        __linalg_mod_MOD_linspace_r        307
        __geometry_bobyqa_mod_MOD_geostep        269
        backtrace_alloc        134
        __bobyqb_mod_MOD_bobyqb        103
        __linalg_mod_MOD_trueloc        79
        dyld_stub_lround        46
        __linalg_mod_MOD_linspace_i        38
        __infnan_mod_MOD_is_nan_dp        36
        _gfortran_sum_r8        36
        __linalg_mod_MOD_inprod        35
        __linalg_mod_MOD_matprod21        30
        __inf_mod_MOD_is_finite_dp        27
        __memory_mod_MOD_alloc_ivector        19
        __huge_mod_MOD_huge_value_dp        17
        __inf_mod_MOD_is_inf_dp        12
        szone_free        6

This is a reasonably fast machine with plenty of RAM. So I think something just overloads address space or alike.

@barracuda156
Copy link
Author

Tests output prior to stress tests:

Start testing: Dec 10 18:15 CST
----------------------------------------------------------
1/20 Testing: example_cobyla_fortran
1/20 Test: example_cobyla_fortran
Command: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/fortran/example_cobyla_fortran_exe"
Directory: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/fortran
"example_cobyla_fortran" start time: Dec 10 18:15 CST
Output:
----------------------------------------------------------

Return from COBYLA because the trust region radius reaches its lower bound.
Number of function values = 622   Least value of F =  6.245618493133315E-011
The corresponding X is:
 6.687600531057172E-002   2.887368256753678E-001   3.666880144019580E-001   6.333157889845936E-001
 7.112662054294143E-001   9.331252890008401E-001

Return from COBYLA because the trust region radius reaches its lower bound.
Number of function values = 117   Least value of F = -8.660253769216034E-001   Constraint violation =  4.011308230053878E-010
The corresponding X is:
 8.661402168660479E-001   1.306242606812271E+000  -1.590437524236920E-010   9.999999998757281E-001
 8.660254038890457E-001   4.999999999312539E-001   2.296803846153231E-004   1.806441501000638E+000
 8.064415318212674E-001
The constraint value is:
-2.485438521505509E-010  -3.496520557537677E-001   1.124386139797560E-010  -1.016507292846132E-008
-3.499728456676823E-001  -9.063172425787627E-009   4.011308230053878E-010  -3.496520525102500E-001
-8.888179130912605E-009  -8.661402169661607E-001   1.282594873311646E-010  -6.983988533084138E-001
-1.564309390313720E+000  -8.064415318212674E-001
<end of output>
Test time =   0.22 sec
----------------------------------------------------------
Test Passed.
"example_cobyla_fortran" end time: Dec 10 18:15 CST
"example_cobyla_fortran" time elapsed: 00:00:00
----------------------------------------------------------

2/20 Testing: example_bobyqa_fortran
2/20 Test: example_bobyqa_fortran
Command: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/fortran/example_bobyqa_fortran_exe"
Directory: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/fortran
"example_bobyqa_fortran" start time: Dec 10 18:15 CST
Output:
----------------------------------------------------------

Warning: BOBYQA: X0 is revised so that the distance between X0 and the inactive bounds is at least RHOBEG; set HONOUR_X0 to .TRUE. if you prefer to keep X0 unchanged.


Return from BOBYQA because the trust region radius reaches its lower bound.
Number of function values = 187   Least value of F =  3.220305336883031E+001
The corresponding X is:
 1.000000000000000E+000   1.000000000000000E+000   3.616078831625811E-001   1.000000000000000E+000
-3.616079308139543E-001   1.000000000000000E+000  -1.000000000000000E+000   1.000000000000000E+000
-1.000000000000000E+000  -1.591837744679956E-007  -1.000000000000000E+000  -1.000000000000000E+000
-3.616078207747747E-001  -1.000000000000000E+000   3.616078853022273E-001  -1.000000000000000E+000
 1.000000000000000E+000  -1.000000000000000E+000   1.000000000000000E+000  -2.907984933485873E-008
<end of output>
Test time =   0.39 sec
----------------------------------------------------------
Test Passed.
"example_bobyqa_fortran" end time: Dec 10 18:15 CST
"example_bobyqa_fortran" time elapsed: 00:00:00
----------------------------------------------------------

3/20 Testing: example_newuoa_fortran
3/20 Test: example_newuoa_fortran
Command: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/fortran/example_newuoa_fortran_exe"
Directory: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/fortran
"example_newuoa_fortran" start time: Dec 10 18:15 CST
Output:
----------------------------------------------------------

Return from NEWUOA because the trust region radius reaches its lower bound.
Number of function values = 163   Least value of F =  2.651305712463676E-014
The corresponding X is:
 6.687660845634624E-002   2.887407199732794E-001   3.666823419524354E-001   6.333176728680844E-001
 7.112594776183495E-001   9.331234533314329E-001
<end of output>
Test time =   0.04 sec
----------------------------------------------------------
Test Passed.
"example_newuoa_fortran" end time: Dec 10 18:15 CST
"example_newuoa_fortran" time elapsed: 00:00:00
----------------------------------------------------------

4/20 Testing: example_uobyqa_fortran
4/20 Test: example_uobyqa_fortran
Command: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/fortran/example_uobyqa_fortran_exe"
Directory: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/fortran
"example_uobyqa_fortran" start time: Dec 10 18:15 CST
Output:
----------------------------------------------------------

Return from UOBYQA because the trust region radius reaches its lower bound.
Number of function values = 138   Least value of F =  1.767123538089450E-015
The corresponding X is:
 6.687660203838011E-002   2.887406926730776E-001   3.666823049681839E-001   6.333176971953843E-001
 7.112593436040960E-001   9.331234080837482E-001
<end of output>
Test time =   0.02 sec
----------------------------------------------------------
Test Passed.
"example_uobyqa_fortran" end time: Dec 10 18:15 CST
"example_uobyqa_fortran" time elapsed: 00:00:00
----------------------------------------------------------

5/20 Testing: example_lincoa_fortran
5/20 Test: example_lincoa_fortran
Command: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/fortran/example_lincoa_fortran_exe"
Directory: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/fortran
"example_lincoa_fortran" start time: Dec 10 18:15 CST
Output:
----------------------------------------------------------

Return from LINCOA because the trust region radius reaches its lower bound.
Number of function values = 167   Least value of F =  2.761312522987467E+000   Constraint violation =  2.220446049250313E-016
The corresponding X is:
-8.431306690229917E-001   7.535405485522700E-001   8.461756161219459E-001   1.233791124500397E+000
-1.231347707833754E+000   8.870616491940356E-001  -1.129888161341742E+000  -1.128285068631794E+000
-1.084033650706327E+000   6.585847614353915E-001   1.556805245719953E+000  -5.853411969953867E-001
The constraint value is:
-1.686261338045983E+000  -2.254636324205017E-002  -2.364770443665717E+000  -1.732518418494566E-002
-1.521531496014441E+000  -2.220446049250313E-016  -2.563510783762104E+000  -1.110223024625157E-016
-1.344145467944992E+000  -4.440892098500626E-016  -2.733377552956956E+000   2.220446049250313E-016
-1.159170641217308E+000  -1.910040422217585E-002  -2.869602021597446E+000  -2.052578451696052E-002
-9.719636104435579E-001  -5.331939395010366E-002  -2.968498119386439E+000  -6.400162025810285E-002
-7.880045614514277E-001  -9.832678865880928E-002  -3.027559676892122E+000  -1.319550252658396E-001
-6.127256140437176E-001  -1.496421554019540E-001  -3.045516641756599E+000  -2.249305427732794E-001
-4.513389253019753E-001  -2.028356416822773E-001  -3.022348862724438E+000  -3.424412864544053E-001
-3.086704005027231E-001  -2.537235844863499E-001  -2.959257550477817E+000  -4.829604207511350E-001
-1.890046965628261E-001  -2.985511906622790E-001  -2.858596025667492E+000  -6.439532355254758E-001
-9.594683855796737E-002  -3.341551183769146E-001  -2.723762797061771E+000  -8.219489402401492E-001
-3.230521583303669E-002  -3.580995953666216E-001  -2.559061324689396E+000  -1.012649796399093E+000
 0.000000000000000E+000  -3.687807563276744E-001  -2.369531967102818E+000  -1.211073784322439E+000
-1.583368760549320E-007  -3.654951293411401E-001  -2.160762547614678E+000  -1.411725714704363E+000
-3.229125365733021E-002  -3.484696024665541E-001  -1.938684668527241E+000  -1.608790595020124E+000
-9.587516064693435E-002  -3.188517036157272E-001  -1.709363330926795E+000  -1.796342187131183E+000
-1.888017268563371E-001  -2.786605728265926E-001  -1.478787566339289E+000  -1.968559078470555E+000
-3.082313033871932E-001  -2.307005377507918E-001  -1.252669651566212E+000  -2.119940258491607E+000
-4.505260052423814E-001  -1.784406627348161E-001  -1.036260065923712E+000  -2.245512157699162E+000
-6.113665723973003E-001  -1.258649741872394E-001  -8.341846776631622E-001  -2.341019370671845E+000
-7.858908251807100E-001  -7.729921959973918E-002  -6.503097398705867E-001  -2.403091838110501E+000
-9.688489727833209E-001  -3.722095086308352E-002  -4.876391704858921E-001  -2.429382086466860E+000
-1.154770467712412E+000  -1.006039888049037E-002  -3.482473283494052E-001  -2.418667187466005E+000
-1.338136721729241E+000   0.000000000000000E+000  -2.332491251354674E-001  -2.370911365252103E+000
-1.513553823346536E+000  -1.078053008847291E-002  -1.428078833163116E-001  -2.287286599858836E+000
-1.675919429114957E+000  -4.552159491067953E-002  -7.617991652057321E-002  -2.170150100307241E+000
-1.820578238962625E+000  -1.065637229187034E-001  -3.179342438537935E-002  -2.022979093018515E+000
-1.943460900598877E+000  -1.953385267123906E-001  -7.358010806754134E-003  -1.850264933686624E+000
-2.041201803181466E+000  -3.122723708042985E-001   0.000000000000000E+000  -1.657370045832515E+000
-2.111231993309334E+000  -4.567277437595567E-001  -6.417780929874661E-003  -1.450352561880524E+000
-2.151844348520317E+000  -6.269851280784799E-001  -2.305069216201383E-002  -1.235764742085008E+000
-2.162229141816905E+000  -8.202666434023411E-001  -4.625449220784061E-002  -1.020432228593710E+000
-2.142479188892212E+000  -1.032801164140208E+000  -7.247626169413535E-002  -8.112219198804425E-001
-2.093564849205067E+000  -1.259929040074699E+000  -9.842165980938544E-002  -6.148066974958912E-001
-2.017280213733423E+000  -1.496243036620857E+000  -1.212078047684436E-001  -4.374353856287602E-001
-1.916162817780492E+000  -1.735760716797808E+000  -1.384956526342451E-001  -2.847161683049845E-001
-1.793390130465176E+000  -1.972122262036891E+000  -1.485965872412240E-001  -1.614212342851529E-001
-1.652656860848668E+000  -2.198806719950128E+000  -1.505489739282664E-001  -7.131968191566818E-002
-1.498037756074783E+000  -2.409358912500530E+000  -1.441616315170983E-001  -1.704472179519578E-002
-1.333841027178897E+000  -2.597618766721721E+000  -1.300224946226852E-001   2.220446049250313E-016
-1.164457807600829E+000  -2.757944660896312E+000  -1.094721217789058E-001  -2.030847274430247E-002
-9.942131192382351E-001  -2.885422519474853E+000  -8.454310137107002E-002  -7.680574521010541E-002
-8.272236897821520E-001  -2.976052836142108E+000  -5.786776386215964E-002  -1.670781979936060E-001
-6.672676391621819E-001  -3.026908541163855E+000  -3.255787365295471E-002  -2.875446219456601E-001
-5.176705454210604E-001  -3.036257630569924E+000  -1.206109892442564E-002  -4.335785244129716E-001
-3.812117311043998E-001  -3.003645705121836E+000   0.000000000000000E+000  -5.996668136784602E-001
-2.600538060482012E-001  -2.929934982127561E+000  -3.330669073875470E-016  -7.795992667227449E-001
-1.556975919536697E-001  -2.817297891844246E+000  -1.551327789892576E-002  -9.666820856170667E-001
-6.896357280954202E-002  -2.669164996255317E+000  -4.964573484154156E-002  -1.153967989874150E+000
 0.000000000000000E+000  -2.490128612242843E+000  -1.049941209822334E-001  -1.334494707055728E+000
<end of output>
Test time =   0.20 sec
----------------------------------------------------------
Test Passed.
"example_lincoa_fortran" end time: Dec 10 18:15 CST
"example_lincoa_fortran" time elapsed: 00:00:00
----------------------------------------------------------

6/20 Testing: example_cobyla_c
6/20 Test: example_cobyla_c
Command: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/c/example_cobyla_c_exe"
Directory: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/c
"example_cobyla_c" start time: Dec 10 18:15 CST
Output:
----------------------------------------------------------

Return from COBYLA because the trust region radius reaches its lower bound.
Number of function values = 35   Least value of F = -9.500855780525992E+000   Constraint violation =  0.000000000000000E+000
The corresponding X is:  2.990120684861312E+000   1.992427939779597E+000
The constraint value is:
-8.990120684861312E+000  -7.992427939779597E+000  -3.009879315138688E+000  -4.007572060220403E+000
-1.009879315138688E+000  -1.007572060220403E+000  -5.017451375359091E+000  -8.940919475014653E-002
x*={2.99012, 1.99243} f*=-9.50086 cstrv=0 nlconstr=-0.0894092 rc=0 msg='Trust region radius reaches its lower bound' evals=35
<end of output>
Test time =   0.01 sec
----------------------------------------------------------
Test Passed.
"example_cobyla_c" end time: Dec 10 18:15 CST
"example_cobyla_c" time elapsed: 00:00:00
----------------------------------------------------------

7/20 Testing: example_bobyqa_c
7/20 Test: example_bobyqa_c
Command: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/c/example_bobyqa_c_exe"
Directory: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/c
"example_bobyqa_c" start time: Dec 10 18:15 CST
Output:
----------------------------------------------------------

Return from BOBYQA because the trust region radius reaches its lower bound.
Number of function values = 14   Least value of F = -9.500857142857143E+000
The corresponding X is:  2.990000000000000E+000   1.992857142857143E+000
x*={2.99, 1.99286} rc=0 msg='Trust region radius reaches its lower bound' evals=14
<end of output>
Test time =   0.01 sec
----------------------------------------------------------
Test Passed.
"example_bobyqa_c" end time: Dec 10 18:15 CST
"example_bobyqa_c" time elapsed: 00:00:00
----------------------------------------------------------

8/20 Testing: example_newuoa_c
8/20 Test: example_newuoa_c
Command: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/c/example_newuoa_c_exe"
Directory: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/c
"example_newuoa_c" start time: Dec 10 18:15 CST
Output:
----------------------------------------------------------

Return from NEWUOA because the trust region radius reaches its lower bound.
Number of function values = 16   Least value of F = -9.500857142857143E+000
The corresponding X is:  2.990000000000012E+000   1.992857142857198E+000
x*={2.99, 1.99286} rc=0 msg='Trust region radius reaches its lower bound' evals=16
<end of output>
Test time =   0.01 sec
----------------------------------------------------------
Test Passed.
"example_newuoa_c" end time: Dec 10 18:15 CST
"example_newuoa_c" time elapsed: 00:00:00
----------------------------------------------------------

9/20 Testing: example_uobyqa_c
9/20 Test: example_uobyqa_c
Command: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/c/example_uobyqa_c_exe"
Directory: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/c
"example_uobyqa_c" start time: Dec 10 18:15 CST
Output:
----------------------------------------------------------

Return from UOBYQA because the trust region radius reaches its lower bound.
Number of function values = 17   Least value of F = -9.500857142857143E+000
The corresponding X is:  2.990000000000000E+000   1.992857142857135E+000
x*={2.99, 1.99286} rc=0 msg='Trust region radius reaches its lower bound' evals=17
<end of output>
Test time =   0.01 sec
----------------------------------------------------------
Test Passed.
"example_uobyqa_c" end time: Dec 10 18:15 CST
"example_uobyqa_c" time elapsed: 00:00:00
----------------------------------------------------------

10/20 Testing: example_lincoa_c
10/20 Test: example_lincoa_c
Command: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/c/example_lincoa_c_exe"
Directory: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/c
"example_lincoa_c" start time: Dec 10 18:15 CST
Output:
----------------------------------------------------------

Return from LINCOA because the trust region radius reaches its lower bound.
Number of function values = 19   Least value of F = -9.500857142857143E+000   Constraint violation =  0.000000000000000E+000
The corresponding X is:  2.990000000000002E+000   1.992857142857143E+000
The constraint value is:
-8.990000000000002E+000  -7.992857142857144E+000  -3.009999999999998E+000  -4.007142857142856E+000
-1.009999999999998E+000  -1.007142857142857E+000  -5.017142857142855E+000
x*={2.99, 1.99286} f*=-9.50086 cstrv=0 rc=0 msg='Trust region radius reaches its lower bound' evals=19
<end of output>
Test time =   0.01 sec
----------------------------------------------------------
Test Passed.
"example_lincoa_c" end time: Dec 10 18:15 CST
"example_lincoa_c" time elapsed: 00:00:00
----------------------------------------------------------

@barracuda156
Copy link
Author

After skipping stress tests, remaining output:

16/20 Testing: bobyqa_data_c
16/20 Test: bobyqa_data_c
Command: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/c/tests/data_c_exe" "bobyqa"
Directory: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/c/tests
"bobyqa_data_c" start time: Dec 10 19:09 CST
Output:
----------------------------------------------------------
algo=bobyqa
debug=0

New RHO =  1.000000000000000E-001   Delta =  5.000000000000000E-001
Number of function values = 7   Least value of F = -9.500857142857143E+000
The corresponding X is:  2.990000000000000E+000   1.992857142857143E+000

New RHO =  1.000000000000000E-002   Delta =  5.000000000000000E-002
Number of function values = 9   Least value of F = -9.500857142857143E+000
The corresponding X is:  2.990000000000000E+000   1.992857142857143E+000

New RHO =  1.000000000000000E-003   Delta =  5.000000000000001E-003
Number of function values = 11   Least value of F = -9.500857142857143E+000
The corresponding X is:  2.990000000000000E+000   1.992857142857143E+000

New RHO =  1.000000000000000E-004   Delta =  5.000000000000001E-004
Number of function values = 13   Least value of F = -9.500857142857143E+000
The corresponding X is:  2.990000000000000E+000   1.992857142857143E+000

New RHO =  1.000000000000000E-005   Delta =  5.000000000000002E-005
Number of function values = 15   Least value of F = -9.500857142857143E+000
The corresponding X is:  2.990000000000000E+000   1.992857142857143E+000

New RHO =  1.000000000000000E-006   Delta =  5.000000000000000E-006
Number of function values = 17   Least value of F = -9.500857142857143E+000
The corresponding X is:  2.990000000000000E+000   1.992857142857143E+000


Return from BOBYQA because the trust region radius reaches its lower bound.
Number of function values = 20   Least value of F = -9.500857142857143E+000
The corresponding X is:  2.990000000073738E+000   1.992857142834386E+000
f*=-9.50086 cstrv=0 nlconstr=0 rc=0 msg='Trust region radius reaches its lower bound' evals=20
<end of output>
Test time =   0.01 sec
----------------------------------------------------------
Test Passed.
"bobyqa_data_c" end time: Dec 10 19:09 CST
"bobyqa_data_c" time elapsed: 00:00:00
----------------------------------------------------------

17/20 Testing: cobyla_data_c
17/20 Test: cobyla_data_c
Command: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/c/tests/data_c_exe" "cobyla"
Directory: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/c/tests
"cobyla_data_c" start time: Dec 10 19:09 CST
Output:
----------------------------------------------------------
algo=cobyla
debug=0

New RHO =  1.000000000000000E-001   Delta =  5.000000000000000E-001   CPEN =  2.220446049250313E-016
Number of function values = 7   Least value of F = -8.603231766679841E+000   Constraint violation =  1.688353629364769E+000
The corresponding X is:  3.027890438826829E+000   2.349517635563913E+000
The constraint value is:
-9.027890438826830E+000  -8.349517635563913E+000  -2.972109561173171E+000  -3.650482364436087E+000
-9.721095611731707E-001  -6.504823644360869E-001  -4.622591925609258E+000   1.688353629364769E+000

New RHO =  1.000000000000000E-002   Delta =  5.000000000000000E-002   CPEN =  7.394006834118082E-002
Number of function values = 19   Least value of F = -9.494657042316733E+000   Constraint violation =  0.000000000000000E+000
The corresponding X is:  2.984820766282590E+000   2.022294675340382E+000
The constraint value is:
-8.984820766282590E+000  -8.022294675340381E+000  -3.015179233717410E+000  -3.977705324659618E+000
-1.015179233717410E+000  -9.777053246596181E-001  -4.992884558377028E+000  -1.169239258150157E-003

New RHO =  1.000000000000000E-003   Delta =  5.000000000000001E-003   CPEN =  7.459043682419690E-003
Number of function values = 27   Least value of F = -9.500813442310134E+000   Constraint violation =  0.000000000000000E+000
The corresponding X is:  2.987429982042586E+000   1.991622200088041E+000
The constraint value is:
-8.987429982042586E+000  -7.991622200088041E+000  -3.012570017957414E+000  -4.008377799911959E+000
-1.012570017957414E+000  -1.008377799911959E+000  -5.020947817869373E+000  -1.087031145095043E-001

New RHO =  1.000000000000000E-004   Delta =  5.000000000000001E-004   CPEN =  2.220446049250313E-016
Number of function values = 35   Least value of F = -9.500855780525992E+000   Constraint violation =  0.000000000000000E+000
The corresponding X is:  2.990120684861312E+000   1.992427939779597E+000
The constraint value is:
-8.990120684861312E+000  -7.992427939779597E+000  -3.009879315138688E+000  -4.007572060220403E+000
-1.009879315138688E+000  -1.007572060220403E+000  -5.017451375359091E+000  -8.940919475014653E-002

New RHO =  1.000000000000000E-005   Delta =  5.000000000000002E-005   CPEN =  2.220446049250313E-016
Number of function values = 44   Least value of F = -9.500857140936663E+000   Constraint violation =  0.000000000000000E+000
The corresponding X is:  2.989986521550552E+000   1.992845118257717E+000
The constraint value is:
-8.989986521550552E+000  -7.992845118257717E+000  -3.010013478449448E+000  -4.007154881742283E+000
-1.010013478449448E+000  -1.007154881742283E+000  -5.017168360191731E+000  -8.854893558241450E-002

New RHO =  1.000000000000000E-006   Delta =  5.000000000000000E-006   CPEN =  2.220446049250313E-016
Number of function values = 50   Least value of F = -9.500857142767291E+000   Constraint violation =  0.000000000000000E+000
The corresponding X is:  2.990000531770779E+000   1.992860697271350E+000
The constraint value is:
-8.990000531770779E+000  -7.992860697271349E+000  -3.009999468229221E+000  -4.007139302728651E+000
-1.009999468229221E+000  -1.007139302728650E+000  -5.017138770957871E+000  -8.840306128160869E-002


Return from COBYLA because the trust region radius reaches its lower bound.
Number of function values = 57   Least value of F = -9.500857142856125E+000   Constraint violation =  0.000000000000000E+000
The corresponding X is:  2.990000113244165E+000   1.992856773655835E+000
The constraint value is:
-8.990000113244164E+000  -7.992856773655835E+000  -3.009999886755835E+000  -4.007143226344165E+000
-1.009999886755835E+000  -1.007143226344165E+000  -5.017143113099999E+000  -8.842120249393659E-002
f*=-9.50086 cstrv=0 nlconstr=-0.0884212 rc=0 msg='Trust region radius reaches its lower bound' evals=57
<end of output>
Test time =   0.02 sec
----------------------------------------------------------
Test Passed.
"cobyla_data_c" end time: Dec 10 19:09 CST
"cobyla_data_c" time elapsed: 00:00:00
----------------------------------------------------------

18/20 Testing: lincoa_data_c
18/20 Test: lincoa_data_c
Command: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/c/tests/data_c_exe" "lincoa"
Directory: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/c/tests
"lincoa_data_c" start time: Dec 10 19:09 CST
Output:
----------------------------------------------------------
algo=lincoa
debug=0

New RHO =  1.000000000000000E-001   Delta =  5.000000000000000E-001
Number of function values = 9   Least value of F = -9.500857142857143E+000   Constraint violation =  0.000000000000000E+000
The corresponding X is:  2.990000000000002E+000   1.992857142857143E+000
The constraint value is:
-9.944897462974792E+000  -8.289792885408135E+000  -2.055102537025208E+000  -3.710207114591865E+000
-5.510253702520806E-002  -7.102071145918654E-001  -3.765309651617073E+000

New RHO =  1.000000000000000E-002   Delta =  5.000000000000000E-002
Number of function values = 12   Least value of F = -9.500857142857143E+000   Constraint violation =  0.000000000000000E+000
The corresponding X is:  2.990000000000002E+000   1.992857142857143E+000
The constraint value is:
-9.066123178737689E+000  -7.928009153999585E+000  -2.933876821262311E+000  -4.071990846000415E+000
-9.338768212623108E-001  -1.071990846000415E+000  -5.005867667262725E+000

New RHO =  1.000000000000000E-003   Delta =  5.000000000000001E-003
Number of function values = 15   Least value of F = -9.500857142857143E+000   Constraint violation =  0.000000000000000E+000
The corresponding X is:  2.990000000000002E+000   1.992857142857143E+000
The constraint value is:
-8.997612317873770E+000  -7.986372343971388E+000  -3.002387682126230E+000  -4.013627656028612E+000
-1.002387682126230E+000  -1.013627656028613E+000  -5.016015338154842E+000

New RHO =  1.000000000000000E-004   Delta =  5.000000000000001E-004
Number of function values = 18   Least value of F = -9.500857142857143E+000   Constraint violation =  0.000000000000000E+000
The corresponding X is:  2.990000000000002E+000   1.992857142857143E+000
The constraint value is:
-8.990877867803324E+000  -7.993336045895231E+000  -3.009122132196676E+000  -4.006663954104769E+000
-1.009122132196676E+000  -1.006663954104769E+000  -5.015786086301445E+000

New RHO =  1.000000000000000E-005   Delta =  5.000000000000002E-005
Number of function values = 21   Least value of F = -9.500857142857143E+000   Constraint violation =  0.000000000000000E+000
The corresponding X is:  2.990000000000002E+000   1.992857142857143E+000
The constraint value is:
-8.990071931365504E+000  -7.992926611401513E+000  -3.009928068634495E+000  -4.007073388598487E+000
-1.009928068634495E+000  -1.007073388598487E+000  -5.017001457232983E+000

New RHO =  1.000000000000000E-006   Delta =  5.000000000000000E-006
Number of function values = 24   Least value of F = -9.500857142857143E+000   Constraint violation =  0.000000000000000E+000
The corresponding X is:  2.990000000000002E+000   1.992857142857143E+000
The constraint value is:
-8.989993075107211E+000  -7.992864357138801E+000  -3.010006924892789E+000  -4.007135642861199E+000
-1.010006924892789E+000  -1.007135642861198E+000  -5.017142567753988E+000


Return from LINCOA because the trust region radius reaches its lower bound.
Number of function values = 28   Least value of F = -9.500857142857143E+000   Constraint violation =  0.000000000000000E+000
The corresponding X is:  2.990000000000002E+000   1.992857142857143E+000
The constraint value is:
-8.990000000000002E+000  -7.992857142857144E+000  -3.009999999999998E+000  -4.007142857142856E+000
-1.009999999999998E+000  -1.007142857142857E+000  -5.017142857142855E+000
f*=-9.50086 cstrv=0 nlconstr=0 rc=0 msg='Trust region radius reaches its lower bound' evals=28
<end of output>
Test time =   0.01 sec
----------------------------------------------------------
Test Passed.
"lincoa_data_c" end time: Dec 10 19:09 CST
"lincoa_data_c" time elapsed: 00:00:00
----------------------------------------------------------

19/20 Testing: newuoa_data_c
19/20 Test: newuoa_data_c
Command: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/c/tests/data_c_exe" "newuoa"
Directory: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/c/tests
"newuoa_data_c" start time: Dec 10 19:09 CST
Output:
----------------------------------------------------------
algo=newuoa
debug=0

New RHO =  1.000000000000000E-001   Delta =  5.000000000000000E-001
Number of function values = 9   Least value of F = -9.500857142857143E+000
The corresponding X is:  2.989999999999998E+000   1.992857142857143E+000

New RHO =  1.000000000000000E-002   Delta =  5.000000000000000E-002
Number of function values = 11   Least value of F = -9.500857142857143E+000
The corresponding X is:  2.989999999999998E+000   1.992857142857143E+000

New RHO =  1.000000000000000E-003   Delta =  5.000000000000001E-003
Number of function values = 13   Least value of F = -9.500857142857143E+000
The corresponding X is:  2.989999999999998E+000   1.992857142857143E+000

New RHO =  1.000000000000000E-004   Delta =  5.000000000000001E-004
Number of function values = 15   Least value of F = -9.500857142857143E+000
The corresponding X is:  2.989999999999998E+000   1.992857142857143E+000

New RHO =  1.000000000000000E-005   Delta =  5.000000000000002E-005
Number of function values = 17   Least value of F = -9.500857142857143E+000
The corresponding X is:  2.989999999999998E+000   1.992857142857143E+000

New RHO =  1.000000000000000E-006   Delta =  5.000000000000000E-006
Number of function values = 19   Least value of F = -9.500857142857143E+000
The corresponding X is:  2.989999999999998E+000   1.992857142857143E+000


Return from NEWUOA because the trust region radius reaches its lower bound.
Number of function values = 22   Least value of F = -9.500857142857143E+000
The corresponding X is:  2.990000000097349E+000   1.992857142850568E+000
f*=-9.50086 cstrv=0 nlconstr=0 rc=0 msg='Trust region radius reaches its lower bound' evals=22
<end of output>
Test time =   0.01 sec
----------------------------------------------------------
Test Passed.
"newuoa_data_c" end time: Dec 10 19:09 CST
"newuoa_data_c" time elapsed: 00:00:00
----------------------------------------------------------

20/20 Testing: uobyqa_data_c
20/20 Test: uobyqa_data_c
Command: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/c/tests/data_c_exe" "uobyqa"
Directory: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_fortran_prima/prima/work/build/c/tests
"uobyqa_data_c" start time: Dec 10 19:09 CST
Output:
----------------------------------------------------------
algo=uobyqa
debug=0

New RHO =  1.000000000000000E-001   Delta =  5.000000000000000E-001
Number of function values = 10   Least value of F = -9.500857142857143E+000
The corresponding X is:  2.990000000000000E+000   1.992857142857143E+000

New RHO =  1.000000000000000E-002   Delta =  5.000000000000000E-002
Number of function values = 12   Least value of F = -9.500857142857143E+000
The corresponding X is:  2.990000000000000E+000   1.992857142857143E+000

New RHO =  1.000000000000000E-003   Delta =  5.000000000000001E-003
Number of function values = 14   Least value of F = -9.500857142857143E+000
The corresponding X is:  2.990000000000000E+000   1.992857142857143E+000

New RHO =  1.000000000000000E-004   Delta =  5.000000000000001E-004
Number of function values = 16   Least value of F = -9.500857142857143E+000
The corresponding X is:  2.990000000000000E+000   1.992857142857143E+000

New RHO =  1.000000000000000E-005   Delta =  5.000000000000002E-005
Number of function values = 18   Least value of F = -9.500857142857143E+000
The corresponding X is:  2.990000000000000E+000   1.992857142857143E+000

New RHO =  1.000000000000000E-006   Delta =  5.000000000000000E-006
Number of function values = 20   Least value of F = -9.500857142857143E+000
The corresponding X is:  2.990000000000000E+000   1.992857142857143E+000


Return from UOBYQA because the trust region radius reaches its lower bound.
Number of function values = 23   Least value of F = -9.500857142857143E+000
The corresponding X is:  2.989999999972109E+000   1.992857142869068E+000
f*=-9.50086 cstrv=0 nlconstr=0 rc=0 msg='Trust region radius reaches its lower bound' evals=23
<end of output>
Test time =   0.01 sec
----------------------------------------------------------
Test Passed.
"uobyqa_data_c" end time: Dec 10 19:09 CST
"uobyqa_data_c" time elapsed: 00:00:00
----------------------------------------------------------

End testing: Dec 10 19:09 CST

@zaikunzhang
Copy link
Member

zaikunzhang commented Dec 10, 2023

Thanks. That's not freeze. The stress test is intended to take forever (a long time), and we what to make sure that nothing will crash before it finishes or is interrupted. That is exactly what we want to do with the stress test.

The stress test should not be invoked on a local machine (it is turned off by default), unless you want to observe a "freeze". We do it only on GitHub actions, which will terminate the test after six hours.

Thank you.

@barracuda156
Copy link
Author

@zaikunzhang Oh, okay, I did not expect it to run for multiple hours :)

However, they seem to be included automatically when Ctest is run. I did not do anything manually to tweak tests. Just enable them in the build and disable rpath in CMake (otherwise dylib is not found by test binaries).

@zaikunzhang
Copy link
Member

i don't really know this part, but I think it is turned off by default. Right @jschueller ?

@barracuda156
Copy link
Author

Tests and examples are turned off by default if you refer to that, but enabling them to run Ctest pulls in stress tests as well.
I would indeed make sense to not run them, unless they are explicitly asked for.

@zaikunzhang
Copy link
Member

@zaikunzhang Landed in Macports: https://ports.macports.org/port/prima/details

https://github.com/macports/macports-ports/blob/master/fortran/prima/Portfile

Thank you so much @barracuda156 ! This is great!

I don't know the mac ecosystem. How would people use PRIMA via Macports?

BTW, it would be nice if a link to http://libprima.net could be included in the Macports page. It currently redirects to the GitHub page.

Thank you very much!

@zaikunzhang
Copy link
Member

BTW, it would be nice if a link to http://libprima.net could be included in the Macports page. It currently redirects to the GitHub page.

Note that https does not work for libprima.net for the moment. Thank you.

@barracuda156
Copy link
Author

@zaikunzhang Ah, got it, will fix it then.

@zaikunzhang
Copy link
Member

Hi @nbelakovski , since you have been modifying the cmake files recently, would you mind having a look at this? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants