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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin1518
RA = 193.307, Dec = 53.0173
tmin = 632793601, tmax = 633052801
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='961832', job_status='RUN', time_executed='2021-09-06 07:47:57.012525', time_epoch_executed='1630939677.01' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='1518'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/961832

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/961832/ft1_4FGL_J1253.2+5301_daily_bin1518.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/961832/ft2_4FGL_J1253.2+5301_daily_bin1518.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/961832/ft1_4FGL_J1253.2+5301_daily_bin1518.fits outfile=/scratch/kocevski/961832/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1518.fits ra=193.307 dec=53.0173 rad=12.0 tmin=632793601.0 tmax=633052801.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 2.91
user 2.67
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/961832/ft2_4FGL_J1253.2+5301_daily_bin1518.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/961832/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1518.fits evtable="EVENTS" outfile="/scratch/kocevski/961832/ft1_filtered_4FGL_J1253.2+5301_daily_bin1518.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.43
user 0.28
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/961832/ft1_filtered_4FGL_J1253.2+5301_daily_bin1518.fits evtable="EVENTS" scfile=/scratch/kocevski/961832/ft2_4FGL_J1253.2+5301_daily_bin1518.fits sctable="SC_DATA" expcube=/scratch/kocevski/961832/ltcube_632793601_633052801_4FGL_J1253.2+5301_daily_bin1518.fits outfile=/scratch/kocevski/961832/expmap_632793601_633052801_4FGL_J1253.2+5301_daily_bin1518.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/961832/ltcube_632793601_633052801_4FGL_J1253.2+5301_daily_bin1518.fits
.....................!
real 147.73
user 144.04
sys 3.38

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/961832/ft1_filtered_4FGL_J1253.2+5301_daily_bin1518.fits scfile=/scratch/kocevski/961832/ft2_4FGL_J1253.2+5301_daily_bin1518.fits outfile=/scratch/kocevski/961832/cmap_632793601_633052801_4FGL_J1253.2+5301_daily_bin1518.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.46
user 0.31
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/961832/ft1_filtered_4FGL_J1253.2+5301_daily_bin1518.fits scfile=/scratch/kocevski/961832/ft2_4FGL_J1253.2+5301_daily_bin1518.fits outfile=/scratch/kocevski/961832/cmap_HighResolution_632793601_633052801_4FGL_J1253.2+5301_daily_bin1518.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.49
user 0.29
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .33120E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.119       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0640       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.2841       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.7460       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11822E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.865       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6499       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8962       1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.210       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.966       1.0000         .10000E-03   10000.    
    17 'norm      '    9.2312       1.0000         .10000E-03   10000.    
    18 'norm      '    .10251E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    43.141       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.609       1.0000         .10000E-03   10000.    
    22 'norm      '    9.0505       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.8928       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.9362       1.0000         .10000E-03   10000.    
    28 'Prefactor '    24.649       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .85398       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1725       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=   6597.118     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3995 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .96036       -.61079E-07** at limit **
   2  norm          .10000E-03    2.6615       -.10344E-05** at limit **
   3  Prefactor     18.115        18.071        .22341E-06   -.20511E-04
   4  Prefactor     1.0616        5.3368        .47577E-05    .52089E-03
   5  Prefactor     .10000E-03    9.3543        .33700E-06** at limit **
   6  norm          2.2840        1.6647        .12843E-06    .13081E-03
   7  Prefactor     .10000E-03    18.791       -.13833E-05** at limit **
   8  norm          6.7459        6.1612        .17159E-05    .28128E-03
   9  Prefactor     .10000E-03    9.0154        .12528E-06** at limit **
  10  Prefactor     .10000E-03    2.9548        .25478E-07** at limit **
  11  norm          .10000E-03    1.4215       -.13228E-06** at limit **
  12  Prefactor     13.875        22.268        .22990E-06   -.64882E-04
  13  norm          1.6499        1.2865        .41123E-08   -.10002E-03
  14  Prefactor     7.8934        31.408        .35283E-06   -.16752E-04
  15  Prefactor     20.225        43.866        .23728E-05    .49468E-04
  16  Prefactor     17.963        10.364        .45178E-06    .55426E-04
  17  norm          9.2307        11.135       -.49829E-07   -.37855E-04
  18  norm          .10001E-03    2.7392        .30069E-05** at limit **
  19  Prefactor     43.191        41.265        .10788E-05    .21385E-04
  20  Prefactor     .10000E-03    8.4292       -.86879E-06** at limit **
  21  Prefactor     11.621        41.636        .30164E-05    .30189E-04
  22  norm          9.0508        4.8358       -.23369E-06   -.48292E-03
  23  Prefactor     8.8876        66.782        .78290E-07   -.31636E-04
  24  Prefactor     .10000E-03    37.541        .17955E-06** at limit **
  25  norm          .10000E-03    .79200        .32130E-06** at limit **
  26  norm          .10000E-03    22.451        .10054E-05** at limit **
  27  norm          5.9354        4.0551        .20255E-06   -.11026E-04
  28  Prefactor     24.654        25.470        .48046E-06    .52723E-04
  29  Normalizat    .85397        .16552       -.23491E-05   -.25360E-03
  30  Prefactor     1.1726        .19378        .53137E-06   -.35001E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.1154
  Prefactor  = 1.06164
  Prefactor  = 0.0001
  norm       = 2.28398
  Prefactor  = 0.000100001
  norm       = 6.74587
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.8747
  norm       = 1.64987
  Prefactor  = 7.89338
  Prefactor  = 20.2251
  Prefactor  = 17.9626
  norm       = 9.23067
  norm       = 0.000100009
  Prefactor  = 43.1911
  Prefactor  = 0.0001
  Prefactor  = 11.6208
  norm       = 9.05077
  Prefactor  = 8.88764
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.93542
  Prefactor  = 24.6543
  Normalizat = 0.853971
  Prefactor  = 1.17258
 **********
 **   18 **HESSE 
 **********

 FCN=   6597.118     FROM HESSE     STATUS=OK           598 CALLS     4593 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .96591        .77616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    14.989        .23955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.115        18.048        .94091E-04   -1.4856    
   4  Prefactor     1.0616        5.3535        .36531E-03   -1.5502    
   5  Prefactor     .10000E-03    9.3799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.2840        1.6638        .85862E-04   -1.5406    
   7  Prefactor     .10000E-03    18.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.7459        6.1950        .77243E-03   -1.5188    
   9  Prefactor     .10000E-03    9.0342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.0730        .26434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.7707        .18235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.875        22.298        .10757E-03   -1.4963    
  13  norm          1.6499        1.2851        .79175E-04   -1.5451    
  14  Prefactor     7.8934        31.409        .14269E-03   -1.5146    
  15  Prefactor     20.225        43.926        .89094E-04   -1.4808    
  16  Prefactor     17.963        10.273        .94492E-04   -1.4860    
  17  norm          9.2307        11.129        .13191E-03   -1.5100    
  18  norm          .10001E-03    3.5330        .21998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     43.191        41.162        .61036E-04   -1.4393    
  20  Prefactor     .10000E-03    8.4529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.621        41.300        .11757E-03   -1.5026    
  22  norm          9.0508        4.8305        .12285E-03   -1.5106    
  23  Prefactor     8.8876        66.810        .13441E-03   -1.5112    
  24  Prefactor     .10000E-03    37.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .80802        .70444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    22.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.9354        4.0466        .12806E-03   -1.5221    
  28  Prefactor     24.654        25.481        .80684E-04   -1.4714    
  29  Normalizat    .85397        .19472        .23941E-03   -.98097    
  30  Prefactor     1.1726        .23071        .26171E-03   -.87179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68448e-09
