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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin643
RA = 193.307, Dec = 53.0173
tmin = 405993601, tmax = 406252801
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='958244', job_status='RUN', time_executed='2021-09-06 07:37:02.858840', time_epoch_executed='1630939022.86' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='643'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958244

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958244/ft1_4FGL_J1253.2+5301_daily_bin643.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958244/ft2_4FGL_J1253.2+5301_daily_bin643.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958244/ft1_4FGL_J1253.2+5301_daily_bin643.fits outfile=/scratch/kocevski/958244/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin643.fits ra=193.307 dec=53.0173 rad=12.0 tmin=405993601.0 tmax=406252801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.62
user 3.15
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/958244/ft1_filtered_4FGL_J1253.2+5301_daily_bin643.fits" evtable="EVENTS" scfile=/scratch/kocevski/958244/ft2_4FGL_J1253.2+5301_daily_bin643.fits sctable="SC_DATA" outfile=/scratch/kocevski/958244/ltcube_405993601_406252801_4FGL_J1253.2+5301_daily_bin643.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/958244/ft2_4FGL_J1253.2+5301_daily_bin643.fits
.....................!
real 12.34
user 11.90
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958244/ft1_filtered_4FGL_J1253.2+5301_daily_bin643.fits evtable="EVENTS" scfile=/scratch/kocevski/958244/ft2_4FGL_J1253.2+5301_daily_bin643.fits sctable="SC_DATA" expcube=/scratch/kocevski/958244/ltcube_405993601_406252801_4FGL_J1253.2+5301_daily_bin643.fits outfile=/scratch/kocevski/958244/expmap_405993601_406252801_4FGL_J1253.2+5301_daily_bin643.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/958244/ltcube_405993601_406252801_4FGL_J1253.2+5301_daily_bin643.fits
.....................!
real 192.68
user 185.18
sys 5.83

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/958244/ft1_filtered_4FGL_J1253.2+5301_daily_bin643.fits scfile=/scratch/kocevski/958244/ft2_4FGL_J1253.2+5301_daily_bin643.fits outfile=/scratch/kocevski/958244/cmap_405993601_406252801_4FGL_J1253.2+5301_daily_bin643.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.58
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.5893       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.6096       1.0000         .10000E-03   10000.    
     6 'norm      '    .10465E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17053E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.8121       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10510E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.6767       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.380       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0870       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10506E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.9873       1.0000         .10000E-03   10000.    
    18 'norm      '    .11224E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.017       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.674       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13605E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.4649       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.3328       1.0000         .10000E-03   10000.    
    26 'norm      '    57.365       1.0000         .10000E-03   10000.    
    27 'norm      '    .60288E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    22.107       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0336       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1688       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=   5646.314     FROM MIGRAD    STATUS=CONVERGED    817 CALLS     4033 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6420       -.14178E-07** at limit **
   2  norm          2.5902        4.0232        .96904E-07    .97095E-04
   3  Prefactor     .10208E-03    36.171       -.80321E-05** at limit **
   4  Prefactor     .10000E-03    4.1815       -.24975E-06** at limit **
   5  Prefactor     6.5859        21.958        .28344E-05    .13947E-03
   6  norm          .10000E-03    1.4621        .12297E-06** at limit **
   7  Prefactor     .10001E-03    152.67       -.11291E-04** at limit **
   8  norm          3.8120        6.2654        .40095E-05    .13864E-02
   9  Prefactor     .10000E-03    14.268        .82800E-06** at limit **
  10  Prefactor     7.6758        5.9869        .15696E-06    .37920E-04
  11  norm          .10000E-03    .77580        .32557E-08** at limit **
  12  Prefactor     10.378        12.954       -.51918E-06   -.35605E-04
  13  norm          2.0869        1.5800        .40617E-08   -.64275E-05
  14  Prefactor     .10000E-03    20.194        .15191E-05** at limit **
  15  Prefactor     .10000E-03    125.83        .53010E-05** at limit **
  16  Prefactor     .10000E-03    6.1022        .55735E-07** at limit **
  17  norm          9.9887        12.343        .77733E-07   -.29058E-04
  18  norm          .10001E-03    3.4004       -.22053E-05** at limit **
  19  Prefactor     10.992        39.824        .92956E-07    .10132E-04
  20  Prefactor     17.667        21.064        .44097E-06    .20807E-04
  21  Prefactor     .10000E-03    69.554        .97310E-07** at limit **
  22  norm          4.4655        5.1647        .94652E-07    .57002E-04
  23  Prefactor     .10000E-03    18.242       -.14095E-05** at limit **
  24  Prefactor     .10000E-03    11.904       -.13891E-05** at limit **
  25  norm          4.3327        2.1047        .35936E-07   -.22051E-04
  26  norm          57.335        67.277        .38121E-05    .32056E-04
  27  norm          .54031E-01    2.9932        .28113E-05   -.13946E-02
  28  Prefactor     22.103        39.504        .33357E-06   -.64096E-05
  29  Normalizat    1.0339        .17865       -.12909E-05    .44759E-04
  30  Prefactor     1.1685        .21614       -.13247E-06    .10318E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.59015
  Prefactor  = 0.000102075
  Prefactor  = 0.0001
  Prefactor  = 6.5859
  norm       = 0.0001
  Prefactor  = 0.000100006
  norm       = 3.81197
  Prefactor  = 0.0001
  Prefactor  = 7.67578
  norm       = 0.0001
  Prefactor  = 10.3782
  norm       = 2.08691
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 9.98874
  norm       = 0.000100007
  Prefactor  = 10.992
  Prefactor  = 17.6668
  Prefactor  = 0.0001
  norm       = 4.46551
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.33274
  norm       = 57.3349
  norm       = 0.0540306
  Prefactor  = 22.1029
  Normalizat = 1.0339
  Prefactor  = 1.16846
 **********
 **   18 **HESSE 
 **********

 FCN=   5646.314     FROM HESSE     STATUS=OK           602 CALLS     4635 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6685        .11879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.5902        4.0000        .18022E-03   -1.5386    
   3  Prefactor     .10208E-03    30.586        .99320E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.1889        .14985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.5859        22.041        .15609E-03   -1.5195    
   6  norm          .10000E-03    3.2121        .17526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    154.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.8120        6.5488        .10336E-02   -1.5317    
   9  Prefactor     .10000E-03    14.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.6758        5.9850        .14473E-03   -1.5154    
  11  norm          .10000E-03    .78141        .64555E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.378        12.962        .12436E-03   -1.5064    
  13  norm          2.0869        1.5846        .80022E-04   -1.5419    
  14  Prefactor     .10000E-03    20.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    126.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.1598        .18123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.9887        12.340        .12679E-03   -1.5076    
  18  norm          .10001E-03    11.728        .22952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.992        38.692        .12070E-03   -1.5045    
  20  Prefactor     17.667        20.989        .95269E-04   -1.4867    
  21  Prefactor     .10000E-03    69.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.4655        5.1340        .15812E-03   -1.5285    
  23  Prefactor     .10000E-03    18.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.3327        2.1052        .73201E-04   -1.5292    
  26  norm          57.335        67.506        .52967E-04   -1.4192    
  27  norm          .54031E-01    27.829        .18386E-02   -1.5662    
  28  Prefactor     22.103        39.500        .85189E-04   -1.4767    
  29  Normalizat    1.0339        .21263        .22891E-03   -.91903    
  30  Prefactor     1.1685        .25916        .27474E-03   -.87307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31383e-08
