CosmoMC: Cannot stat file error

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Rahul Priyadarshan R
Posts: 1
Joined: March 04 2022
Affiliation: Indian Institute of Technology Madras

CosmoMC: Cannot stat file error

Post by Rahul Priyadarshan R » March 05 2022

Hi all,

I am new to CosmoMC and I'm trying to run CosmoMC using Planck likelihood data. When I run CosmoMC with test_planck.ini, I get the following error:

Code: Select all

 Number of MPI processes:           4
 file_root:test
 Random seeds: 12681,  9539 rand_inst:   1
 Random seeds: 12781,  9539 rand_inst:   2
 Random seeds: 12881,  9539 rand_inst:   3
 Random seeds: 12984,  9540 rand_inst:   4
clik_init(../src/clik.c:57)::ForwardError
  cldf_open(../src/cldf/cldf.c:191)::ForwardError
    cldf_open_sub(../src/cldf/cldf.c:108)::Error -1234 (cannot stat file (error -1))
clik_init(../src/clik.c:57)::ForwardError
  cldf_open(../src/cldf/cldf.c:191)::ForwardError
    cldf_open_sub(../src/cldf/cldf.c:108)::Error -1234 (cannot stat file (error -1))
clik_init(../src/clik.c:57)::ForwardError
  cldf_open(../src/cldf/cldf.c:191)::ForwardError
    cldf_open_sub(../src/cldf/cldf.c:108)::Error -1234 (cannot stat file (error -1))
 Using clik with likelihood file
 ./data/clik_14.0/hi_l/plik/plik_rd12_HM_v22b_TTTEEE.clik
clik_init(../src/clik.c:57)::ForwardError
  cldf_open(../src/cldf/cldf.c:191)::ForwardError
    cldf_open_sub(../src/cldf/cldf.c:108)::Error -1234 (cannot stat file (error -1))
I have included the Planck likelihood files as well as the following likelihoods in the test.ini file: BK15, DES, Planck 2018 lensing, BAO and Pantheon18. When I try to run CosmoMC using test.ini for action = 0, the chains seem to run fine and I'm able to get the constraint plots in GetDist. However, when I run using test_planck.ini, I get the above mentioned error. Kindly help me fix this issue. Thanks in advance.

Antony Lewis
Posts: 1936
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: CosmoMC: Cannot stat file error

Post by Antony Lewis » March 05 2022

Looks like you don't have clik set up correctly, or clik files not linked as described in the Planck readme

Post Reply