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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1724
RA = 342.879, Dec = -49.4691
tmin = 686188801, tmax = 686448001
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='707912', job_status='RUN', time_executed='2022-10-03 01:18:57.070406', time_epoch_executed='1664785137.07' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/707912

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/707912/ft1_4FGL_J2251.5-4928_daily_bin1724.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/707912/ft2_4FGL_J2251.5-4928_daily_bin1724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/707912/ft1_4FGL_J2251.5-4928_daily_bin1724.fits outfile=/scratch/kocevski/707912/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1724.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=686188801.0 tmax=686448001.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 4.62
user 4.37
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/707912/ft2_4FGL_J2251.5-4928_daily_bin1724.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/707912/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1724.fits evtable="EVENTS" outfile="/scratch/kocevski/707912/ft1_filtered_4FGL_J2251.5-4928_daily_bin1724.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 547

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/707912/ft1_filtered_4FGL_J2251.5-4928_daily_bin1724.fits" evtable="EVENTS" scfile=/scratch/kocevski/707912/ft2_4FGL_J2251.5-4928_daily_bin1724.fits sctable="SC_DATA" outfile=/scratch/kocevski/707912/ltcube_686188801_686448001_4FGL_J2251.5-4928_daily_bin1724.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/707912/ft2_4FGL_J2251.5-4928_daily_bin1724.fits
.....................!
real 13.67
user 13.29
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/707912/ft1_filtered_4FGL_J2251.5-4928_daily_bin1724.fits evtable="EVENTS" scfile=/scratch/kocevski/707912/ft2_4FGL_J2251.5-4928_daily_bin1724.fits sctable="SC_DATA" expcube=/scratch/kocevski/707912/ltcube_686188801_686448001_4FGL_J2251.5-4928_daily_bin1724.fits outfile=/scratch/kocevski/707912/expmap_686188801_686448001_4FGL_J2251.5-4928_daily_bin1724.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/707912/ltcube_686188801_686448001_4FGL_J2251.5-4928_daily_bin1724.fits
.....................!
real 190.92
user 185.67
sys 4.90

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/707912/ft1_filtered_4FGL_J2251.5-4928_daily_bin1724.fits scfile=/scratch/kocevski/707912/ft2_4FGL_J2251.5-4928_daily_bin1724.fits outfile=/scratch/kocevski/707912/cmap_686188801_686448001_4FGL_J2251.5-4928_daily_bin1724.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.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/707912/ft1_filtered_4FGL_J2251.5-4928_daily_bin1724.fits scfile=/scratch/kocevski/707912/ft2_4FGL_J2251.5-4928_daily_bin1724.fits outfile=/scratch/kocevski/707912/cmap_HighResolution_686188801_686448001_4FGL_J2251.5-4928_daily_bin1724.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.57
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/707912/ft1_filtered_4FGL_J2251.5-4928_daily_bin1724.fits evtable="EVENTS" scfile=/scratch/kocevski/707912/ft2_4FGL_J2251.5-4928_daily_bin1724.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/707912/Model_4FGL_J2251.5-4928_daily_bin1724.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/707912/ft1_filtered_4FGL_J2251.5-4928_daily_bin1724.fits.....................!
real 44.59
user 43.18
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/707912/ft1_filtered_4FGL_J2251.5-4928_daily_bin1724.fits', '/scratch/kocevski/707912/ft2_4FGL_J2251.5-4928_daily_bin1724.fits', expMap='/scratch/kocevski/707912/expmap_686188801_686448001_4FGL_J2251.5-4928_daily_bin1724.fits', expCube='/scratch/kocevski/707912/ltcube_686188801_686448001_4FGL_J2251.5-4928_daily_bin1724.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/707912/Model_4FGL_J2251.5-4928_daily_bin1724.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/707912/ft1_filtered_4FGL_J2251.5-4928_daily_bin1724.fits
Spacecraft file(s): /scratch/kocevski/707912/ft2_4FGL_J2251.5-4928_daily_bin1724.fits
Exposure map: /scratch/kocevski/707912/expmap_686188801_686448001_4FGL_J2251.5-4928_daily_bin1724.fits
Exposure cube: /scratch/kocevski/707912/ltcube_686188801_686448001_4FGL_J2251.5-4928_daily_bin1724.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/707912/Model_4FGL_J2251.5-4928_daily_bin1724.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) = 5984.85336872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75587E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .61954E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    3.2077       1.0000          .0000       .10000E+07
     4 'Prefactor '    46.319       1.0000          .0000       .10000E+07
     5 'norm      '    .56326E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .27243E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .26090E-08   1.0000          .0000       .10000E+07
     8 'Prefactor '    .34910E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .19999E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .90039E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    .76745E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    23.088       1.0000          .0000       .10000E+07
    13 'Prefactor '    8.9676       1.0000          .0000       .10000E+07
    14 'norm      '    .11546E-05   1.0000          .0000       .10000E+07
    15 'norm      '    1.7970       1.0000          .0000       .10000E+07
    16 'norm      '    .82712E-08   1.0000          .0000       .10000E+07
    17 'Prefactor '    12.094       1.0000          .0000       .10000E+07
    18 'Prefactor '    .96966E-01   1.0000          .0000       .10000E+07
    19 'norm      '    .21289E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    .38901E-01   1.0000          .0000       .10000E+07
    21 'norm      '    .93002       1.0000          .0000       .10000E+07
    22 'norm      '    .15707E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .51348E-07   1.0000          .0000       .10000E+07
    24 'Prefactor '    4.1786       1.0000          .0000       .10000E+07
    25 'Prefactor '    .39663E-03   1.0000          .0000       .10000E+07
    26 'norm      '    .12452E-02   1.0000          .0000       .10000E+07
    27 'Prefactor '    .93541       1.0000          .0000       .10000E+07
    28 'Prefactor '    .43801E-04   1.0000          .0000       .10000E+07
    29 'Normalizat'    .94288       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .97050       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=   5984.552     FROM MIGRAD    STATUS=CONVERGED    218 CALLS     2902 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72164E-08    29.262       -.29840E-06** at limit **
   2  Prefactor     .55511E-10    2.9424        .12305E-07** at limit **
   3  Prefactor     3.2039        2.6979       -.16281E-07    .25133E-03
   4  Prefactor     47.612        59.525       -.10303E-06    .23764E-02
   5  norm           .0000        1.6997       -.41018E-07** at limit **
   6  Prefactor     .57565E-07    2.7281        .27006E-06** at limit **
   7  Prefactor      .0000        12.913       -.27502E-07** at limit **
   8  Prefactor      .0000        1.8806       -.39117E-07** at limit **
   9  Prefactor      .0000        28.368        .37403E-07** at limit **
  10  Prefactor     .71609E-08    4.8175        .66294E-07** at limit **
  11  Prefactor      .0000        2.4611        .10715E-08** at limit **
  12  Prefactor     23.604        3.1328       -.25642E-07    .73517E-01
  13  Prefactor     8.9451        2.1357        .27853E-07   -.35098E-02
  14  norm          .30975E-07    3.6396       -.94377E-08** at limit **
  15  norm          1.7993        3.8422        .44720E-07   -.17843E-03
  16  norm           .0000        1.5347       -.72222E-08** at limit **
  17  Prefactor     12.066        6.3368       -.20440E-09    .45549E-03
  18  Prefactor     .18374E-07    78.445        .50733E-06** at limit **
  19  norm          .15543E-08    3.9311        .67349E-07** at limit **
  20  Prefactor     .12066E-05    49.892       -.77111E-06** at limit **
  21  norm          .93291        1.1994       -.25885E-07    .81250E-04
  22  norm          .55511E-10    3.0074       -.37622E-07** at limit **
  23  Prefactor     .13711E-07    3.8654       -.18122E-06** at limit **
  24  Prefactor     4.1841        3.8173        .23779E-06   -.25146E-02
  25  Prefactor     .17986E-07    23.548        .32890E-06** at limit **
  26  norm          .15721E-06    322.78        .95966E-06** at limit **
  27  Prefactor     .92536        1.9095        .18047E-06    .14342E-01
  28  Prefactor      .0000        1.9052       -.18164E-08** at limit **
  29  Normalizat    .94310        .19644       -.92146E-06   -.25833E-04
  30  Prefactor     .97009        .19318        .22823E-05   -.37154E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.21645e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 3.20389
  Prefactor  = 47.6122
  norm       = 0
  Prefactor  = 5.75651e-08
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 7.16094e-09
  Prefactor  = 0
  Prefactor  = 23.6045
  Prefactor  = 8.94508
  norm       = 3.09752e-08
  norm       = 1.79934
  norm       = 0
  Prefactor  = 12.0662
  Prefactor  = 1.83742e-08
  norm       = 1.55431e-09
  Prefactor  = 1.20665e-06
  norm       = 0.932911
  norm       = 5.55112e-11
  Prefactor  = 1.37113e-08
  Prefactor  = 4.18408
  Prefactor  = 1.79856e-08
  norm       = 1.57208e-07
  Prefactor  = 0.925359
  Prefactor  = 0
  Normalizat = 0.943103
  Prefactor  = 0.970085
 **********
 **   18 **HESSE 
 **********

 FCN=   5984.552     FROM HESSE     STATUS=OK           650 CALLS     3552 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .72164E-08    29.486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    2.9400        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.2039        2.6973        .56543E-03   -1.5672    
   4  Prefactor     47.612        59.861        .14695E-03   -1.5570    
   5  norm           .0000        1.6999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .57565E-07    5.0023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        12.927        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        1.8827        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        12.424        .94370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .71609E-08    4.9887        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        2.4613        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.604        23.911        .20817E-03   -1.5611    
  13  Prefactor     8.9451        9.8999        .33446E-03   -1.5648    
  14  norm          .30975E-07    4.3353        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.7993        3.9038        .77968E-03   -1.5681    
  16  norm           .0000        1.5346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.066        6.8914        .28780E-03   -1.5638    
  18  Prefactor     .18374E-07    76.315        .14011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .15543E-08    3.9380        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .12066E-05    8.3105        .11987E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .93291        1.2293        .43706E-03   -1.5689    
  22  norm          .55511E-10    2.9964        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .13711E-07    4.2174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.1841        3.9452        .49279E-03   -1.5667    
  25  Prefactor     .17986E-07    23.776        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .15721E-06    325.58        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .92536        5.0981        .43342E-03   -1.5689    
  28  Prefactor      .0000        1.9087        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .94310        .16594        .45447E-01   -.94962    
  30  Prefactor     .97009        .16143        .45897E-01   -.93733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79833e-07
