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 88 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1765
RA = 342.879, Dec = -49.4691
tmin = 696816001, tmax = 697075201
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='649752', job_status='RUN', time_executed='2023-02-03 01:52:24.239231', time_epoch_executed='1675417944.24' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/649752

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/649752/ft1_4FGL_J2251.5-4928_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/649752/ft2_4FGL_J2251.5-4928_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/649752/ft1_4FGL_J2251.5-4928_daily_bin1765.fits outfile=/scratch/kocevski/649752/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1765.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=696816001.0 tmax=697075201.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.67
user 3.41
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/649752/ft2_4FGL_J2251.5-4928_daily_bin1765.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/649752/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1765.fits evtable="EVENTS" outfile="/scratch/kocevski/649752/ft1_filtered_4FGL_J2251.5-4928_daily_bin1765.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.51
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 415

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/649752/ft1_filtered_4FGL_J2251.5-4928_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/649752/ft2_4FGL_J2251.5-4928_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/649752/ltcube_696816001_697075201_4FGL_J2251.5-4928_daily_bin1765.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/649752/ft2_4FGL_J2251.5-4928_daily_bin1765.fits
.....................!
real 15.22
user 14.71
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/649752/ft1_filtered_4FGL_J2251.5-4928_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/649752/ft2_4FGL_J2251.5-4928_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/649752/ltcube_696816001_697075201_4FGL_J2251.5-4928_daily_bin1765.fits outfile=/scratch/kocevski/649752/expmap_696816001_697075201_4FGL_J2251.5-4928_daily_bin1765.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/649752/ltcube_696816001_697075201_4FGL_J2251.5-4928_daily_bin1765.fits
.....................!
real 192.59
user 186.12
sys 5.58

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/649752/ft1_filtered_4FGL_J2251.5-4928_daily_bin1765.fits scfile=/scratch/kocevski/649752/ft2_4FGL_J2251.5-4928_daily_bin1765.fits outfile=/scratch/kocevski/649752/cmap_696816001_697075201_4FGL_J2251.5-4928_daily_bin1765.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/649752/ft1_filtered_4FGL_J2251.5-4928_daily_bin1765.fits scfile=/scratch/kocevski/649752/ft2_4FGL_J2251.5-4928_daily_bin1765.fits outfile=/scratch/kocevski/649752/cmap_HighResolution_696816001_697075201_4FGL_J2251.5-4928_daily_bin1765.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/649752/ft1_filtered_4FGL_J2251.5-4928_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/649752/ft2_4FGL_J2251.5-4928_daily_bin1765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/649752/Model_4FGL_J2251.5-4928_daily_bin1765.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/649752/ft1_filtered_4FGL_J2251.5-4928_daily_bin1765.fits.....................!
real 37.97
user 36.22
sys 1.45

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/649752/ft1_filtered_4FGL_J2251.5-4928_daily_bin1765.fits', '/scratch/kocevski/649752/ft2_4FGL_J2251.5-4928_daily_bin1765.fits', expMap='/scratch/kocevski/649752/expmap_696816001_697075201_4FGL_J2251.5-4928_daily_bin1765.fits', expCube='/scratch/kocevski/649752/ltcube_696816001_697075201_4FGL_J2251.5-4928_daily_bin1765.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/649752/Model_4FGL_J2251.5-4928_daily_bin1765.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  0.000e+00  1.000e+06 ( 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/649752/ft1_filtered_4FGL_J2251.5-4928_daily_bin1765.fits
Spacecraft file(s): /scratch/kocevski/649752/ft2_4FGL_J2251.5-4928_daily_bin1765.fits
Exposure map: /scratch/kocevski/649752/expmap_696816001_697075201_4FGL_J2251.5-4928_daily_bin1765.fits
Exposure cube: /scratch/kocevski/649752/ltcube_696816001_697075201_4FGL_J2251.5-4928_daily_bin1765.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/649752/Model_4FGL_J2251.5-4928_daily_bin1765.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) = 4550.55785193

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    83.725       1.0000          .0000       .10000E+07
     2 'Prefactor '    .73761E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    8.9455       1.0000          .0000       .10000E+07
     4 'Prefactor '    .11179E-01   1.0000          .0000       .10000E+07
     5 'norm      '    .74765E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .62392E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .81981E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    7.2846       1.0000          .0000       .10000E+07
     9 'Prefactor '    .26644E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .17280E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.6690       1.0000          .0000       .10000E+07
    12 'Prefactor '    96.830       1.0000          .0000       .10000E+07
    13 'Prefactor '    7.8718       1.0000          .0000       .10000E+07
    14 'norm      '    .24413E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .32756E-03   1.0000          .0000       .10000E+07
    16 'norm      '    5.3385       1.0000          .0000       .10000E+07
    17 'Prefactor '    .54024E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    23.102       1.0000          .0000       .10000E+07
    19 'norm      '    .43133E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .14461E-02   1.0000          .0000       .10000E+07
    21 'norm      '    .78504       1.0000          .0000       .10000E+07
    22 'norm      '    .47048E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .29282E-05   1.0000          .0000       .10000E+07
    24 'Prefactor '    .12124E-05   1.0000          .0000       .10000E+07
    25 'Prefactor '    25.143       1.0000          .0000       .10000E+07
    26 'norm      '    .14151E-02   1.0000          .0000       .10000E+07
    27 'Prefactor '    5.0781       1.0000          .0000       .10000E+07
    28 'Prefactor '    .12767E-03   1.0000          .0000       .10000E+07
    29 'Normalizat'    .89975       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0443       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4550.508     FROM MIGRAD    STATUS=CONVERGED    212 CALLS     2775 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     87.127        53.368       -.80260E-07   -.27625E-01
   2  Prefactor     .26090E-06    6.7762        .11705E-05** at limit **
   3  Prefactor     8.9414        5.1660       -.17572E-06   -.44710E-03
   4  Prefactor     .75928E-04    41.346       -.20339E-05** at limit **
   5  norm          .16653E-09    2.5342        .19379E-06** at limit **
   6  Prefactor      .0000        3.0413        .15403E-06** at limit **
   7  Prefactor     .12834E-06    28.499        .81448E-06** at limit **
   8  Prefactor     7.2425        6.4647       -.20033E-07   -.49562E-03
   9  Prefactor     .51792E-07    7.1942       -.41746E-06** at limit **
  10  Prefactor     .56369E-04    47.927       -.52188E-05** at limit **
  11  Prefactor     1.6884        6.1122        .26680E-06    .83981E-04
  12  Prefactor     98.070        21.642        .29586E-08   -.57306E-01
  13  Prefactor     7.8583        2.7667        .39315E-06    .27564E-01
  14  norm          .16653E-09    4.5768       -.15527E-06** at limit **
  15  norm          .61062E-09    4.8310       -.66439E-06** at limit **
  16  norm          5.3757        5.4256        .86647E-07    .81173E-03
  17  Prefactor     .16653E-09    2.5906       -.95414E-07** at limit **
  18  Prefactor     23.137        4.6317        .71466E-07   -.20613E-01
  19  norm           .0000        2.3003       -.46498E-08** at limit **
  20  Prefactor     .11102E-09    5.7096       -.38693E-06** at limit **
  21  norm          .78414        .94721        .16215E-06    .81724E-03
  22  norm          .55511E-10    2.9235        .34954E-06** at limit **
  23  Prefactor     .17819E-06    7.6907       -.16613E-05** at limit **
  24  Prefactor      .0000        1.3317        .17738E-06** at limit **
  25  Prefactor     25.645        22.075       -.11015E-05   -.43500E-01
  26  norm          .17431E-07    5.7020        .13657E-05** at limit **
  27  Prefactor     5.0969        6.0861        .31085E-06    .10074E-02
  28  Prefactor      .0000        2.4210       -.24171E-06** at limit **
  29  Normalizat    .89734        .24984        .20881E-04   -.23981E-04
  30  Prefactor     1.0442        .23736       -.11129E-04   -.17159E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 87.1269
  Prefactor  = 2.60902e-07
  Prefactor  = 8.94144
  Prefactor  = 7.59282e-05
  norm       = 1.66533e-10
  Prefactor  = 0
  Prefactor  = 1.28342e-07
  Prefactor  = 7.24247
  Prefactor  = 5.17919e-08
  Prefactor  = 5.63685e-05
  Prefactor  = 1.68839
  Prefactor  = 98.07
  Prefactor  = 7.85828
  norm       = 1.66533e-10
  norm       = 6.10623e-10
  norm       = 5.37568
  Prefactor  = 1.66533e-10
  Prefactor  = 23.1365
  norm       = 0
  Prefactor  = 1.11022e-10
  norm       = 0.78414
  norm       = 5.55112e-11
  Prefactor  = 1.78191e-07
  Prefactor  = 0
  Prefactor  = 25.6446
  norm       = 1.74305e-08
  Prefactor  = 5.09693
  Prefactor  = 0
  Normalizat = 0.897343
  Prefactor  = 1.04416
 **********
 **   18 **HESSE 
 **********

 FCN=   4550.508     FROM HESSE     STATUS=OK           636 CALLS     3411 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     87.127        58.662        .10929E-03   -1.5521    
   2  Prefactor     .26090E-06    8.8482        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.9414        5.1724        .33487E-03   -1.5648    
   4  Prefactor     .75928E-04    83.238        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .16653E-09    2.5349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        3.0339        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .12834E-06    28.576        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.2425        6.4903        .37139E-03   -1.5654    
   9  Prefactor     .51792E-07    10.082        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .56369E-04    77.850        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6884        6.1250        .81578E-03   -1.5682    
  12  Prefactor     98.070        57.617        .10163E-03   -1.5510    
  13  Prefactor     7.8583        12.001        .35715E-03   -1.5652    
  14  norm          .16653E-09    4.5760        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .61062E-09    4.8157        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.3757        5.6659        .43473E-03   -1.5662    
  17  Prefactor     .16653E-09    2.5900        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.137        42.522        .20810E-03   -1.5612    
  19  norm           .0000        2.3013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .11102E-09    5.7076        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .78414        .96320        .54056E-03   -1.5690    
  22  norm          .55511E-10    2.9211        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .17819E-06    8.7520        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor      .0000        1.3322        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     25.645        22.346        .19947E-03   -1.5607    
  26  norm          .17431E-07    9.9015        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.0969        6.0824        .44595E-03   -1.5663    
  28  Prefactor      .0000        2.4183        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .89734        .21674        .44898E-01   -.96554    
  30  Prefactor     1.0442        .20242        .40256E-01   -.91272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94063e-06
