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

Failing tests on macOS #34

Open
soldasim opened this issue Nov 5, 2024 · 0 comments
Open

Failing tests on macOS #34

soldasim opened this issue Nov 5, 2024 · 0 comments

Comments

@soldasim
Copy link

soldasim commented Nov 5, 2024

Hi. Some PRIMA.jl tests are failing on my Mac.

Test Output
(prima) pkg> test PRIMA
     Testing PRIMA
      Status `/private/var/folders/4m/s70nrghx4bd2fk4xds8pl4k00000gn/T/jl_uZYTDI/Project.toml`
  [1b53aba6] CUTEst v1.0.2
  [0a7d04aa] PRIMA v0.2.2
  [ae029012] Requires v1.3.0
  [c3b1956e] TypeUtils v1.4.0
  [eead6e0c] PRIMA_jll v0.7.1+0
  [37e2e46d] LinearAlgebra v1.11.0
  [8dfed614] Test v1.11.0
      Status `/private/var/folders/4m/s70nrghx4bd2fk4xds8pl4k00000gn/T/jl_uZYTDI/Manifest.toml`
  [1b53aba6] CUTEst v1.0.2
  [34da2185] Compat v4.16.0
  [864edb3b] DataStructures v0.18.20
  [e2ba6199] ExprTools v0.1.10
  [9aa1b823] FastClosures v0.3.2
  [692b3bcd] JLLWrappers v1.6.1
  [682c06a0] JSON v0.21.4
  [5c8ed15e] LinearOperators v2.9.0
  [a4795742] NLPModels v0.21.3
  [bac558e1] OrderedCollections v1.6.3
  [0a7d04aa] PRIMA v0.2.2
  [69de0a69] Parsers v2.8.1
  [aea7be01] PrecompileTools v1.2.1
  [21216c6a] Preferences v1.4.3
  [be4d8f0f] Quadmath v0.5.10
  [ae029012] Requires v1.3.0
  [a759f4b9] TimerOutputs v0.5.25
  [c3b1956e] TypeUtils v1.4.0
  [bb5f6f25] CUTEst_jll v2.3.0+0
  [eead6e0c] PRIMA_jll v0.7.1+0
  [54dcf436] SIFDecode_jll v2.6.1+0
  [0dad84c5] ArgTools v1.1.2
  [56f22d72] Artifacts v1.11.0
  [2a0f44e3] Base64 v1.11.0
  [ade2ca70] Dates v1.11.0
  [f43a241f] Downloads v1.6.0
  [7b1f6079] FileWatching v1.11.0
  [b77e0a4c] InteractiveUtils v1.11.0
  [b27032c2] LibCURL v0.6.4
  [76f85450] LibGit2 v1.11.0
  [8f399da3] Libdl v1.11.0
  [37e2e46d] LinearAlgebra v1.11.0
  [56ddb016] Logging v1.11.0
  [d6f4376e] Markdown v1.11.0
  [a63ad114] Mmap v1.11.0
  [ca575930] NetworkOptions v1.2.0
  [44cfe95a] Pkg v1.11.0
  [de0858da] Printf v1.11.0
  [3fa0cd96] REPL v1.11.0
  [9a3f8284] Random v1.11.0
  [ea8e919c] SHA v0.7.0
  [9e88b42a] Serialization v1.11.0
  [6462fe0b] Sockets v1.11.0
  [2f01184e] SparseArrays v1.11.0
  [f489334b] StyledStrings v1.11.0
  [fa267f1f] TOML v1.0.3
  [a4e569a6] Tar v1.10.0
  [8dfed614] Test v1.11.0
  [cf7118a7] UUIDs v1.11.0
  [4ec0a83e] Unicode v1.11.0
  [e66e0078] CompilerSupportLibraries_jll v1.1.1+0
  [deac9b47] LibCURL_jll v8.6.0+0
  [e37daf67] LibGit2_jll v1.7.2+0
  [29816b5a] LibSSH2_jll v1.11.0+1
  [c8ffd9c3] MbedTLS_jll v2.28.6+0
  [14a3606d] MozillaCACerts_jll v2023.12.12
  [4536629a] OpenBLAS_jll v0.3.27+1
  [bea87d4a] SuiteSparse_jll v7.7.0+0
  [83775a58] Zlib_jll v1.2.13+1
  [8e850b90] libblastrampoline_jll v5.11.0+0
  [8e850ede] nghttp2_jll v1.59.0+0
  [3f19e933] p7zip_jll v17.4.0+2
