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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin1370
RA = 193.307, Dec = 53.0173
tmin = 594432001, tmax = 594691201
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='960206', job_status='RUN', time_executed='2021-09-06 07:41:42.577259', time_epoch_executed='1630939302.58' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='1370'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/960206

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/960206/ft1_4FGL_J1253.2+5301_daily_bin1370.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/960206/ft2_4FGL_J1253.2+5301_daily_bin1370.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/960206/ft1_4FGL_J1253.2+5301_daily_bin1370.fits outfile=/scratch/kocevski/960206/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1370.fits ra=193.307 dec=53.0173 rad=12.0 tmin=594432001.0 tmax=594691201.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.69
user 4.18
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/960206/ft2_4FGL_J1253.2+5301_daily_bin1370.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/960206/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1370.fits evtable="EVENTS" outfile="/scratch/kocevski/960206/ft1_filtered_4FGL_J1253.2+5301_daily_bin1370.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 1.41
user 0.35
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/960206/ft1_filtered_4FGL_J1253.2+5301_daily_bin1370.fits evtable="EVENTS" scfile=/scratch/kocevski/960206/ft2_4FGL_J1253.2+5301_daily_bin1370.fits sctable="SC_DATA" expcube=/scratch/kocevski/960206/ltcube_594432001_594691201_4FGL_J1253.2+5301_daily_bin1370.fits outfile=/scratch/kocevski/960206/expmap_594432001_594691201_4FGL_J1253.2+5301_daily_bin1370.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/960206/ltcube_594432001_594691201_4FGL_J1253.2+5301_daily_bin1370.fits
.....................!
real 190.66
user 186.06
sys 4.10

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/960206/ft1_filtered_4FGL_J1253.2+5301_daily_bin1370.fits scfile=/scratch/kocevski/960206/ft2_4FGL_J1253.2+5301_daily_bin1370.fits outfile=/scratch/kocevski/960206/cmap_594432001_594691201_4FGL_J1253.2+5301_daily_bin1370.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/960206/ft1_filtered_4FGL_J1253.2+5301_daily_bin1370.fits scfile=/scratch/kocevski/960206/ft2_4FGL_J1253.2+5301_daily_bin1370.fits outfile=/scratch/kocevski/960206/cmap_HighResolution_594432001_594691201_4FGL_J1253.2+5301_daily_bin1370.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7203       1.0000         .10000E-03   10000.    
     2 'norm      '    .10577E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.790       1.0000         .10000E-03   10000.    
     6 'norm      '    1.4642       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.4079       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.230       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8726       1.0000         .10000E-03   10000.    
    11 'norm      '    3.9138       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1395       1.0000         .10000E-03   10000.    
    13 'norm      '    3.2964       1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.120       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.316       1.0000         .10000E-03   10000.    
    17 'norm      '    6.6403       1.0000         .10000E-03   10000.    
    18 'norm      '    .80294       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.024       1.0000         .10000E-03   10000.    
    22 'norm      '    2.8177       1.0000         .10000E-03   10000.    
    23 'Prefactor '    47.107       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.092       1.0000         .10000E-03   10000.    
    25 'norm      '    5.2448       1.0000         .10000E-03   10000.    
    26 'norm      '    14.106       1.0000         .10000E-03   10000.    
    27 'norm      '    5.5369       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .59762       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3826       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8354.051     FROM MIGRAD    STATUS=CONVERGED     68 CALLS     3200 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7205        2.7340        .22379E-05    .11125E-01
   2  norm          .10000E-03    4.2039        .15518E-06** at limit **
   3  Prefactor     .10000E-03    2.9610       -.30391E-05** at limit **
   4  Prefactor     .10001E-03    3.9403        .12101E-05** at limit **
   5  Prefactor     19.790        1.0679        .20637E-06   -.13318E-02
   6  norm          1.4643        1.9023       -.21429E-06   -.14770E-04
   7  Prefactor     .10066E-03    8.4672        .62138E-05** at limit **
   8  norm          5.4080        1.0102        .12367E-06    .34267E-03
   9  Prefactor     12.229        1.0021       -.28422E-07    .26499E-03
  10  Prefactor     4.8725        1.0283       -.85562E-07   -.18406E-03
  11  norm          3.9138        1.9983       -.45065E-06   -.49005E-03
  12  Prefactor     4.1389        1.0208       -.19455E-06    .22459E-03
  13  norm          3.2964        1.6177        .16374E-06    .13746E-03
  14  Prefactor     35.120        1.0004        .97354E-08   -.16794E-03
  15  Prefactor     .10116E-03    10.474       -.76735E-05** at limit **
  16  Prefactor     10.315        1.0065       -.44355E-07   -.15047E-03
  17  norm          6.6408        1.0031        .13126E-07   -.44160E-04
  18  norm          .80330        1.7563        .63148E-06    .17453E-04
  19  Prefactor     .10002E-03    6.9004        .16727E-05** at limit **
  20  Prefactor     .10000E-03    3.3804       -.43274E-06** at limit **
  21  Prefactor     29.023        1.0132       -.73730E-07    .69054E-03
  22  norm          2.8175        2.1682       -.12067E-06   -.18303E-03
  23  Prefactor     47.106        1.1314       -.19443E-06    .28413E-02
  24  Prefactor     12.091        1.1015       -.33480E-06    .11483E-02
  25  norm          5.2448        1.8407        .25129E-06    .57131E-03
  26  norm          14.106        1.0090        .83923E-07   -.54031E-03
  27  norm          5.5363        1.7553       -.16343E-05   -.34822E-02
  28  Prefactor     .10005E-03    7.3767        .14746E-05** at limit **
  29  Normalizat    .59773        .16072       -.97101E-06    .22708E-04
  30  Prefactor     1.3825        .20545        .61122E-06    .28652E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.72054
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 19.7902
  norm       = 1.46433
  Prefactor  = 0.000100659
  norm       = 5.40802
  Prefactor  = 12.2294
  Prefactor  = 4.87248
  norm       = 3.91383
  Prefactor  = 4.13894
  norm       = 3.29637
  Prefactor  = 35.1201
  Prefactor  = 0.000101162
  Prefactor  = 10.3153
  norm       = 6.64078
  norm       = 0.8033
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 29.0235
  norm       = 2.81748
  Prefactor  = 47.1056
  Prefactor  = 12.0911
  norm       = 5.24476
  norm       = 14.1063
  norm       = 5.53626
  Prefactor  = 0.000100053
  Normalizat = 0.597728
  Prefactor  = 1.38245
 **********
 **   18 **HESSE 
 **********

 FCN=   8354.051     FROM HESSE     STATUS=OK           670 CALLS     3870 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7205        3.4572        .32133E-02   -1.5084    
   2  norm          .10000E-03    1.9410        .42618E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.2892        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    5.6367        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.790        15.758        .22508E-02   -1.4818    
   6  norm          1.4643        1.9407        .88857E-02   -1.5466    
   7  Prefactor     .10066E-03    20.713        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.4080        5.3906        .43200E-02   -1.5243    
   9  Prefactor     12.229        12.327        .28637E-02   -1.5008    
  10  Prefactor     4.8725        4.9804        .45557E-02   -1.5266    
  11  norm          3.9138        2.1438        .50983E-02   -1.5312    
  12  Prefactor     4.1389        13.458        .49529E-02   -1.5301    
  13  norm          3.2964        1.6196        .55749E-02   -1.5345    
  14  Prefactor     35.120        33.071        .16906E-02   -1.4522    
  15  Prefactor     .10116E-03    22.987        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.315        9.7732        .31188E-02   -1.5066    
  17  norm          6.6408        9.6510        .38931E-02   -1.5193    
  18  norm          .80330        2.0150        .41246E-01   -1.5529    
  19  Prefactor     .10002E-03    7.5083        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.3759        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.023        24.937        .18592E-02   -1.4630    
  22  norm          2.8175        2.1766        .60577E-02   -1.5372    
  23  Prefactor     47.106        44.780        .14605E-02   -1.4334    
  24  Prefactor     12.091        39.063        .28800E-02   -1.5012    
  25  norm          5.2448        1.8647        .43879E-02   -1.5250    
  26  norm          14.106        45.126        .26661E-02   -1.4957    
  27  norm          5.5363        3.9450        .42686E-02   -1.5237    
  28  Prefactor     .10005E-03    21.462        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .59773        .14761        .62805E-01   -1.0808    
  30  Prefactor     1.3825        .17472        .55853E-01   -.80887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05001e-07
