jump-dev / Xpress.jl

A Julia interface to the FICO Xpress Optimization suite
https://www.fico.com/en/products/fico-xpress-optimization
65 stars 30 forks source link

Test fail with Julia 0.5 #15

Closed Thuener closed 7 years ago

Thuener commented 7 years ago
julia> Pkg.clone("https://github.com/JuliaOpt/Xpress.jl")
INFO: Cloning Xpress from https://github.com/JuliaOpt/Xpress.jl
INFO: Computing changes...
INFO: No packages to install, update or remove
INFO: Package database updated
julia> Pkg.build("Xpress")
INFO: Building Xpress
INFO: found /opt/xpressmp/lib/libxprs.so
julia> Pkg.test("Xpress")
INFO: Computing test dependencies for Xpress...
INFO: Installing OffsetArrays v0.3.0
INFO: Testing Xpress
INFO: Xpress: Found license file /opt/xpressmp/bin/xpauth.xpr
INFO: Xpress: Development license detected.
running xprs_attrs_test.jl ...
Test Summary: | Pass  Total
  Attributes  |    3      3
running lp_01a.jl ...
Test Summary: | Pass  Total
  Basics 1    |    9      9
running lp_01b.jl ...
Test Summary: | Pass  Total
  Basics 1b   |    9      9
running lp_02.jl ...
Test Summary: | Pass  Total
  Basics 2    |    9      9
running lp_03.jl ...
Test Summary: | Pass  Total
  Basics 3    |   10     10
running lp_04.jl ...
Test Summary: | Pass  Total
  Basics 4    |   45     45
running mip_01.jl ...
Test Summary: | Pass  Total
  MIP 4       |    9      9
running qp_01.jl ...
WARNING: getq retuns only lower triangular
Test Summary: | Pass  Total
  QP 1        |   10     10
unning qp_02.jl ...
Test Summary: | Pass  Total
  QP 2        |   10     10
running qcqp_01.jl ...
Test Summary: | Pass  Total
  QCQP 1      |    9      9
running mathprog.jl ...
Testing linproginterface with solver Xpress.XpressSolver
ERROR: LoadError: LoadError: UndefVarError: .& not defined
 in loadproblem!(::Xpress.XpressMathProgModel, ::Array{Float64,2}, ::Array{Float64,1}, ::Array{Float64,1}, ::Array{Float64,1}, ::Array{Float64,1}, ::Array{Float64,1}, ::Symbol) at /home/thuene
r/.julia/v0.5/Xpress/src/XpressSolverInterface.jl:94
 in linprogsolvertest(::Xpress.XpressSolver, ::Float64) at /home/thuener/.julia/v0.5/MathProgBase/test/linproginterface.jl:12
 in linprogsolvertest(::Xpress.XpressSolver) at /home/thuener/.julia/v0.5/MathProgBase/test/linproginterface.jl:7
 in include_from_node1(::String) at ./loading.jl:488
 in evalfile(::String, ::Array{String,1}) at ./loading.jl:504
 in macro expansion; at /home/thuener/.julia/v0.5/Xpress/test/runtests.jl:19 [inlined]
 in anonymous at ./<missing>:?
 in include_from_node1(::String) at ./loading.jl:488
 in process_options(::Base.JLOptions) at ./client.jl:265
 in _start() at ./client.jl:321
while loading /home/thuener/.julia/v0.5/Xpress/test/mathprog.jl, in expression starting on line 5
while loading /home/thuener/.julia/v0.5/Xpress/test/runtests.jl, in expression starting on line 16
=======================================================================================[ ERROR: Xpress ]========================================================================================

failed process: Process(`/usr/bin/julia -Cx86-64 -J/usr/lib/x86_64-linux-gnu/julia/sys.so --compile=yes --depwarn=yes --check-bounds=yes --code-coverage=none --color=yes --compilecache=yes /ho
me/thuener/.julia/v0.5/Xpress/test/runtests.jl`, ProcessExited(1)) [1]

