Running ‘testthat.R’ [378s/537s]
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 = 24.066136
    Scaled convergence tolerance is 2.41661
  Stepsize computed as 0.197771
  BUILD              6 29.224270 24.066136
  HI-REDUCTION       8 26.878195 24.066136
  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 24.066135600  0.127895841  1.977708509  0.007677756  0.974236330 
            vh 
   0.007855454 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 24.057331
    Scaled convergence tolerance is 2.41573
  Stepsize computed as 0.212703
  BUILD              6 29.594705 24.057331
  HI-REDUCTION       8 27.112564 24.057331
  Exiting from Nelder Mead minimizer
      10 function evaluations used
  [1] "New improvement found, but slight; taking the best value, but not resetting the step counter"
          step    negloglik     sigma.sq           mu           SE           bt 
   4.000000000 24.057330740  0.127602374  2.127032351  0.007026410  0.971749160 
            vh 
   0.007668833 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 23.976562
    Scaled convergence tolerance is 2.40766
  Stepsize computed as 0.211806
  BUILD              6 29.411150 23.976562
  HI-REDUCTION       8 26.918077 23.976562
  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.976561978  0.122179788  2.118055054  0.006404315  0.965831229 
            vh 
   0.007514868 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 24.017572
    Scaled convergence tolerance is 2.41176
  Stepsize computed as 0.203100
  BUILD              6 29.087696 24.017572
  HI-REDUCTION       8 26.674942 24.017572
  Exiting from Nelder Mead minimizer
      10 function evaluations used
          step    negloglik     sigma.sq           mu           SE           bt 
   6.000000000 23.976561978  0.122179788  2.118055054  0.006404315  0.965831229 
            vh 
   0.007514868 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 23.933249
    Scaled convergence tolerance is 2.40332
  Stepsize computed as 0.219592
  BUILD              6 29.677165 23.933249
  HI-REDUCTION       8 27.113358 23.933249
  HI-REDUCTION      10 26.377643 23.933249
  Exiting from Nelder Mead minimizer
      12 function evaluations used
  [1] "New improvement found, resetting step counter"
          step    negloglik     sigma.sq           mu           SE           bt 
   7.000000000 23.933249241  0.126292250  2.195922912  0.005502290  0.928668695 
            vh 
   0.008660967 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 24.103888
    Scaled convergence tolerance is 2.42039
  Stepsize computed as 0.214273
  BUILD              6 29.739823 24.103888
  HI-REDUCTION       8 27.255076 24.103888
  HI-REDUCTION      10 26.567976 24.103888
  Exiting from Nelder Mead minimizer
      12 function evaluations used
          step    negloglik     sigma.sq           mu           SE           bt 
   8.000000000 23.933249241  0.126292250  2.195922912  0.005502290  0.928668695 
            vh 
   0.008660967 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 24.440453
    Scaled convergence tolerance is 2.45405
  Stepsize computed as 0.229069
  BUILD              6 30.060514 24.440453
  HI-REDUCTION       8 27.495644 24.440453
  Exiting from Nelder Mead minimizer
      10 function evaluations used
          step    negloglik     sigma.sq           mu           SE           bt 
   9.000000000 23.933249241  0.126292250  2.195922912  0.005502290  0.928668695 
            vh 
   0.008660967 
  [1] "100 of 100 done"
  [1] "Now starting analysis"
  [1] "Starting with initial values"
    sigma.sq         mu         SE         bt         vh 
  1.70498779 2.50815157 0.01704988 1.00000000 0.01704988 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 9.866395
    Scaled convergence tolerance is 0.99664
  Stepsize computed as 0.250815
  BUILD              6 9.866395 8.554389
  LO-REDUCTION       8 9.775612 8.554389
  LO-REDUCTION      10 9.704676 8.554389
  Exiting from Nelder Mead minimizer
      12 function evaluations used
        step  negloglik   sigma.sq         mu         SE         bt         vh 
  1.00000000 8.55438897 1.70498779 2.50815157 0.01704988 1.25081516 0.01704988 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 8.554389
    Scaled convergence tolerance is 0.865439
  Stepsize computed as 0.250815
  BUILD              6 8.631525 7.658756
  HI-REDUCTION       8 8.554389 7.658756
  LO-REDUCTION      10 8.539387 7.658756
  EXTENSION         12 8.414533 7.436243
  HI-REDUCTION      14 8.366075 7.436243
  EXTENSION         16 8.082073 6.973645
  LO-REDUCTION      18 7.860512 6.973645
  EXTENSION         20 7.831100 6.424932
  LO-REDUCTION      22 7.658756 6.424932
  LO-REDUCTION      24 7.436243 6.424932
  EXTENSION         26 6.997766 5.471889
  LO-REDUCTION      28 6.973645 5.471889
  LO-REDUCTION      30 6.542681 5.471889
  EXTENSION         32 6.538235 4.593581
  REFLECTION        34 6.424932 4.184505
  HI-REDUCTION      36 5.877833 4.184505
  EXTENSION         38 5.745107 2.040765
  HI-REDUCTION      40 5.619767 2.040765
  HI-REDUCTION      42 5.471889 2.040765
  LO-REDUCTION      44 5.197415 2.040765
  HI-REDUCTION      46 5.098940 2.040765
  HI-REDUCTION      48 4.671468 2.040765
  LO-REDUCTION      50 4.593581 2.040765
  REFLECTION        52 4.588009 1.580296
  HI-REDUCTION      54 4.184505 1.580296
  HI-REDUCTION      56 3.906019 1.580296
  HI-REDUCTION      58 3.882948 1.580296
  LO-REDUCTION      60 3.583558 1.580296
  HI-REDUCTION      62 3.403188 1.580296
  HI-REDUCTION      64 3.089636 1.580296
  LO-REDUCTION      66 2.936395 1.580296
  HI-REDUCTION      68 2.784235 1.580296
  HI-REDUCTION      70 2.623466 1.580296
  LO-REDUCTION      72 2.508534 1.580296
  Exiting from Nelder Mead minimizer
      74 function evaluations used
  [1] "New improvement found, resetting step counter"
         step   negloglik    sigma.sq          mu          SE          bt 
  2.000000000 1.580295908 0.102902287 0.942606055 0.007166053 2.746814441 
           vh 
  1.418199004 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 8.645031
    Scaled convergence tolerance is 0.874503
  Stepsize computed as 0.234834
  BUILD              6 8.657331 7.713671
  HI-REDUCTION       8 8.645031 7.713671
  Exiting from Nelder Mead minimizer
      10 function evaluations used
         step   negloglik    sigma.sq          mu          SE          bt 
  3.000000000 1.580295908 0.102902287 0.942606055 0.007166053 2.746814441 
           vh 
  1.418199004 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 8.484525
    Scaled convergence tolerance is 0.858453
  Stepsize computed as 0.226576
  BUILD              6 8.514531 7.607187
  HI-REDUCTION       8 8.484525 7.607187
  Exiting from Nelder Mead minimizer
      10 function evaluations used
         step   negloglik    sigma.sq          mu          SE          bt 
  4.000000000 1.580295908 0.102902287 0.942606055 0.007166053 2.746814441 
           vh 
  1.418199004 
  [1] "100 of 100 done"
  ── 1. Failure: Simulation works (@test_condition.R#33)  ────────────────────────
  result$best$NegLogLik is not more than 2. Difference: -0.42
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 14 | SKIPPED: 0 | WARNINGS: 25 | FAILED: 1 ]
  1. Failure: Simulation works (@test_condition.R#33) 
  
  Error: testthat unit tests failed
  Execution halted