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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin71
RA = 193.307, Dec = 53.0173
tmin = 257731201, tmax = 257990401
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='953553', job_status='RUN', time_executed='2021-09-06 07:23:32.768024', time_epoch_executed='1630938212.77' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='71'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953553

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953553/ft1_4FGL_J1253.2+5301_daily_bin71.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953553/ft2_4FGL_J1253.2+5301_daily_bin71.fits


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

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

Done.
real 1.44
user 1.24
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953553/ft1_filtered_4FGL_J1253.2+5301_daily_bin71.fits" evtable="EVENTS" scfile=/scratch/kocevski/953553/ft2_4FGL_J1253.2+5301_daily_bin71.fits sctable="SC_DATA" outfile=/scratch/kocevski/953553/ltcube_257731201_257990401_4FGL_J1253.2+5301_daily_bin71.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/953553/ft2_4FGL_J1253.2+5301_daily_bin71.fits
.....................!
real 17.43
user 16.97
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953553/ft1_filtered_4FGL_J1253.2+5301_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/953553/ft2_4FGL_J1253.2+5301_daily_bin71.fits sctable="SC_DATA" expcube=/scratch/kocevski/953553/ltcube_257731201_257990401_4FGL_J1253.2+5301_daily_bin71.fits outfile=/scratch/kocevski/953553/expmap_257731201_257990401_4FGL_J1253.2+5301_daily_bin71.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/953553/ltcube_257731201_257990401_4FGL_J1253.2+5301_daily_bin71.fits
.....................!
real 191.36
user 185.72
sys 5.00

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 210 point sources and 0 extended sources

Setting source of interest to:
4FGL J1253.2+5301 @ 193.307 53.0173

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/953553/ft1_filtered_4FGL_J1253.2+5301_daily_bin71.fits scfile=/scratch/kocevski/953553/ft2_4FGL_J1253.2+5301_daily_bin71.fits outfile=/scratch/kocevski/953553/cmap_257731201_257990401_4FGL_J1253.2+5301_daily_bin71.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.88
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953553/ft1_filtered_4FGL_J1253.2+5301_daily_bin71.fits scfile=/scratch/kocevski/953553/ft2_4FGL_J1253.2+5301_daily_bin71.fits outfile=/scratch/kocevski/953553/cmap_HighResolution_257731201_257990401_4FGL_J1253.2+5301_daily_bin71.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.0338       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.167       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    14.875       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.944       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.8567       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.8566       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.8306       1.0000         .10000E-03   10000.    
    17 'norm      '    7.1488       1.0000         .10000E-03   10000.    
    18 'norm      '    .24926E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.892       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15370E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11313E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    37.487       1.0000         .10000E-03   10000.    
    25 'norm      '    10.230       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .92404E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    106.06       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .87498       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0619       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=   5467.493     FROM MIGRAD    STATUS=CONVERGED    781 CALLS     3897 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1896        .10785E-06** at limit **
   2  norm          3.0291        5.6286        .85993E-06    .14967E-03
   3  Prefactor     20.164        15.270        .12843E-07   -.21933E-04
   4  Prefactor     .10000E-03    4.7046       -.21288E-06** at limit **
   5  Prefactor     .10000E-03    11.131       -.54792E-07** at limit **
   6  norm          .10000E-03    .82349        .88685E-07** at limit **
   7  Prefactor     .10000E-03    32.378       -.85986E-07** at limit **
   8  norm          14.874        8.6804        .37342E-07   -.48819E-04
   9  Prefactor     22.922        25.891        .97233E-07    .11852E-04
  10  Prefactor     .10000E-03    2.1705        .33189E-07** at limit **
  11  norm          3.8567        2.3168        .64551E-08   -.18381E-04
  12  Prefactor     .10000E-03    9.2941        .59587E-06** at limit **
  13  norm          4.8562        2.4013       -.23340E-08   -.13954E-03
  14  Prefactor     .10000E-03    14.628       -.21062E-07** at limit **
  15  Prefactor     .10000E-03    32.117        .24105E-06** at limit **
  16  Prefactor     9.8229        12.064        .18850E-07    .16459E-04
  17  norm          7.1448        16.910        .10297E-06   -.21876E-04
  18  norm          .10000E-03    4.6989        .24087E-05** at limit **
  19  Prefactor     37.860        33.881       -.18979E-05   -.34678E-03
  20  Prefactor     .10000E-03    9.6446       -.10823E-06** at limit **
  21  Prefactor     .10000E-03    35.022        .32517E-05** at limit **
  22  norm          .10000E-03    2.0158        .98083E-07** at limit **
  23  Prefactor     .10000E-03    28.188       -.12212E-05** at limit **
  24  Prefactor     37.336        58.799        .44030E-05    .13723E-03
  25  norm          10.229        3.0769        .28820E-07   -.22704E-03
  26  norm          .10000E-03    28.496        .12319E-07** at limit **
  27  norm          .10006E-03    2.8183       -.12140E-05** at limit **
  28  Prefactor     106.01        89.319        .20513E-05    .73659E-04
  29  Normalizat    .87580        .17861        .11400E-07   -.18886E-03
  30  Prefactor     1.0612        .21052       -.86355E-06   -.16100E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 3.02914
  Prefactor  = 20.1639
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 14.8743
  Prefactor  = 22.9216
  Prefactor  = 0.0001
  norm       = 3.85674
  Prefactor  = 0.0001
  norm       = 4.85625
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.82293
  norm       = 7.14485
  norm       = 0.000100004
  Prefactor  = 37.8599
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.336
  norm       = 10.2286
  norm       = 0.0001
  norm       = 0.000100062
  Prefactor  = 106.01
  Normalizat = 0.8758
  Prefactor  = 1.06115
 **********
 **   18 **HESSE 
 **********

 FCN=   5467.493     FROM HESSE     STATUS=OK           586 CALLS     4483 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.671        .15606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.0291        5.6441        .22668E-03   -1.5360    
   3  Prefactor     20.164        15.238        .89188E-04   -1.4810    
   4  Prefactor     .10000E-03    4.7316        .15641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .83693        .65485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.874        8.6662        .10385E-03   -1.4936    
   9  Prefactor     22.922        25.783        .83624E-04   -1.4750    
  10  Prefactor     .10000E-03    2.1802        .10634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.8567        2.3134        .83042E-04   -1.5315    
  12  Prefactor     .10000E-03    9.3045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.8562        2.4010        .78041E-04   -1.5267    
  14  Prefactor     .10000E-03    14.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    32.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.8229        12.070        .12781E-03   -1.5081    
  17  norm          7.1448        16.904        .15003E-03   -1.5173    
  18  norm          .10000E-03    7.0972        .25827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     37.860        34.684        .65110E-04   -1.4477    
  20  Prefactor     .10000E-03    9.7089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    35.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.0513        .10252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    28.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     37.336        59.827        .65460E-04   -1.4485    
  25  norm          10.229        3.0775        .68446E-04   -1.5068    
  26  norm          .10000E-03    28.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10006E-03    17.463        .21042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     106.01        89.504        .19524E-03   -1.3645    
  29  Normalizat    .87580        .21418        .23815E-03   -.97316    
  30  Prefactor     1.0612        .25151        .27273E-03   -.90718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.73243e-09
