/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin6
RA = 193.307, Dec = 53.0173
tmin = 240883201, tmax = 241142401
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='952261', job_status='RUN', time_executed='2021-09-06 07:18:38.749829', time_epoch_executed='1630937918.75' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='6'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952261

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/952261/ft1_4FGL_J1253.2+5301_daily_bin6.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/952261/ft2_4FGL_J1253.2+5301_daily_bin6.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/952261/ft1_4FGL_J1253.2+5301_daily_bin6.fits outfile=/scratch/kocevski/952261/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin6.fits ra=193.307 dec=53.0173 rad=12.0 tmin=240883201.0 tmax=241142401.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.59
user 1.32
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/952261/ft1_filtered_4FGL_J1253.2+5301_daily_bin6.fits" evtable="EVENTS" scfile=/scratch/kocevski/952261/ft2_4FGL_J1253.2+5301_daily_bin6.fits sctable="SC_DATA" outfile=/scratch/kocevski/952261/ltcube_240883201_241142401_4FGL_J1253.2+5301_daily_bin6.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/952261/ft2_4FGL_J1253.2+5301_daily_bin6.fits
.....................!
real 13.09
user 12.62
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952261/ft1_filtered_4FGL_J1253.2+5301_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/952261/ft2_4FGL_J1253.2+5301_daily_bin6.fits sctable="SC_DATA" expcube=/scratch/kocevski/952261/ltcube_240883201_241142401_4FGL_J1253.2+5301_daily_bin6.fits outfile=/scratch/kocevski/952261/expmap_240883201_241142401_4FGL_J1253.2+5301_daily_bin6.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/952261/ltcube_240883201_241142401_4FGL_J1253.2+5301_daily_bin6.fits
.....................!
real 193.11
user 185.97
sys 5.80

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/952261/ft1_filtered_4FGL_J1253.2+5301_daily_bin6.fits scfile=/scratch/kocevski/952261/ft2_4FGL_J1253.2+5301_daily_bin6.fits outfile=/scratch/kocevski/952261/cmap_240883201_241142401_4FGL_J1253.2+5301_daily_bin6.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.59
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/952261/ft1_filtered_4FGL_J1253.2+5301_daily_bin6.fits scfile=/scratch/kocevski/952261/ft2_4FGL_J1253.2+5301_daily_bin6.fits outfile=/scratch/kocevski/952261/cmap_HighResolution_240883201_241142401_4FGL_J1253.2+5301_daily_bin6.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.62
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0420       1.0000         .10000E-03   10000.    
     2 'norm      '    3.8128       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.392       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .29923E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.6492       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.5260       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .35956E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.1983       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.638       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8159       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.763       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    19.666       1.0000         .10000E-03   10000.    
    18 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.439       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.317       1.0000         .10000E-03   10000.    
    22 'norm      '    6.5140       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.1987       1.0000         .10000E-03   10000.    
    26 'norm      '    62.938       1.0000         .10000E-03   10000.    
    27 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .84324       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1282       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=   5978.535     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     4018 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0407        2.9432       -.15377E-05   -.10615E-02
   2  norm          3.8133        5.6663        .13300E-05   -.66336E-05
   3  Prefactor     .10000E-03    16.159       -.55265E-05** at limit **
   4  Prefactor     16.404        11.784        .59867E-06    .92431E-03
   5  Prefactor     .10007E-03    17.585       -.40580E-05** at limit **
   6  norm          5.6504        2.7461       -.28915E-06    .13913E-03
   7  Prefactor     .10000E-03    46.982        .14801E-04** at limit **
   8  norm          7.5281        5.8213        .11516E-06    .66271E-04
   9  Prefactor     .10001E-03    59.877        .40826E-05** at limit **
  10  Prefactor     .10000E-03    4.5693        .47133E-07** at limit **
  11  norm          4.1988        2.0991       -.11822E-06    .20577E-03
  12  Prefactor     15.579        25.025       -.27109E-04   -.20075E-04
  13  norm          1.8165        1.7013        .14199E-06    .23731E-03
  14  Prefactor     10.752        25.995       -.90721E-05    .98454E-06
  15  Prefactor     .10000E-03    61.356        .97063E-05** at limit **
  16  Prefactor     .10000E-03    3.6283       -.56867E-07** at limit **
  17  norm          19.667        13.883       -.34779E-06   -.11860E-04
  18  norm          .10000E-03    1.5191        .11493E-06** at limit **
  19  Prefactor     .10000E-03    19.784        .10240E-04** at limit **
  20  Prefactor     28.448        22.370        .14181E-06    .62760E-04
  21  Prefactor     16.317        29.080       -.25776E-05   -.47382E-04
  22  norm          6.5138        4.6365       -.51116E-06   -.83963E-04
  23  Prefactor     .10000E-03    31.685       -.18160E-04** at limit **
  24  Prefactor     .10000E-03    11.419        .58613E-06** at limit **
  25  norm          1.1987        1.1218       -.23602E-06   -.16248E-02
  26  norm          62.925        79.813       -.14291E-04    .41214E-05
  27  norm          .10000E-03    1.6498        .30828E-07** at limit **
  28  Prefactor     .10000E-03    39.364       -.18545E-05** at limit **
  29  Normalizat    .84286        .16889        .44233E-05    .13959E-03
  30  Prefactor     1.1287        .20025        .89007E-06    .29272E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.04068
  norm       = 3.8133
  Prefactor  = 0.0001
  Prefactor  = 16.4035
  Prefactor  = 0.000100072
  norm       = 5.65045
  Prefactor  = 0.0001
  norm       = 7.52812
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  norm       = 4.19876
  Prefactor  = 15.579
  norm       = 1.81645
  Prefactor  = 10.7517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.6667
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.4479
  Prefactor  = 16.3166
  norm       = 6.51384
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.19869
  norm       = 62.925
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.842863
  Prefactor  = 1.12873
 **********
 **   18 **HESSE 
 **********

 FCN=   5978.535     FROM HESSE     STATUS=OK           588 CALLS     4606 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0407        2.9327        .21371E-03   -1.5504    
   2  norm          3.8133        5.6210        .19927E-03   -1.5317    
   3  Prefactor     .10000E-03    16.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.404        10.803        .98923E-04   -1.4898    
   5  Prefactor     .10007E-03    111.27        .56377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.6504        2.7583        .84121E-04   -1.5233    
   7  Prefactor     .10000E-03    46.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.5281        5.8113        .14619E-03   -1.5159    
   9  Prefactor     .10001E-03    61.797        .42623E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.7604        .32248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.1988        2.0995        .76856E-04   -1.5298    
  12  Prefactor     15.579        25.060        .10128E-03   -1.4918    
  13  norm          1.8165        1.7097        .94563E-04   -1.5438    
  14  Prefactor     10.752        26.008        .12212E-03   -1.5052    
  15  Prefactor     .10000E-03    61.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.6371        .14382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          19.667        13.884        .90316E-04   -1.4821    
  18  norm          .10000E-03    1.5290        .93043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     28.448        22.425        .75125E-04   -1.4641    
  21  Prefactor     16.317        29.089        .99151E-04   -1.4900    
  22  norm          6.5138        4.6292        .12252E-03   -1.5197    
  23  Prefactor     .10000E-03    31.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.1987        1.1235        .20743E-03   -1.5489    
  26  norm          62.925        79.823        .50581E-04   -1.4120    
  27  norm          .10000E-03    1.6670        .96936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    39.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .84286        .20176        .24047E-03   -.98498    
  30  Prefactor     1.1287        .23979        .26463E-03   -.88554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89093e-09
Minuit parameter uncertainties:
  1  2.93311
  2  5.6218
  3  2.56881e-05
  4  10.8045
  5  0.00568419
  6  2.75841
  7  9.20117e-05
  8  5.81172
  9  0.00179069
  10  2.6754e-05
  11  2.09956
  12  25.0773
  13  1.70976
  14  26.0351
  15  1.98196e-05
  16  1.15135e-05
  17  13.8864
  18  1.12615e-05
  19  3.0605e-05
  20  22.4314
  21  29.114
  22  4.62942
  23  4.54196e-05
  24  1.78228e-05
  25  1.12355
  26  79.9594
  27  7.9644e-07
  28  5.51499e-05
  29  0.201936
  30  0.240018
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.816e+00  1.710e+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.129e+00  2.400e-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.429e-01  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.72
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.76e-08 +/- 1.66e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 1.20e-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) = 5978.49969795
delta logL = 0.0356428340056

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5978.49650607
delta logL = 0.0388347087992

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6746       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6301       1.0000          .0000       5.0000    
     3 'Normalizat'    .85002       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1248       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=   5978.497     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6748        3.1987        .81416E-02   -.15194E-03
   2  alpha         1.6302        1.3370        .44853       -.34881E-04
   3  Normalizat    .84981        .16503        .44260E-01    .10683E-04
   4  Prefactor     1.1250        .20154        .59932E-01    .84586E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.67484
  alpha      = 1.63021
  Normalizat = 0.849808
  Prefactor  = 1.12497
 **********
 **   18 **HESSE 
 **********

 FCN=   5978.497     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6748        1.7826        .94496E-04   -1.5449    
   2  alpha         1.6302        .94594        .22694E-01   -.35535    
   3  Normalizat    .84981        .18814        .23960E-03   -.98247    
   4  Prefactor     1.1250        .23638        .26504E-03   -.88672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22425e-12
Minuit parameter uncertainties:
  1  1.78269
  2  0.973705
  3  0.18828
  4  0.236604
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952261': 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) = 5978.49650542
delta logL = 0.0388353576809

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.675e+00  1.783e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.630e+00  9.737e-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.125e+00  2.366e-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.498e-01  1.883e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.80
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.63 +/- 0.97
Photon Flux (Free Index): 1.16e-08 +/- 1.90e-08
Energy Flux (Free Index): 1.65e-05 +/- 2.43e-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/952261/cmap_HighResolution_240883201_241142401_4FGL_J1253.2+5301_daily_bin6.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.76e-08', energy_flux2='1.65e-05', photon_flux_error='1.66e-08', dlogl='3.88e-02', energy_flux='1.27e-05', photon_flux2='1.16e-08', job_status='DONE', time_completed='2021-09-06 07:32:16.070477', photon_index_error2='0.97', photon_index2='1.63', ts='4.72', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='2.43e-05', EG='0.84', time_epoch_completed='1630938736.07', return_code='0', job_id='952261', GAL2='1.12', EG2='0.85', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='1.90e-08', ts2='4.80', photon_index='1.93' WHERE bin_id='6' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:32:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 952261: <4FGL_J1253.2+5301_daily_bin6> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin6 193.307 53.0173 240883201 241142401 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 :                                   813.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            970 sec.

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