Minuit parameter uncertainties:
  1  58.6624
  2  0.00303865
  3  5.17237
  4  0.159
  5  4.32445e-05
  6  8.61872e-06
  7  0.00383018
  8  6.49029
  9  0.00144518
  10  0.13249
  11  6.12506
  12  57.6174
  13  12.001
  14  5.22924e-05
  15  0.000107975
  16  5.66588
  17  4.24261e-05
  18  42.523
  19  9.51716e-06
  20  5.10174e-05
  21  0.963199
  22  1.83634e-05
  23  0.00249755
  24  2.19038e-06
  25  22.3462
  26  0.000830393
  27  6.0824
  28  3.66639e-06
  29  0.216947
  30  0.202567
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  9.807e+01  5.762e+01  0.000e+00  1.000e+06 ( 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:  1.044e+00  2.026e-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:  8.973e-01  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.00
Ra Dec: 342.879 -49.469
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 5.19e-08 +/- 3.05e-08
Energy Flux (Fixed Index): 5.34e-05 +/- 3.14e-05

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) = 4548.72752485
delta logL = 1.78037557046

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4548.72158044
delta logL = 1.78631997654

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.763       1.0000          .0000       .10000E+07
     2 'Index     '    2.7101       1.0000          .0000       10.000    
     3 'Normalizat'    .83055       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0811       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=   4548.722     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      302 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.777        38.478        .80400E-05   -.30546E-02
   2  Index         2.7100        .63105        .25184E-02   -.11131E-03
   3  Normalizat    .83079        .24421        .26560E-03    .12987E-03
   4  Prefactor     1.0808        .23626        .23012E-03    .34562E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.7767
  Index      = 2.70997
  Normalizat = 0.830793
  Prefactor  = 1.08084
 **********
 **   18 **HESSE 
 **********

 FCN=   4548.722     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.777        30.525        .16080E-05   -1.5608    
   2  Index         2.7100        .50102        .10074E-03   -.47575    
   3  Normalizat    .83079        .24369        .10624E-04   -.98936    
   4  Prefactor     1.0808        .23604        .46024E-04   -.90081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43184e-10