Minuit parameter uncertainties:
  1  0.000284429
  2  5.64504
  3  15.2406
  4  2.09248e-05
  5  5.58888e-06
  6  1.84559e-06
  7  4.56862e-05
  8  8.66693
  9  25.796
  10  1.18649e-06
  11  2.3134
  12  3.94834e-05
  13  2.40108
  14  3.88507e-06
  15  2.93343e-06
  16  12.0731
  17  16.9155
  18  0.000336046
  19  34.7028
  20  1.3512e-05
  21  0.000490911
  22  3.69828e-06
  23  0.000127834
  24  59.9231
  25  3.0775
  26  1.6368e-05
  27  0.00207898
  28  89.6181
  29  0.214386
  30  0.25179
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  4.856e+00  2.401e+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.061e+00  2.518e-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.758e-01  2.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.45
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 4.72e-08 +/- 2.33e-08
Energy Flux (Fixed Index): 3.41e-05 +/- 1.69e-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) = 5467.27178424
delta logL = 0.221244323708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5467.26587048
delta logL = 0.227158082369

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1252       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6674       1.0000          .0000       5.0000    
     3 'Normalizat'    .88527       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0565       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=   5467.266     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      201 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1252        3.5034        .44397E-02    .33026E-03
   2  alpha         1.6674        .47504        .26666        .35245E-05
   3  Normalizat    .88527        .16753        .44713E-01   -.38097E-05
   4  Prefactor     1.0565        .20936        .61801E-01    .32450E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.12518
  alpha      = 1.6674
  Normalizat = 0.885267
  Prefactor  = 1.05651
 **********
 **   18 **HESSE 
 **********

 FCN=   5467.266     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1252        2.6126        .82878E-04   -1.5255    
   2  alpha         1.6674        .38590        .10801E-01   -.33952    
   3  Normalizat    .88527        .19868        .23706E-03   -.96980    
   4  Prefactor     1.0565        .24903        .27332E-03   -.90869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42426e-11
Minuit parameter uncertainties:
  1  2.61266
  2  0.38764
  3  0.198841
  4  0.249308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953553': 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) = 5467.26587048
delta logL = 0.227158083729

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  5.125e+00  2.613e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.667e+00  3.876e-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.057e+00  2.493e-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.853e-01  1.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.89
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.67 +/- 0.39
Photon Flux (Free Index): 3.68e-08 +/- 2.37e-08
Energy Flux (Free Index): 4.77e-05 +/- 3.57e-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/953553/cmap_HighResolution_257731201_257990401_4FGL_J1253.2+5301_daily_bin71.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.72e-08', energy_flux2='4.77e-05', photon_flux_error='2.33e-08', dlogl='2.27e-01', energy_flux='3.41e-05', photon_flux2='3.68e-08', job_status='DONE', time_completed='2021-09-06 07:36:14.014397', photon_index_error2='0.39', photon_index2='1.67', ts='13.45', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='3.57e-05', EG='0.88', time_epoch_completed='1630938974.01', return_code='0', job_id='953553', GAL2='1.06', EG2='0.89', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='2.37e-08', ts2='13.89', photon_index='1.93' WHERE bin_id='71' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:36:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 953553: <4FGL_J1253.2+5301_daily_bin71> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin71> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 07:20:20 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:20:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 07:20:22 2021
Terminated at Mon Sep  6 07:36:14 2021
Results reported at Mon Sep  6 07:36:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin71 193.307 53.0173 257731201 257990401 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 :                                   757.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            954 sec.

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