Minuit parameter uncertainties:
  1  0.000924343
  2  2.0481e-05
  3  2.69733
  4  59.8613
  5  4.16762e-06
  6  0.00107336
  7  1.25336e-05
  8  5.46871e-06
  9  2.35462e-06
  10  0.000378574
  11  1.38541e-05
  12  23.9111
  13  9.89996
  14  0.000733143
  15  3.90383
  16  4.16507e-06
  17  6.89137
  18  0.00236764
  19  0.000156357
  20  0.00633336
  21  1.22933
  22  1.88719e-05
  23  0.000481207
  24  3.94518
  25  0.00130721
  26  0.0143099
  27  4.344
  28  7.57375e-06
  29  0.166033
  30  0.161505
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  2.360e+01  2.391e+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:  9.701e-01  1.615e-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.431e-01  1.660e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.67
Ra Dec: 342.879 -49.469
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.25e-08 +/- 1.26e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 1.30e-05

TS (Fixed Index): 3.67
Ra Dec: 342.879 -49.469
Photon Flux Upper Limit: 5.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/707912/likelihoodResults_686188801_686448001_4FGL_J2251.5-4928_daily_bin1724.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) = 5984.51995393
delta logL = 0.0321881456839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5984.51853475
delta logL = 0.0336073179978

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.650       1.0000          .0000       .10000E+07
     2 'Index     '    1.6716       1.0000          .0000       10.000    
     3 'Normalizat'    .94588       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96903       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=   5984.519     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      309 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.650        29.022        .77499E-05    .35207E-04
   2  Index         1.6716        .69094        .10273E-01    .15923E-04
   3  Normalizat    .94586        .19381        .23274E-03   -.38345E-04
   4  Prefactor     .96905        .19231        .22749E-03    .32283E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.6502
  Index      = 1.67159
  Normalizat = 0.945865
  Prefactor  = 0.969048
 **********
 **   18 **HESSE 
 **********

 FCN=   5984.519     FROM HESSE     STATUS=OK            25 CALLS      334 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.650        28.643        .31000E-06   -1.5605    
   2  Index         1.6716        .68221        .41094E-03   -.72841    
   3  Normalizat    .94586        .19401        .93096E-05   -.94867    
   4  Prefactor     .96905        .19254        .90996E-05   -.93768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34949e-11
