/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 9 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 = 7415
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1253.2+5301_daily_bin156
RA = 193.307, Dec = 53.0173
tmin = 279763201, tmax = 280022401
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='953685', job_status='RUN', time_executed='2021-09-06 07:20:49.975147', time_epoch_executed='1630938049.98' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='156'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953685

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953685/ft1_4FGL_J1253.2+5301_daily_bin156.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953685/ft2_4FGL_J1253.2+5301_daily_bin156.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953685/ft1_4FGL_J1253.2+5301_daily_bin156.fits outfile=/scratch/kocevski/953685/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin156.fits ra=193.307 dec=53.0173 rad=12.0 tmin=279763201.0 tmax=280022401.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.52
user 3.29
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953685/ft1_filtered_4FGL_J1253.2+5301_daily_bin156.fits" evtable="EVENTS" scfile=/scratch/kocevski/953685/ft2_4FGL_J1253.2+5301_daily_bin156.fits sctable="SC_DATA" outfile=/scratch/kocevski/953685/ltcube_279763201_280022401_4FGL_J1253.2+5301_daily_bin156.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/953685/ft2_4FGL_J1253.2+5301_daily_bin156.fits
.....................!
real 11.99
user 11.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953685/ft1_filtered_4FGL_J1253.2+5301_daily_bin156.fits evtable="EVENTS" scfile=/scratch/kocevski/953685/ft2_4FGL_J1253.2+5301_daily_bin156.fits sctable="SC_DATA" expcube=/scratch/kocevski/953685/ltcube_279763201_280022401_4FGL_J1253.2+5301_daily_bin156.fits outfile=/scratch/kocevski/953685/expmap_279763201_280022401_4FGL_J1253.2+5301_daily_bin156.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/953685/ltcube_279763201_280022401_4FGL_J1253.2+5301_daily_bin156.fits
.....................!
real 191.88
user 185.68
sys 4.17

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/953685/ft1_filtered_4FGL_J1253.2+5301_daily_bin156.fits scfile=/scratch/kocevski/953685/ft2_4FGL_J1253.2+5301_daily_bin156.fits outfile=/scratch/kocevski/953685/cmap_279763201_280022401_4FGL_J1253.2+5301_daily_bin156.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953685/ft1_filtered_4FGL_J1253.2+5301_daily_bin156.fits scfile=/scratch/kocevski/953685/ft2_4FGL_J1253.2+5301_daily_bin156.fits outfile=/scratch/kocevski/953685/cmap_HighResolution_279763201_280022401_4FGL_J1253.2+5301_daily_bin156.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.54
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    5.3792       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10285E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.327       1.0000         .10000E-03   10000.    
     6 'norm      '    .10608E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.255       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.4727       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.0546       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6676       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.8343       1.0000         .10000E-03   10000.    
    19 'Prefactor '    47.356       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .16169E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .93060E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.094       1.0000         .10000E-03   10000.    
    25 'norm      '    1.3481       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .14009E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    54.620       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3270       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .84063       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=   6779.964     FROM MIGRAD    STATUS=CONVERGED    803 CALLS     3939 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2133        .31550E-09** at limit **
   2  norm          5.3834        4.9072       -.23678E-07   -.14626E-04
   3  Prefactor     .10000E-03    30.407        .14248E-04** at limit **
   4  Prefactor     .10000E-03    2.8722       -.49542E-08** at limit **
   5  Prefactor     12.330        12.132       -.74560E-07    .17187E-04
   6  norm          .10000E-03    1.1357       -.39211E-08** at limit **
   7  Prefactor     .10000E-03    25.655       -.11082E-04** at limit **
   8  norm          .10000E-03    1.5648        .22323E-08** at limit **
   9  Prefactor     16.263        17.333       -.10844E-05   -.32105E-04
  10  Prefactor     .10000E-03    2.9126       -.63323E-07** at limit **
  11  norm          5.4731        2.4416       -.81344E-07    .12427E-04
  12  Prefactor     .10000E-03    7.4493        .30702E-07** at limit **
  13  norm          5.0549        2.6536       -.19106E-07   -.21823E-04
  14  Prefactor     .10000E-03    21.074        .43328E-05** at limit **
  15  Prefactor     .10000E-03    40.955       -.41751E-05** at limit **
  16  Prefactor     1.6721        4.3156        .11005E-05   -.90822E-03
  17  norm          .10000E-03    4.2226        .12761E-08** at limit **
  18  norm          2.8441        5.5606        .34975E-06   -.64346E-04
  19  Prefactor     47.235        49.355       -.29053E-05   -.10244E-04
  20  Prefactor     .10000E-03    5.4606       -.54870E-08** at limit **
  21  Prefactor     .10000E-03    21.552       -.92591E-06** at limit **
  22  norm          .10001E-03    1.9447        .13224E-08** at limit **
  23  Prefactor     .10000E-03    53.799        .13079E-04** at limit **
  24  Prefactor     15.092        29.340       -.20883E-05   -.15209E-04
  25  norm          1.3491        1.3858        .34690E-07    .29011E-04
  26  norm          .10000E-03    46.851       -.12868E-04** at limit **
  27  norm          .10007E-03    1.6194       -.87125E-07** at limit **
  28  Prefactor     54.618        47.640       -.70865E-06   -.22167E-05
  29  Normalizat    1.3263        .16619        .48766E-06   -.18153E-03
  30  Prefactor     .84142        .19451       -.42593E-06   -.45315E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.38339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.33
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.2628
  Prefactor  = 0.0001
  norm       = 5.47311
  Prefactor  = 0.0001
  norm       = 5.05485
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.6721
  norm       = 0.0001
  norm       = 2.84406
  Prefactor  = 47.2348
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 15.0919
  norm       = 1.3491
  norm       = 0.0001
  norm       = 0.000100072
  Prefactor  = 54.6182
  Normalizat = 1.32625
  Prefactor  = 0.841419
 **********
 **   18 **HESSE 
 **********

 FCN=   6779.964     FROM HESSE     STATUS=OK           592 CALLS     4531 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2234        .88546E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.3834        4.9093        .16636E-03   -1.5244    
   3  Prefactor     .10000E-03    30.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.8805        .13615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.330        12.131        .11409E-03   -1.5006    
   6  norm          .10000E-03    2.5911        .16931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.5659        .10057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.263        17.363        .99341E-04   -1.4901    
  10  Prefactor     .10000E-03    2.9285        .13715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.4731        2.5088        .82727E-04   -1.5240    
  12  Prefactor     .10000E-03    7.4662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.0549        2.6526        .93565E-04   -1.5258    
  14  Prefactor     .10000E-03    21.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    41.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.6721        20.665        .16326E-02   -1.5449    
  17  norm          .10000E-03    4.2239        .16525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.8441        5.4911        .23007E-03   -1.5371    
  19  Prefactor     47.235        48.682        .58268E-04   -1.4332    
  20  Prefactor     .10000E-03    5.4657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10001E-03    22.034        .21859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    54.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     15.092        29.388        .10309E-03   -1.4931    
  25  norm          1.3491        1.3783        .95143E-04   -1.5476    
  26  norm          .10000E-03    46.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10007E-03    2.8394        .37786E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     54.618        47.644        .54274E-04   -1.4229    
  29  Normalizat    1.3263        .20030        .21367E-03   -.82786    
  30  Prefactor     .84142        .23127        .31804E-03   -.98219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.97034e-09
