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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin972
RA = 193.307, Dec = 53.0173
tmin = 491270401, tmax = 491529601
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='958685', job_status='RUN', time_executed='2021-09-06 07:36:59.281061', time_epoch_executed='1630939019.28' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='972'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958685

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958685/ft1_4FGL_J1253.2+5301_daily_bin972.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958685/ft2_4FGL_J1253.2+5301_daily_bin972.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958685/ft1_4FGL_J1253.2+5301_daily_bin972.fits outfile=/scratch/kocevski/958685/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin972.fits ra=193.307 dec=53.0173 rad=12.0 tmin=491270401.0 tmax=491529601.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 6.28
user 3.36
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958685/ft1_filtered_4FGL_J1253.2+5301_daily_bin972.fits evtable="EVENTS" scfile=/scratch/kocevski/958685/ft2_4FGL_J1253.2+5301_daily_bin972.fits sctable="SC_DATA" expcube=/scratch/kocevski/958685/ltcube_491270401_491529601_4FGL_J1253.2+5301_daily_bin972.fits outfile=/scratch/kocevski/958685/expmap_491270401_491529601_4FGL_J1253.2+5301_daily_bin972.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/958685/ltcube_491270401_491529601_4FGL_J1253.2+5301_daily_bin972.fits
.....................!
real 192.59
user 185.34
sys 4.61

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/958685/ft1_filtered_4FGL_J1253.2+5301_daily_bin972.fits scfile=/scratch/kocevski/958685/ft2_4FGL_J1253.2+5301_daily_bin972.fits outfile=/scratch/kocevski/958685/cmap_491270401_491529601_4FGL_J1253.2+5301_daily_bin972.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.74
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.0449       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.118       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.0822       1.0000         .10000E-03   10000.    
     7 'Prefactor '    67.833       1.0000         .10000E-03   10000.    
     8 'norm      '    2.1043       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.6938       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.8196       1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.492       1.0000         .10000E-03   10000.    
    13 'norm      '    7.4066       1.0000         .10000E-03   10000.    
    14 'Prefactor '    72.681       1.0000         .10000E-03   10000.    
    15 'Prefactor '    56.787       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .49965E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    18.497       1.0000         .10000E-03   10000.    
    18 'norm      '    .38734E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9670       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    27.220       1.0000         .10000E-03   10000.    
    25 'norm      '    4.0991       1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.2304       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .97611       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .89940       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=   6452.027     FROM MIGRAD    STATUS=CONVERGED    782 CALLS     3971 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4666        .22645E-05** at limit **
   2  norm          3.0490        4.9623        .69008E-06   -.23429E-04
   3  Prefactor     29.085        22.983       -.13442E-05   -.50821E-03
   4  Prefactor     .10000E-03    3.0756       -.30796E-07** at limit **
   5  Prefactor     .10000E-03    7.0660        .12330E-07** at limit **
   6  norm          3.0832        1.9337        .46756E-06   -.22515E-03
   7  Prefactor     67.836        48.993        .67731E-06    .32292E-04
   8  norm          2.1050        4.2755        .33045E-06   -.11604E-03
   9  Prefactor     7.7094        19.667        .85410E-06   -.15088E-04
  10  Prefactor     .10000E-03    3.1817       -.70690E-07** at limit **
  11  norm          1.8174        1.4683        .37722E-07   -.89699E-04
  12  Prefactor     34.498        21.161        .83193E-06    .78791E-04
  13  norm          7.4068        2.8868        .78697E-07   -.15736E-03
  14  Prefactor     72.703        43.565        .17265E-05    .15570E-03
  15  Prefactor     56.768        47.731       -.59892E-06   -.98441E-04
  16  Prefactor     .16182        4.6073        .32092E-06   -.37312E-04
  17  norm          18.503        16.902        .46652E-06    .32481E-04
  18  norm          .60205E-01    2.1009        .54107E-06   -.51162E-03
  19  Prefactor     .10000E-03    19.610       -.49495E-07** at limit **
  20  Prefactor     .10000E-03    9.0437       -.47710E-07** at limit **
  21  Prefactor     1.9955        69.435        .52950E-05    .26860E-04
  22  norm          .10000E-03    .95259       -.21328E-07** at limit **
  23  Prefactor     .10000E-03    33.611       -.23534E-05** at limit **
  24  Prefactor     27.231        28.125        .58189E-06    .23344E-04
  25  norm          4.0998        1.9336        .62953E-07   -.12329E-03
  26  norm          .10000E-03    44.143        .10757E-05** at limit **
  27  norm          2.2339        4.0126        .71463E-06   -.37751E-05
  28  Prefactor     .10000E-03    27.706        .14513E-05** at limit **
  29  Normalizat    .97564        .16537       -.23283E-05   -.48988E-03
  30  Prefactor     .89941        .18916        .57035E-06   -.48150E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  norm       = 3.04898
  Prefactor  = 29.0846
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.08318
  Prefactor  = 67.8364
  norm       = 2.10504
  Prefactor  = 7.70943
  Prefactor  = 0.0001
  norm       = 1.81742
  Prefactor  = 34.4982
  norm       = 7.40679
  Prefactor  = 72.7029
  Prefactor  = 56.7682
  Prefactor  = 0.161824
  norm       = 18.5029
  norm       = 0.0602052
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.99553
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 27.231
  norm       = 4.09981
  norm       = 0.0001
  norm       = 2.23387
  Prefactor  = 0.000100001
  Normalizat = 0.975645
  Prefactor  = 0.899409
 **********
 **   18 **HESSE 
 **********

 FCN=   6452.027     FROM HESSE     STATUS=OK           588 CALLS     4559 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7195        .21198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.0490        4.9520        .21503E-03   -1.5359    
   3  Prefactor     29.085        23.475        .74247E-04   -1.4629    
   4  Prefactor     .10000E-03    3.0803        .13745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.0697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.0832        1.9252        .42137E-03   -1.5357    
   7  Prefactor     67.836        49.039        .24367E-03   -1.4059    
   8  norm          2.1050        4.2193        .21996E-03   -1.5418    
   9  Prefactor     7.7094        19.560        .14457E-03   -1.5153    
  10  Prefactor     .10000E-03    3.2087        .13974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.8174        1.4759        .84139E-04   -1.5438    
  12  Prefactor     34.498        21.243        .68233E-04   -1.4533    
  13  norm          7.4068        2.8867        .81700E-04   -1.5164    
  14  Prefactor     72.703        43.952        .23546E-03   -1.4001    
  15  Prefactor     56.768        47.843        .53234E-04   -1.4200    
  16  Prefactor     .16182        86.069        .32445E-02   -1.5628    
  17  norm          18.503        16.938        .93125E-04   -1.4847    
  18  norm          .60205E-01    40.027        .21792E-02   -1.5659    
  19  Prefactor     .10000E-03    19.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.1979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.9955        69.991        .29569E-03   -1.5425    
  22  norm          .10000E-03    .95747        .76543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    33.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     27.231        28.122        .76786E-04   -1.4664    
  25  norm          4.0998        1.9319        .73750E-04   -1.5303    
  26  norm          .10000E-03    44.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.2339        4.0024        .20169E-03   -1.5409    
  28  Prefactor     .10000E-03    27.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .97564        .19374        .22295E-03   -.93851    
  30  Prefactor     .89941        .22352        .28674E-03   -.96162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53252e-08
