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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin1281
RA = 193.307, Dec = 53.0173
tmin = 571363201, tmax = 571622401
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='960114', job_status='RUN', time_executed='2021-09-06 07:41:50.979371', time_epoch_executed='1630939310.98' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='1281'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/960114

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/960114/ft1_4FGL_J1253.2+5301_daily_bin1281.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/960114/ft2_4FGL_J1253.2+5301_daily_bin1281.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/960114/ft1_4FGL_J1253.2+5301_daily_bin1281.fits outfile=/scratch/kocevski/960114/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1281.fits ra=193.307 dec=53.0173 rad=12.0 tmin=571363201.0 tmax=571622401.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.15
user 2.66
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/960114/ft1_filtered_4FGL_J1253.2+5301_daily_bin1281.fits evtable="EVENTS" scfile=/scratch/kocevski/960114/ft2_4FGL_J1253.2+5301_daily_bin1281.fits sctable="SC_DATA" expcube=/scratch/kocevski/960114/ltcube_571363201_571622401_4FGL_J1253.2+5301_daily_bin1281.fits outfile=/scratch/kocevski/960114/expmap_571363201_571622401_4FGL_J1253.2+5301_daily_bin1281.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/960114/ltcube_571363201_571622401_4FGL_J1253.2+5301_daily_bin1281.fits
.....................!
real 193.67
user 185.67
sys 5.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/960114/ft1_filtered_4FGL_J1253.2+5301_daily_bin1281.fits scfile=/scratch/kocevski/960114/ft2_4FGL_J1253.2+5301_daily_bin1281.fits outfile=/scratch/kocevski/960114/cmap_571363201_571622401_4FGL_J1253.2+5301_daily_bin1281.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.61
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19491       1.0000         .10000E-03   10000.    
     2 'norm      '    .10388E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5826       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .68023       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .74662E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.361       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.2521       1.0000         .10000E-03   10000.    
    11 'norm      '    4.4485       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.2167       1.0000         .10000E-03   10000.    
    14 'Prefactor '    44.198       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .33884E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    13.627       1.0000         .10000E-03   10000.    
    18 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    38.402       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10798E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    20.276       1.0000         .10000E-03   10000.    
    26 'norm      '    20.478       1.0000         .10000E-03   10000.    
    27 'norm      '    1.3524       1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.465       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0024       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1763       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=   7025.366     FROM MIGRAD    STATUS=CONVERGED    768 CALLS     3903 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20027        2.0860       -.77873E-06    .68046E-03
   2  norm          .10000E-03    9.9163       -.83719E-06** at limit **
   3  Prefactor     .10000E-03    12.039       -.24139E-06** at limit **
   4  Prefactor     8.5864        9.5920        .21556E-05    .12065E-04
   5  Prefactor     .10000E-03    27.470       -.11829E-05** at limit **
   6  norm          .67998        1.7580        .68539E-06    .11622E-03
   7  Prefactor     .10000E-03    66.910        .88476E-06** at limit **
   8  norm          .10053E-03    8.6690        .39339E-06** at limit **
   9  Prefactor     31.354        33.909        .18908E-05   -.86149E-04
  10  Prefactor     7.2529        5.8420       -.32892E-07    .29641E-04
  11  norm          4.4490        2.3981       -.24087E-07    .13126E-03
  12  Prefactor     .10000E-03    7.0794       -.68529E-07** at limit **
  13  norm          8.2170        3.1493        .31920E-07   -.44707E-04
  14  Prefactor     44.210        42.107        .27097E-06    .50212E-04
  15  Prefactor     .10000E-03    32.734       -.14609E-06** at limit **
  16  Prefactor     .10002E-03    6.2085       -.50596E-06** at limit **
  17  norm          13.627        13.462        .68061E-07   -.62409E-06
  18  norm          .10000E-03    2.7465       -.31486E-06** at limit **
  19  Prefactor     38.381        40.583       -.19572E-05   -.30796E-04
  20  Prefactor     .10000E-03    5.0275       -.44019E-07** at limit **
  21  Prefactor     .10000E-03    92.810       -.50192E-05** at limit **
  22  norm          .10000E-03    1.2007       -.50828E-07** at limit **
  23  Prefactor     .10000E-03    16.701        .32349E-06** at limit **
  24  Prefactor     .10000E-03    38.225        .85642E-06** at limit **
  25  norm          20.276        3.5259       -.30494E-07    .11204E-03
  26  norm          20.486        44.678       -.17153E-06    .14247E-04
  27  norm          1.3518        2.9496        .84693E-06    .21419E-04
  28  Prefactor     10.466        35.651        .16407E-07   -.16677E-05
  29  Normalizat    1.0023        .17359        .29398E-06   -.11237E-04
  30  Prefactor     1.1764        .20336       -.10891E-05    .52489E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.200268
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 8.58637
  Prefactor  = 0.000100002
  norm       = 0.679978
  Prefactor  = 0.000100002
  norm       = 0.000100526
  Prefactor  = 31.3543
  Prefactor  = 7.25293
  norm       = 4.44904
  Prefactor  = 0.0001
  norm       = 8.21702
  Prefactor  = 44.2096
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  norm       = 13.6271
  norm       = 0.0001
  Prefactor  = 38.3812
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 20.276
  norm       = 20.4855
  norm       = 1.35176
  Prefactor  = 10.4659
  Normalizat = 1.0023
  Prefactor  = 1.17636
 **********
 **   18 **HESSE 
 **********

 FCN=   7025.366     FROM HESSE     STATUS=OK           596 CALLS     4499 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20027        10.627        .22545E-02   -1.5618    
   2  norm          .10000E-03    10.423        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.5864        9.6020        .68415E-03   -1.5122    
   5  Prefactor     .10000E-03    28.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .67998        1.6490        .17030E-02   -1.5543    
   7  Prefactor     .10000E-03    67.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10053E-03    79.012        .41781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.354        30.926        .71549E-04   -1.4587    
  10  Prefactor     7.2529        5.8283        .14895E-03   -1.5169    
  11  norm          4.4490        2.3740        .89171E-04   -1.5286    
  12  Prefactor     .10000E-03    7.0836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.2170        3.1495        .88345E-04   -1.5135    
  14  Prefactor     44.210        42.160        .60304E-04   -1.4377    
  15  Prefactor     .10000E-03    32.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    36.084        .39314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          13.627        13.467        .10850E-03   -1.4969    
  18  norm          .10000E-03    2.7792        .13518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     38.381        40.175        .64678E-04   -1.4468    
  20  Prefactor     .10000E-03    5.0371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    92.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.2096        .89650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    38.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          20.276        3.5240        .62807E-04   -1.4807    
  26  norm          20.486        44.635        .88509E-04   -1.4802    
  27  norm          1.3518        2.9181        .20073E-03   -1.5475    
  28  Prefactor     10.466        35.622        .12386E-03   -1.5061    
  29  Normalizat    1.0023        .20198        .25412E-03   -.92953    
  30  Prefactor     1.1764        .23781        .29348E-03   -.87062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.69155e-09
