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 18 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_J2251.5-4928_daily_bin1681
RA = 342.879, Dec = -49.4691
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='755987', job_status='RUN', time_executed='2022-05-27 00:58:10.941230', time_epoch_executed='1653638290.94' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1681'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/755987

Creating custom pfile directory:
/scratch/kocevski/755987/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/755987/ft1_4FGL_J2251.5-4928_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/755987/ft2_4FGL_J2251.5-4928_daily_bin1681.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/755987/ft1_4FGL_J2251.5-4928_daily_bin1681.fits outfile=/scratch/kocevski/755987/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1681.fits ra=342.879 dec=-49.4691 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.55
user 3.34
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/755987/ft2_4FGL_J2251.5-4928_daily_bin1681.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/755987/ft2_4FGL_J2251.5-4928_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/755987/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1681.fits evtable="EVENTS" outfile="/scratch/kocevski/755987/ft1_filtered_4FGL_J2251.5-4928_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.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 563

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/755987/ft1_filtered_4FGL_J2251.5-4928_daily_bin1681.fits" evtable="EVENTS" scfile=/scratch/kocevski/755987/ft2_4FGL_J2251.5-4928_daily_bin1681.fits sctable="SC_DATA" outfile=/scratch/kocevski/755987/ltcube_675043201_675302401_4FGL_J2251.5-4928_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/755987/ft2_4FGL_J2251.5-4928_daily_bin1681.fits
.....................!
real 12.92
user 12.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/755987/ft1_filtered_4FGL_J2251.5-4928_daily_bin1681.fits evtable="EVENTS" scfile=/scratch/kocevski/755987/ft2_4FGL_J2251.5-4928_daily_bin1681.fits sctable="SC_DATA" expcube=/scratch/kocevski/755987/ltcube_675043201_675302401_4FGL_J2251.5-4928_daily_bin1681.fits outfile=/scratch/kocevski/755987/expmap_675043201_675302401_4FGL_J2251.5-4928_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/755987/ltcube_675043201_675302401_4FGL_J2251.5-4928_daily_bin1681.fits
.....................!
real 192.59
user 187.11
sys 5.13

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

