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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1696
RA = 342.879, Dec = -49.4691
tmin = 678931201, tmax = 679190401
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='794113', job_status='RUN', time_executed='2022-07-11 00:39:01.134768', time_epoch_executed='1657525141.13' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1696'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/794113

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/794113/ft1_4FGL_J2251.5-4928_daily_bin1696.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/794113/ft2_4FGL_J2251.5-4928_daily_bin1696.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/794113/ft1_4FGL_J2251.5-4928_daily_bin1696.fits outfile=/scratch/kocevski/794113/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1696.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=678931201.0 tmax=679190401.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.56
user 3.35
sys 0.20

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

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

Number of photons that the gtmktime cut: 466

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/794113/ft1_filtered_4FGL_J2251.5-4928_daily_bin1696.fits" evtable="EVENTS" scfile=/scratch/kocevski/794113/ft2_4FGL_J2251.5-4928_daily_bin1696.fits sctable="SC_DATA" outfile=/scratch/kocevski/794113/ltcube_678931201_679190401_4FGL_J2251.5-4928_daily_bin1696.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/794113/ft2_4FGL_J2251.5-4928_daily_bin1696.fits
.....................!
real 11.72
user 11.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/794113/ft1_filtered_4FGL_J2251.5-4928_daily_bin1696.fits evtable="EVENTS" scfile=/scratch/kocevski/794113/ft2_4FGL_J2251.5-4928_daily_bin1696.fits sctable="SC_DATA" expcube=/scratch/kocevski/794113/ltcube_678931201_679190401_4FGL_J2251.5-4928_daily_bin1696.fits outfile=/scratch/kocevski/794113/expmap_678931201_679190401_4FGL_J2251.5-4928_daily_bin1696.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/794113/ltcube_678931201_679190401_4FGL_J2251.5-4928_daily_bin1696.fits
.....................!
real 191.19
user 185.79
sys 5.03

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/794113/ft1_filtered_4FGL_J2251.5-4928_daily_bin1696.fits scfile=/scratch/kocevski/794113/ft2_4FGL_J2251.5-4928_daily_bin1696.fits outfile=/scratch/kocevski/794113/cmap_678931201_679190401_4FGL_J2251.5-4928_daily_bin1696.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/794113/ft1_filtered_4FGL_J2251.5-4928_daily_bin1696.fits scfile=/scratch/kocevski/794113/ft2_4FGL_J2251.5-4928_daily_bin1696.fits outfile=/scratch/kocevski/794113/cmap_HighResolution_678931201_679190401_4FGL_J2251.5-4928_daily_bin1696.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.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/794113/ft1_filtered_4FGL_J2251.5-4928_daily_bin1696.fits evtable="EVENTS" scfile=/scratch/kocevski/794113/ft2_4FGL_J2251.5-4928_daily_bin1696.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/794113/Model_4FGL_J2251.5-4928_daily_bin1696.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/794113/ft1_filtered_4FGL_J2251.5-4928_daily_bin1696.fits.....................!
real 41.18
user 39.91
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15372E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12627E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.979       1.0000         .10000E-03   10000.    
     4 'Prefactor '    49.394       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    101.73       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.6592       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9035       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3635       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .97332       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.265       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.871       1.0000         .10000E-03   10000.    
    17 'norm      '    13.787       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.7472       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.6802       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12041E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .10181E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .56999E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.4025       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .51920       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=   5072.847     FROM MIGRAD    STATUS=CONVERGED    877 CALLS     5137 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.403        .93764E-06** at limit **
   2  Prefactor     .10000E-03    15.652       -.27268E-05** at limit **
   3  Prefactor     14.978        5.9423        .22158E-06    .86250E-05
   4  Prefactor     49.325        100.12       -.65822E-05   -.51691E-04
   5  norm          .10000E-03    4.0297       -.44199E-07** at limit **
   6  Prefactor     .10000E-03    1.5970        .74641E-08** at limit **
   7  Prefactor     101.74        66.126       -.28244E-06   -.21580E-04
   8  Prefactor     .10000E-03    4.2775       -.42600E-07** at limit **
   9  Prefactor     9.6587        25.041       -.57430E-06   -.27436E-04
  10  Prefactor     1.9031        98.190        .28334E-05   -.55070E-05
  11  Prefactor     7.3609        13.297        .41318E-06   -.17614E-04
  12  Prefactor     .10000E-03    61.509        .33065E-06** at limit **
  13  Prefactor     .97352        12.186        .35528E-05   -.15893E-03
  14  Prefactor     26.267        26.303       -.19393E-06   -.21031E-04
  15  Prefactor     .10000E-03    11.605        .20460E-06** at limit **
  16  norm          10.871        10.433        .27177E-07   -.16298E-04
  17  norm          13.785        8.5765        .37429E-07   -.10202E-03
  18  norm          .10000E-03    1.4347        .17427E-08** at limit **
  19  Prefactor     8.7544        8.3324       -.10368E-05   -.35578E-03
  20  Prefactor     .10000E-03    16.635        .42453E-07** at limit **
  21  norm          1.6803        2.3619        .26692E-07   -.37912E-04
  22  Prefactor     .10002E-03    14.436        .13974E-05** at limit **
  23  norm          .10000E-03    .60948        .19669E-06** at limit **
  24  norm          .10000E-03    1.1821        .68321E-08** at limit **
  25  Prefactor     .10000E-03    6.0265        .49871E-07** at limit **
  26  Prefactor     .10000E-03    1.2778        .33534E-07** at limit **
  27  Prefactor     .10000E-03    49.906        .17333E-06** at limit **
  28  norm          .10000E-03    5.8771       -.69935E-08** at limit **
  29  Prefactor     .10000E-03    2.0329        .31075E-07** at limit **
  30  Prefactor     .10001E-03    3.2650        .17672E-06** at limit **
  31  Normalizat    1.4026        .18751       -.91786E-06   -.25175E-03
  32  Prefactor     .51905        .17056        .49579E-06   -.18131E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 14.9784
  Prefactor  = 49.325
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 101.738
  Prefactor  = 0.0001
  Prefactor  = 9.65871
  Prefactor  = 1.90308
  Prefactor  = 7.36086
  Prefactor  = 0.0001
  Prefactor  = 0.973517
  Prefactor  = 26.2665
  Prefactor  = 0.0001
  norm       = 10.8715
  norm       = 13.7846
  norm       = 0.0001
  Prefactor  = 8.75441
  Prefactor  = 0.0001
  norm       = 1.68026
  Prefactor  = 0.00010002
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Normalizat = 1.40264
  Prefactor  = 0.519051
 **********
 **   18 **HESSE 
 **********

 FCN=   5072.847     FROM HESSE     STATUS=OK           667 CALLS     5804 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.783        .12237       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.978        5.9484        .10349E-03   -1.4934    
   4  Prefactor     49.325        102.28        .57059E-04   -1.4302    
   5  norm          .10000E-03    4.0411        .13962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.6041        .87840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     101.74        65.958        .39862E-04   -1.3687    
   8  Prefactor     .10000E-03    4.3322        .14372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.6587        25.002        .12894E-03   -1.5086    
  10  Prefactor     1.9031        92.554        .30141E-03   -1.5432    
  11  Prefactor     7.3609        12.862        .14780E-03   -1.5165    
  12  Prefactor     .10000E-03    61.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .97352        12.350        .46899E-03   -1.5511    
  14  Prefactor     26.267        26.302        .78167E-04   -1.4682    
  15  Prefactor     .10000E-03    11.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.871        10.432        .12151E-03   -1.5048    
  17  norm          13.785        8.4966        .10787E-03   -1.4965    
  18  norm          .10000E-03    1.4350        .83311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.7544        7.7197        .13553E-03   -1.5116    
  20  Prefactor     .10000E-03    16.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.6803        2.3420        .12634E-03   -1.5449    
  22  Prefactor     .10002E-03    74.709        .44994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .98775        .10563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.1841        .75619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.0377        .17077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.2876        .78596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    50.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    5.8775        .16864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    2.0431        .99161E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10001E-03    6.5649        .43902E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.4026        .21769        .20597E-03   -.80552    
  32  Prefactor     .51905        .19492        .30179E-03   -1.1111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.93354e-10
