/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 57 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 = 7419
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1253.2+5301_daily_bin88
RA = 193.307, Dec = 53.0173
tmin = 262137601, tmax = 262396801
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='953579', job_status='RUN', time_executed='2021-09-06 07:21:42.283013', time_epoch_executed='1630938102.28' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='88'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953579

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953579/ft1_4FGL_J1253.2+5301_daily_bin88.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953579/ft2_4FGL_J1253.2+5301_daily_bin88.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953579/ft1_4FGL_J1253.2+5301_daily_bin88.fits outfile=/scratch/kocevski/953579/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin88.fits ra=193.307 dec=53.0173 rad=12.0 tmin=262137601.0 tmax=262396801.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 1.45
user 1.25
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/953579/ft2_4FGL_J1253.2+5301_daily_bin88.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/953579/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin88.fits evtable="EVENTS" outfile="/scratch/kocevski/953579/ft1_filtered_4FGL_J1253.2+5301_daily_bin88.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.53
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953579/ft1_filtered_4FGL_J1253.2+5301_daily_bin88.fits" evtable="EVENTS" scfile=/scratch/kocevski/953579/ft2_4FGL_J1253.2+5301_daily_bin88.fits sctable="SC_DATA" outfile=/scratch/kocevski/953579/ltcube_262137601_262396801_4FGL_J1253.2+5301_daily_bin88.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/953579/ft2_4FGL_J1253.2+5301_daily_bin88.fits
.....................!
real 12.86
user 12.51
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953579/ft1_filtered_4FGL_J1253.2+5301_daily_bin88.fits evtable="EVENTS" scfile=/scratch/kocevski/953579/ft2_4FGL_J1253.2+5301_daily_bin88.fits sctable="SC_DATA" expcube=/scratch/kocevski/953579/ltcube_262137601_262396801_4FGL_J1253.2+5301_daily_bin88.fits outfile=/scratch/kocevski/953579/expmap_262137601_262396801_4FGL_J1253.2+5301_daily_bin88.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/953579/ltcube_262137601_262396801_4FGL_J1253.2+5301_daily_bin88.fits
.....................!
real 193.54
user 188.13
sys 5.00

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/953579/ft1_filtered_4FGL_J1253.2+5301_daily_bin88.fits scfile=/scratch/kocevski/953579/ft2_4FGL_J1253.2+5301_daily_bin88.fits outfile=/scratch/kocevski/953579/cmap_262137601_262396801_4FGL_J1253.2+5301_daily_bin88.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953579/ft1_filtered_4FGL_J1253.2+5301_daily_bin88.fits scfile=/scratch/kocevski/953579/ft2_4FGL_J1253.2+5301_daily_bin88.fits outfile=/scratch/kocevski/953579/cmap_HighResolution_262137601_262396801_4FGL_J1253.2+5301_daily_bin88.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9799       1.0000         .10000E-03   10000.    
     2 'norm      '    6.5669       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.2543       1.0000         .10000E-03   10000.    
     6 'norm      '    2.1525       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    17.607       1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.826       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.5702       1.0000         .10000E-03   10000.    
    11 'norm      '    2.0737       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2741       1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.681       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17906       1.0000         .10000E-03   10000.    
    17 'norm      '    11.953       1.0000         .10000E-03   10000.    
    18 'norm      '    12.674       1.0000         .10000E-03   10000.    
    19 'Prefactor '    68.330       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.447       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .25534E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    45.587       1.0000         .10000E-03   10000.    
    25 'norm      '    1.8234       1.0000         .10000E-03   10000.    
    26 'norm      '    77.511       1.0000         .10000E-03   10000.    
    27 'norm      '    4.3400       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2592       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .45516       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=   5703.144     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     3922 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9802        2.6229        .25038E-06   -.80915E-04
   2  norm          6.5717        5.7698        .30177E-05   -.88906E-03
   3  Prefactor     .10000E-03    5.5958        .38254E-07** at limit **
   4  Prefactor     .10000E-03    12.284       -.22623E-05** at limit **
   5  Prefactor     8.2605        13.550        .40991E-07   -.46779E-04
   6  norm          2.1528        1.8927        .40902E-07   -.12776E-03
   7  Prefactor     .10000E-03    17.755        .12042E-05** at limit **
   8  norm          17.608        9.3974       -.34281E-07   -.33070E-04
   9  Prefactor     43.832        28.274        .81580E-06    .15373E-03
  10  Prefactor     9.5693        6.6993        .14693E-06   -.74834E-04
  11  norm          2.0733        1.8443       -.12836E-07   -.24910E-03
  12  Prefactor     .10000E-03    5.4408        .94318E-08** at limit **
  13  norm          1.2741        1.2905        .67576E-08   -.14587E-04
  14  Prefactor     25.683        23.403        .14752E-06    .15334E-04
  15  Prefactor     .10000E-03    35.278       -.13880E-05** at limit **
  16  Prefactor     .21835        5.8074        .12678E-05   -.44918E-03
  17  norm          11.954        14.585        .24724E-06    .12246E-04
  18  norm          12.674        5.2335       -.30075E-07    .19718E-04
  19  Prefactor     68.342        43.790        .19975E-05    .25759E-03
  20  Prefactor     14.448        19.821        .28004E-06    .48649E-04
  21  Prefactor     .10000E-03    42.040        .35592E-05** at limit **
  22  norm          .10000E-03    3.4581        .23993E-06** at limit **
  23  Prefactor     .10004E-03    185.67       -.10126E-04** at limit **
  24  Prefactor     45.580        42.287       -.93062E-06   -.16258E-03
  25  norm          1.8235        1.4929        .38392E-07   -.62660E-04
  26  norm          77.546        87.265        .45431E-05    .22647E-03
  27  norm          4.3396        5.1299       -.28200E-06   -.26483E-03
  28  Prefactor     .10000E-03    19.171       -.12796E-05** at limit **
  29  Normalizat    1.2591        .18765       -.12492E-05   -.73680E-04
  30  Prefactor     .45524        .20452       -.27617E-06   -.89547E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.98022
  norm       = 6.57166
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 8.2605
  norm       = 2.15283
  Prefactor  = 0.000100001
  norm       = 17.6083
  Prefactor  = 43.8317
  Prefactor  = 9.56928
  norm       = 2.07335
  Prefactor  = 0.0001
  norm       = 1.27407
  Prefactor  = 25.6828
  Prefactor  = 0.000100002
  Prefactor  = 0.218351
  norm       = 11.9537
  norm       = 12.6744
  Prefactor  = 68.3417
  Prefactor  = 14.4484
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.000100045
  Prefactor  = 45.5799
  norm       = 1.82346
  norm       = 77.5455
  norm       = 4.33963
  Prefactor  = 0.000100001
  Normalizat = 1.25906
  Prefactor  = 0.455242
 **********
 **   18 **HESSE 
 **********

 FCN=   5703.144     FROM HESSE     STATUS=OK           592 CALLS     4514 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9802        2.6057        .13500E-03   -1.5427    
   2  norm          6.5717        5.9607        .78301E-03   -1.5195    
   3  Prefactor     .10000E-03    5.5988        .17444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.155        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.2605        13.522        .69770E-03   -1.5133    
   6  norm          2.1528        1.8874        .92936E-04   -1.5415    
   7  Prefactor     .10000E-03    17.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.608        9.4027        .95450E-04   -1.4868    
   9  Prefactor     43.832        28.405        .60558E-04   -1.4383    
  10  Prefactor     9.5693        6.6906        .12954E-03   -1.5089    
  11  norm          2.0733        1.8465        .91838E-04   -1.5420    
  12  Prefactor     .10000E-03    5.4435        .17204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2741        1.3046        .84011E-04   -1.5482    
  14  Prefactor     25.683        23.403        .79049E-04   -1.4694    
  15  Prefactor     .10000E-03    35.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .21835        74.590        .33679E-02   -1.5615    
  17  norm          11.954        14.580        .11587E-03   -1.5016    
  18  norm          12.674        5.2346        .10475E-03   -1.4996    
  19  Prefactor     68.342        43.993        .48558E-04   -1.4053    
  20  Prefactor     14.448        19.816        .10538E-03   -1.4948    
  21  Prefactor     .10000E-03    42.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.4739        .13626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10004E-03    190.64        .21456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     45.580        42.430        .59382E-04   -1.4357    
  25  norm          1.8235        1.4930        .80943E-04   -1.5438    
  26  norm          77.546        89.788        .22806E-03   -1.3944    
  27  norm          4.3396        5.1625        .17224E-03   -1.5291    
  28  Prefactor     .10000E-03    19.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2591        .20823        .20318E-03   -.84797    
  30  Prefactor     .45524        .22202        .37835E-03   -1.1408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.1074e-09
