aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 167 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7473
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2131.0-2746_daily_bin1681
RA = 322.753, Dec = -27.7727
tmin = 675043201, tmax = 675302401
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='755817', job_status='RUN', time_executed='2022-05-27 00:59:18.107877', time_epoch_executed='1653638358.11' WHERE source_name='4FGL J2131.0-2746' and cadence='daily' and bin_id='1681'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/755817

Creating custom pfile directory:
/scratch/kocevski/755817/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=675043201.0 && nMetStart<675302401.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=675043201.0 && nMetStart<675302401.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/755817/ft1_4FGL_J2131.0-2746_daily_bin1681.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=675043201.0 && nMetStart<675302401.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/755817/ft2_4FGL_J2131.0-2746_daily_bin1681.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/755817/ft1_4FGL_J2131.0-2746_daily_bin1681.fits outfile=/scratch/kocevski/755817/ft1_filteredMKT_4FGL_J2131.0-2746_daily_bin1681.fits ra=322.753 dec=-27.7727 rad=12.0 tmin=675043201.0 tmax=675302401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.59
user 3.38
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/755817/ft2_4FGL_J2131.0-2746_daily_bin1681.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/755817/ft2_4FGL_J2131.0-2746_daily_bin1681.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/755817/ft1_filteredMKT_4FGL_J2131.0-2746_daily_bin1681.fits evtable="EVENTS" outfile="/scratch/kocevski/755817/ft1_filtered_4FGL_J2131.0-2746_daily_bin1681.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 696

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/755817/ft1_filtered_4FGL_J2131.0-2746_daily_bin1681.fits" evtable="EVENTS" scfile=/scratch/kocevski/755817/ft2_4FGL_J2131.0-2746_daily_bin1681.fits sctable="SC_DATA" outfile=/scratch/kocevski/755817/ltcube_675043201_675302401_4FGL_J2131.0-2746_daily_bin1681.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/755817/ft2_4FGL_J2131.0-2746_daily_bin1681.fits
.....................!
real 14.74
user 14.25
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/755817/ft1_filtered_4FGL_J2131.0-2746_daily_bin1681.fits evtable="EVENTS" scfile=/scratch/kocevski/755817/ft2_4FGL_J2131.0-2746_daily_bin1681.fits sctable="SC_DATA" expcube=/scratch/kocevski/755817/ltcube_675043201_675302401_4FGL_J2131.0-2746_daily_bin1681.fits outfile=/scratch/kocevski/755817/expmap_675043201_675302401_4FGL_J2131.0-2746_daily_bin1681.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/755817/ltcube_675043201_675302401_4FGL_J2131.0-2746_daily_bin1681.fits
.....................!
real 191.74
user 184.90
sys 5.22

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J2131.0-2746 @ 322.753 -27.7727

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/755817/ft1_filtered_4FGL_J2131.0-2746_daily_bin1681.fits scfile=/scratch/kocevski/755817/ft2_4FGL_J2131.0-2746_daily_bin1681.fits outfile=/scratch/kocevski/755817/cmap_675043201_675302401_4FGL_J2131.0-2746_daily_bin1681.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=322.753 yref=-27.7727 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/755817/ft1_filtered_4FGL_J2131.0-2746_daily_bin1681.fits scfile=/scratch/kocevski/755817/ft2_4FGL_J2131.0-2746_daily_bin1681.fits outfile=/scratch/kocevski/755817/cmap_HighResolution_675043201_675302401_4FGL_J2131.0-2746_daily_bin1681.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=322.753 yref=-27.7727 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/755817/ft1_filtered_4FGL_J2131.0-2746_daily_bin1681.fits evtable="EVENTS" scfile=/scratch/kocevski/755817/ft2_4FGL_J2131.0-2746_daily_bin1681.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/755817/Model_4FGL_J2131.0-2746_daily_bin1681.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/755817/ft1_filtered_4FGL_J2131.0-2746_daily_bin1681.fits.....................!
real 65.49
user 64.11
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/755817/ft1_filtered_4FGL_J2131.0-2746_daily_bin1681.fits', '/scratch/kocevski/755817/ft2_4FGL_J2131.0-2746_daily_bin1681.fits', expMap='/scratch/kocevski/755817/expmap_675043201_675302401_4FGL_J2131.0-2746_daily_bin1681.fits', expCube='/scratch/kocevski/755817/ltcube_675043201_675302401_4FGL_J2131.0-2746_daily_bin1681.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/755817/Model_4FGL_J2131.0-2746_daily_bin1681.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2131.0-2746'

4FGL J2131.0-2746
   Spectrum: LogParabola
