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 70 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 = 7492
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0051.5-4220_daily_bin1679
RA = 12.8793, Dec = -42.3455
tmin = 674524801, tmax = 674784001
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='424652', job_status='RUN', time_executed='2022-05-21 00:08:12.753902', time_epoch_executed='1653116892.75' WHERE source_name='4FGL J0051.5-4220' and cadence='daily' and bin_id='1679'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/424652

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/424652/ft1_4FGL_J0051.5-4220_daily_bin1679.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/424652/ft2_4FGL_J0051.5-4220_daily_bin1679.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/424652/ft1_4FGL_J0051.5-4220_daily_bin1679.fits outfile=/scratch/kocevski/424652/ft1_filteredMKT_4FGL_J0051.5-4220_daily_bin1679.fits ra=12.8793 dec=-42.3455 rad=12.0 tmin=674524801.0 tmax=674784001.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.76
user 3.39
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/424652/ft2_4FGL_J0051.5-4220_daily_bin1679.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/424652/ft2_4FGL_J0051.5-4220_daily_bin1679.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/424652/ft1_filteredMKT_4FGL_J0051.5-4220_daily_bin1679.fits evtable="EVENTS" outfile="/scratch/kocevski/424652/ft1_filtered_4FGL_J0051.5-4220_daily_bin1679.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.54
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 564

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/424652/ft1_filtered_4FGL_J0051.5-4220_daily_bin1679.fits" evtable="EVENTS" scfile=/scratch/kocevski/424652/ft2_4FGL_J0051.5-4220_daily_bin1679.fits sctable="SC_DATA" outfile=/scratch/kocevski/424652/ltcube_674524801_674784001_4FGL_J0051.5-4220_daily_bin1679.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/424652/ft2_4FGL_J0051.5-4220_daily_bin1679.fits
.....................!
real 15.60
user 15.15
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/424652/ft1_filtered_4FGL_J0051.5-4220_daily_bin1679.fits evtable="EVENTS" scfile=/scratch/kocevski/424652/ft2_4FGL_J0051.5-4220_daily_bin1679.fits sctable="SC_DATA" expcube=/scratch/kocevski/424652/ltcube_674524801_674784001_4FGL_J0051.5-4220_daily_bin1679.fits outfile=/scratch/kocevski/424652/expmap_674524801_674784001_4FGL_J0051.5-4220_daily_bin1679.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/424652/ltcube_674524801_674784001_4FGL_J0051.5-4220_daily_bin1679.fits
.....................!
real 191.39
user 186.19
sys 4.72

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 195 point sources and 0 extended sources

Setting source of interest to:
4FGL J0051.5-4220 @ 12.8793 -42.3455

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/424652/ft1_filtered_4FGL_J0051.5-4220_daily_bin1679.fits scfile=/scratch/kocevski/424652/ft2_4FGL_J0051.5-4220_daily_bin1679.fits outfile=/scratch/kocevski/424652/cmap_674524801_674784001_4FGL_J0051.5-4220_daily_bin1679.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=12.8793 yref=-42.3455 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.64
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/424652/ft1_filtered_4FGL_J0051.5-4220_daily_bin1679.fits scfile=/scratch/kocevski/424652/ft2_4FGL_J0051.5-4220_daily_bin1679.fits outfile=/scratch/kocevski/424652/cmap_HighResolution_674524801_674784001_4FGL_J0051.5-4220_daily_bin1679.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=12.8793 yref=-42.3455 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/424652/ft1_filtered_4FGL_J0051.5-4220_daily_bin1679.fits evtable="EVENTS" scfile=/scratch/kocevski/424652/ft2_4FGL_J0051.5-4220_daily_bin1679.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/424652/Model_4FGL_J0051.5-4220_daily_bin1679.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/424652/ft1_filtered_4FGL_J0051.5-4220_daily_bin1679.fits.....................!
real 47.96
user 45.92
sys 1.42

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/424652/ft1_filtered_4FGL_J0051.5-4220_daily_bin1679.fits', '/scratch/kocevski/424652/ft2_4FGL_J0051.5-4220_daily_bin1679.fits', expMap='/scratch/kocevski/424652/expmap_674524801_674784001_4FGL_J0051.5-4220_daily_bin1679.fits', expCube='/scratch/kocevski/424652/ltcube_674524801_674784001_4FGL_J0051.5-4220_daily_bin1679.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/424652/Model_4FGL_J0051.5-4220_daily_bin1679.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0051.5-4220'

4FGL J0051.5-4220
   Spectrum: LogParabola
165         norm:  8.835e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
166        alpha:  2.556e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
167         beta:  2.805e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
168           Eb:  3.304e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/424652/ft1_filtered_4FGL_J0051.5-4220_daily_bin1679.fits
Spacecraft file(s): /scratch/kocevski/424652/ft2_4FGL_J0051.5-4220_daily_bin1679.fits
Exposure map: /scratch/kocevski/424652/expmap_674524801_674784001_4FGL_J0051.5-4220_daily_bin1679.fits
Exposure cube: /scratch/kocevski/424652/ltcube_674524801_674784001_4FGL_J0051.5-4220_daily_bin1679.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/424652/Model_4FGL_J0051.5-4220_daily_bin1679.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6134.59780617

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    43.170       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2309       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .91037       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4009       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.897       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    15.819       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1903       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0399       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.4341       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3901       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4462       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8053       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2732       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .70255       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6134.516     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     1871 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.747        .19019E-05** at limit **
   2  Prefactor     .10000E-03    11.545       -.25481E-05** at limit **
   3  Prefactor     43.156        37.304       -.17477E-04    .18666E-04
   4  Prefactor     .10000E-03    3.4153        .25124E-06** at limit **
   5  Prefactor     4.2228        23.554       -.19236E-04   -.54399E-04
   6  Prefactor     .91368        4.3227       -.14341E-05   -.10580E-02
   7  Prefactor     4.3990        4.4474        .13623E-05    .48579E-04
   8  Prefactor     25.896        19.602       -.27869E-06    .33197E-04
   9  Prefactor     .10000E-03    1.6464       -.89983E-08** at limit **
  10  norm          15.819        21.459       -.90317E-06   -.11248E-05
  11  Prefactor     .10000E-03    19.980        .36299E-06** at limit **
  12  norm          2.1903        2.0851       -.10143E-06   -.84958E-04
  13  Prefactor     .10000E-03    10.493        .14007E-05** at limit **
  14  Prefactor     4.0399        2.8682       -.51646E-06   -.19816E-03
  15  Prefactor     .10000E-03    12.193       -.85988E-06** at limit **
  16  norm          7.4336        9.6861       -.46930E-06   -.64764E-04
  17  Prefactor     6.3885        19.058       -.38996E-05   -.33358E-04
  18  Prefactor     4.4463        3.5399        .23310E-06   -.52519E-04
  19  Prefactor     2.8068        3.9818        .19049E-06   -.42015E-03
  20  Normalizat    1.2731        .16202        .17087E-05    .35088E-04
  21  Prefactor     .70262        .18247        .95853E-06    .83501E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.1559
  Prefactor  = 0.0001
  Prefactor  = 4.22281
  Prefactor  = 0.913678
  Prefactor  = 4.39897
  Prefactor  = 25.8964
  Prefactor  = 0.0001
  norm       = 15.8188
  Prefactor  = 0.0001
  norm       = 2.19029
  Prefactor  = 0.0001
  Prefactor  = 4.03991
  Prefactor  = 0.0001
  norm       = 7.43357
  Prefactor  = 6.38846
  Prefactor  = 4.44626
  Prefactor  = 2.80684
  Normalizat = 1.2731
  Prefactor  = 0.702621
 **********
 **   18 **HESSE 
 **********

 FCN=   6134.516     FROM HESSE     STATUS=OK           321 CALLS     2192 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     43.156        36.669        .61015E-04   -1.4393    
   4  Prefactor     .10000E-03    3.4416        .14138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.2228        23.525        .19590E-03   -1.5297    
   6  Prefactor     .91368        4.3161        .32037E-03   -1.5517    
   7  Prefactor     4.3990        4.4241        .14853E-03   -1.5288    
   8  Prefactor     25.896        19.582        .78719E-04   -1.4690    
   9  Prefactor     .10000E-03    1.6482        .98142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          15.819        21.477        .10070E-03   -1.4912    
  11  Prefactor     .10000E-03    19.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1903        2.0782        .10736E-03   -1.5412    
  13  Prefactor     .10000E-03    10.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.0399        2.8668        .10783E-03   -1.5306    
  15  Prefactor     .10000E-03    12.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.4336        9.6854        .14710E-03   -1.5163    
  17  Prefactor     6.3885        19.058        .15878E-03   -1.5202    
  18  Prefactor     4.4463        3.5349        .12693E-03   -1.5286    
  19  Prefactor     2.8068        3.9707        .17836E-03   -1.5373    
  20  Normalizat    1.2731        .18677        .20120E-03   -.84373    
  21  Prefactor     .70262        .20946        .30032E-03   -1.0342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20636e-09
