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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin376
RA = 193.307, Dec = 53.0173
tmin = 336787201, tmax = 337046401
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='955334', job_status='RUN', time_executed='2021-09-06 07:27:35.500499', time_epoch_executed='1630938455.5' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='376'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/955334

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/955334/ft1_4FGL_J1253.2+5301_daily_bin376.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/955334/ft2_4FGL_J1253.2+5301_daily_bin376.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/955334/ft1_4FGL_J1253.2+5301_daily_bin376.fits outfile=/scratch/kocevski/955334/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin376.fits ra=193.307 dec=53.0173 rad=12.0 tmin=336787201.0 tmax=337046401.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 7.04
user 6.59
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/955334/ft1_filtered_4FGL_J1253.2+5301_daily_bin376.fits" evtable="EVENTS" scfile=/scratch/kocevski/955334/ft2_4FGL_J1253.2+5301_daily_bin376.fits sctable="SC_DATA" outfile=/scratch/kocevski/955334/ltcube_336787201_337046401_4FGL_J1253.2+5301_daily_bin376.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/955334/ft2_4FGL_J1253.2+5301_daily_bin376.fits
.....................!
real 11.49
user 11.07
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/955334/ft1_filtered_4FGL_J1253.2+5301_daily_bin376.fits evtable="EVENTS" scfile=/scratch/kocevski/955334/ft2_4FGL_J1253.2+5301_daily_bin376.fits sctable="SC_DATA" expcube=/scratch/kocevski/955334/ltcube_336787201_337046401_4FGL_J1253.2+5301_daily_bin376.fits outfile=/scratch/kocevski/955334/expmap_336787201_337046401_4FGL_J1253.2+5301_daily_bin376.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/955334/ltcube_336787201_337046401_4FGL_J1253.2+5301_daily_bin376.fits
.....................!
real 191.46
user 186.40
sys 4.56

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/955334/ft1_filtered_4FGL_J1253.2+5301_daily_bin376.fits scfile=/scratch/kocevski/955334/ft2_4FGL_J1253.2+5301_daily_bin376.fits outfile=/scratch/kocevski/955334/cmap_336787201_337046401_4FGL_J1253.2+5301_daily_bin376.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/955334/ft1_filtered_4FGL_J1253.2+5301_daily_bin376.fits scfile=/scratch/kocevski/955334/ft2_4FGL_J1253.2+5301_daily_bin376.fits outfile=/scratch/kocevski/955334/cmap_HighResolution_336787201_337046401_4FGL_J1253.2+5301_daily_bin376.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1418       1.0000         .10000E-03   10000.    
     2 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.706       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9343       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.7403       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11180E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.9124       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.397       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.2875       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.0513       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.1470       1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.942       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .16501E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    2.6416       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.2305       1.0000         .10000E-03   10000.    
    26 'norm      '    2.4244       1.0000         .10000E-03   10000.    
    27 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2047       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .74924       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=   4814.936     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3868 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1471        5.7492        .14163E-06    .15505E-04
   2  norm          .10000E-03    2.9895        .34178E-07** at limit **
   3  Prefactor     10.649        30.753       -.13559E-05   -.16902E-04
   4  Prefactor     4.9334        5.8611       -.75532E-07    .92946E-06
   5  Prefactor     .10000E-03    11.196        .83815E-07** at limit **
   6  norm          6.7409        3.9765        .59634E-07    .37301E-04
   7  Prefactor     .10000E-03    172.23       -.46252E-05** at limit **
   8  norm          8.9130        9.1696        .15520E-05   -.23130E-04
   9  Prefactor     19.398        27.621       -.12543E-05   -.30471E-05
  10  Prefactor     .10000E-03    5.0069        .21807E-07** at limit **
  11  norm          3.2885        2.5713       -.20328E-07    .61581E-05
  12  Prefactor     .10000E-03    17.824        .10641E-05** at limit **
  13  norm          4.0515        2.5990       -.15362E-07   -.67165E-05
  14  Prefactor     .10000E-03    14.547       -.78045E-06** at limit **
  15  Prefactor     .10000E-03    15.971        .65245E-06** at limit **
  16  Prefactor     .10000E-03    20.180       -.21702E-06** at limit **
  17  norm          .10000E-03    4.4668       -.16225E-07** at limit **
  18  norm          3.1495        5.6061        .15398E-06   -.36454E-04
  19  Prefactor     32.913        43.648        .21422E-05   -.58175E-04
  20  Prefactor     .10000E-03    26.011       -.12359E-05** at limit **
  21  Prefactor     .10000E-03    147.94        .22374E-05** at limit **
  22  norm          2.6422        3.5173       -.15661E-07    .30942E-04
  23  Prefactor     .10000E-03    29.142        .10942E-05** at limit **
  24  Prefactor     .10000E-03    15.075       -.14946E-06** at limit **
  25  norm          7.2307        2.6040        .90729E-07   -.40143E-04
  26  norm          2.4103        411.06       -.47676E-05   -.32065E-05
  27  norm          .10000E-03    2.3507       -.14118E-07** at limit **
  28  Prefactor     .10000E-03    20.871       -.43934E-06** at limit **
  29  Normalizat    1.2044        .19388        .31972E-06   -.10557E-04
  30  Prefactor     .74956        .22540       -.51724E-06    .70116E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.14707
  norm       = 0.0001
  Prefactor  = 10.6494
  Prefactor  = 4.93339
  Prefactor  = 0.0001
  norm       = 6.74087
  Prefactor  = 0.0001
  norm       = 8.91296
  Prefactor  = 19.3979
  Prefactor  = 0.0001
  norm       = 3.28847
  Prefactor  = 0.0001
  norm       = 4.0515
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.1495
  Prefactor  = 32.9132
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.64224
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.23065
  norm       = 2.4103
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.20445
  Prefactor  = 0.749556
 **********
 **   18 **HESSE 
 **********

 FCN=   4814.936     FROM HESSE     STATUS=OK           582 CALLS     4450 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1471        5.7354        .11844E-03   -1.5137    
   2  norm          .10000E-03    3.0104        .11713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.649        30.729        .12245E-03   -1.5055    
   4  Prefactor     4.9334        5.8571        .17832E-03   -1.5264    
   5  Prefactor     .10000E-03    11.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.7409        3.9879        .99149E-04   -1.5189    
   7  Prefactor     .10000E-03    174.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.9130        9.2020        .67130E-03   -1.5111    
   9  Prefactor     19.398        27.665        .90941E-04   -1.4827    
  10  Prefactor     .10000E-03    5.0528        .15148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.2885        2.5696        .95046E-04   -1.5345    
  12  Prefactor     .10000E-03    17.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.0515        2.6011        .86669E-04   -1.5305    
  14  Prefactor     .10000E-03    14.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.4684        .14323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.1495        5.5602        .19705E-03   -1.5353    
  19  Prefactor     32.913        43.821        .69815E-04   -1.4560    
  20  Prefactor     .10000E-03    26.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    154.36        .40788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.6422        3.4882        .14389E-03   -1.5383    
  23  Prefactor     .10000E-03    29.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.2307        2.6043        .64875E-04   -1.5170    
  26  norm          2.4103        419.31        .26285E-03   -1.5397    
  27  norm          .10000E-03    2.3798        .10385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    20.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2044        .22291        .21422E-03   -.86465    
  30  Prefactor     .74956        .25664        .32093E-03   -1.0162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38191e-11
