/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 71 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 = 7388
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1253.2+5301_daily_bin802
RA = 193.307, Dec = 53.0173
tmin = 447206401, tmax = 447465601
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='958438', job_status='RUN', time_executed='2021-09-06 07:37:58.389318', time_epoch_executed='1630939078.39' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='802'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958438

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958438/ft1_4FGL_J1253.2+5301_daily_bin802.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958438/ft2_4FGL_J1253.2+5301_daily_bin802.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958438/ft1_4FGL_J1253.2+5301_daily_bin802.fits outfile=/scratch/kocevski/958438/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin802.fits ra=193.307 dec=53.0173 rad=12.0 tmin=447206401.0 tmax=447465601.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.10
user 3.20
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/958438/ft2_4FGL_J1253.2+5301_daily_bin802.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/958438/ft2_4FGL_J1253.2+5301_daily_bin802.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/958438/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin802.fits evtable="EVENTS" outfile="/scratch/kocevski/958438/ft1_filtered_4FGL_J1253.2+5301_daily_bin802.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 3.77
user 0.34
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/958438/ft1_filtered_4FGL_J1253.2+5301_daily_bin802.fits" evtable="EVENTS" scfile=/scratch/kocevski/958438/ft2_4FGL_J1253.2+5301_daily_bin802.fits sctable="SC_DATA" outfile=/scratch/kocevski/958438/ltcube_447206401_447465601_4FGL_J1253.2+5301_daily_bin802.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/958438/ft2_4FGL_J1253.2+5301_daily_bin802.fits
.....................!
real 14.32
user 11.89
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958438/ft1_filtered_4FGL_J1253.2+5301_daily_bin802.fits evtable="EVENTS" scfile=/scratch/kocevski/958438/ft2_4FGL_J1253.2+5301_daily_bin802.fits sctable="SC_DATA" expcube=/scratch/kocevski/958438/ltcube_447206401_447465601_4FGL_J1253.2+5301_daily_bin802.fits outfile=/scratch/kocevski/958438/expmap_447206401_447465601_4FGL_J1253.2+5301_daily_bin802.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/958438/ltcube_447206401_447465601_4FGL_J1253.2+5301_daily_bin802.fits
.....................!
real 199.40
user 185.86
sys 4.74

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