Minuit parameter uncertainties:
  1  28.6431
  2  0.686065
  3  0.194158
  4  0.192677
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/707912': 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) = 5984.51853475
delta logL = 0.0336073217004

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  2.665e+01  2.864e+01  0.000e+00  1.000e+06 ( 1.000e-14)
404        Index:  1.672e+00  6.861e-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:  9.690e-01  1.927e-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.459e-01  1.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.73
Ra Dec: 342.879 -49.469
Photon Index (Free Index): 1.67 +/- 0.69
Photon Flux (Free Index): 9.81e-09 +/- 1.39e-08
Energy Flux (Free Index): 1.75e-05 +/- 2.83e-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/707912/cmap_HighResolution_686188801_686448001_4FGL_J2251.5-4928_daily_bin1724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.84e-03', comment='SUCCESS', photon_flux='1.25e-08', energy_flux2='1.75e-05', photon_flux_error='1.26e-08', dlogl='3.36e-02', energy_flux='1.29e-05', photon_flux2='9.81e-09', job_status='DONE', time_completed='2022-10-03 01:31:04.430113', photon_index_error2='0.69', photon_index2='1.67', ts='3.67', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='5.19e-08', energy_flux_error2='2.83e-05', EG='0.94', time_epoch_completed='1664785864.43', return_code='0', job_id='707912', GAL2='0.97', EG2='0.95', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='1.39e-08', ts2='3.73', photon_index='1.85' WHERE bin_id='1724' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Oct  3 01:31:04 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 707912: <4FGL_J2251.5-4928_daily_bin1724> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin1724> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Oct  3 01:15:45 2022
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct  3 01:18:03 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct  3 01:18:03 2022
Terminated at Mon Oct  3 01:31:05 2022
Results reported at Mon Oct  3 01:31:05 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1724 342.879 -49.4691 686188801 686448001 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 :                                   729.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            920 sec.

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

