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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin804
RA = 193.307, Dec = 53.0173
tmin = 447724801, tmax = 447984001
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='958440', job_status='RUN', time_executed='2021-09-06 07:36:14.605450', time_epoch_executed='1630938974.61' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='804'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958440

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958440/ft1_4FGL_J1253.2+5301_daily_bin804.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958440/ft2_4FGL_J1253.2+5301_daily_bin804.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958440/ft1_4FGL_J1253.2+5301_daily_bin804.fits outfile=/scratch/kocevski/958440/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin804.fits ra=193.307 dec=53.0173 rad=12.0 tmin=447724801.0 tmax=447984001.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.16
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958440/ft1_filtered_4FGL_J1253.2+5301_daily_bin804.fits evtable="EVENTS" scfile=/scratch/kocevski/958440/ft2_4FGL_J1253.2+5301_daily_bin804.fits sctable="SC_DATA" expcube=/scratch/kocevski/958440/ltcube_447724801_447984001_4FGL_J1253.2+5301_daily_bin804.fits outfile=/scratch/kocevski/958440/expmap_447724801_447984001_4FGL_J1253.2+5301_daily_bin804.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/958440/ltcube_447724801_447984001_4FGL_J1253.2+5301_daily_bin804.fits
.....................!
real 195.80
user 185.23
sys 5.44

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/958440/ft1_filtered_4FGL_J1253.2+5301_daily_bin804.fits scfile=/scratch/kocevski/958440/ft2_4FGL_J1253.2+5301_daily_bin804.fits outfile=/scratch/kocevski/958440/cmap_447724801_447984001_4FGL_J1253.2+5301_daily_bin804.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/958440/ft1_filtered_4FGL_J1253.2+5301_daily_bin804.fits scfile=/scratch/kocevski/958440/ft2_4FGL_J1253.2+5301_daily_bin804.fits outfile=/scratch/kocevski/958440/cmap_HighResolution_447724801_447984001_4FGL_J1253.2+5301_daily_bin804.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.64
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11398E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.569       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.4666       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.6504       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5825       1.0000         .10000E-03   10000.    
    11 'norm      '    4.1050       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.7305       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    68.879       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.4717       1.0000         .10000E-03   10000.    
    17 'norm      '    7.8995       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.670       1.0000         .10000E-03   10000.    
    22 'norm      '    3.3449       1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.044       1.0000         .10000E-03   10000.    
    24 'Prefactor '    67.438       1.0000         .10000E-03   10000.    
    25 'norm      '    17.046       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.5651       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .78195       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0157       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=   6141.385     FROM MIGRAD    STATUS=CONVERGED    755 CALLS     3936 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4796        .24611E-06** at limit **
   2  norm          .10000E-03    2.9372        .45495E-07** at limit **
   3  Prefactor     .10000E-03    12.544       -.11087E-06** at limit **
   4  Prefactor     12.565        7.7424        .67790E-08   -.41000E-04
   5  Prefactor     .10000E-03    9.1723       -.42383E-06** at limit **
   6  norm          1.4664        2.2578        .15361E-06   -.10260E-04
   7  Prefactor     .10000E-03    66.864        .52731E-05** at limit **
   8  norm          4.6515        5.7672        .13769E-06   -.61163E-04
   9  Prefactor     .10000E-03    10.449        .85378E-06** at limit **
  10  Prefactor     3.5821        5.2421        .22671E-05   -.10181E-04
  11  norm          4.1049        2.3640       -.26321E-06   -.19873E-04
  12  Prefactor     .10000E-03    18.149        .38350E-06** at limit **
  13  norm          2.7305        1.7556       -.70349E-08   -.26343E-04
  14  Prefactor     .10000E-03    54.592       -.29655E-05** at limit **
  15  Prefactor     68.867        60.988        .10742E-05   -.68587E-05
  16  Prefactor     9.4700        8.2244       -.13117E-06   -.11708E-04
  17  norm          7.9004        17.689        .71118E-06   -.67184E-05
  18  norm          .10000E-03    .78235        .60892E-08** at limit **
  19  Prefactor     .10000E-03    21.927        .69440E-06** at limit **
  20  Prefactor     .10000E-03    7.1046       -.22629E-07** at limit **
  21  Prefactor     17.669        20.286        .69687E-07   -.11069E-04
  22  norm          3.3447        2.6076       -.47998E-08   -.26605E-04
  23  Prefactor     17.034        44.705        .16792E-05   -.46166E-05
  24  Prefactor     67.412        46.315        .24606E-05   -.11033E-04
  25  norm          17.045        3.2005        .11458E-07   -.36559E-04
  26  norm          .10000E-03    57.769       -.17030E-05** at limit **
  27  norm          4.5644        3.9711       -.13849E-06   -.39260E-04
  28  Prefactor     .10000E-03    14.569       -.77460E-06** at limit **
  29  Normalizat    .78233        .16517        .61181E-07   -.36657E-04
  30  Prefactor     1.0152        .19583       -.12342E-05   -.82735E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5651
  Prefactor  = 0.0001
  norm       = 1.46641
  Prefactor  = 0.0001
  norm       = 4.65155
  Prefactor  = 0.0001
  Prefactor  = 3.58206
  norm       = 4.10492
  Prefactor  = 0.0001
  norm       = 2.73049
  Prefactor  = 0.0001
  Prefactor  = 68.8672
  Prefactor  = 9.47003
  norm       = 7.90037
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.6687
  norm       = 3.34471
  Prefactor  = 17.0342
  Prefactor  = 67.4124
  norm       = 17.0452
  norm       = 0.0001
  norm       = 4.56444
  Prefactor  = 0.0001
  Normalizat = 0.782327
  Prefactor  = 1.01517
 **********
 **   18 **HESSE 
 **********

 FCN=   6141.385     FROM HESSE     STATUS=OK           588 CALLS     4524 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5513        .18450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.9757        .13100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.565        7.7365        .11299E-03   -1.4999    
   5  Prefactor     .10000E-03    9.1797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.4664        2.2450        .13521E-03   -1.5466    
   7  Prefactor     .10000E-03    67.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.6515        5.7556        .18663E-03   -1.5277    
   9  Prefactor     .10000E-03    10.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.5821        5.2689        .10025E-02   -1.5329    
  11  norm          4.1049        2.3636        .83879E-04   -1.5303    
  12  Prefactor     .10000E-03    18.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.7305        1.7592        .80739E-04   -1.5377    
  14  Prefactor     .10000E-03    55.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     68.867        60.923        .48365E-04   -1.4046    
  16  Prefactor     9.4700        8.2228        .13022E-03   -1.5092    
  17  norm          7.9004        17.656        .71331E-03   -1.5146    
  18  norm          .10000E-03    .78351        .67689E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.1235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.669        20.282        .95279E-04   -1.4867    
  22  norm          3.3447        2.6078        .10815E-03   -1.5342    
  23  Prefactor     17.034        44.693        .97012E-04   -1.4882    
  24  Prefactor     67.412        46.489        .48875E-04   -1.4064    
  25  norm          17.045        3.2015        .58429E-04   -1.4882    
  26  norm          .10000E-03    57.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.5644        3.9615        .13782E-03   -1.5281    
  28  Prefactor     .10000E-03    14.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .78233        .19243        .23787E-03   -1.0073    
  30  Prefactor     1.0152        .22752        .26543E-03   -.92225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76611e-10
