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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin1473
RA = 193.307, Dec = 53.0173
tmin = 621129601, tmax = 621388801
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='961768', job_status='RUN', time_executed='2021-09-06 07:46:06.428141', time_epoch_executed='1630939566.43' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='1473'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/961768

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/961768/ft1_4FGL_J1253.2+5301_daily_bin1473.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/961768/ft2_4FGL_J1253.2+5301_daily_bin1473.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/961768/ft1_4FGL_J1253.2+5301_daily_bin1473.fits outfile=/scratch/kocevski/961768/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1473.fits ra=193.307 dec=53.0173 rad=12.0 tmin=621129601.0 tmax=621388801.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.12
user 2.89
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/961768/ft1_filtered_4FGL_J1253.2+5301_daily_bin1473.fits evtable="EVENTS" scfile=/scratch/kocevski/961768/ft2_4FGL_J1253.2+5301_daily_bin1473.fits sctable="SC_DATA" expcube=/scratch/kocevski/961768/ltcube_621129601_621388801_4FGL_J1253.2+5301_daily_bin1473.fits outfile=/scratch/kocevski/961768/expmap_621129601_621388801_4FGL_J1253.2+5301_daily_bin1473.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/961768/ltcube_621129601_621388801_4FGL_J1253.2+5301_daily_bin1473.fits
.....................!
real 190.71
user 185.21
sys 5.07

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/961768/ft1_filtered_4FGL_J1253.2+5301_daily_bin1473.fits scfile=/scratch/kocevski/961768/ft2_4FGL_J1253.2+5301_daily_bin1473.fits outfile=/scratch/kocevski/961768/cmap_621129601_621388801_4FGL_J1253.2+5301_daily_bin1473.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/961768/ft1_filtered_4FGL_J1253.2+5301_daily_bin1473.fits scfile=/scratch/kocevski/961768/ft2_4FGL_J1253.2+5301_daily_bin1473.fits outfile=/scratch/kocevski/961768/cmap_HighResolution_621129601_621388801_4FGL_J1253.2+5301_daily_bin1473.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6100       1.0000         .10000E-03   10000.    
     2 'norm      '    .11321E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10594E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.891       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23224       1.0000         .10000E-03   10000.    
     6 'norm      '    3.5067       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.4044       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.1632       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.837       1.0000         .10000E-03   10000.    
    13 'norm      '    2.7097       1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.899       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.6185       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.955       1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.3468       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.653       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    49.888       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.9327       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.8520       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2539       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .68291       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=   4940.307     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     3307 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6086        1.0215       -.24018E-08   -.46002E-04
   2  norm          .10000E-03    11.089        .82069E-06** at limit **
   3  Prefactor     .10025E-03    31.326       -.11901E-05** at limit **
   4  Prefactor     12.979        9.4483       -.10727E-05    .37844E-02
   5  Prefactor     .10381E-03    854.53        .41828E-04** at limit **
   6  norm          3.5063        3.4794        .85079E-07   -.10237E-04
   7  Prefactor     .10051E-03    14.746        .98446E-06** at limit **
   8  norm          6.4049        1.0159       -.82313E-08   -.24064E-04
   9  Prefactor     .10001E-03    14.234       -.15305E-05** at limit **
  10  Prefactor     .10000E-03    7.4713       -.96761E-06** at limit **
  11  norm          4.1631        2.3389        .22227E-06    .12313E-03
  12  Prefactor     18.827        1.7309        .11823E-06   -.40264E-02
  13  norm          2.7096        1.8648       -.73732E-08   -.13533E-04
  14  Prefactor     29.898        1.0071        .11777E-07   -.45243E-03
  15  Prefactor     8.6071        1.2163        .17785E-06   -.22384E-03
  16  Prefactor     10.955        1.0403       -.26219E-07    .78950E-03
  17  norm          .10000E-03    9.5120        .51425E-08** at limit **
  18  norm          4.3478        4.7342       -.21573E-06    .48445E-05
  19  Prefactor     .10000E-03    8.8581        .17975E-05** at limit **
  20  Prefactor     16.654        1.0303       -.49746E-07    .15012E-02
  21  Prefactor     .10000E-03    7.7708        .72996E-06** at limit **
  22  norm          .10000E-03    2.7108       -.31546E-06** at limit **
  23  Prefactor     49.871        1.3949        .10484E-06   -.75949E-03
  24  Prefactor     4.9284        1.0919        .10594E-06   -.53135E-03
  25  norm          .10000E-03    .57099       -.63974E-06** at limit **
  26  norm          .10024E-03    11.170        .16409E-05** at limit **
  27  norm          .10000E-03    .97991       -.10924E-06** at limit **
  28  Prefactor     8.8970        3.0255       -.66228E-06   -.15749E-03
  29  Normalizat    1.2538        .21250        .17840E-06   -.66025E-04
  30  Prefactor     .68309        .25226       -.95417E-06   -.45773E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.60861
  norm       = 0.000100002
  Prefactor  = 0.000100255
  Prefactor  = 12.979
  Prefactor  = 0.000103806
  norm       = 3.50633
  Prefactor  = 0.000100509
  norm       = 6.40489
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 4.16306
  Prefactor  = 18.8274
  norm       = 2.70961
  Prefactor  = 29.8979
  Prefactor  = 8.60707
  Prefactor  = 10.9554
  norm       = 0.0001
  norm       = 4.34777
  Prefactor  = 0.000100004
  Prefactor  = 16.6538
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 49.8714
  Prefactor  = 4.92845
  norm       = 0.0001
  norm       = 0.000100244
  norm       = 0.0001
  Prefactor  = 8.89699
  Normalizat = 1.25382
  Prefactor  = 0.683086
 **********
 **   18 **HESSE 
 **********

 FCN=   4940.307     FROM HESSE     STATUS=OK           660 CALLS     3967 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6086        6.9641        .36343E-02   -1.5156    
   2  norm          .10000E-03    11.053        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10025E-03    35.664        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.979        13.042        .27891E-02   -1.4987    
   5  Prefactor     .10381E-03    18.222        .15085       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.5063        3.5149        .53975E-02   -1.5333    
   7  Prefactor     .10051E-03    25.474        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.4049        7.1753        .39650E-02   -1.5202    
   9  Prefactor     .10001E-03    14.368        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.2537        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.1631        2.3776        .49384E-02   -1.5300    
  12  Prefactor     18.827        21.025        .23070E-02   -1.4840    
  13  norm          2.7096        1.8655        .61860E-02   -1.5379    
  14  Prefactor     29.898        29.047        .18318E-02   -1.4614    
  15  Prefactor     8.6071        57.209        .34136E-02   -1.5121    
  16  Prefactor     10.955        10.685        .30261E-02   -1.5046    
  17  norm          .10000E-03    9.4887        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.3478        4.7739        .48300E-02   -1.5291    
  19  Prefactor     .10000E-03    21.729        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.654        17.645        .24537E-02   -1.4892    
  21  Prefactor     .10000E-03    7.7818        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.6849        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     49.871        47.397        .14194E-02   -1.4294    
  24  Prefactor     4.9284        71.201        .45273E-02   -1.5264    
  25  norm          .10000E-03    .56022        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10024E-03    20.678        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .97510        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     8.8970        83.515        .33680E-02   -1.5111    
  29  Normalizat    1.2538        .19700        .33685E-01   -.84956    
  30  Prefactor     .68309        .22323        .74051E-01   -1.0419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15506e-07