Minuit parameter uncertainties:
  1  2.97845e-06
  2  4.90962
  3  5.20124e-06
  4  1.59748e-07
  5  12.1339
  6  8.95858e-06
  7  0.000111686
  8  1.03715e-06
  9  17.3682
  10  1.64391e-07
  11  2.50886
  12  2.31513e-06
  13  2.65265
  14  3.47815e-05
  15  4.18215e-05
  16  11.7613
  17  3.0266e-07
  18  5.4921
  19  48.7225
  20  2.9434e-06
  21  5.31109e-05
  22  0.000931696
  23  0.000204178
  24  29.4163
  25  1.37829
  26  0.000170043
  27  0.000907332
  28  47.6769
  29  0.200421
  30  0.231542
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  5.055e+00  2.653e+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:  8.414e-01  2.315e-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.326e+00  2.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.28
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 4.91e-08 +/- 2.58e-08
Energy Flux (Fixed Index): 3.55e-05 +/- 1.86e-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) = 6779.46976707
delta logL = 0.493969214957

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6779.461364
delta logL = 0.502372283931

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1715       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3957       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2906       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86352       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=   6779.461     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      268 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1721        30.487        .49333E-02    .54882E-03
   2  alpha         2.3959        3.6817        .24170        .10575E-03
   3  Normalizat    1.2906        .86892E-01    .48845E-01    .61061E-04
   4  Prefactor     .86344        .78299E-01    .70999E-01    .14272E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.17205
  alpha      = 2.39593
  Normalizat = 1.29058
  Prefactor  = 0.863441
 **********
 **   18 **HESSE 
 **********

 FCN=   6779.461     FROM HESSE     STATUS=OK            31 CALLS      299 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1721        2.6775        .73749E-04   -1.5299    
   2  alpha         2.3959        .48461        .90636E-02   -.41642E-01
   3  Normalizat    1.2906        .19330        .21594E-03   -.83848    
   4  Prefactor     .86344        .23162        .31414E-03   -.97431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98437e-11
Minuit parameter uncertainties:
  1  2.67758
  2  0.487705
  3  0.19341
  4  0.231887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953685': 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) = 6779.46136361
delta logL = 0.502372674348

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  4.172e+00  2.678e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.396e+00  4.877e-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:  8.634e-01  2.319e-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.291e+00  1.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.26
Ra Dec: 193.307 53.017
Photon Index (Free Index): 2.40 +/- 0.49
Photon Flux (Free Index): 8.10e-08 +/- 4.71e-08
Energy Flux (Free Index): 2.86e-05 +/- 1.44e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/953685/cmap_HighResolution_279763201_280022401_4FGL_J1253.2+5301_daily_bin156.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.91e-08', energy_flux2='2.86e-05', photon_flux_error='2.58e-08', dlogl='5.02e-01', energy_flux='3.55e-05', photon_flux2='8.10e-08', job_status='DONE', time_completed='2021-09-06 07:35:33.760308', photon_index_error2='0.49', photon_index2='2.40', ts='8.28', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.44e-05', EG='1.33', time_epoch_completed='1630938933.76', return_code='0', job_id='953685', GAL2='0.86', EG2='1.29', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='4.71e-08', ts2='9.26', photon_index='1.93' WHERE bin_id='156' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:35:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 953685: <4FGL_J1253.2+5301_daily_bin156> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin156> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 07:20:31 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:20:32 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:32 2021
Terminated at Mon Sep  6 07:35:34 2021
Results reported at Mon Sep  6 07:35:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin156 193.307 53.0173 279763201 280022401 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 :                                   878.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            903 sec.

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