Minuit parameter uncertainties:
  1  5.7358
  2  2.57187e-07
  3  30.7748
  4  5.85778
  5  5.17524e-06
  6  3.98802
  7  0.00055049
  8  9.20349
  9  27.6836
  10  1.3228e-06
  11  2.56968
  12  3.57096e-05
  13  2.60119
  14  3.21782e-05
  15  2.61175e-05
  16  1.4842e-05
  17  6.01469e-07
  18  5.56114
  19  43.8639
  20  7.63056e-05
  21  1.45308e-05
  22  3.48842
  23  5.73664e-05
  24  8.10362e-06
  25  2.60432
  26  64.0416
  27  2.67642e-07
  28  2.22841e-05
  29  0.223086
  30  0.257046
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  4.051e+00  2.601e+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:  7.496e-01  2.570e-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.204e+00  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.16
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 3.93e-08 +/- 2.53e-08
Energy Flux (Fixed Index): 2.84e-05 +/- 1.83e-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) = 4814.93298605
delta logL = 0.00287752426811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4814.93269323
delta logL = 0.00317034330692

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0194       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8670       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2080       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74788       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4814.933     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      239 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0194        2.6514        .87604E-04    .47082E-03
   2  alpha         1.8669        .78462        .16925E-01    .26851E-04
   3  Normalizat    1.2080        .21280        .21397E-03   -.47129E-04
   4  Prefactor     .74784        .25342        .32129E-03   -.30466E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.01937
  alpha      = 1.86693
  Normalizat = 1.20801
  Prefactor  = 0.747839
 **********
 **   18 **HESSE 
 **********

 FCN=   4814.933     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0194        2.6680        .35041E-05   -1.5307    
   2  alpha         1.8669        .78799        .67702E-03   -.25602    
   3  Normalizat    1.2080        .21275        .42793E-04   -.86356    
   4  Prefactor     .74784        .25353        .12852E-04   -1.0168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65675e-10
Minuit parameter uncertainties:
  1  2.66806
  2  0.802642
  3  0.212898
  4  0.25392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/955334': 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) = 4814.9326932
delta logL = 0.00317036890556

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  4.019e+00  2.668e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.867e+00  8.026e-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:  7.478e-01  2.539e-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.208e+00  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.15
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.87 +/- 0.80
Photon Flux (Free Index): 3.60e-08 +/- 4.66e-08
Energy Flux (Free Index): 2.96e-05 +/- 2.55e-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/955334/cmap_HighResolution_336787201_337046401_4FGL_J1253.2+5301_daily_bin376.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.93e-08', energy_flux2='2.96e-05', photon_flux_error='2.53e-08', dlogl='3.17e-03', energy_flux='2.84e-05', photon_flux2='3.60e-08', job_status='DONE', time_completed='2021-09-06 07:39:49.755026', photon_index_error2='0.80', photon_index2='1.87', ts='11.16', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='2.55e-05', EG='1.20', time_epoch_completed='1630939189.76', return_code='0', job_id='955334', GAL2='0.75', EG2='1.21', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='4.66e-08', ts2='11.15', photon_index='1.93' WHERE bin_id='376' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:39:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 955334: <4FGL_J1253.2+5301_daily_bin376> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin376> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 07:25:46 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:25:48 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:25:48 2021
Terminated at Mon Sep  6 07:39:50 2021
Results reported at Mon Sep  6 07:39:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin376 193.307 53.0173 336787201 337046401 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 :                                   713.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            844 sec.

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

