Running ‘testthat.R’ [489s/526s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("BMhyb")
  Loading required package: BMhyb
  [1] "Now starting analysis"
  [1] "Starting with initial values"
     sigma.sq          mu          SE          bt          vh 
  0.117682960 2.118832288 0.007956494 1.000000000 0.007956494 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 24.088800
    Scaled convergence tolerance is 2.41888
  Stepsize computed as 0.211883
  BUILD              6 29.371482 24.088800
  HI-REDUCTION       8 26.889548 24.088800
  Exiting from Nelder Mead minimizer
      10 function evaluations used
          step    negloglik     sigma.sq           mu           SE           bt 
   1.000000000 24.088800143  0.117682960  2.118832288  0.007956494  1.000000000 
            vh 
   0.007956494 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 24.088800
    Scaled convergence tolerance is 2.41888
  Stepsize computed as 0.211883
  BUILD              6 29.371482 24.088800
  HI-REDUCTION       8 26.889548 24.088800
  Exiting from Nelder Mead minimizer
      10 function evaluations used
          step    negloglik     sigma.sq           mu           SE           bt 
   2.000000000 24.088800143  0.117682960  2.118832288  0.007956494  1.000000000 
            vh 
   0.007956494 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 23.792666
    Scaled convergence tolerance is 2.38927
  Stepsize computed as 0.215249
  BUILD              6 29.299879 23.792666
  HI-REDUCTION       8 26.735505 23.792666
  Exiting from Nelder Mead minimizer
      10 function evaluations used
  [1] "New improvement found, resetting step counter"
          step    negloglik     sigma.sq           mu           SE           bt 
   3.000000000 23.792665773  0.115362260  2.152491387  0.008309306  0.921544060 
            vh 
   0.008094835 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 23.661226
    Scaled convergence tolerance is 2.37612
  Stepsize computed as 0.229617
  BUILD              6 29.598243 23.661226
  HI-REDUCTION       8 26.880832 23.661226
  HI-REDUCTION      10 26.048357 23.661226
  Exiting from Nelder Mead minimizer
      12 function evaluations used
  [1] "New improvement found, resetting step counter"
          step    negloglik     sigma.sq           mu           SE           bt 
   4.000000000 23.661226229  0.114355101  2.296165435  0.007997577  0.833984223 
            vh 
   0.008148974 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 23.615850
    Scaled convergence tolerance is 2.37159
  Stepsize computed as 0.236711
  BUILD              6 29.531915 23.615850
  HI-REDUCTION       8 26.710707 23.615850
  Exiting from Nelder Mead minimizer
      10 function evaluations used
  [1] "New improvement found, resetting step counter"
          step    negloglik     sigma.sq           mu           SE           bt 
   5.000000000 23.615850190  0.105144050  2.367105906  0.008240094  0.765306105 
            vh 
   0.008189616 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 23.657902
    Scaled convergence tolerance is 2.37579
  Stepsize computed as 0.229732
  BUILD              6 29.060986 23.657902
  HI-REDUCTION       8 26.263821 23.657902
  Exiting from Nelder Mead minimizer
      10 function evaluations used
          step    negloglik     sigma.sq           mu           SE           bt 
   6.000000000 23.615850190  0.105144050  2.367105906  0.008240094  0.765306105 
            vh 
   0.008189616 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 24.071545
    Scaled convergence tolerance is 2.41715
  Stepsize computed as 0.235344
  BUILD              6 29.116381 24.071545
  Exiting from Nelder Mead minimizer
      8 function evaluations used
          step    negloglik     sigma.sq           mu           SE           bt 
   7.000000000 23.615850190  0.105144050  2.367105906  0.008240094  0.765306105 
            vh 
   0.008189616 
  [1] "100 of 100 done"
  [1] "Now starting analysis"
  [1] "Starting with initial values"
    sigma.sq         mu         SE         bt         vh 
  0.46572705 1.80316875 0.00465727 1.00000000 0.00465727 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 3.399279
    Scaled convergence tolerance is 0.349928
  Stepsize computed as 0.180317
  BUILD              6 3.812720 3.069476
  HI-REDUCTION       8 3.507739 3.069476
  LO-REDUCTION      10 3.493877 3.069476
  HI-REDUCTION      12 3.493030 3.069476
  HI-REDUCTION      14 3.449116 3.069476
  EXTENSION         16 3.399279 2.938119
  LO-REDUCTION      18 3.354031 2.938119
  EXTENSION         20 3.305704 2.509986
  EXTENSION         22 3.144616 2.096973
  LO-REDUCTION      24 3.069476 2.096973
  LO-REDUCTION      26 2.999582 2.096973
  REFLECTION        28 2.938119 1.996500
  HI-REDUCTION      30 2.627327 1.996500
  HI-REDUCTION      32 2.592454 1.996500
  REFLECTION        34 2.509986 1.579270
  HI-REDUCTION      36 2.443989 1.579270
  HI-REDUCTION      38 2.271359 1.579270
  LO-REDUCTION      40 2.232282 1.579270
  HI-REDUCTION      42 2.101144 1.579270
  LO-REDUCTION      44 2.096973 1.579270
  LO-REDUCTION      46 2.046523 1.579270
  HI-REDUCTION      48 1.996500 1.579270
  REFLECTION        50 1.888773 1.278065
  HI-REDUCTION      52 1.833017 1.278065
  LO-REDUCTION      54 1.753174 1.278065
  HI-REDUCTION      56 1.742630 1.278065
  HI-REDUCTION      58 1.694365 1.278065
  HI-REDUCTION      60 1.651805 1.278065
  LO-REDUCTION      62 1.635223 1.278065
  Exiting from Nelder Mead minimizer
      64 function evaluations used
         step   negloglik    sigma.sq          mu          SE          bt 
  1.000000000 1.278065461 0.001482842 1.378608673 0.103732166 1.673247827 
           vh 
  0.178813610 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 1.278065
    Scaled convergence tolerance is 0.137807
  Stepsize computed as 0.167325
  BUILD              6 2.398553 1.278065
  HI-REDUCTION       8 2.373980 1.278065
  HI-REDUCTION      10 2.112028 1.278065
  HI-REDUCTION      12 1.956552 1.278065
  HI-REDUCTION      14 1.872103 1.278065
  HI-REDUCTION      16 1.801516 1.278065
  HI-REDUCTION      18 1.714986 1.278065
  LO-REDUCTION      20 1.694563 1.278065
  HI-REDUCTION      22 1.560250 1.278065
  HI-REDUCTION      24 1.532507 1.278065
  LO-REDUCTION      26 1.513912 1.278065
  REFLECTION        28 1.483433 1.218586
  HI-REDUCTION      30 1.430012 1.218586
  LO-REDUCTION      32 1.406306 1.218586
  REFLECTION        34 1.399687 1.192709
  REFLECTION        36 1.383953 1.145954
  REFLECTION        38 1.287070 0.935376
  LO-REDUCTION      40 1.278065 0.935376
  HI-REDUCTION      42 1.218586 0.935376
  HI-REDUCTION      44 1.192709 0.935376
  LO-REDUCTION      46 1.188576 0.935376
  HI-REDUCTION      48 1.156477 0.935376
  REFLECTION        50 1.145954 0.889835
  LO-REDUCTION      52 1.119438 0.889835
  HI-REDUCTION      54 1.046671 0.889835
  HI-REDUCTION      56 1.036919 0.889835
  Exiting from Nelder Mead minimizer
      58 function evaluations used
  [1] "New improvement found, resetting step counter"
         step   negloglik    sigma.sq          mu          SE          bt 
  2.000000000 0.889835103 0.001411514 1.376188923 0.111184111 1.717280739 
           vh 
  0.004170978 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 1.520949
    Scaled convergence tolerance is 0.162095
  Stepsize computed as 0.169977
  BUILD              6 2.670967 1.520949
  LO-REDUCTION       8 2.540505 1.520949
  HI-REDUCTION      10 2.500562 1.520949
  HI-REDUCTION      12 2.264779 1.520949
  HI-REDUCTION      14 2.248937 1.520949
  LO-REDUCTION      16 2.193811 1.520949
  HI-REDUCTION      18 2.098106 1.520949
  HI-REDUCTION      20 1.962507 1.520949
  HI-REDUCTION      22 1.924206 1.520949
  HI-REDUCTION      24 1.832895 1.520949
  HI-REDUCTION      26 1.814089 1.520949
  HI-REDUCTION      28 1.759173 1.520949
  LO-REDUCTION      30 1.747628 1.520949
  HI-REDUCTION      32 1.741695 1.520949
  HI-REDUCTION      34 1.732188 1.520949
  LO-REDUCTION      36 1.696795 1.520949
  HI-REDUCTION      38 1.689629 1.520949
  Exiting from Nelder Mead minimizer
      40 function evaluations used
         step   negloglik    sigma.sq          mu          SE          bt 
  3.000000000 0.889835103 0.001411514 1.376188923 0.111184111 1.717280739 
           vh 
  0.004170978 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 1.671894
    Scaled convergence tolerance is 0.177189
  Stepsize computed as 0.156261
  BUILD              6 2.963667 1.671894
  LO-REDUCTION       8 2.499725 1.671894
  HI-REDUCTION      10 2.438026 1.671894
  HI-REDUCTION      12 2.218860 1.671894
  LO-REDUCTION      14 2.218815 1.671894
  HI-REDUCTION      16 2.116744 1.671894
  HI-REDUCTION      18 2.038214 1.671894
  HI-REDUCTION      20 1.937332 1.671894
  HI-REDUCTION      22 1.922420 1.671894
  HI-REDUCTION      24 1.889714 1.671894
  LO-REDUCTION      26 1.866620 1.671894
  LO-REDUCTION      28 1.856002 1.671894
  REFLECTION        30 1.855100 1.588185
  HI-REDUCTION      32 1.784698 1.588185
  EXTENSION         34 1.759075 1.509143
  REFLECTION        36 1.716053 1.397012
  EXTENSION         38 1.673229 1.241906
  HI-REDUCTION      40 1.671894 1.241906
  HI-REDUCTION      42 1.588185 1.241906
  LO-REDUCTION      44 1.565182 1.241906
  LO-REDUCTION      46 1.561474 1.241906
  HI-REDUCTION      48 1.509143 1.241906
  REFLECTION        50 1.458264 1.190647
  HI-REDUCTION      52 1.397247 1.190647
  LO-REDUCTION      54 1.397012 1.190647
  HI-REDUCTION      56 1.370383 1.190647
  Exiting from Nelder Mead minimizer
      58 function evaluations used
         step   negloglik    sigma.sq          mu          SE          bt 
  4.000000000 0.889835103 0.001411514 1.376188923 0.111184111 1.717280739 
           vh 
  0.004170978 
  [1] "100 of 100 done"
  ── 1. Failure: Simulation works (@test_condition.R#33)  ────────────────────────
  result$best$NegLogLik is not more than 2. Difference: -1.11
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 14 | SKIPPED: 0 | WARNINGS: 54 | FAILED: 1 ]
  1. Failure: Simulation works (@test_condition.R#33) 
  
  Error: testthat unit tests failed
  Execution halted