Minuit parameter uncertainties:
  1  6.96485
  2  0.000258382
  3  0.00603299
  4  13.0449
  5  0.0166603
  6  3.51515
  7  0.00720454
  8  7.17629
  9  0.000731525
  10  4.30434e-05
  11  2.37761
  12  21.0336
  13  1.86557
  14  29.061
  15  44.4418
  16  10.6873
  17  9.14804e-05
  18  4.7743
  19  0.000589159
  20  17.6501
  21  4.56301e-05
  22  4.556e-06
  23  47.4331
  24  37.5186
  25  4.34252e-06
  26  0.00449646
  27  8.42288e-07
  28  54.6176
  29  0.197121
  30  0.223525
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.710e+00  1.866e+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:  6.831e-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:  1.254e+00  1.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.75
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 2.63e-08 +/- 1.81e-08
Energy Flux (Fixed Index): 1.90e-05 +/- 1.31e-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) = 4940.24381054
delta logL = 0.0634693413995

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4940.24157649
delta logL = 0.0657033896214

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8245       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7268       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2579       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68117       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=   4940.242     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      198 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8247        76.708        .60499E-02   -.70932E-04
   2  alpha         1.7268        3.1005        .36422        .49981E-05
   3  Normalizat    1.2580        .19300        .33604E-01    .23472E-04
   4  Prefactor     .68113        .17934        .74160E-01    .21099E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.82475
  alpha      = 1.72682
  Normalizat = 1.25799
  Prefactor  = 0.681127
 **********
 **   18 **HESSE 
 **********

 FCN=   4940.242     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .72E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8247        1.9848        .80766E-04   -1.5372    
   2  alpha         1.7268        .55570        .13731E-01   -.31443    
   3  Normalizat    1.2580        .20815        .10336E-02   -.84829    
   4  Prefactor     .68113        .25112        .32827E-03   -1.0427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.17886e-14
Minuit parameter uncertainties:
  1  1.98481
  2  0.560887
  3  0.208292
  4  0.251541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/961768': 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) = 4940.24157644
delta logL = 0.0657034373971

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.825e+00  1.985e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.727e+00  5.609e-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:  6.811e-01  2.515e-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.258e+00  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.88
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.73 +/- 0.56
Photon Flux (Free Index): 2.15e-08 +/- 1.94e-08
Energy Flux (Free Index): 2.42e-05 +/- 2.48e-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/961768/cmap_HighResolution_621129601_621388801_4FGL_J1253.2+5301_daily_bin1473.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.63e-08', energy_flux2='2.42e-05', photon_flux_error='1.81e-08', dlogl='6.57e-02', energy_flux='1.90e-05', photon_flux2='2.15e-08', job_status='DONE', time_completed='2021-09-06 07:59:19.865191', photon_index_error2='0.56', photon_index2='1.73', ts='7.75', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='2.48e-05', EG='1.25', time_epoch_completed='1630940359.87', return_code='0', job_id='961768', GAL2='0.68', EG2='1.26', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='1.94e-08', ts2='7.88', photon_index='1.93' WHERE bin_id='1473' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:59:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 961768: <4FGL_J1253.2+5301_daily_bin1473> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin1473> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 07:45:43 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:45:44 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:45:44 2021
Terminated at Mon Sep  6 07:59:20 2021
Results reported at Mon Sep  6 07:59:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin1473 193.307 53.0173 621129601 621388801 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 :                                   681.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            817 sec.

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