================================================================================================================================================================================================
IINFO: Removing OffsetArrays v0.3.0
ERROR: Xpress had test errors
 in #test#61(::Bool, ::Function, ::Array{AbstractString,1}) at ./pkg/entry.jl:748
 in (::Base.Pkg.Entry.#kw##test)(::Array{Any,1}, ::Base.Pkg.Entry.#test, ::Array{AbstractString,1}) at ./<missing>:0
 in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}})() at ./pkg/dir.jl:31
 in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}}, ::String) at ./file.jl:59
 in #cd#1(::Array{Any,1}, ::Function, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at ./pkg/dir.jl:31
 in (::Base.Pkg.Dir.#kw##cd)(::Array{Any,1}, ::Base.Pkg.Dir.#cd, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at ./<missing>:0
 in #test#3(::Bool, ::Function, ::String, ::Vararg{String,N}) at ./pkg/pkg.jl:258
 in test(::String, ::Vararg{String,N}) at ./pkg/pkg.jl:258
joaquimg commented 7 years ago

What is your 'Pkg.status()'

Thuener commented 7 years ago
julia> Pkg.status()
17 required packages:
 - ArgParse                      0.5.0
 - CPLEX                         0.2.8
 - Coverage                      0.4.0
 - Distributions                 0.13.0
 - Formatting                    0.2.1
 - Gadfly                        0.6.3
 - HypothesisTests               0.5.1
 - JLD                           0.6.11
 - JuMP                          0.17.1
 - LightGraphs                   0.7.7
 - Logging                       0.3.1
 - MLBase                        0.6.1
 - PlotlyJS                      0.6.4
 - Plots                         0.11.4
 - PyCall                        1.14.0
 - PyPlot                        2.3.2
 - Xpress                        0.4.0+             master
83 additional packages:
 - AutoHashEquals                0.1.2
 - AxisAlgorithms                0.2.0
 - BinDeps                       0.6.0
 - Blink                         0.5.3
 - Blosc                         0.3.0
 - BufferedStreams               0.3.3
 - Calculus                      0.2.2
 - Codecs                        0.3.0
 - ColorTypes                    0.5.2
 - Colors                        0.7.4
 - Combinatorics                 0.4.1
 - Compat                        0.31.0
 - Compose                       0.5.3
 - Conda                         0.7.0
 - Contour                       0.3.0
 - CoupledFields                 0.0.1
 - DataArrays                    0.4.1
 - DataFrames                    0.9.1
 - DataStructures                0.6.1
 - DiffBase                      0.1.0
 - Distances                     0.4.1
 - DocStringExtensions           0.3.4
 - DualNumbers                   0.3.0
 - EzXML                         0.4.5
 - FileIO                        0.5.1
 - FixedPointNumbers             0.3.9
 - FixedSizeArrays               0.2.5
 - ForwardDiff                   0.4.2
 - GZip                          0.3.0
 - Git                           0.1.0
 - HDF5                          0.8.5
 - Hexagons                      0.1.0
 - Hiccup                        0.1.1
 - HttpCommon                    0.2.7
 - HttpParser                    0.3.0
 - HttpServer                    0.2.0
 - Interpolations                0.6.3
 - IterTools                     0.1.0
 - Iterators                     0.3.1
 - JSON                          0.13.0
 - Juno                          0.2.7
 - KernelDensity                 0.3.2
 - LaTeXStrings                  0.2.1
 - Lazy                          0.11.7
 - LegacyStrings                 0.2.2
 - Libz                          0.2.4
 - LineSearches                  0.1.5
 - Loess                         0.3.0
 - MacroTools                    0.3.7
 - MathProgBase                  0.6.4
 - MbedTLS                       0.4.5
 - Measures                      0.1.0
 - Media                         0.2.7
 - Mustache                      0.1.4
 - Mux                           0.2.3
 - NaNMath                       0.2.6
 - Optim                         0.7.8
 - PDMats                        0.7.0
 - ParserCombinator              1.7.11
 - PlotThemes                    0.1.4
 - PlotUtils                     0.4.3
 - Polynomials                   0.1.6
 - PositiveFactorizations        0.0.4
 - QuadGK                        0.1.3
 - Ratios                        0.1.0
 - RecipesBase                   0.1.0
 - Reexport                      0.0.3
 - Requests                      0.5.1
 - ReverseDiffSparse             0.7.3
 - Rmath                         0.2.0
 - Roots                         0.4.1
 - SHA                           0.3.3
 - ShowItLikeYouBuildIt          0.0.1
 - Showoff                       0.1.1
 - SortingAlgorithms             0.1.1
 - SpecialFunctions              0.2.0
 - StaticArrays                  0.3.1
 - StatsBase                     0.17.0
 - StatsFuns                     0.5.0
 - TextWrap                      0.2.0
 - URIParser                     0.2.0
 - WebSockets                    0.2.3
 - WoodburyMatrices              0.2.2
joaquimg commented 7 years ago

It was a minor bug that showed up only in julia0.5.x after removing Compat dependency, just fixed in master