Minuit parameter uncertainties:
  1  3.45729
  2  0.000113681
  3  0.000108586
  4  0.000467735
  5  15.7609
  6  1.94075
  7  0.00739174
  8  5.39112
  9  12.3298
  10  4.98086
  11  2.14381
  12  13.4677
  13  1.61963
  14  33.0879
  15  0.0103393
  16  9.77471
  17  9.65331
  18  2.01519
  19  0.000726653
  20  4.8372e-05
  21  24.9464
  22  2.17665
  23  44.8124
  24  39.1461
  25  1.86474
  26  45.2359
  27  3.94518
  28  0.0021421
  29  0.147707
  30  0.174797
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  3.296e+00  1.620e+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.382e+00  1.748e-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:  5.977e-01  1.477e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.78
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 3.20e-08 +/- 1.57e-08
Energy Flux (Fixed Index): 2.31e-05 +/- 1.14e-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) = 8353.69307713
delta logL = 0.357996121622

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8353.6837836
delta logL = 0.36728965188

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4059       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5842       1.0000          .0000       5.0000    
     3 'Normalizat'    .60707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3776       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=   8353.684     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      206 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4059        2.3580        .54802E-02   -.97348E-03
   2  alpha         1.5842        .46576        .33715       -.13863E-04
   3  Normalizat    .60703        .13367        .62363E-01    .39265E-04
   4  Prefactor     1.3776        .17356        .55950E-01    .20184E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.40594
  alpha      = 1.58416
  Normalizat = 0.607027
  Prefactor  = 1.37762
 **********
 **   18 **HESSE 
 **********

 FCN=   8353.684     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4059        1.7722        .84256E-04   -1.5339    
   2  alpha         1.5842        .39379        .13195E-01   -.37507    
   3  Normalizat    .60703        .15695        .27592E-03   -1.0769    
   4  Prefactor     1.3776        .20500        .24739E-03   -.81027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.95181e-11