Minuit parameter uncertainties:
  1  2.9175
  2  0.000158652
  3  6.2331e-05
  4  9.60372
  5  0.000462618
  6  1.64907
  7  0.000698736
  8  0.0129125
  9  30.9422
  10  5.82871
  11  2.37405
  12  4.27561e-06
  13  3.14952
  14  42.1889
  15  5.8763e-05
  16  0.00178666
  17  13.4699
  18  1.19015e-05
  19  40.2033
  20  3.43557e-06
  21  0.00083263
  22  2.40606e-06
  23  0.000112025
  24  0.000328889
  25  3.52408
  26  44.7074
  27  2.9184
  28  35.6942
  29  0.202138
  30  0.238031
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  8.217e+00  3.150e+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.176e+00  2.380e-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.002e+00  2.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.53
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 7.98e-08 +/- 3.06e-08
Energy Flux (Fixed Index): 5.77e-05 +/- 2.21e-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) = 7023.80050358
delta logL = 1.56509466349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7023.79676391
delta logL = 1.56883433906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1397       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6172       1.0000          .0000       5.0000    
     3 'Normalizat'    .91985       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2375       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=   7023.797     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      244 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1394        21.065        .44333E-02    .10345E-03
   2  alpha         2.6173        3.6157        .16200        .93025E-04
   3  Normalizat    .91981        .11191        .45155E-01    .15967E-04
   4  Prefactor     1.2375        .96866E-01    .64840E-01    .11816E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.13939
  alpha      = 2.61729
  Normalizat = 0.919805
  Prefactor  = 1.2375
 **********
 **   18 **HESSE 
 **********

 FCN=   7023.797     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1394        3.2476        .58843E-04   -1.5255    
   2  alpha         2.6173        .44843        .66868E-02    .46933E-01
   3  Normalizat    .91981        .19873        .26332E-03   -.95768    
   4  Prefactor     1.2375        .24059        .28680E-03   -.85185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46377e-11
Minuit parameter uncertainties:
  1  3.24772
  2  0.450873
  3  0.198886
  4  0.240808
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/960114': 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) = 7023.79676387
delta logL = 1.56883437327

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  5.139e+00  3.248e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.617e+00  4.509e-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.237e+00  2.408e-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.198e-01  1.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.55
Ra Dec: 193.307 53.017
Photon Index (Free Index): 2.62 +/- 0.45
Photon Flux (Free Index): 1.46e-07 +/- 6.00e-08
Energy Flux (Free Index): 4.13e-05 +/- 1.46e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/960114/cmap_HighResolution_571363201_571622401_4FGL_J1253.2+5301_daily_bin1281.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.98e-08', energy_flux2='4.13e-05', photon_flux_error='3.06e-08', dlogl='1.57e+00', energy_flux='5.77e-05', photon_flux2='1.46e-07', job_status='DONE', time_completed='2021-09-06 07:57:18.370382', photon_index_error2='0.45', photon_index2='2.62', ts='19.53', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='1.46e-05', EG='1.00', time_epoch_completed='1630940238.37', return_code='0', job_id='960114', GAL2='1.24', EG2='0.92', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='6.00e-08', ts2='22.55', photon_index='1.93' WHERE bin_id='1281' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:57:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 960114: <4FGL_J1253.2+5301_daily_bin1281> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin1281> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 07:40:50 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:40:51 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:40:51 2021
Terminated at Mon Sep  6 07:57:19 2021
Results reported at Mon Sep  6 07:57:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin1281 193.307 53.0173 571363201 571622401 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 :                                   882.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            989 sec.

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

