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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin1083
RA = 193.307, Dec = 53.0173
tmin = 520041601, tmax = 520300801
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='958847', job_status='RUN', time_executed='2021-09-06 07:37:54.232314', time_epoch_executed='1630939074.23' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='1083'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958847

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958847/ft1_4FGL_J1253.2+5301_daily_bin1083.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958847/ft2_4FGL_J1253.2+5301_daily_bin1083.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958847/ft1_4FGL_J1253.2+5301_daily_bin1083.fits outfile=/scratch/kocevski/958847/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1083.fits ra=193.307 dec=53.0173 rad=12.0 tmin=520041601.0 tmax=520300801.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 4.72
user 4.04
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/958847/ft1_filtered_4FGL_J1253.2+5301_daily_bin1083.fits" evtable="EVENTS" scfile=/scratch/kocevski/958847/ft2_4FGL_J1253.2+5301_daily_bin1083.fits sctable="SC_DATA" outfile=/scratch/kocevski/958847/ltcube_520041601_520300801_4FGL_J1253.2+5301_daily_bin1083.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/958847/ft2_4FGL_J1253.2+5301_daily_bin1083.fits
.....................!
real 12.53
user 11.35
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958847/ft1_filtered_4FGL_J1253.2+5301_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/958847/ft2_4FGL_J1253.2+5301_daily_bin1083.fits sctable="SC_DATA" expcube=/scratch/kocevski/958847/ltcube_520041601_520300801_4FGL_J1253.2+5301_daily_bin1083.fits outfile=/scratch/kocevski/958847/expmap_520041601_520300801_4FGL_J1253.2+5301_daily_bin1083.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/958847/ltcube_520041601_520300801_4FGL_J1253.2+5301_daily_bin1083.fits
.....................!
real 196.02
user 186.82
sys 3.92

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/958847/ft1_filtered_4FGL_J1253.2+5301_daily_bin1083.fits scfile=/scratch/kocevski/958847/ft2_4FGL_J1253.2+5301_daily_bin1083.fits outfile=/scratch/kocevski/958847/cmap_520041601_520300801_4FGL_J1253.2+5301_daily_bin1083.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.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3404       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6616       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12245E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.7482       1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.774       1.0000         .10000E-03   10000.    
     8 'norm      '    13.400       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .32121E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.9517       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.343       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12100E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    17.262       1.0000         .10000E-03   10000.    
    18 'norm      '    4.7229       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.391       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    104.48       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    34.152       1.0000         .10000E-03   10000.    
    25 'norm      '    7.1723       1.0000         .10000E-03   10000.    
    26 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    9.8446       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .13402E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0638       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .61929       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5023.815     FROM MIGRAD    STATUS=CONVERGED     98 CALLS     3273 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3405        3.2067        .59389E-07    .42051E-03
   2  norm          .10000E-03    1.9247        .13575E-06** at limit **
   3  Prefactor     2.6591        1.0509        .25997E-07   -.98982E-04
   4  Prefactor     .10001E-03    4.4791       -.26783E-06** at limit **
   5  Prefactor     .10001E-03    4.5801        .53440E-06** at limit **
   6  norm          3.7481        2.8219        .11936E-05    .70307E-03
   7  Prefactor     38.770        1.0854       -.11801E-07    .17364E-02
   8  norm          13.399        1.0135       -.14205E-07    .61494E-04
   9  Prefactor     .14697E-03    16.964        .92838E-06** at limit **
  10  Prefactor     .10000E-03    2.0060       -.50208E-06** at limit **
  11  norm          6.9517        2.7368        .50616E-06    .55483E-03
  12  Prefactor     .10162E-03    21.864       -.18754E-05** at limit **
  13  norm          .10000E-03    .61014        .31436E-06** at limit **
  14  Prefactor     24.352        1.2170       -.34472E-07   -.97832E-04
  15  Prefactor     .11265E-03    45.867        .41969E-05** at limit **
  16  Prefactor     .10000E-03    5.4312        .66836E-06** at limit **
  17  norm          17.262        1.0019       -.72347E-08    .36279E-04
  18  norm          4.7222        4.3925        .97035E-07   -.20406E-02
  19  Prefactor     14.392        1.0054       -.45197E-08    .57467E-04
  20  Prefactor     .10000E-03    13.598       -.56508E-06** at limit **
  21  Prefactor     104.48        1.1665        .10591E-07   -.36644E-02
  22  norm          .10000E-03    1.1606       -.32026E-06** at limit **
  23  Prefactor     .10001E-03    17.084        .67564E-06** at limit **
  24  Prefactor     34.151        1.0013       -.30857E-08    .14472E-03
  25  norm          7.1722        2.7525        .23484E-05    .27068E-02
  26  norm          .10123E-03    20.010        .57862E-07** at limit **
  27  norm          9.8449        1.0159       -.63649E-07    .19922E-03
  28  Prefactor     .10332E-03    50.502        .31618E-05** at limit **
  29  Normalizat    1.0638        .19564       -.82088E-07    .25162E-04
  30  Prefactor     .61924        .23278       -.90144E-06    .13322E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.34049
  norm       = 0.0001
  Prefactor  = 2.65905
  Prefactor  = 0.000100009
  Prefactor  = 0.00010001
  norm       = 3.74809
  Prefactor  = 38.7696
  norm       = 13.3992
  Prefactor  = 0.000146968
  Prefactor  = 0.0001
  norm       = 6.95171
  Prefactor  = 0.000101616
  norm       = 0.0001
  Prefactor  = 24.3524
  Prefactor  = 0.000112648
  Prefactor  = 0.0001
  norm       = 17.262
  norm       = 4.72218
  Prefactor  = 14.3924
  Prefactor  = 0.000100004
  Prefactor  = 104.482
  norm       = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 34.1514
  norm       = 7.17219
  norm       = 0.000101235
  norm       = 9.84488
  Prefactor  = 0.000103315
  Normalizat = 1.06385
  Prefactor  = 0.619238
 **********
 **   18 **HESSE 
 **********

 FCN=   5023.815     FROM HESSE     STATUS=OK           656 CALLS     3929 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3405        3.4374        .39852E-02   -1.5204    
   2  norm          .10000E-03    1.9077        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6591        26.016        .62460E-02   -1.5382    
   4  Prefactor     .10001E-03    8.4009        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    8.7472        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.7481        2.8357        .52137E-02   -1.5321    
   7  Prefactor     38.770        52.802        .16092E-02   -1.4462    
   8  norm          13.399        11.010        .27355E-02   -1.4976    
   9  Prefactor     .14697E-03    30.406        .11180       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0016        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.9517        2.7412        .38040E-02   -1.5181    
  12  Prefactor     .10162E-03    39.029        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .60835        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.352        23.508        .20297E-02   -1.4721    
  15  Prefactor     .11265E-03    97.066        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.4080        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          17.262        15.524        .24100E-02   -1.4877    
  18  norm          4.7222        4.4608        .46289E-02   -1.5273    
  19  Prefactor     14.392        36.664        .26395E-02   -1.4949    
  20  Prefactor     .10000E-03    13.513        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     104.48        49.130        .98351E-03   -1.3660    
  22  norm          .10000E-03    1.1592        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    17.144        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     34.151        34.968        .17143E-02   -1.4539    
  25  norm          7.1722        2.7792        .37445E-02   -1.5172    
  26  norm          .10123E-03    43.143        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          9.8449        5.9299        .31929E-02   -1.5080    
  28  Prefactor     .10332E-03    115.35        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0638        .17512        .39716E-01   -.90921    
  30  Prefactor     .61924        .20517        .73230E-01   -1.0678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81037e-07