Setting source of interest to:
4FGL J2251.5-4928 @ 342.879 -49.4691

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/755987/ft1_filtered_4FGL_J2251.5-4928_daily_bin1681.fits scfile=/scratch/kocevski/755987/ft2_4FGL_J2251.5-4928_daily_bin1681.fits outfile=/scratch/kocevski/755987/cmap_675043201_675302401_4FGL_J2251.5-4928_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=342.879 yref=-49.4691 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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/755987/ft1_filtered_4FGL_J2251.5-4928_daily_bin1681.fits scfile=/scratch/kocevski/755987/ft2_4FGL_J2251.5-4928_daily_bin1681.fits outfile=/scratch/kocevski/755987/cmap_HighResolution_675043201_675302401_4FGL_J2251.5-4928_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=342.879 yref=-49.4691 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/755987/ft1_filtered_4FGL_J2251.5-4928_daily_bin1681.fits evtable="EVENTS" scfile=/scratch/kocevski/755987/ft2_4FGL_J2251.5-4928_daily_bin1681.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/755987/Model_4FGL_J2251.5-4928_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/755987/ft1_filtered_4FGL_J2251.5-4928_daily_bin1681.fits.....................!
real 45.76
user 44.40
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/755987/ft1_filtered_4FGL_J2251.5-4928_daily_bin1681.fits', '/scratch/kocevski/755987/ft2_4FGL_J2251.5-4928_daily_bin1681.fits', expMap='/scratch/kocevski/755987/expmap_675043201_675302401_4FGL_J2251.5-4928_daily_bin1681.fits', expCube='/scratch/kocevski/755987/ltcube_675043201_675302401_4FGL_J2251.5-4928_daily_bin1681.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/755987/Model_4FGL_J2251.5-4928_daily_bin1681.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2251.5-4928'

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  7.449e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.851e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
405        Scale:  2.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/755987/ft1_filtered_4FGL_J2251.5-4928_daily_bin1681.fits
Spacecraft file(s): /scratch/kocevski/755987/ft2_4FGL_J2251.5-4928_daily_bin1681.fits
Exposure map: /scratch/kocevski/755987/expmap_675043201_675302401_4FGL_J2251.5-4928_daily_bin1681.fits
Exposure cube: /scratch/kocevski/755987/ltcube_675043201_675302401_4FGL_J2251.5-4928_daily_bin1681.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/755987/Model_4FGL_J2251.5-4928_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) = 6120.87972008

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.980       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .58494       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1841       1.0000         .10000E-03   10000.    
     4 'Prefactor '    145.87       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.120       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8063       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.2721       1.0000         .10000E-03   10000.    
    21 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.127       1.0000         .10000E-03   10000.    
    23 'norm      '    1.3894       1.0000         .10000E-03   10000.    
    24 'norm      '    2.0106       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.2603       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.2164       1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.350       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.9765       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .53448E-02   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .97017       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .78387       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6120.864     FROM MIGRAD    STATUS=CONVERGED    866 CALLS     4390 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.978        33.598       -.15315E-05    .24324E-04
   2  Prefactor     .59132        7.9919       -.97364E-06    .32982E-03
   3  Prefactor     3.1840        3.0656        .18528E-08    .16490E-03
   4  Prefactor     145.87        119.54        .22144E-05    .12943E-03
   5  norm          .10000E-03    1.6784       -.12296E-08** at limit **
   6  Prefactor     .10000E-03    .53729        .19496E-08** at limit **
   7  Prefactor     .10000E-03    86.027       -.83959E-05** at limit **
   8  Prefactor     .10000E-03    1.5704       -.16879E-08** at limit **
   9  Prefactor     .10000E-03    46.980       -.66733E-05** at limit **
  10  Prefactor     .10000E-03    9.9654        .75258E-08** at limit **
  11  Prefactor     .10000E-03    2.6806       -.50281E-08** at limit **
  12  Prefactor     .10000E-03    30.689        .64431E-06** at limit **
  13  Prefactor     .10000E-03    3.9704       -.28314E-07** at limit **
  14  Prefactor     18.120        18.203        .11622E-07    .48285E-05
  15  Prefactor     .10000E-03    6.1333       -.36398E-08** at limit **
  16  norm          .10000E-03    2.4946       -.18165E-08** at limit **
  17  norm          .10000E-03    3.5921       -.95690E-09** at limit **
  18  norm          .10000E-03    1.1746        .44202E-08** at limit **
  19  Prefactor     1.8046        2.4859        .59310E-07   -.56308E-04
  20  Prefactor     7.2703        25.048       -.69971E-06   -.11329E-04
  21  norm          .10000E-03    2.1200        .19541E-07** at limit **
  22  Prefactor     27.129        15.916       -.11823E-06   -.45316E-04
  23  norm          1.3893        1.1584       -.22057E-07   -.71296E-04
  24  norm          2.0109        2.7584        .23707E-07   -.36307E-05
  25  Prefactor     2.2581        20.354       -.10815E-06   -.91030E-05
  26  Prefactor     1.2153        4.3792       -.19353E-06   -.59596E-04
  27  Prefactor     17.353        24.219        .54626E-06   -.10268E-04
  28  norm          .10000E-03    6.5787       -.77332E-08** at limit **
  29  Prefactor     1.9765        5.7697       -.14844E-06   -.15466E-04
  30  Prefactor     .10088E-03    2.3286        .56796E-06** at limit **
  31  Normalizat    .97016        .16461        .20868E-06    .16882E-03
  32  Prefactor     .78392        .15415        .10980E-06    .16778E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.9785
  Prefactor  = 0.59132
  Prefactor  = 3.18401
  Prefactor  = 145.87
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.1201
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.80461
  Prefactor  = 7.27031
  norm       = 0.0001
  Prefactor  = 27.1295
  norm       = 1.38931
  norm       = 2.01087
  Prefactor  = 2.2581
  Prefactor  = 1.21528
  Prefactor  = 17.3532
  norm       = 0.0001
  Prefactor  = 1.97652
  Prefactor  = 0.000100877
  Normalizat = 0.970164
  Prefactor  = 0.783923
 **********
 **   18 **HESSE 
 **********

 FCN=   6120.864     FROM HESSE     STATUS=OK           667 CALLS     5057 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.978        33.945        .54097E-04   -1.4224    
   2  Prefactor     .59132        67.814        .31218E-02   -1.5554    
   3  Prefactor     3.1840        3.0518        .12797E-03   -1.5351    
   4  Prefactor     145.87        133.02        .33364E-04   -1.3287    
   5  norm          .10000E-03    1.6787        .98987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .53782        .56000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    86.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.5915        .95721E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    47.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.6872        .12509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    30.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.563        .30068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.120        18.207        .94089E-04   -1.4856    
  15  Prefactor     .10000E-03    6.1499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.4951        .12068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.6676        .14464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.1748        .82794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.8046        11.474        .15547E-02   -1.5439    
  20  Prefactor     7.2703        24.809        .14874E-03   -1.5169    
  21  norm          .10000E-03    2.1267        .11027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     27.129        20.255        .38458E-03   -1.4666    
  23  norm          1.3893        1.1467        .69098E-04   -1.5472    
  24  norm          2.0109        2.7212        .14152E-03   -1.5424    
  25  Prefactor     2.2581        21.698        .13662E-02   -1.5407    
  26  Prefactor     1.2153        3.9965        .22718E-03   -1.5487    
  27  Prefactor     17.353        23.147        .96155E-04   -1.4875    
  28  norm          .10000E-03    6.5801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.9765        5.5176        .27226E-03   -1.5427    
  30  Prefactor     .10088E-03    3.1030        .41115E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .97016        .19883        .21941E-03   -.94037    
  32  Prefactor     .78392        .18653        .23697E-03   -1.0032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30605e-09