Minuit parameter uncertainties:
  1  30.5248
  2  0.502085
  3  0.244016
  4  0.236267
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/649752': 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) = 4548.72157935
delta logL = 1.78632106404

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  2.478e+01  3.052e+01  0.000e+00  1.000e+06 ( 1.000e-14)
404        Index:  2.710e+00  5.021e-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:  1.081e+00  2.363e-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:  8.308e-01  2.440e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.66
Ra Dec: 342.879 -49.469
Photon Index (Free Index): 2.71 +/- 0.50
Photon Flux (Free Index): 1.12e-07 +/- 5.65e-08
Energy Flux (Free Index): 2.67e-05 +/- 1.30e-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/649752/cmap_HighResolution_696816001_697075201_4FGL_J2251.5-4928_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.19e-08', energy_flux2='2.67e-05', photon_flux_error='3.05e-08', dlogl='1.79e+00', energy_flux='5.34e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2023-02-03 02:02:08.956405', photon_index_error2='0.50', photon_index2='2.71', ts='6.00', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.30e-05', EG='0.90', time_epoch_completed='1675418528.96', return_code='0', job_id='649752', GAL2='1.08', EG2='0.83', return_code2='0', energy_flux_error='3.14e-05', photon_flux_error2='5.65e-08', ts2='9.66', photon_index='1.85' WHERE bin_id='1765' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 02:02:08 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 649752: <4FGL_J2251.5-4928_daily_bin1765> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin1765> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Feb  3 01:50:22 2023
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 01:50:45 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 01:50:45 2023
Terminated at Fri Feb  3 02:02:09 2023
Results reported at Fri Feb  3 02:02:09 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1765 342.879 -49.4691 696816001 697075201 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 :                                   584.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            707 sec.

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