Minuit parameter uncertainties:
  1  0.000237711
  2  4.95268
  3  23.4828
  4  2.59788e-06
  5  9.51682e-08
  6  1.92527
  7  49.0684
  8  4.21994
  9  19.5767
  10  3.73827e-06
  11  1.47593
  12  21.2478
  13  2.88672
  14  43.9719
  15  47.8753
  16  7.47256
  17  16.9426
  18  3.10422
  19  6.22891e-05
  20  1.36369e-05
  21  23.6658
  22  7.55624e-08
  23  0.000427325
  24  28.1358
  25  1.93191
  26  0.000261021
  27  4.00284
  28  0.000288929
  29  0.193884
  30  0.223744
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  7.407e+00  2.887e+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.994e-01  2.237e-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:  9.756e-01  1.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.83
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 7.19e-08 +/- 2.80e-08
Energy Flux (Fixed Index): 5.20e-05 +/- 2.03e-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) = 6451.56263134
delta logL = 0.464525561444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6451.55171699
delta logL = 0.475439902556

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3142       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2597       1.0000          .0000       5.0000    
     3 'Normalizat'    .94544       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91891       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=   6451.552     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      236 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3142        34.003        .39935E-02    .59614E-03
   2  alpha         2.2597        3.6062        .18393        .69983E-04
   3  Normalizat    .94546        .11429        .45480E-01    .12346E-04
   4  Prefactor     .91889        .99651E-01    .45246E-01    .17393E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.31421
  alpha      = 2.25975
  Normalizat = 0.945455
  Prefactor  = 0.918889
 **********
 **   18 **HESSE 
 **********

 FCN=   6451.552     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3142        2.8957        .68798E-04   -1.5205    
   2  alpha         2.2597        .34558        .74633E-02   -.96249E-01
   3  Normalizat    .94546        .18194        .22583E-03   -.94881    
   4  Prefactor     .91889        .22327        .28357E-03   -.95484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28447e-09
Minuit parameter uncertainties:
  1  2.89574
  2  0.346705
  3  0.182057
  4  0.223491
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958685': 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) = 6451.55171699
delta logL = 0.475439908034

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  6.314e+00  2.896e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.260e+00  3.467e-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:  9.189e-01  2.235e-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:  9.455e-01  1.821e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.66
Ra Dec: 193.307 53.017
Photon Index (Free Index): 2.26 +/- 0.35
Photon Flux (Free Index): 9.84e-08 +/- 4.31e-08
Energy Flux (Free Index): 4.13e-05 +/- 1.72e-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/958685/cmap_HighResolution_491270401_491529601_4FGL_J1253.2+5301_daily_bin972.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.19e-08', energy_flux2='4.13e-05', photon_flux_error='2.80e-08', dlogl='4.75e-01', energy_flux='5.20e-05', photon_flux2='9.84e-08', job_status='DONE', time_completed='2021-09-06 07:51:57.283673', photon_index_error2='0.35', photon_index2='2.26', ts='17.83', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='0.98', time_epoch_completed='1630939917.28', return_code='0', job_id='958685', GAL2='0.92', EG2='0.95', return_code2='0', energy_flux_error='2.03e-05', photon_flux_error2='4.31e-08', ts2='18.66', photon_index='1.93' WHERE bin_id='972' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:51:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 958685: <4FGL_J1253.2+5301_daily_bin972> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin972> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 07:36:17 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:36:18 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:36:18 2021
Terminated at Mon Sep  6 07:51:58 2021
Results reported at Mon Sep  6 07:51:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin972 193.307 53.0173 491270401 491529601 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 :                                   868.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            941 sec.

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