Minuit parameter uncertainties:
  1  3.43747
  2  7.25792e-07
  3  16.6437
  4  0.000553347
  5  0.000588973
  6  2.83577
  7  52.8662
  8  11.0116
  9  0.0756192
  10  2.30148e-06
  11  2.74122
  12  0.0158961
  13  5.67073e-07
  14  23.5172
  15  0.0701893
  16  5.70822e-06
  17  15.5276
  18  4.46106
  19  36.721
  20  0.000439902
  21  49.1486
  22  8.43189e-07
  23  0.000978967
  24  34.9894
  25  2.77926
  26  0.0146092
  27  5.93022
  28  0.0391859
  29  0.175217
  30  0.205419
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.000e-04  5.671e-07  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:  6.192e-01  2.054e-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.064e+00  1.752e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.307 53.017
Photon Flux Upper Limit: 3.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.38e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/958847/likelihoodResults_520041601_520300801_4FGL_J1253.2+5301_daily_bin1083.txt

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) = 5023.81509616
delta logL = -2.29260967899e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5023.81507741
delta logL = -4.17402679886e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10133E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9275       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0636       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61974       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=   5023.815     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      234 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .61331        .53994E-03** at limit **
   2  alpha         1.8371        3.8994        .17042E-01    .48031E-07
   3  Normalizat    1.0638        .19068        .20873E-03    .73202E-04
   4  Prefactor     .61924        .23192        .32418E-03    .48852E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.83712
  Normalizat = 1.06385
  Prefactor  = 0.619238
 **********
 **   18 **HESSE 
 **********

 FCN=   5023.815     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .61248        .10799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8371        3.9643        .68169E-03   -.26836    
   3  Normalizat    1.0638        .19083        .83492E-05   -.90921    
   4  Prefactor     .61924        .23211        .12967E-04   -1.0678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26075e-11
Minuit parameter uncertainties:
  1  1.37341e-06
  2  117.784
  3  0.190955
  4  0.232466
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958847': 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) = 5023.81507292
delta logL = 3.07328264171e-07

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.000e-04  1.373e-06  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.837e+00  1.178e+02  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:  6.192e-01  2.325e-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.064e+00  1.910e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.307 53.017

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/958847/cmap_HighResolution_520041601_520300801_4FGL_J1253.2+5301_daily_bin1083.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.38e-05', job_status='DONE', photon_flux_upper_limit='3.29e-08', time_completed='2021-09-06 07:51:24.515613', job_id='958847', GAL2='0.62', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630939884.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='3.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1083' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:51:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 958847: <4FGL_J1253.2+5301_daily_bin1083> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin1083 193.307 53.0173 520041601 520300801 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 :                                   780.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            898 sec.

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