Setting source of interest to:
4FGL J1253.2+5301 @ 193.307 53.0173

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/958438/ft1_filtered_4FGL_J1253.2+5301_daily_bin802.fits scfile=/scratch/kocevski/958438/ft2_4FGL_J1253.2+5301_daily_bin802.fits outfile=/scratch/kocevski/958438/cmap_447206401_447465601_4FGL_J1253.2+5301_daily_bin802.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=193.307 yref=53.0173 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.92
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/958438/ft1_filtered_4FGL_J1253.2+5301_daily_bin802.fits scfile=/scratch/kocevski/958438/ft2_4FGL_J1253.2+5301_daily_bin802.fits outfile=/scratch/kocevski/958438/cmap_HighResolution_447206401_447465601_4FGL_J1253.2+5301_daily_bin802.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=193.307 yref=53.0173 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.84
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/958438/ft1_filtered_4FGL_J1253.2+5301_daily_bin802.fits evtable="EVENTS" scfile=/scratch/kocevski/958438/ft2_4FGL_J1253.2+5301_daily_bin802.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/958438/Model_4FGL_J1253.2+5301_daily_bin802.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/958438/ft1_filtered_4FGL_J1253.2+5301_daily_bin802.fits.....................!
real 52.87
user 48.42
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/958438/ft1_filtered_4FGL_J1253.2+5301_daily_bin802.fits', '/scratch/kocevski/958438/ft2_4FGL_J1253.2+5301_daily_bin802.fits', expMap='/scratch/kocevski/958438/expmap_447206401_447465601_4FGL_J1253.2+5301_daily_bin802.fits', expCube='/scratch/kocevski/958438/ltcube_447206401_447465601_4FGL_J1253.2+5301_daily_bin802.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/958438/Model_4FGL_J1253.2+5301_daily_bin802.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1253.2+5301'

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  3.003e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.931e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  8.810e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  1.175e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/958438/ft1_filtered_4FGL_J1253.2+5301_daily_bin802.fits
Spacecraft file(s): /scratch/kocevski/958438/ft2_4FGL_J1253.2+5301_daily_bin802.fits
Exposure map: /scratch/kocevski/958438/expmap_447206401_447465601_4FGL_J1253.2+5301_daily_bin802.fits
Exposure cube: /scratch/kocevski/958438/ltcube_447206401_447465601_4FGL_J1253.2+5301_daily_bin802.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/958438/Model_4FGL_J1253.2+5301_daily_bin802.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) = 5503.98099212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26502       1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.895       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.6551       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.5282       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10316E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2127       1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.493       1.0000         .10000E-03   10000.    
    13 'norm      '    5.4782       1.0000         .10000E-03   10000.    
    14 'Prefactor '    43.565       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.3041       1.0000         .10000E-03   10000.    
    21 'Prefactor '    36.454       1.0000         .10000E-03   10000.    
    22 'norm      '    5.3231       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.503       1.0000         .10000E-03   10000.    
    25 'norm      '    14.014       1.0000         .10000E-03   10000.    
    26 'norm      '    5.5660       1.0000         .10000E-03   10000.    
    27 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.9406       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0785       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .84434       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5503.960     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3905 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26878        8.9060        .49859E-05   -.42261E-03
   2  norm          .10000E-03    2.9824        .82009E-07** at limit **
   3  Prefactor     44.848        25.653        .15911E-05    .80902E-03
   4  Prefactor     .10000E-03    2.5060        .35147E-07** at limit **
   5  Prefactor     .10000E-03    6.1165       -.30207E-06** at limit **
   6  norm          3.6550        2.6925        .63453E-08    .19507E-03
   7  Prefactor     .10000E-03    18.165        .11069E-05** at limit **
   8  norm          5.5279        6.8508       -.44148E-07    .65849E-03
   9  Prefactor     .10000E-03    13.329        .13177E-05** at limit **
  10  Prefactor     .10000E-03    10.164       -.26887E-06** at limit **
  11  norm          1.2126        1.3291        .39827E-07    .15748E-03
  12  Prefactor     28.495        21.828       -.59009E-07   -.14130E-04
  13  norm          5.4783        2.6009        .15813E-07    .61313E-04
  14  Prefactor     43.570        45.260       -.35466E-06   -.45555E-04
  15  Prefactor     .10000E-03    24.299       -.19876E-05** at limit **
  16  Prefactor     .10000E-03    5.3859        .21281E-06** at limit **
  17  norm          .10000E-03    11.773       -.46725E-06** at limit **
  18  norm          .10000E-03    1.2267        .13850E-07** at limit **
  19  Prefactor     .10000E-03    8.2565        .68656E-06** at limit **
  20  Prefactor     8.3068        18.307        .17854E-07   -.94643E-05
  21  Prefactor     36.446        34.311        .68281E-06    .68148E-04
  22  norm          5.3235        4.4750       -.52925E-08   -.16412E-04
  23  Prefactor     .10000E-03    18.726        .95767E-06** at limit **
  24  Prefactor     18.508        29.511       -.30649E-06   -.43506E-04
  25  norm          14.014        3.2287       -.13613E-08    .28845E-04
  26  norm          5.5582        119.55        .25092E-05    .19579E-04
  27  norm          .10000E-03    1.1007        .81265E-08** at limit **
  28  Prefactor     4.9418        60.580        .64180E-07   -.29395E-05
  29  Normalizat    1.0784        .18086        .78547E-06    .24883E-03
  30  Prefactor     .84450        .21693       -.17122E-05    .11816E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.268775
  norm       = 0.0001
  Prefactor  = 44.848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.655
  Prefactor  = 0.000100001
  norm       = 5.52794
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.21256
  Prefactor  = 28.4954
  norm       = 5.47832
  Prefactor  = 43.5696
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.30685
  Prefactor  = 36.4462
  norm       = 5.32347
  Prefactor  = 0.0001
  Prefactor  = 18.5076
  norm       = 14.0143
  norm       = 5.55823
  norm       = 0.0001
  Prefactor  = 4.94178
  Normalizat = 1.07835
  Prefactor  = 0.844495
 **********
 **   18 **HESSE 
 **********

 FCN=   5503.960     FROM HESSE     STATUS=OK           584 CALLS     4489 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26878        10.875        .20244E-02   -1.5604    
   2  norm          .10000E-03    3.0110        .12509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     44.848        27.969        .59837E-04   -1.4368    
   4  Prefactor     .10000E-03    2.5084        .11470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.1211        .17926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.6550        2.6937        .98822E-04   -1.5326    
   7  Prefactor     .10000E-03    18.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.5279        7.0098        .85440E-03   -1.5238    
   9  Prefactor     .10000E-03    13.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.518        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2126        1.3339        .87176E-04   -1.5488    
  12  Prefactor     28.495        21.854        .75055E-04   -1.4640    
  13  norm          5.4783        2.6021        .79854E-04   -1.5240    
  14  Prefactor     43.570        45.296        .60739E-04   -1.4387    
  15  Prefactor     .10000E-03    24.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.4322        .16818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.2320        .80235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.2753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.3068        18.269        .13912E-03   -1.5131    
  21  Prefactor     36.446        34.319        .66378E-04   -1.4500    
  22  norm          5.3235        4.4627        .12539E-03   -1.5246    
  23  Prefactor     .10000E-03    18.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     18.508        29.532        .93110E-04   -1.4847    
  25  norm          14.014        3.2304        .61214E-04   -1.4959    
  26  norm          5.5582        120.10        .17029E-03   -1.5236    
  27  norm          .10000E-03    1.1056        .75992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.9418        60.620        .18094E-03   -1.5263    
  29  Normalizat    1.0784        .21402        .22186E-03   -.90450    
  30  Prefactor     .84450        .25549        .30523E-03   -.98108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07889e-09