Precompiling project for configuration --code-coverage=none --color=yes --check-bounds=yes --warn-overwrite=yes --depwarn=yes --inline=yes --startup-file=no --track-allocation=none...
  1 dependency successfully precompiled in 207 seconds. 56 already precompiled.
  1 dependency had output during precompilation:
┌ PRIMA → PRIMACUTEstExt
│  ┌ Warning: using Pkg instead of using LazyArtifacts is deprecated
│  │   caller = ip:0x0
│  └ @ Core :-1
│   Downloading artifact: sifcollection
└  
     Testing Running tests...

NEWUOA:

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.989999999910123E+000   1.992857142857456E+000
x = [2.989999999910123, 1.992857142857456], f(x) = -9.500857142857143, status = SMALL_TR_RADIUS, msg = 'Trust region radius reaches its lower bound', evals = 22

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.989999999910123E+000   1.992857142857456E+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:  1.494999999955062E+000   9.964285714287280E-001

UOBYQA:

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
x = [2.989999999972109, 1.9928571428690678], f(x) = -9.500857142857143, status = SMALL_TR_RADIUS, msg = 'Trust region radius reaches its lower bound', evals = 23

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:  1.494999999986055E+000   9.964285714345339E-001

BOBYQA:

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.990000000018757E+000   1.992857142785153E+000
x = [2.9900000000187568, 1.9928571427851534], f(x) = -9.500857142857143, status = SMALL_TR_RADIUS, msg = 'Trust region radius reaches its lower bound', evals = 20

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.990000000018757E+000   1.992857142785153E+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:  1.494999999982741E+000   9.964285714162230E-001

COBYLA:

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.990000113244214E+000   1.992856773655748E+000
The constraint value is:
-8.990000113244214E+000  -7.992856773655748E+000  -3.009999886755786E+000  -4.007143226344252E+000
-1.009999886755786E+000  -1.007143226344252E+000  -5.017143113100038E+000  -8.842120249398988E-002
x = [2.990000113244214, 1.9928567736557479], f(x) = -9.500857142856125, cstrv = 0.0, c(x) = [-0.08842120249398988], status = SMALL_TR_RADIUS, msg = 'Trust region radius reaches its lower bound', evals = 57

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.990000113244214E+000   1.992856773655748E+000
The constraint value is:
-8.990000113244214E+000  -7.992856773655748E+000  -3.009999886755786E+000  -4.007143226344252E+000
-1.009999886755786E+000  -1.007143226344252E+000  -5.017143113100038E+000  -8.842120249398988E-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.990000113244214E+000   1.992856773655748E+000
The constraint value is:
-8.990000113244214E+000  -7.992856773655748E+000  -3.009999886755786E+000  -4.007143226344252E+000
-1.009999886755786E+000  -1.007143226344252E+000  -5.017143113100038E+000  -8.842120249398988E-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:  1.495000056622107E+000   9.964283868278739E-001
The constraint value is:
-4.495000056622107E+000  -3.996428386827874E+000  -1.504999943377893E+000  -2.003571613172126E+000
-1.009999886755786E+000  -1.007143226344252E+000  -5.017143113100038E+000  -8.842120249398988E-002