257         norm:  1.458e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
258        alpha:  1.622e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  1.212e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  2.442e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/755817/ft1_filtered_4FGL_J2131.0-2746_daily_bin1681.fits
Spacecraft file(s): /scratch/kocevski/755817/ft2_4FGL_J2131.0-2746_daily_bin1681.fits
Exposure map: /scratch/kocevski/755817/expmap_675043201_675302401_4FGL_J2131.0-2746_daily_bin1681.fits
Exposure cube: /scratch/kocevski/755817/ltcube_675043201_675302401_4FGL_J2131.0-2746_daily_bin1681.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/755817/Model_4FGL_J2131.0-2746_daily_bin1681.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7519.34790293

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7519.30730139

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3524       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.3524       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.665       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.867       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .43428       1.0000         .10000E-03   10000.    
     7 'norm      '    8.5628       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3679       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .37699E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.324       1.0000         .10000E-03   10000.    
    15 'norm      '    5.2949       1.0000         .10000E-03   10000.    
    16 'norm      '    .52414E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7699       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1765       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .84544       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7519.307     FROM MIGRAD    STATUS=CONVERGED    410 CALLS     2089 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3523        7.5414       -.27401E-06    .58500E-04
   2  Prefactor     .10000E-03    30.004       -.40180E-06** at limit **
   3  norm          6.3484        20.437        .84808E-06   -.16892E-04
   4  Prefactor     20.668        20.320       -.99459E-06    .11897E-03
   5  Prefactor     12.866        31.592       -.59851E-06    .26110E-05
   6  Prefactor     .44227        4.3902        .40390E-05   -.39744E-03
   7  norm          8.5628        8.9326        .17755E-07   -.85507E-05
   8  Prefactor     2.3682        7.7720       -.81740E-06    .42782E-04
   9  Prefactor     .10000E-03    3.2912       -.26265E-06** at limit **
  10  Prefactor     .10000E-03    5.6838       -.52476E-06** at limit **
  11  Prefactor     .10000E-03    5.6840       -.28792E-07** at limit **
  12  norm          .10000E-03    2.6518       -.24481E-06** at limit **
  13  Prefactor     .10000E-03    24.273        .16645E-04** at limit **
  14  Prefactor     30.375        36.746        .21201E-05   -.33563E-04
  15  norm          5.2962        3.8156        .16116E-05   -.10887E-03
  16  norm          .52406E-01    .15796       -.27515E-06   -.22551E-02
  17  Prefactor     5.7706        6.5789        .12831E-06    .21269E-05
  18  Prefactor     .10000E-03    15.170       -.40297E-06** at limit **
  19  Normalizat    1.1765        .18061        .76025E-06   -.52582E-04
  20  Prefactor     .84548        .10511        .11466E-05    .57794E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.35234
  Prefactor  = 0.0001
  norm       = 6.34835
  Prefactor  = 20.6684
  Prefactor  = 12.8664
  Prefactor  = 0.442274
  norm       = 8.56278
  Prefactor  = 2.36822
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.3745
  norm       = 5.29623
  norm       = 0.0524064
  Prefactor  = 5.77062
  Prefactor  = 0.0001
  Normalizat = 1.17646
  Prefactor  = 0.845478
 **********
 **   18 **HESSE 
 **********

 FCN=   7519.307     FROM HESSE     STATUS=OK           301 CALLS     2390 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3523        7.5297        .19307E-03   -1.5291    
   2  Prefactor     .10000E-03    30.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.3484        20.455        .15925E-03   -1.5204    
   4  Prefactor     20.668        20.260        .88110E-04   -1.4798    
   5  Prefactor     12.866        31.638        .11167E-03   -1.4990    
   6  Prefactor     .44227        16.810        .28796E-02   -1.5575    
   7  norm          8.5628        8.9346        .13699E-03   -1.5123    
   8  Prefactor     2.3682        7.7682        .26628E-03   -1.5400    
   9  Prefactor     .10000E-03    3.3360        .15367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.7079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.7287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.6729        .13796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    26.041        .45508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.375        36.924        .72759E-04   -1.4605    
  15  norm          5.2962        3.8263        .13120E-03   -1.5248    
  16  norm          .52406E-01    .19037        .55984E-03   -1.5662    
  17  Prefactor     5.7706        6.5839        .16721E-03   -1.5227    
  18  Prefactor     .10000E-03    15.689        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1765        .20651        .27359E-03   -.87333    
  20  Prefactor     .84548        .12287        .19071E-03   -.98073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94334e-09