Minuit parameter uncertainties:
  1  33.9574
  2  12.6786
  3  3.05196
  4  133.294
  5  1.4227e-07
  6  1.13521e-07
  7  0.000656391
  8  2.70457e-07
  9  0.000382152
  10  1.5231e-06
  11  6.02635e-07
  12  3.38466e-05
  13  3.96337e-05
  14  18.2129
  15  1.12439e-06
  16  9.39311e-08
  17  1.98207e-07
  18  2.59306e-07
  19  9.10294
  20  24.8444
  21  3.06678e-06
  22  20.2604
  23  1.14674
  24  2.7214
  25  14.0059
  26  3.99739
  27  23.1585
  28  1.94536e-07
  29  5.51905
  30  0.00329982
  31  0.198981
  32  0.186683
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.812e+01  1.821e+01  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.851e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
405        Scale:  2.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  7.839e-01  1.867e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  9.702e-01  1.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.97
Ra Dec: 342.879 -49.469
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 9.59e-09 +/- 9.63e-09
Energy Flux (Fixed Index): 9.87e-06 +/- 9.92e-06

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) = 6120.57704878
delta logL = 0.286845121477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6120.57703766
delta logL = 0.286856244022

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.211       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3258       1.0000          .0000       10.000    
     3 'Normalizat'    .97518       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78203       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6120.577     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      272 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.226        22.789        .84991E-04   -.40129E-06
   2  Index         1.3259        .66215        .12686E-01   -.15907E-05
   3  Normalizat    .97528        .18444        .21888E-03   -.44929E-04
   4  Prefactor     .78191        .18176        .23724E-03    .13034E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.2258
  Index      = 1.32593
  Normalizat = 0.97528
  Prefactor  = 0.781915
 **********
 **   18 **HESSE 
 **********

 FCN=   6120.577     FROM HESSE     STATUS=OK            23 CALLS      295 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.226        22.882        .33996E-05   -1.4765    
   2  Index         1.3259        .66502        .50743E-03   -.82539    
   3  Normalizat    .97528        .18465        .87551E-05   -.93863    
   4  Prefactor     .78191        .18198        .94897E-05   -1.0040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3119e-11
Minuit parameter uncertainties:
  1  22.8913
  2  0.669358
  3  0.18477
  4  0.182115
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/755987': 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) = 6120.57703721
delta logL = 0.286856693639

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  2.223e+01  2.289e+01  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.326e+00  6.694e-01  0.000e+00  1.000e+01 (-1.000e+00)
405        Scale:  2.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  7.819e-01  1.821e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  9.753e-01  1.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.54
Ra Dec: 342.879 -49.469
Photon Index (Free Index): 1.33 +/- 0.67
Photon Flux (Free Index): 4.86e-09 +/- 6.44e-09
Energy Flux (Free Index): 2.74e-05 +/- 4.57e-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/755987/cmap_HighResolution_675043201_675302401_4FGL_J2251.5-4928_daily_bin1681.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.59e-09', energy_flux2='2.74e-05', photon_flux_error='9.63e-09', dlogl='2.87e-01', energy_flux='9.87e-06', photon_flux2='4.86e-09', job_status='DONE', time_completed='2022-05-27 01:11:30.042444', photon_index_error2='0.67', photon_index2='1.33', ts='4.97', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='4.57e-05', EG='0.97', time_epoch_completed='1653639090.04', return_code='0', job_id='755987', GAL2='0.78', EG2='0.98', return_code2='0', energy_flux_error='9.92e-06', photon_flux_error2='6.44e-09', ts2='5.54', photon_index='1.85' WHERE bin_id='1681' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May 27 01:11:30 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 755987: <4FGL_J2251.5-4928_daily_bin1681> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin1681> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri May 27 00:55:33 2022
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May 27 00:57:44 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:57:44 2022
Terminated at Fri May 27 01:11:30 2022
Results reported at Fri May 27 01:11:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1681 342.879 -49.4691 675043201 675302401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2251.5-4928 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   800.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            957 sec.

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