Minuit parameter uncertainties:
  1  3.00837e-06
  2  3.63674e-06
  3  1.19721e-05
  4  7.73711
  5  3.70073e-06
  6  2.24512
  7  1.51371e-05
  8  5.75629
  9  2.54357e-06
  10  5.26962
  11  2.36369
  12  1.16728e-05
  13  1.7592
  14  0.000144342
  15  60.9781
  16  8.22377
  17  17.6677
  18  1.87871e-07
  19  2.39061e-06
  20  5.72186e-06
  21  20.2895
  22  2.60786
  23  44.7807
  24  46.5138
  25  3.20158
  26  2.54773e-05
  27  3.9617
  28  2.02077e-06
  29  0.192593
  30  0.227733
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.730e+00  1.759e+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.015e+00  2.277e-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.823e-01  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.38
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 2.65e-08 +/- 1.71e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.23e-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) = 6141.29116354
delta logL = 0.0942258608693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6141.28773603
delta logL = 0.0976533768016

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5772       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6361       1.0000          .0000       5.0000    
     3 'Normalizat'    .79077       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0117       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=   6141.288     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      199 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5772        2.1888        .63557E-02    .77227E-03
   2  alpha         1.6361        .65340        .34439        .61744E-05
   3  Normalizat    .79077        .15456        .43490E-01    .95137E-05
   4  Prefactor     1.0117        .19355        .43085E-01    .17696E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.57723
  alpha      = 1.63615
  Normalizat = 0.790766
  Prefactor  = 1.01174
 **********
 **   18 **HESSE 
 **********

 FCN=   6141.288     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5772        1.9053        .83351E-04   -1.5387    
   2  alpha         1.6361        .66377        .17007E-01   -.35282    
   3  Normalizat    .79077        .17853        .23675E-03   -1.0041    
   4  Prefactor     1.0117        .22467        .26590E-03   -.92339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11532e-10
Minuit parameter uncertainties:
  1  1.90534
  2  0.672961
  3  0.178661
  4  0.224882
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958440': 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) = 6141.28773603
delta logL = 0.0976533770427

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.577e+00  1.905e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.636e+00  6.730e-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.012e+00  2.249e-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.908e-01  1.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.57
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.64 +/- 0.67
Photon Flux (Free Index): 1.79e-08 +/- 2.04e-08
Energy Flux (Free Index): 2.51e-05 +/- 2.56e-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/958440/cmap_HighResolution_447724801_447984001_4FGL_J1253.2+5301_daily_bin804.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.65e-08', energy_flux2='2.51e-05', photon_flux_error='1.71e-08', dlogl='9.77e-02', energy_flux='1.92e-05', photon_flux2='1.79e-08', job_status='DONE', time_completed='2021-09-06 07:50:09.544108', photon_index_error2='0.67', photon_index2='1.64', ts='11.38', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.56e-05', EG='0.78', time_epoch_completed='1630939809.54', return_code='0', job_id='958440', GAL2='1.01', EG2='0.79', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='2.04e-08', ts2='11.57', photon_index='1.93' WHERE bin_id='804' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:50:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 958440: <4FGL_J1253.2+5301_daily_bin804> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin804 193.307 53.0173 447724801 447984001 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 :                                   808.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            853 sec.

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

