/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 59 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 = 7410
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1253.2+5301_daily_bin586
RA = 193.307, Dec = 53.0173
tmin = 391219201, tmax = 391478401
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='955620', job_status='RUN', time_executed='2021-09-06 07:27:32.685081', time_epoch_executed='1630938452.69' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='586'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/955620

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/955620/ft1_4FGL_J1253.2+5301_daily_bin586.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/955620/ft2_4FGL_J1253.2+5301_daily_bin586.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/955620/ft1_4FGL_J1253.2+5301_daily_bin586.fits outfile=/scratch/kocevski/955620/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin586.fits ra=193.307 dec=53.0173 rad=12.0 tmin=391219201.0 tmax=391478401.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 7.89
user 3.12
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/955620/ft2_4FGL_J1253.2+5301_daily_bin586.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/955620/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin586.fits evtable="EVENTS" outfile="/scratch/kocevski/955620/ft1_filtered_4FGL_J1253.2+5301_daily_bin586.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.77
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/955620/ft1_filtered_4FGL_J1253.2+5301_daily_bin586.fits" evtable="EVENTS" scfile=/scratch/kocevski/955620/ft2_4FGL_J1253.2+5301_daily_bin586.fits sctable="SC_DATA" outfile=/scratch/kocevski/955620/ltcube_391219201_391478401_4FGL_J1253.2+5301_daily_bin586.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/955620/ft2_4FGL_J1253.2+5301_daily_bin586.fits
.....................!
real 11.81
user 11.35
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/955620/ft1_filtered_4FGL_J1253.2+5301_daily_bin586.fits evtable="EVENTS" scfile=/scratch/kocevski/955620/ft2_4FGL_J1253.2+5301_daily_bin586.fits sctable="SC_DATA" expcube=/scratch/kocevski/955620/ltcube_391219201_391478401_4FGL_J1253.2+5301_daily_bin586.fits outfile=/scratch/kocevski/955620/expmap_391219201_391478401_4FGL_J1253.2+5301_daily_bin586.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/955620/ltcube_391219201_391478401_4FGL_J1253.2+5301_daily_bin586.fits
.....................!
real 190.92
user 185.02
sys 4.41

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/955620/ft1_filtered_4FGL_J1253.2+5301_daily_bin586.fits scfile=/scratch/kocevski/955620/ft2_4FGL_J1253.2+5301_daily_bin586.fits outfile=/scratch/kocevski/955620/cmap_391219201_391478401_4FGL_J1253.2+5301_daily_bin586.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.69
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/955620/ft1_filtered_4FGL_J1253.2+5301_daily_bin586.fits scfile=/scratch/kocevski/955620/ft2_4FGL_J1253.2+5301_daily_bin586.fits outfile=/scratch/kocevski/955620/cmap_HighResolution_391219201_391478401_4FGL_J1253.2+5301_daily_bin586.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.65
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/955620/ft1_filtered_4FGL_J1253.2+5301_daily_bin586.fits', '/scratch/kocevski/955620/ft2_4FGL_J1253.2+5301_daily_bin586.fits', expMap='/scratch/kocevski/955620/expmap_391219201_391478401_4FGL_J1253.2+5301_daily_bin586.fits', expCube='/scratch/kocevski/955620/ltcube_391219201_391478401_4FGL_J1253.2+5301_daily_bin586.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/955620/Model_4FGL_J1253.2+5301_daily_bin586.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/955620/ft1_filtered_4FGL_J1253.2+5301_daily_bin586.fits
Spacecraft file(s): /scratch/kocevski/955620/ft2_4FGL_J1253.2+5301_daily_bin586.fits
Exposure map: /scratch/kocevski/955620/expmap_391219201_391478401_4FGL_J1253.2+5301_daily_bin586.fits
Exposure cube: /scratch/kocevski/955620/ltcube_391219201_391478401_4FGL_J1253.2+5301_daily_bin586.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/955620/Model_4FGL_J1253.2+5301_daily_bin586.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) = 6354.44008391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8923       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.2112       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.3931       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.1661       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.3087       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.4118       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.066       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.560       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.658       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.241       1.0000         .10000E-03   10000.    
    22 'norm      '    .10457E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .31891E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    10.358       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .40964       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .77143       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0657       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=   6354.406     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3324 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8930        2.7579       -.48692E-06   -.84100E-03
   2  norm          .10000E-03    3.2647        .10959E-06** at limit **
   3  Prefactor     .10000E-03    9.1147        .11120E-05** at limit **
   4  Prefactor     9.2079        6.7782       -.62965E-06   -.11890E-02
   5  Prefactor     .10000E-03    11.689       -.76164E-05** at limit **
   6  norm          1.3931        1.4746       -.11802E-06   -.49431E-03
   7  Prefactor     .10000E-03    35.509        .26399E-04** at limit **
   8  norm          8.1658        5.6765        .11849E-05   -.28589E-03
   9  Prefactor     .10000E-03    13.851        .73923E-05** at limit **
  10  Prefactor     .10000E-03    1.1646        .23542E-08** at limit **
  11  norm          4.3089        1.8594        .20286E-07    .15582E-03
  12  Prefactor     .10000E-03    16.833        .21913E-05** at limit **
  13  norm          4.4118        2.2053       -.47806E-07   -.69552E-04
  14  Prefactor     .10000E-03    12.815        .24536E-05** at limit **
  15  Prefactor     .10000E-03    17.744       -.92534E-06** at limit **
  16  Prefactor     .10000E-03    2.9995       -.68145E-07** at limit **
  17  norm          10.067        13.008       -.14420E-06   -.28929E-04
  18  norm          .10000E-03    .96988        .26663E-07** at limit **
  19  Prefactor     22.559        24.495       -.75225E-06    .17648E-04
  20  Prefactor     19.653        12.737        .24610E-06    .31036E-03
  21  Prefactor     19.241        22.849        .69157E-07    .18174E-04
  22  norm          .10000E-03    2.2329        .37166E-07** at limit **
  23  Prefactor     .10003E-03    180.78       -.84636E-04** at limit **
  24  Prefactor     .10000E-03    24.753       -.72671E-05** at limit **
  25  norm          10.358        2.7493       -.21094E-07    .10220E-03
  26  norm          .10000E-03    54.080       -.13746E-04** at limit **
  27  norm          .40187        2.1307       -.48844E-06    .16401E-03
  28  Prefactor     .10000E-03    23.254       -.10141E-04** at limit **
  29  Normalizat    .77147        .14548        .51659E-06    .40973E-03
  30  Prefactor     1.0656        .18002        .24502E-07    .31618E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.89296
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.20789
  Prefactor  = 0.0001
  norm       = 1.39314
  Prefactor  = 0.0001
  norm       = 8.16576
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.3089
  Prefactor  = 0.0001
  norm       = 4.41177
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.067
  norm       = 0.0001
  Prefactor  = 22.5591
  Prefactor  = 19.6528
  Prefactor  = 19.2413
  norm       = 0.0001
  Prefactor  = 0.000100031
  Prefactor  = 0.0001
  norm       = 10.3576
  norm       = 0.0001
  norm       = 0.401867
  Prefactor  = 0.0001
  Normalizat = 0.77147
  Prefactor  = 1.06563
 **********
 **   18 **HESSE 
 **********

 FCN=   6354.406     FROM HESSE     STATUS=OK           580 CALLS     3904 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8930        2.7493        .15236E-03   -1.5433    
   2  norm          .10000E-03    3.3315        .28022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.1400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.2079        6.7799        .66026E-03   -1.5101    
   5  Prefactor     .10000E-03    11.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.3931        1.4579        .95351E-04   -1.5472    
   7  Prefactor     .10000E-03    35.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.1658        5.6602        .14030E-03   -1.5136    
   9  Prefactor     .10000E-03    13.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.1662        .84000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.3089        1.8607        .69436E-04   -1.5293    
  12  Prefactor     .10000E-03    16.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.4118        2.2041        .80910E-04   -1.5288    
  14  Prefactor     .10000E-03    12.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.0126        .13481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.067        13.011        .12629E-03   -1.5073    
  18  norm          .10000E-03    .97249        .76646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.559        24.485        .84330E-04   -1.4758    
  20  Prefactor     19.653        12.691        .90335E-04   -1.4821    
  21  Prefactor     19.241        22.838        .91308E-04   -1.4830    
  22  norm          .10000E-03    2.2928        .23147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10003E-03    181.85        .42728E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    24.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          10.358        2.7495        .65164E-04   -1.5064    
  26  norm          .10000E-03    54.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .40187        6.8455        .22130E-02   -1.5581    
  28  Prefactor     .10000E-03    23.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .77147        .17210        .23114E-03   -1.0114    
  30  Prefactor     1.0656        .21386        .25429E-03   -.90573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81016e-09
