Skip to content

Allocation test failure #128

@dpo

Description

@dpo

I get this test error on the main branch:

Test 0-allocations of NLPModel API for HS6_manual: Test Failed at /Users/runner/work/NLPModelsTest.jl/NLPModelsTest.jl/src/allocs_model.jl:413
  Expression: table[k] == 0
   Evaluated: 16.0 == 0

Indeed,

julia> using NLPModels, NLPModelsTest

julia> include("src/nlp/problems/hs6.jl")

julia> test_allocs_nlpmodels(HS6(), linear_api = true)
Dict{Symbol, Float64} with 24 entries:
  :jprod_nln!                 => 0.0
  :jac_op_transpose_prod!     => 16.0
  :hess_coord!                => 0.0
  :jac_nln_op_transpose_prod! => 16.0
  :jac_structure!             => 0.0
  :cons_nln!                  => 0.0
  :jtprod_nln!                => 0.0
  :jac_nln_structure!         => 0.0
  :jac_op_prod!               => 0.0
  :hess_lag_op_prod!          => 0.0
  :hprod!                     => 0.0
  :jprod!                     => 0.0
  :jac_nln_op_prod!           => 0.0
  :cons!                      => 0.0
  :hess_lag_op!               => NaN
  :grad!                      => 0.0
  :hess_op_prod!              => 0.0
  :hprod_lag!                 => 0.0
  :jtprod!                    => 0.0
  :obj                        => 0.0
  :hess_lag_coord!            => 0.0
  :jac_coord!                 => 0.0
  :jac_nln_coord!             => 0.0
  :hess_structure!            => 0.0

It may be due to an allocation in LinearOperators, or in jac_op!().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions