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


Performing analysis on: 4FGL_J0051.5-4220_daily_bin1699
RA = 12.8793, Dec = -42.3455
tmin = 679708801, tmax = 679968001
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='991026', job_status='RUN', time_executed='2022-07-20 00:05:48.487559', time_epoch_executed='1658300748.49' WHERE source_name='4FGL J0051.5-4220' and cadence='daily' and bin_id='1699'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991026

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991026/ft1_4FGL_J0051.5-4220_daily_bin1699.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991026/ft2_4FGL_J0051.5-4220_daily_bin1699.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991026/ft1_4FGL_J0051.5-4220_daily_bin1699.fits outfile=/scratch/kocevski/991026/ft1_filteredMKT_4FGL_J0051.5-4220_daily_bin1699.fits ra=12.8793 dec=-42.3455 rad=12.0 tmin=679708801.0 tmax=679968001.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 5.59
user 3.60
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/991026/ft2_4FGL_J0051.5-4220_daily_bin1699.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/991026/ft1_filteredMKT_4FGL_J0051.5-4220_daily_bin1699.fits evtable="EVENTS" outfile="/scratch/kocevski/991026/ft1_filtered_4FGL_J0051.5-4220_daily_bin1699.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.87
user 0.31
sys 0.18

Number of photons that the gtmktime cut: 588

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/991026/ft1_filtered_4FGL_J0051.5-4220_daily_bin1699.fits" evtable="EVENTS" scfile=/scratch/kocevski/991026/ft2_4FGL_J0051.5-4220_daily_bin1699.fits sctable="SC_DATA" outfile=/scratch/kocevski/991026/ltcube_679708801_679968001_4FGL_J0051.5-4220_daily_bin1699.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/991026/ft2_4FGL_J0051.5-4220_daily_bin1699.fits
.....................!
real 12.41
user 11.75
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991026/ft1_filtered_4FGL_J0051.5-4220_daily_bin1699.fits evtable="EVENTS" scfile=/scratch/kocevski/991026/ft2_4FGL_J0051.5-4220_daily_bin1699.fits sctable="SC_DATA" expcube=/scratch/kocevski/991026/ltcube_679708801_679968001_4FGL_J0051.5-4220_daily_bin1699.fits outfile=/scratch/kocevski/991026/expmap_679708801_679968001_4FGL_J0051.5-4220_daily_bin1699.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/991026/ltcube_679708801_679968001_4FGL_J0051.5-4220_daily_bin1699.fits
.....................!
real 191.18
user 185.44
sys 4.83

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/991026/ft1_filtered_4FGL_J0051.5-4220_daily_bin1699.fits scfile=/scratch/kocevski/991026/ft2_4FGL_J0051.5-4220_daily_bin1699.fits outfile=/scratch/kocevski/991026/cmap_679708801_679968001_4FGL_J0051.5-4220_daily_bin1699.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 1.50
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991026/ft1_filtered_4FGL_J0051.5-4220_daily_bin1699.fits scfile=/scratch/kocevski/991026/ft2_4FGL_J0051.5-4220_daily_bin1699.fits outfile=/scratch/kocevski/991026/cmap_HighResolution_679708801_679968001_4FGL_J0051.5-4220_daily_bin1699.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 2.30
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/991026/ft1_filtered_4FGL_J0051.5-4220_daily_bin1699.fits evtable="EVENTS" scfile=/scratch/kocevski/991026/ft2_4FGL_J0051.5-4220_daily_bin1699.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/991026/Model_4FGL_J0051.5-4220_daily_bin1699.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/991026/ft1_filtered_4FGL_J0051.5-4220_daily_bin1699.fits.....................!
real 70.40
user 44.47
sys 1.41

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/991026/ft1_filtered_4FGL_J0051.5-4220_daily_bin1699.fits', '/scratch/kocevski/991026/ft2_4FGL_J0051.5-4220_daily_bin1699.fits', expMap='/scratch/kocevski/991026/expmap_679708801_679968001_4FGL_J0051.5-4220_daily_bin1699.fits', expCube='/scratch/kocevski/991026/ltcube_679708801_679968001_4FGL_J0051.5-4220_daily_bin1699.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/991026/Model_4FGL_J0051.5-4220_daily_bin1699.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/991026/ft1_filtered_4FGL_J0051.5-4220_daily_bin1699.fits
Spacecraft file(s): /scratch/kocevski/991026/ft2_4FGL_J0051.5-4220_daily_bin1699.fits
Exposure map: /scratch/kocevski/991026/expmap_679708801_679968001_4FGL_J0051.5-4220_daily_bin1699.fits
Exposure cube: /scratch/kocevski/991026/ltcube_679708801_679968001_4FGL_J0051.5-4220_daily_bin1699.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/991026/Model_4FGL_J0051.5-4220_daily_bin1699.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) = 6444.51722309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .95059       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.3980       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.8849       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    24.478       1.0000         .10000E-03   10000.    
    11 'Prefactor '    99.343       1.0000         .10000E-03   10000.    
    12 'norm      '    .19472E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12962E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.334       1.0000         .10000E-03   10000.    
    16 'norm      '    .11166E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.433       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.7842       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12506E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .79117       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0728       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6444.508     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2237 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10021E-03    50.525         .0000    ** at limit **
   2  Prefactor     .10000E-03    6.7580         .0000    ** at limit **
   3  Prefactor     .10000E-03    47.523         .0000    ** at limit **
   4  Prefactor     .94912        7.2365         .0000        .31727E-01
   5  Prefactor     .10008E-03    26.643         .0000    ** at limit **
   6  Prefactor     7.3972        6.2369         .0000        .51503E-03
   7  Prefactor     8.8856        5.1484         .0000        .20061E-02
   8  Prefactor     .10000E-03    15.642         .0000    ** at limit **
   9  Prefactor     .10000E-03    1.6286         .0000    ** at limit **
  10  norm          24.479        19.950         .0000        .13349E-03
  11  Prefactor     99.344        60.706         .0000       -.10978E-02
  12  norm          .10000E-03    1.4538         .0000    ** at limit **
  13  Prefactor     .10000E-03    4.3192         .0000    ** at limit **
  14  Prefactor     .10000E-03    1.3231         .0000    ** at limit **
  15  Prefactor     21.340        18.755         .0000       -.40992E-03
  16  norm          .10000E-03    19.182         .0000    ** at limit **
  17  Prefactor     28.433        24.985         .0000        .78047E-03
  18  Prefactor     8.7844        4.1506         .0000        .47904E-02
  19  Prefactor     .10040E-03    1.7324         .0000    ** at limit **
  20  Normalizat    .79108        .14753         .0000        .48637E-04
  21  Prefactor     1.0728        .17087         .0000        .52829E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100206
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.949117
  Prefactor  = 0.000100079
  Prefactor  = 7.39724
  Prefactor  = 8.88556
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.4793
  Prefactor  = 99.3443
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.3405
  norm       = 0.000100003
  Prefactor  = 28.4332
  Prefactor  = 8.7844
  Prefactor  = 0.000100396
  Normalizat = 0.791077
  Prefactor  = 1.07285
 **********
 **   18 **HESSE 
 **********

 FCN=   6444.508     FROM HESSE     STATUS=OK           313 CALLS     2550 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10021E-03    50.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.7650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    48.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .94912        7.3177        .20818E-02   -1.5513    
   5  Prefactor     .10008E-03    26.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.3972        6.2287        .14746E-03   -1.5164    
   7  Prefactor     8.8856        5.1442        .13062E-03   -1.5112    
   8  Prefactor     .10000E-03    15.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.6323        .10004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          24.479        19.945        .80964E-04   -1.4718    
  11  Prefactor     99.344        60.677        .40333E-04   -1.3711    
  12  norm          .10000E-03    19.661        .18576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.3225        .16294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.3663        .17640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.340        18.732        .86719E-04   -1.4784    
  16  norm          .10000E-03    19.933        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.433        24.998        .75133E-04   -1.4641    
  18  Prefactor     8.7844        4.1484        .10692E-03   -1.5115    
  19  Prefactor     .10040E-03    39.640        .20290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .79108        .17064        .22645E-03   -1.0040    
  21  Prefactor     1.0728        .19872        .23602E-03   -.90339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75827e-08
Minuit parameter uncertainties:
  1  0.00647152
  2  3.17143e-05
  3  1.06405e-05
  4  5.27144
  5  0.00290086
  6  6.2292
  7  5.14443
  8  0.000118578
  9  1.22948e-06
  10  19.9501
  11  60.7152
  12  0.000462317
  13  4.67619e-06
  14  1.33491e-05
  15  18.7376
  16  0.000468149
  17  25.0076
  18  4.14857
  19  0.00793103
  20  0.170752
  21  0.198853
Done.

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

Extracting fit parameters...

4FGL J0051.5-4220
   Spectrum: LogParabola
165         norm:  2.448e+01  1.995e+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:  1.073e+00  1.989e-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:  7.911e-01  1.708e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.88
Ra Dec: 12.879 -42.346
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 2.78e-08 +/- 2.26e-08
Energy Flux (Fixed Index): 6.61e-06 +/- 5.38e-06

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

Saving results to:
/scratch/kocevski/991026/likelihoodResults_679708801_679968001_4FGL_J0051.5-4220_daily_bin1699.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) = 6442.75398809
delta logL = 1.75365963154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6442.71213637
delta logL = 1.79551134318

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.353       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1372       1.0000          .0000       5.0000    
     3 'Normalizat'    .81874       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0436       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=   6442.712     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .88E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.342        17.486       -.81798E-05   -.11588E-03
   2  alpha         1.1368        .62369       -.11024E-03    .87663E-05
   3  Normalizat    .81873        .14016        .64027E-06    .44200E-04
   4  Prefactor     1.0436        .16833       -.16392E-06    .61557E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.3416
  alpha      = 1.13677
  Normalizat = 0.818734
  Prefactor  = 1.0436
 **********
 **   18 **HESSE 
 **********

 FCN=   6442.712     FROM HESSE     STATUS=OK            29 CALLS      236 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.342        17.416        .91043E-04   -1.4828    
   2  alpha         1.1368        .62201        .16866E-02   -.57674    
   3  Normalizat    .81873        .16401        .22280E-03   -.99378    
   4  Prefactor     1.0436        .19703        .23848E-03   -.91290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65721e-11
Minuit parameter uncertainties:
  1  17.4208
  2  0.631524
  3  0.164107
  4  0.197168
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991026': 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) = 6442.71213609
delta logL = 1.79551162849

Extracting fit parameters...

4FGL J0051.5-4220
   Spectrum: LogParabola
165         norm:  1.934e+01  1.742e+01  1.000e-04  1.000e+04 ( 1.000e-12)
166        alpha:  1.137e+00  6.315e-01  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:  1.044e+00  1.972e-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:  8.187e-01  1.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.50
Ra Dec: 12.879 -42.346
Photon Index (Free Index): 1.14 +/- 0.63
Photon Flux (Free Index): 1.66e-08 +/- 1.30e-08
Energy Flux (Free Index): 1.34e-05 +/- 1.02e-05

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/991026/cmap_HighResolution_679708801_679968001_4FGL_J0051.5-4220_daily_bin1699.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.92e-05', comment='SUCCESS', photon_flux='2.78e-08', energy_flux2='1.34e-05', photon_flux_error='2.26e-08', dlogl='1.80e+00', energy_flux='6.61e-06', photon_flux2='1.66e-08', job_status='DONE', time_completed='2022-07-20 00:18:05.388654', photon_index_error2='0.63', photon_index2='1.14', ts='2.88', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='8.08e-08', energy_flux_error2='1.02e-05', EG='0.79', time_epoch_completed='1658301485.39', return_code='0', job_id='991026', GAL2='1.04', EG2='0.82', return_code2='0', energy_flux_error='5.38e-06', photon_flux_error2='1.30e-08', ts2='6.50', photon_index='2.56' WHERE bin_id='1699' AND source_name='4FGL J0051.5-4220' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jul 20 00:18:05 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 991026: <4FGL_J0051.5-4220_daily_bin1699> in cluster <slac> Done

Job <4FGL_J0051.5-4220_daily_bin1699> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jul 20 00:05:07 2022
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 20 00:05:09 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jul 20 00:05:09 2022
Terminated at Wed Jul 20 00:18:06 2022
Results reported at Wed Jul 20 00:18:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0051.5-4220_daily_bin1699 12.8793 -42.3455 679708801 679968001 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 :                                   650.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            779 sec.

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