Minuit parameter uncertainties:
  1  1.77223
  2  0.395698
  3  0.157061
  4  0.205125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/960206': 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) = 8353.68378355
delta logL = 0.367289702128

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  3.406e+00  1.772e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.584e+00  3.957e-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.378e+00  2.051e-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:  6.070e-01  1.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.50
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.58 +/- 0.40
Photon Flux (Free Index): 2.26e-08 +/- 1.50e-08
Energy Flux (Free Index): 3.61e-05 +/- 2.81e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/960206/cmap_HighResolution_594432001_594691201_4FGL_J1253.2+5301_daily_bin1370.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.20e-08', energy_flux2='3.61e-05', photon_flux_error='1.57e-08', dlogl='3.67e-01', energy_flux='2.31e-05', photon_flux2='2.26e-08', job_status='DONE', time_completed='2021-09-06 07:57:26.910819', photon_index_error2='0.40', photon_index2='1.58', ts='14.78', fit_tolerance='1e-08', GAL='1.38', photon_index_error='0.00', energy_flux_error2='2.81e-05', EG='0.60', time_epoch_completed='1630940246.91', return_code='0', job_id='960206', GAL2='1.38', EG2='0.61', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='1.50e-08', ts2='15.50', photon_index='1.93' WHERE bin_id='1370' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:57:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 960206: <4FGL_J1253.2+5301_daily_bin1370> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin1370> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 07:40:58 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:40:59 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:40:59 2021
Terminated at Mon Sep  6 07:57:27 2021
Results reported at Mon Sep  6 07:57:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin1370 193.307 53.0173 594432001 594691201 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 :                                   911.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            989 sec.

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