Minuit parameter uncertainties:
  1  2.02083e-06
  2  6.5893e-05
  3  36.6877
  4  3.55466e-05
  5  19.9457
  6  3.97191
  7  4.42442
  8  19.5864
  9  2.07972e-06
  10  21.4877
  11  6.46638e-06
  12  2.07828
  13  1.5835e-05
  14  2.86694
  15  2.70146e-05
  16  9.68739
  17  19.0759
  18  3.53507
  19  3.97112
  20  0.186867
  21  0.209699
Done.

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

Extracting fit parameters...

4FGL J0051.5-4220
   Spectrum: LogParabola
165         norm:  1.582e+01  2.149e+01  1.000e-04  1.000e+04 ( 1.000e-12)
166        alpha:  2.556e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
167         beta:  2.805e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
168           Eb:  3.304e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  7.026e-01  2.097e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  1.273e+00  1.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.84
Ra Dec: 12.879 -42.346
Photon Flux Upper Limit: 8.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.91e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/424652/likelihoodResults_674524801_674784001_4FGL_J0051.5-4220_daily_bin1679.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) = 6134.43810116
delta logL = 0.0781587986221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6134.40539093
delta logL = 0.110869020277

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6134.405     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      212 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 19.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.180        19.692       -.65638E-05   -.48036E-03
   2  alpha         1.5348        1.5638       -.10457E-03    .30505E-04
   3  Normalizat    1.2887        .15904        .58403E-06    .12973E-03
   4  Prefactor     .69018        .18209       -.25811E-06    .10941E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.1801
  alpha      = 1.53483
  Normalizat = 1.28872
  Prefactor  = 0.690176
 **********
 **   18 **HESSE 
 **********

 FCN=   6134.405     FROM HESSE     STATUS=OK            29 CALLS      241 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.180        18.304        .12556E-03   -1.5070    
   2  alpha         1.5348        1.4699        .36165E-01   -.39637    
   3  Normalizat    1.2887        .18213        .20016E-03   -.83904    
   4  Prefactor     .69018        .20835        .30275E-03   -1.0391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72211e-10
Minuit parameter uncertainties:
  1  18.3139
  2  1.59373
  3  0.182225
  4  0.208583
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/424652': 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) = 6134.40539073
delta logL = 0.110869229331

Extracting fit parameters...

4FGL J0051.5-4220
   Spectrum: LogParabola
165         norm:  1.018e+01  1.831e+01  1.000e-04  1.000e+04 ( 1.000e-12)
166        alpha:  1.535e+00  1.594e+00  0.000e+00  5.000e+00 ( 1.000e+00)
167         beta:  2.805e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
168           Eb:  3.304e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  6.902e-01  2.086e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  1.289e+00  1.822e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 12.879 -42.346
Photon Index (Free Index): 1.53 +/- 1.59
Photon Flux (Free Index): 8.31e-09 +/- 1.53e-08
Energy Flux (Free Index): 4.22e-06 +/- 6.03e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/424652/cmap_HighResolution_674524801_674784001_4FGL_J0051.5-4220_daily_bin1679.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.91e-05', comment='SUCCESS', energy_flux2='4.22e-06', dlogl='1.11e-01', photon_flux2='8.31e-09', job_status='DONE', time_completed='2022-05-21 00:18:41.341121', photon_index_error2='1.59', photon_index2='1.53', ts='0.84', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='8.04e-08', energy_flux_error2='6.03e-06', EG='1.27', time_epoch_completed='1653117521.34', return_code='0', job_id='424652', GAL2='0.69', EG2='1.29', return_code2='0', photon_flux_error2='1.53e-08', ts2='1.06', photon_index='2.56' WHERE bin_id='1679' AND source_name='4FGL J0051.5-4220' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat May 21 00:18:41 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 424652: <4FGL_J0051.5-4220_daily_bin1679> in cluster <slac> Done

Job <4FGL_J0051.5-4220_daily_bin1679> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat May 21 00:05:01 2022
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat May 21 00:06:46 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat May 21 00:06:46 2022
Terminated at Sat May 21 00:18:42 2022
Results reported at Sat May 21 00:18:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0051.5-4220_daily_bin1679 12.8793 -42.3455 674524801 674784001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0051.5-4220 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   624.01 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             302.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            821 sec.

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