LINCOA:

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.990000000000000E+000   1.992857142857143E+000
The constraint value is:
-8.990000000000000E+000  -7.992857142857144E+000  -3.010000000000000E+000  -4.007142857142856E+000
-1.010000000000000E+000  -1.007142857142857E+000  -5.017142857142856E+000
x = [2.99, 1.9928571428571433], f(x) = -9.500857142857143, cstrv = 0.0, status = SMALL_TR_RADIUS, msg = 'Trust region radius reaches its lower bound', evals = 28

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.990000000000000E+000   1.992857142857143E+000
The constraint value is:
-8.990000000000000E+000  -7.992857142857144E+000  -3.010000000000000E+000  -4.007142857142856E+000
-1.010000000000000E+000  -1.007142857142857E+000  -5.017142857142856E+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:  1.495000000000000E+000   9.964285714285717E-001
The constraint value is:
-4.495000000000000E+000  -3.996428571428572E+000  -1.505000000000000E+000  -2.003571428571428E+000
-1.010000000000000E+000  -1.007142857142857E+000  -5.017142857142856E+000

Unconstrained minimization of Rosenbrock function by UOBYQA:

Return from UOBYQA because the trust region radius reaches its lower bound.
Number of function values = 106   Least value of F =  2.280425641063685E-017
The corresponding X is:  9.999999952432064E-001   9.999999905285044E-001
x = [0.9999999952432064, 0.9999999905285044], f(x) = 2.280425641063685e-17, status = SMALL_TR_RADIUS, msg = 'Trust region radius reaches its lower bound', evals = 106

Unconstrained minimization of Rosenbrock function by NEWUOA:

Return from NEWUOA because the trust region radius reaches its lower bound.
Number of function values = 149   Least value of F =  2.518397138589351E-012
The corresponding X is:  9.999984142441234E-001   9.999968223463018E-001
x = [0.9999984142441234, 0.9999968223463018], f(x) = 2.518397138589351e-12, status = SMALL_TR_RADIUS, msg = 'Trust region radius reaches its lower bound', evals = 149

Unconstrained minimization of Rosenbrock function by BOBYQA:

Return from BOBYQA because the trust region radius reaches its lower bound.
Number of function values = 136   Least value of F =  1.365496219631778E-012
The corresponding X is:  9.999989033500473E-001   9.999978470566067E-001
x = [0.9999989033500473, 0.9999978470566067], f(x) = 1.3654962196317784e-12, status = SMALL_TR_RADIUS, msg = 'Trust region radius reaches its lower bound', evals = 136

Bound constrained minimization of Rosenbrock function by BOBYQA:

Return from BOBYQA because the trust region radius reaches its lower bound.
Number of function values = 56   Least value of F =  9.090827323822796E-003
The corresponding X is:  1.095246630047886E+000   1.200000000000000E+000
x = [1.0952466300478856, 1.2], f(x) = 0.009090827323822796, status = SMALL_TR_RADIUS, msg = 'Trust region radius reaches its lower bound', evals = 56

Unconstrained minimization of Rosenbrock function by COBYLA:

Return from COBYLA because the trust region radius reaches its lower bound.
Number of function values = 4945   Least value of F =  7.555956175053309E-005
The corresponding X is:  9.913117549693170E-001   9.826717999456037E-001
x = [0.991311754969317, 0.9826717999456037], f(x) = 7.555956175053309e-5, status = SMALL_TR_RADIUS, msg = 'Trust region radius reaches its lower bound', evals = 4945

Bound constrained minimization of Rosenbrock function by COBYLA:

Return from COBYLA because the trust region radius reaches its lower bound.
Number of function values = 5763   Least value of F =  9.090828662308497E-003   Constraint violation =  0.000000000000000E+000
The corresponding X is:  1.095248299186358E+000   1.200000000000000E+000
The constraint value is:  0.000000000000000E+000
x = [1.0952482991863581, 1.2], f(x) = 0.009090828662308497, status = SMALL_TR_RADIUS, msg = 'Trust region radius reaches its lower bound', evals = 5763