Minuit parameter uncertainties:
  1  2.74947
  2  1.38921e-05
  3  5.45538e-06
  4  6.78046
  5  1.82812e-05
  6  1.45793
  7  6.25062e-06
  8  5.66055
  9  9.41878e-05
  10  2.8435e-07
  11  1.86071
  12  3.73913e-05
  13  2.20414
  14  2.40106e-06
  15  2.65474e-06
  16  2.95734e-07
  17  13.0147
  18  2.61681e-08
  19  24.4963
  20  12.6928
  21  22.8485
  22  8.10215e-07
  23  0.00475264
  24  4.36033e-05
  25  2.74956
  26  1.67304e-05
  27  3.31724
  28  7.58086e-06
  29  0.172225
  30  0.214035
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  4.412e+00  2.204e+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:  1.066e+00  2.140e-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:  7.715e-01  1.722e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.02
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 4.28e-08 +/- 2.14e-08
Energy Flux (Fixed Index): 3.10e-05 +/- 1.55e-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) = 6354.40024102
delta logL = 0.00535070153455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6354.39953618
delta logL = 0.00605554089361

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3369       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9754       1.0000          .0000       5.0000    
     3 'Normalizat'    .76976       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0665       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=   6354.400     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3353        47.395        .48357E-02    .12753E-03
   2  alpha         1.9755        3.3690        .26789        .37476E-04
   3  Normalizat    .76976        .96831E-01    .43214E-01    .16725E-04
   4  Prefactor     1.0666        .93920E-01    .57482E-01    .74211E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.33531
  alpha      = 1.97546
  Normalizat = 0.769755
  Prefactor  = 1.06658
 **********
 **   18 **HESSE 
 **********

 FCN=   6354.400     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .99E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3353        2.3101        .79502E-04   -1.5292    
   2  alpha         1.9755        .40521        .10316E-01   -.21139    
   3  Normalizat    .76976        .16695        .23136E-03   -1.0120    
   4  Prefactor     1.0666        .21296        .25418E-03   -.90542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.85126e-13