Minuit parameter uncertainties:
  1  5.21342e-08
  2  6.22271e-05
  3  18.0533
  4  4.76849
  5  3.00253e-05
  6  1.66381
  7  0.000196804
  8  6.19561
  9  5.28151e-06
  10  6.51e-05
  11  6.70262e-05
  12  22.3109
  13  1.28514
  14  31.475
  15  43.9964
  16  10.2739
  17  11.1317
  18  0.000351822
  19  41.1892
  20  6.53982e-05
  21  41.4019
  22  4.83069
  23  48.8114
  24  0.000164963
  25  2.3021e-06
  26  0.000164057
  27  4.04681
  28  25.4927
  29  0.194881
  30  0.230912
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.650e+00  1.285e+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.173e+00  2.309e-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:  8.540e-01  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.67
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.60e-08 +/- 1.25e-08
Energy Flux (Fixed Index): 1.16e-05 +/- 9.02e-06

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) = 6596.89880631
delta logL = 0.219374530341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6596.8984145
delta logL = 0.219766332669

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6803       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5255       1.0000          .0000       5.0000    
     3 'Normalizat'    .85825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1710       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=   6596.898     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .81E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6823        2.5860        .81244E-02   -.14245E-03
   2  alpha         1.5255        .92140        .45073       -.10906E-04
   3  Normalizat    .85873        .15281        .44366E-01    .83018E-06
   4  Prefactor     1.1704        .19235        .59230E-01    .24726E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.68229
  alpha      = 1.52546
  Normalizat = 0.858732
  Prefactor  = 1.17044
 **********
 **   18 **HESSE 
 **********

 FCN=   6596.898     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6823        1.3661        .81306E-04   -1.5449    
   2  alpha         1.5255        .58772        .16719E-01   -.40043    
   3  Normalizat    .85873        .18117        .23883E-03   -.97926    
   4  Prefactor     1.1704        .22924        .26194E-03   -.87246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64469e-10
Minuit parameter uncertainties:
  1  1.36614
  2  0.594297
  3  0.181293
  4  0.229433
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/961832': 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) = 6596.89840988
delta logL = 0.219770953712

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.682e+00  1.366e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.525e+00  5.943e-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.170e+00  2.294e-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:  8.587e-01  1.813e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.11
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.53 +/- 0.59
Photon Flux (Free Index): 1.07e-08 +/- 1.08e-08
Energy Flux (Free Index): 1.98e-05 +/- 2.41e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/961832/cmap_HighResolution_632793601_633052801_4FGL_J1253.2+5301_daily_bin1518.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.60e-08', energy_flux2='1.98e-05', photon_flux_error='1.25e-08', dlogl='2.20e-01', energy_flux='1.16e-05', photon_flux2='1.07e-08', job_status='DONE', time_completed='2021-09-06 08:00:56.455402', photon_index_error2='0.59', photon_index2='1.53', ts='4.67', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='2.41e-05', EG='0.85', time_epoch_completed='1630940456.46', return_code='0', job_id='961832', GAL2='1.17', EG2='0.86', return_code2='0', energy_flux_error='9.02e-06', photon_flux_error2='1.08e-08', ts2='5.11', photon_index='1.93' WHERE bin_id='1518' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:00:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 961832: <4FGL_J1253.2+5301_daily_bin1518> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin1518> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 07:45:46 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:45:49 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:45:49 2021
Terminated at Mon Sep  6 08:00:57 2021
Results reported at Mon Sep  6 08:00:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin1518 193.307 53.0173 632793601 633052801 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 :                                   679.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            911 sec.

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