Constrained minimization of Rosenbrock function by COBYLA:

Return from COBYLA because the trust region radius reaches its lower bound.
Number of function values = 4016   Least value of F =  8.497773521087990E-005   Constraint violation =  0.000000000000000E+000
The corresponding X is:  9.907921800080621E-001   9.816251228103331E-001
The constraint value is:
-6.963291008414875E+000  -5.091955911536752E+000  -1.990792180008062E+000
x = [0.9907921800080621, 0.9816251228103331], f(x) = 8.49777352108799e-5, status = SMALL_TR_RADIUS, msg = 'Trust region radius reaches its lower bound', evals = 4016

Idem but with one linear inequality constraint replaced by a bound constraint:

Return from COBYLA because the maximal number of function evaluations has been reached.
Number of function values = 6000   Least value of F =  1.488808539322520E-004   Constraint violation =  0.000000000000000E+000
The corresponding X is:  1.012123496479824E+000   1.024531873795713E+000
The constraint value is:
-2.012123496479824E+000  -7.049348628427490E+000  -4.877910392693567E+000
x = [1.0121234964798238, 1.0245318737957125], f(x) = 0.00014888085393225197, status = MAXFUN_REACHED, msg = 'Maximum number of function evaluations reached', evals = 6000
COBYLA: Test Failed at /Users/soldasim/.julia/packages/PRIMA/0LIGn/test/runtests.jl:346
  Expression: issuccess(info)

Stacktrace:
 [1] macro expansion
   @ ~/.julia/juliaup/julia-1.11.1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/Test/src/Test.jl:679 [inlined]
 [2] macro expansion
   @ ~/.julia/packages/PRIMA/0LIGn/test/runtests.jl:346 [inlined]
 [3] macro expansion
   @ ~/.julia/juliaup/julia-1.11.1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/Test/src/Test.jl:1789 [inlined]
 [4] macro expansion
   @ ~/.julia/packages/PRIMA/0LIGn/test/runtests.jl:267 [inlined]
 [5] macro expansion
   @ ~/.julia/juliaup/julia-1.11.1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/Test/src/Test.jl:1700 [inlined]
 [6] macro expansion
   @ ~/.julia/packages/PRIMA/0LIGn/test/runtests.jl:212 [inlined]
 [7] macro expansion
   @ ~/.julia/juliaup/julia-1.11.1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/Test/src/Test.jl:1700 [inlined]
 [8] top-level scope
   @ ~/.julia/packages/PRIMA/0LIGn/test/runtests.jl:43

Idem but one linear constraint is active at the solution:

Return from COBYLA because the trust region radius reaches its lower bound.
Number of function values = 914   Least value of F =  3.117263347348668E-001   Constraint violation =  0.000000000000000E+000
The corresponding X is:  1.441831290880544E+000   2.077558278825942E+000
The constraint value is:
-9.349012254716738E+000   0.000000000000000E+000  -2.441831290880543E+000
x = [1.4418312908805435, 2.0775582788259417], f(x) = 0.3117263347348668, status = SMALL_TR_RADIUS, msg = 'Trust region radius reaches its lower bound', evals = 914

Unconstrained minimization of Rosenbrock function by LINCOA:

Return from LINCOA because the trust region radius reaches its lower bound.
Number of function values = 141   Least value of F =  1.963912502680287E-011
The corresponding X is:  9.999956513650666E-001   9.999913881012110E-001
x = [0.9999956513650666, 0.999991388101211], f(x) = 1.9639125026802873e-11, status = SMALL_TR_RADIUS, msg = 'Trust region radius reaches its lower bound', evals = 141

Bound constrained minimization of Rosenbrock function by LINCOA:

Return from LINCOA because the trust region radius reaches its lower bound.
Number of function values = 72   Least value of F =  9.090827323822721E-003   Constraint violation =  0.000000000000000E+000
The corresponding X is:  1.095246630542350E+000   1.200000000000001E+000
The constraint value is: -6.661338147750939E-016
x = [1.0952466305423496, 1.2000000000000006], f(x) = 0.009090827323822721, status = SMALL_TR_RADIUS, msg = 'Trust region radius reaches its lower bound', evals = 72

Constrained minimization of Rosenbrock function by LINCOA:

Return from LINCOA because the trust region radius reaches its lower bound.
Number of function values = 141   Least value of F =  1.963912502680287E-011   Constraint violation =  0.000000000000000E+000
The corresponding X is:  9.999956513650666E-001   9.999913881012110E-001
The constraint value is:
-6.999982861573500E+000  -5.000043230236100E+000  -1.999995651365067E+000
x = [0.9999956513650666, 0.999991388101211], f(x) = 1.9639125026802873e-11, status = SMALL_TR_RADIUS, msg = 'Trust region radius reaches its lower bound', evals = 141

Idem but with one linear inequality constraint replaced by a bound constraint:

Return from LINCOA because the trust region radius reaches its lower bound.
Number of function values = 22   Least value of F =  0.000000000000000E+000   Constraint violation =  0.000000000000000E+000
The corresponding X is:  1.000000000000000E+000   1.000000000000000E+000
The constraint value is:
-2.000000000000000E+000  -7.000000000000000E+000  -5.000000000000000E+000
x = [1.0, 1.0], f(x) = 0.0, status = SMALL_TR_RADIUS, msg = 'Trust region radius reaches its lower bound', evals = 22

Idem but one linear constraint is active at the solution:

Return from LINCOA because the trust region radius reaches its lower bound.
Number of function values = 73   Least value of F =  3.117263327787522E-001   Constraint violation =  0.000000000000000E+000
The corresponding X is:  1.441832339225931E+000   2.077556881032092E+000
The constraint value is:
-9.349005964644412E+000  -1.776356839400250E-015  -2.441832339225931E+000
x = [1.441832339225931, 2.0775568810320917], f(x) = 0.31172633277875217, status = SMALL_TR_RADIUS, msg = 'Trust region radius reaches its lower bound', evals = 73
Test Summary:                             | Pass  Fail  Total   Time
PRIMA.jl                                  |  120     1    121  10.5s
  Utils                                   |   20           20   0.1s
  Simple objective function               |   38           38   2.0s
  Rosenbrock                              |   41     1     42   1.6s
    UOBYQA                                |    3            3   0.1s
    NEWUOA                                |    3            3   0.1s
    BOBYQA                                |    6            6   0.2s
    COBYLA                                |   14     1     15   1.0s
    LINCOA                                |   15           15   0.3s
  User examples                           |   12           12   0.4s
  Unconstrained CUTEst problem TOINTQOR   |    3            3   4.8s
  Unconstrained CUTEst problem OSBORNEB   |    3            3   0.8s
  Unconstrained CUTEst problem LANCZOS1LS |    3            3   0.8s
ERROR: LoadError: Some tests did not pass: 120 passed, 1 failed, 0 errored, 0 broken.
in expression starting at /Users/soldasim/.julia/packages/PRIMA/0LIGn/test/runtests.jl:42
ERROR: Package PRIMA errored during testing

julia> 
Version Info
julia> versioninfo()
Julia Version 1.11.1
Commit 8f5b7ca12ad (2024-10-16 10:53 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (arm64-apple-darwin22.4.0)
  CPU: 12 × Apple M3 Pro
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, apple-m3)
Threads: 6 default, 0 interactive, 3 GC (on 6 virtual cores)
Environment:
  JULIA_NUM_THREADS = 6
  JULIA_EDITOR = code

(prima) pkg> st
Status `~/Documents/julia-sandbox/prima/Project.toml`
  [0a7d04aa] PRIMA v0.2.2

julia> 
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

1 participant