Minuit parameter uncertainties:
  1  2.60584
  2  5.96124
  3  5.10092e-06
  4  0.000360328
  5  13.5273
  6  1.88749
  7  0.000283766
  8  9.40351
  9  28.4141
  10  6.69115
  11  1.84655
  12  4.07865e-06
  13  1.30466
  14  23.4111
  15  0.000463631
  16  8.07966
  17  14.584
  18  5.23478
  19  44.0142
  20  19.8252
  21  0.000713005
  22  7.51366e-06
  23  0.00585633
  24  42.4581
  25  1.493
  26  89.9452
  27  5.16306
  28  0.000297136
  29  0.208366
  30  0.222442
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.274e+00  1.305e+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:  4.552e-01  2.224e-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.259e+00  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.69
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.24e-08 +/- 1.27e-08
Energy Flux (Fixed Index): 8.94e-06 +/- 9.16e-06

TS (Fixed Index): 3.69
Ra Dec: 193.307 53.017
Photon Flux Upper Limit: 5.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/953579/likelihoodResults_262137601_262396801_4FGL_J1253.2+5301_daily_bin88.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) = 5703.1222089
delta logL = 0.0219118757623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5703.12142198
delta logL = 0.0226987908027

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2281       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7176       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2618       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45418       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5703.121     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      231 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2281        1.3195        .83717E-04    .27241E-03
   2  alpha         1.7176        .95440        .24015E-01   -.50818E-04
   3  Normalizat    1.2618        .18663        .20300E-03    .34374E-04
   4  Prefactor     .45419        .21791        .37881E-03    .28931E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.22808
  alpha      = 1.71757
  Normalizat = 1.26184
  Prefactor  = 0.45419
 **********
 **   18 **HESSE 
 **********

 FCN=   5703.121     FROM HESSE     STATUS=OK            25 CALLS      256 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2281        1.3299        .33487E-05   -1.5486    
   2  alpha         1.7176        .96182        .48030E-02   -.31832    
   3  Normalizat    1.2618        .18669        .40601E-04   -.84713    
   4  Prefactor     .45419        .21800        .15152E-04   -1.1413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57194e-11