Minuit parameter uncertainties:
  1  0.00016001
  2  0.000338652
  3  5.94865
  4  102.643
  5  2.63866e-06
  6  1.24241e-07
  7  66.0055
  8  4.89065e-06
  9  25.0292
  10  26.5863
  11  12.8671
  12  9.77109e-06
  13  6.93626
  14  26.3138
  15  1.04378e-05
  16  10.4337
  17  8.49737
  18  3.79455e-08
  19  7.72059
  20  4.3417e-06
  21  2.34213
  22  0.00242466
  23  3.60743e-06
  24  1.88892e-07
  25  2.25628e-06
  26  8.31879e-07
  27  2.96979e-05
  28  2.86227e-07
  29  1.03307e-06
  30  0.000437217
  31  0.217833
  32  0.195173
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  2.627e+01  2.631e+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:  5.191e-01  1.952e-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:  1.403e+00  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.11
Ra Dec: 342.879 -49.469
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.39e-08 +/- 1.39e-08
Energy Flux (Fixed Index): 1.43e-05 +/- 1.43e-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) = 5071.94958072
delta logL = 0.897412597515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5071.94622253
delta logL = 0.900770787601

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.105       1.0000         .10000E-03   10000.    
     2 'Index     '    .95770       1.0000          .0000       10.000    
     3 'Normalizat'    1.4103       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51769       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.

 FCN=   5071.946     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      219 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.006        24.391        .20397E-02   -.99473E-04
   2  Index         .95690        .50945        .27979       -.25771E-04
   3  Normalizat    1.4100        .17943        .46486E-01   -.18215E-04
   4  Prefactor     .51777        .16845        .68261E-01    .17603E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.0057
  Index      = 0.956904
  Normalizat = 1.41004
  Prefactor  = 0.517773
 **********
 **   18 **HESSE 
 **********

 FCN=   5071.946     FROM HESSE     STATUS=OK            31 CALLS      250 TOTAL
                     EDM=   .40E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.006        31.380        .40794E-03   -1.4728    
   2  Index         .95690        .66768        .12097E-02   -.94180    
   3  Normalizat    1.4100        .20577        .20549E-03   -.80339    
   4  Prefactor     .51777        .19281        .30215E-03   -1.1117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00009e-13