Minuit parameter uncertainties:
  1  2.31013
  2  0.407087
  3  0.167059
  4  0.213127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/955620': 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) = 6354.39953593
delta logL = 0.00605579288003

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  4.335e+00  2.310e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.975e+00  4.071e-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:  1.067e+00  2.131e-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:  7.698e-01  1.671e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.00
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.98 +/- 0.41
Photon Flux (Free Index): 4.46e-08 +/- 2.70e-08
Energy Flux (Free Index): 2.96e-05 +/- 1.92e-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/955620/cmap_HighResolution_391219201_391478401_4FGL_J1253.2+5301_daily_bin586.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.28e-08', energy_flux2='2.96e-05', photon_flux_error='2.14e-08', dlogl='6.06e-03', energy_flux='3.10e-05', photon_flux2='4.46e-08', job_status='DONE', time_completed='2021-09-06 07:40:22.349763', photon_index_error2='0.41', photon_index2='1.98', ts='9.02', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.92e-05', EG='0.77', time_epoch_completed='1630939222.35', return_code='0', job_id='955620', GAL2='1.07', EG2='0.77', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='2.70e-08', ts2='9.00', photon_index='1.93' WHERE bin_id='586' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:40:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 955620: <4FGL_J1253.2+5301_daily_bin586> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin586> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 07:26:12 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:26:13 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:26:13 2021
Terminated at Mon Sep  6 07:40:23 2021
Results reported at Mon Sep  6 07:40:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin586 193.307 53.0173 391219201 391478401 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 :                                   756.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            851 sec.

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