Minuit parameter uncertainties:
  1  3.41932
  2  1.08753e-05
  3  27.9773
  4  3.94531e-06
  5  2.89733e-05
  6  2.69382
  7  0.000201316
  8  7.01082
  9  0.000254318
  10  2.82592e-05
  11  1.33389
  12  21.8601
  13  2.60213
  14  45.3319
  15  0.000394741
  16  2.93135e-05
  17  5.2749e-05
  18  1.25441e-06
  19  7.69117e-05
  20  18.2811
  21  34.3376
  22  4.463
  23  0.000181307
  24  29.5552
  25  3.23048
  26  51.7923
  27  6.00945e-07
  28  34.6595
  29  0.214197
  30  0.255852
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  5.478e+00  2.602e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.931e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  8.810e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  1.175e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  8.445e-01  2.559e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  1.078e+00  2.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.14
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 5.32e-08 +/- 2.53e-08
Energy Flux (Fixed Index): 3.84e-05 +/- 1.83e-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) = 5503.90053994
delta logL = 0.059349179015

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5503.89999715
delta logL = 0.0598919650802

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4698       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7591       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0887       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83899       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5503.900     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      226 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4599        69.404        .42951E-02   -.36145E-04
   2  alpha         1.7570        2.6697        .34168        .52909E-05
   3  Normalizat    1.0888        .24075        .38480E-01    .60016E-05
   4  Prefactor     .83899        .16710        .69223E-01    .16781E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.45986
  alpha      = 1.75696
  Normalizat = 1.08883
  Prefactor  = 0.838987
 **********
 **   18 **HESSE 
 **********

 FCN=   5503.900     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .80E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4599        2.7618        .83967E-04   -1.5241    
   2  alpha         1.7570        .51152        .11809E-01   -.30178    
   3  Normalizat    1.0888        .20716        .22102E-03   -.90111    
   4  Prefactor     .83899        .25371        .30627E-03   -.98307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.96541e-14
Minuit parameter uncertainties:
  1  2.76183
  2  0.515516
  3  0.207319
  4  0.254066
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958438': 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) = 5503.89998413
delta logL = 0.0599049855446

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  5.460e+00  2.762e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.757e+00  5.155e-01  0.000e+00  5.000e+00 ( 1.000e+00)
335         beta:  8.810e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  1.175e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  8.390e-01  2.541e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  1.089e+00  2.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.23
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.76 +/- 0.52
Photon Flux (Free Index): 4.30e-08 +/- 3.52e-08
Energy Flux (Free Index): 4.51e-05 +/- 3.29e-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/958438/cmap_HighResolution_447206401_447465601_4FGL_J1253.2+5301_daily_bin802.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.32e-08', energy_flux2='4.51e-05', photon_flux_error='2.53e-08', dlogl='5.99e-02', energy_flux='3.84e-05', photon_flux2='4.30e-08', job_status='DONE', time_completed='2021-09-06 07:51:35.265575', photon_index_error2='0.52', photon_index2='1.76', ts='20.14', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='3.29e-05', EG='1.08', time_epoch_completed='1630939895.27', return_code='0', job_id='958438', GAL2='0.84', EG2='1.09', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='3.52e-08', ts2='20.23', photon_index='1.93' WHERE bin_id='802' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:51:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 958438: <4FGL_J1253.2+5301_daily_bin802> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin802> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 07:35:57 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:35:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 07:35:58 2021
Terminated at Mon Sep  6 07:51:36 2021
Results reported at Mon Sep  6 07:51:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin802 193.307 53.0173 447206401 447465601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1253.2+5301 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   768.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            939 sec.

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