Minuit parameter uncertainties:
  1  31.4019
  2  0.673554
  3  0.205889
  4  0.193057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/794113': 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) = 5071.94621588
delta logL = 0.900777441509

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  2.401e+01  3.140e+01  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  9.569e-01  6.736e-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:  5.178e-01  1.931e-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:  1.410e+00  2.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.91
Ra Dec: 342.879 -49.469
Photon Index (Free Index): 0.96 +/- 0.67
Photon Flux (Free Index): 4.55e-09 +/- 5.39e-09
Energy Flux (Free Index): 7.30e-05 +/- 1.02e-04

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/794113/cmap_HighResolution_678931201_679190401_4FGL_J2251.5-4928_daily_bin1696.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.39e-08', energy_flux2='7.30e-05', photon_flux_error='1.39e-08', dlogl='9.01e-01', energy_flux='1.43e-05', photon_flux2='4.55e-09', job_status='DONE', time_completed='2022-07-11 00:51:28.709014', photon_index_error2='0.67', photon_index2='0.96', ts='4.11', fit_tolerance='1e-08', GAL='0.52', photon_index_error='0.00', energy_flux_error2='1.02e-04', EG='1.40', time_epoch_completed='1657525888.71', return_code='0', job_id='794113', GAL2='0.52', EG2='1.41', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='5.39e-09', ts2='5.91', photon_index='1.85' WHERE bin_id='1696' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 11 00:51:28 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 794113: <4FGL_J2251.5-4928_daily_bin1696> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin1696> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Jul 11 00:35:25 2022
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 11 00:35:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 11 00:35:27 2022
Terminated at Mon Jul 11 00:51:29 2022
Results reported at Mon Jul 11 00:51:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1696 342.879 -49.4691 678931201 679190401 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 :                                   750.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            964 sec.

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