Minuit parameter uncertainties:
  1  1.45637e-05
  2  4.00043
  3  0.0159421
  4  3.51557e-05
  5  22.0679
  6  2.08569e-05
  7  0.00190699
  8  6.54999
  9  6.83986e-05
  10  5.98548
  11  2.38398e-07
  12  12.9653
  13  1.58461
  14  8.27871e-05
  15  0.000629475
  16  8.17365e-06
  17  12.3433
  18  0.000591015
  19  38.7809
  20  20.998
  21  6.27253e-05
  22  5.1345
  23  6.65206e-05
  24  4.97515e-05
  25  2.10528
  26  67.5965
  27  2.45129
  28  39.5466
  29  0.212803
  30  0.259438
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.087e+00  1.585e+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.168e+00  2.594e-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.034e+00  2.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.39
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 2.03e-08 +/- 1.54e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.11e-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) = 5645.59518142
delta logL = 0.719030781897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5645.57730613
delta logL = 0.736906070889

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7659       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2133       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0420       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1658       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=   5645.577     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7653        1.3887        .78804E-02   -.17514E-03
   2  alpha         1.2126        .43991        .36694       -.27709E-04
   3  Normalizat    1.0419        .16896        .41129E-01   -.15965E-05
   4  Prefactor     1.1659        .21493        .62190E-01    .36752E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.76532
  alpha      = 1.21264
  Normalizat = 1.04189
  Prefactor  = 1.16587
 **********
 **   18 **HESSE 
 **********

 FCN=   5645.577     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7653        1.6364        .76490E-04   -1.5442    
   2  alpha         1.2126        .55119        .15123E-01   -.54094    
   3  Normalizat    1.0419        .20173        .22815E-03   -.91640    
   4  Prefactor     1.1659        .25655        .27506E-03   -.87388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27858e-12
Minuit parameter uncertainties:
  1  1.63649
  2  0.557454
  3  0.201882
  4  0.256826
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958244': 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) = 5645.57730531
delta logL = 0.736906888007

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.765e+00  1.636e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.213e+00  5.575e-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.166e+00  2.568e-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.042e+00  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.86
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.21 +/- 0.56
Photon Flux (Free Index): 9.75e-09 +/- 9.32e-09
Energy Flux (Free Index): 4.18e-05 +/- 5.15e-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/958244/cmap_HighResolution_405993601_406252801_4FGL_J1253.2+5301_daily_bin643.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.03e-08', energy_flux2='4.18e-05', photon_flux_error='1.54e-08', dlogl='7.37e-01', energy_flux='1.46e-05', photon_flux2='9.75e-09', job_status='DONE', time_completed='2021-09-06 07:50:35.300736', photon_index_error2='0.56', photon_index2='1.21', ts='9.39', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='5.15e-05', EG='1.03', time_epoch_completed='1630939835.3', return_code='0', job_id='958244', GAL2='1.17', EG2='1.04', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='9.32e-09', ts2='10.86', photon_index='1.93' WHERE bin_id='643' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:50:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 958244: <4FGL_J1253.2+5301_daily_bin643> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin643> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 07:35:44 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:35:45 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:45 2021
Terminated at Mon Sep  6 07:50:36 2021
Results reported at Mon Sep  6 07:50:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin643 193.307 53.0173 405993601 406252801 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 :                                   790.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            892 sec.

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