Minuit parameter uncertainties:
  1  1.32994
  2  0.990284
  3  0.186789
  4  0.218399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953579': 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) = 5703.12142198
delta logL = 0.0226987916794

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.228e+00  1.330e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.718e+00  9.903e-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:  4.542e-01  2.184e-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.262e+00  1.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.73
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.72 +/- 0.99
Photon Flux (Free Index): 9.27e-09 +/- 1.57e-08
Energy Flux (Free Index): 1.07e-05 +/- 1.53e-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/953579/cmap_HighResolution_262137601_262396801_4FGL_J1253.2+5301_daily_bin88.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.81e-05', comment='SUCCESS', photon_flux='1.24e-08', energy_flux2='1.07e-05', photon_flux_error='1.27e-08', dlogl='2.27e-02', energy_flux='8.94e-06', photon_flux2='9.27e-09', job_status='DONE', time_completed='2021-09-06 07:36:40.240491', photon_index_error2='0.99', photon_index2='1.72', ts='3.69', fit_tolerance='1e-08', GAL='0.46', photon_index_error='0.00', photon_flux_upper_limit='5.27e-08', energy_flux_error2='1.53e-05', EG='1.26', time_epoch_completed='1630939000.24', return_code='0', job_id='953579', GAL2='0.45', EG2='1.26', return_code2='0', energy_flux_error='9.16e-06', photon_flux_error2='1.57e-08', ts2='3.73', photon_index='1.93' WHERE bin_id='88' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:36:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 953579: <4FGL_J1253.2+5301_daily_bin88> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin88 193.307 53.0173 262137601 262396801 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 :                                   896.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            978 sec.

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