Minuit parameter uncertainties:
  1  7.53133
  2  4.27664e-05
  3  20.4779
  4  20.2665
  5  31.6793
  6  5.45428
  7  8.93597
  8  7.77146
  9  4.00594e-05
  10  1.86422e-05
  11  4.24148e-05
  12  3.6043e-05
  13  0.000213167
  14  36.9517
  15  3.82647
  16  0.190375
  17  6.58472
  18  0.000148327
  19  0.206653
  20  0.12291
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7519.30729362

Extracting fit parameters...

4FGL J2131.0-2746
   Spectrum: LogParabola
257         norm:  8.563e+00  8.936e+00  1.000e-04  1.000e+04 ( 1.000e-13)
258        alpha:  1.622e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  1.212e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  2.442e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  8.455e-01  1.229e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.176e+00  2.067e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.26
Ra Dec: 322.753 -27.773
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 1.47e-08 +/- 1.53e-08
Energy Flux (Fixed Index): 2.95e-05 +/- 3.08e-05

TS (Fixed Index): 1.26
Ra Dec: 322.753 -27.773
Photon Flux Upper Limit: 5.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/755817/likelihoodResults_675043201_675302401_4FGL_J2131.0-2746_daily_bin1681.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7516.81337164
delta logL = 2.49392197565

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7516.80469077
delta logL = 2.50260284765

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4428       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0709       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1134       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85542       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7516.805     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      261 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4421        18.818        .65441E-02    .40390E-03
   2  alpha         3.0710        1.9061        .17146        .11647E-03
   3  Normalizat    1.1134        .71999E-01    .63204E-01    .65276E-05
   4  Prefactor     .85542        .38847E-01    .44434E-01    .37846E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.44209
  alpha      = 3.07099
  Normalizat = 1.11338
  Prefactor  = 0.855423
 **********
 **   18 **HESSE 
 **********

 FCN=   7516.805     FROM HESSE     STATUS=OK            33 CALLS      294 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4421        5.4511        .65451E-04   -1.5395    
   2  alpha         3.0710        .97742        .67619E-02    .23043    
   3  Normalizat    1.1134        .20326        .27957E-03   -.89323    
   4  Prefactor     .85542        .11993        .18925E-03   -.97717    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.75424e-11
Minuit parameter uncertainties:
  1  5.45222
  2  1.0058
  3  0.203406
  4  0.119972
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/755817': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7516.80469075
delta logL = 2.50260287026

Extracting fit parameters...

4FGL J2131.0-2746
   Spectrum: LogParabola
257         norm:  2.442e+00  5.452e+00  1.000e-04  1.000e+04 ( 1.000e-13)
258        alpha:  3.071e+00  1.006e+00  0.000e+00  5.000e+00 ( 1.000e+00)
259         beta:  1.212e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  2.442e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  8.554e-01  1.200e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.113e+00  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.29
Ra Dec: 322.753 -27.773
Photon Index (Free Index): 3.07 +/- 1.01
Photon Flux (Free Index): 8.94e-08 +/- 5.78e-08
Energy Flux (Free Index): 2.16e-05 +/- 1.19e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/755817/cmap_HighResolution_675043201_675302401_4FGL_J2131.0-2746_daily_bin1681.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/755817

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-04', comment='SUCCESS', photon_flux='1.47e-08', energy_flux2='2.16e-05', photon_flux_error='1.53e-08', dlogl='2.50e+00', energy_flux='2.95e-05', photon_flux2='8.94e-08', job_status='DONE', time_completed='2022-05-27 01:09:55.168915', photon_index_error2='1.01', photon_index2='3.07', ts='1.26', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='5.06e-08', energy_flux_error2='1.19e-05', EG='1.18', time_epoch_completed='1653638995.17', return_code='0', job_id='755817', GAL2='0.86', EG2='1.11', return_code2='0', energy_flux_error='3.08e-05', photon_flux_error2='5.78e-08', ts2='6.29', photon_index='1.62' WHERE bin_id='1681' AND source_name='4FGL J2131.0-2746' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May 27 01:09:55 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 755817: <4FGL_J2131.0-2746_daily_bin1681> in cluster <slac> Done

Job <4FGL_J2131.0-2746_daily_bin1681> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri May 27 00:55:21 2022
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May 27 00:56:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May 27 00:56:22 2022
Terminated at Fri May 27 01:09:55 2022
Results reported at Fri May 27 01:09:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2131.0-2746_daily_bin1681 322.753 -27.7727 675043201 675302401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2131.0-2746 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   637.49 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             270.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            874 sec.

The output (if any) is above this job summary.

