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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin1572
RA = 193.307, Dec = 53.0173
tmin = 646790401, tmax = 647049601
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='961910', job_status='RUN', time_executed='2021-09-06 07:48:11.487529', time_epoch_executed='1630939691.49' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='1572'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/961910

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/961910/ft1_4FGL_J1253.2+5301_daily_bin1572.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/961910/ft2_4FGL_J1253.2+5301_daily_bin1572.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/961910/ft1_4FGL_J1253.2+5301_daily_bin1572.fits outfile=/scratch/kocevski/961910/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1572.fits ra=193.307 dec=53.0173 rad=12.0 tmin=646790401.0 tmax=647049601.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.63
user 3.35
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/961910/ft1_filtered_4FGL_J1253.2+5301_daily_bin1572.fits evtable="EVENTS" scfile=/scratch/kocevski/961910/ft2_4FGL_J1253.2+5301_daily_bin1572.fits sctable="SC_DATA" expcube=/scratch/kocevski/961910/ltcube_646790401_647049601_4FGL_J1253.2+5301_daily_bin1572.fits outfile=/scratch/kocevski/961910/expmap_646790401_647049601_4FGL_J1253.2+5301_daily_bin1572.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/961910/ltcube_646790401_647049601_4FGL_J1253.2+5301_daily_bin1572.fits
.....................!
real 190.36
user 185.86
sys 4.13

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/961910/ft1_filtered_4FGL_J1253.2+5301_daily_bin1572.fits scfile=/scratch/kocevski/961910/ft2_4FGL_J1253.2+5301_daily_bin1572.fits outfile=/scratch/kocevski/961910/cmap_646790401_647049601_4FGL_J1253.2+5301_daily_bin1572.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/961910/ft1_filtered_4FGL_J1253.2+5301_daily_bin1572.fits scfile=/scratch/kocevski/961910/ft2_4FGL_J1253.2+5301_daily_bin1572.fits outfile=/scratch/kocevski/961910/cmap_HighResolution_646790401_647049601_4FGL_J1253.2+5301_daily_bin1572.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.61
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9570       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8985       1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.662       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.9997       1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.584       1.0000         .10000E-03   10000.    
     8 'norm      '    9.1121       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.672       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8992       1.0000         .10000E-03   10000.    
    11 'norm      '    4.5558       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13808E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3245       1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.371       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8365       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.761       1.0000         .10000E-03   10000.    
    17 'norm      '    6.6188       1.0000         .10000E-03   10000.    
    18 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    43.614       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10432E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .88441       1.0000         .10000E-03   10000.    
    26 'norm      '    18.508       1.0000         .10000E-03   10000.    
    27 'norm      '    1.4658       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3245       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .44984       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=   6253.970     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     4016 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9554        4.1444       -.15349E-05   -.86440E-03
   2  norm          1.8976        3.3769        .65912E-06   -.40262E-03
   3  Prefactor     35.662        28.374       -.28447E-06    .21927E-04
   4  Prefactor     .10000E-03    3.6262        .13362E-05** at limit **
   5  Prefactor     .10000E-03    7.8895       -.54178E-05** at limit **
   6  norm          4.9987        2.3896       -.23714E-06   -.19094E-03
   7  Prefactor     42.539        56.288       -.57073E-04    .98376E-05
   8  norm          9.1111        7.0935        .41954E-07   -.92933E-04
   9  Prefactor     20.661        21.130       -.54381E-05   -.56224E-04
  10  Prefactor     3.8978        5.0176        .20287E-05   -.16741E-03
  11  norm          4.5557        2.6236       -.25825E-06   -.84276E-04
  12  Prefactor     .10000E-03    41.964        .10245E-04** at limit **
  13  norm          1.3244        1.1153       -.11957E-06   -.28299E-04
  14  Prefactor     36.361        39.808       -.11088E-04   -.28191E-05
  15  Prefactor     4.8297        53.710       -.18818E-04   -.19635E-04
  16  Prefactor     12.755        12.775       -.11221E-05   -.10742E-03
  17  norm          6.6193        10.073       -.16816E-05   -.84972E-03
  18  norm          .10000E-03    1.3764        .40832E-07** at limit **
  19  Prefactor     43.607        33.162       -.65689E-05    .17344E-04
  20  Prefactor     .10000E-03    7.7266        .54290E-05** at limit **
  21  Prefactor     .10000E-03    16.442        .20681E-06** at limit **
  22  norm          .10000E-03    3.5656       -.13384E-05** at limit **
  23  Prefactor     .10000E-03    11.026        .12850E-05** at limit **
  24  Prefactor     .10000E-03    10.952       -.17484E-06** at limit **
  25  norm          .88452        1.5443       -.69714E-06   -.13992E-02
  26  norm          18.428        55.966       -.15008E-03    .21374E-04
  27  norm          1.4666        2.6558        .44461E-05   -.87487E-03
  28  Prefactor     .10000E-03    28.354       -.65364E-05** at limit **
  29  Normalizat    1.3250        .17040        .18822E-05   -.16983E-03
  30  Prefactor     .44938        .19345        .10302E-04    .43068E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.95544
  norm       = 1.89762
  Prefactor  = 35.6621
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.99866
  Prefactor  = 42.5388
  norm       = 9.11111
  Prefactor  = 20.6608
  Prefactor  = 3.89784
  norm       = 4.55571
  Prefactor  = 0.000100004
  norm       = 1.32443
  Prefactor  = 36.3612
  Prefactor  = 4.82973
  Prefactor  = 12.7549
  norm       = 6.61935
  norm       = 0.0001
  Prefactor  = 43.6066
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.884521
  norm       = 18.4285
  norm       = 1.46661
  Prefactor  = 0.0001
  Normalizat = 1.32499
  Prefactor  = 0.449379
 **********
 **   18 **HESSE 
 **********

 FCN=   6253.970     FROM HESSE     STATUS=OK           596 CALLS     4612 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9554        4.0411        .18675E-03   -1.5428    
   2  norm          1.8976        3.3449        .18624E-03   -1.5432    
   3  Prefactor     35.662        27.820        .67108E-04   -1.4513    
   4  Prefactor     .10000E-03    3.6450        .14683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.8851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.9987        2.3942        .80304E-04   -1.5261    
   7  Prefactor     42.539        56.320        .61432E-04   -1.4403    
   8  norm          9.1111        7.0850        .13277E-03   -1.5104    
   9  Prefactor     20.661        21.150        .88094E-04   -1.4799    
  10  Prefactor     3.8978        5.0031        .18651E-03   -1.5313    
  11  norm          4.5557        2.6198        .88043E-04   -1.5281    
  12  Prefactor     .10000E-03    43.642        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3244        1.1152        .38203E-04   -1.5478    
  14  Prefactor     36.361        39.829        .66453E-04   -1.4501    
  15  Prefactor     4.8297        53.738        .18292E-03   -1.5268    
  16  Prefactor     12.755        12.802        .11213E-03   -1.4994    
  17  norm          6.6193        10.073        .77989E-03   -1.5193    
  18  norm          .10000E-03    1.3903        .90534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     43.607        33.122        .60705E-04   -1.4386    
  20  Prefactor     .10000E-03    7.7484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.6598        .29117E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .88452        1.4211        .12450E-02   -1.5520    
  26  norm          18.428        55.939        .93099E-04   -1.4849    
  27  norm          1.4666        2.6226        .16310E-03   -1.5466    
  28  Prefactor     .10000E-03    28.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.3250        .18772        .19317E-03   -.82823    
  30  Prefactor     .44938        .20848        .37401E-03   -1.1436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25459e-09
Minuit parameter uncertainties:
  1  4.04164
  2  3.34522
  3  27.8302
  4  6.68943e-05
  5  0.000191555
  6  2.39429
  7  56.3906
  8  7.08563
  9  21.1581
  10  5.00361
  11  2.61983
  12  0.000867208
  13  1.11524
  14  39.858
  15  32.2569
  16  12.8043
  17  10.0752
  18  2.49178e-07
  19  33.1363
  20  3.97745e-05
  21  7.00863e-05
  22  4.10981e-05
  23  2.26285e-05
  24  4.29264e-05
  25  1.42113
  26  56.0985
  27  2.62281
  28  7.66948e-05
  29  0.187815
  30  0.208836
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.324e+00  1.115e+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:  4.494e-01  2.088e-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.325e+00  1.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.27
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.29e-08 +/- 1.08e-08
Energy Flux (Fixed Index): 9.29e-06 +/- 7.83e-06

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) = 6253.96365775
delta logL = 0.00662613711575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6253.96311037
delta logL = 0.00717352348693

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3612       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8367       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3264       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .44841       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=   6253.963     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      195 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3612        41.799        .93571E-02    .64054E-03
   2  alpha         1.8367        3.5033        .43150        .40988E-05
   3  Normalizat    1.3264        .10114        .32349E-01   -.23556E-04
   4  Prefactor     .44841        .84146E-01    .84498E-01    .81520E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.36123
  alpha      = 1.83673
  Normalizat = 1.32637
  Prefactor  = 0.448413
 **********
 **   18 **HESSE 
 **********

 FCN=   6253.963     FROM HESSE     STATUS=OK            33 CALLS      228 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3612        1.1804        .75826E-04   -1.5475    
   2  alpha         1.8367        .76774        .20069E-01   -.26852    
   3  Normalizat    1.3264        .17422        .19309E-03   -.82783    
   4  Prefactor     .44841        .20572        .37438E-03   -1.1441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.07907e-11
Minuit parameter uncertainties:
  1  1.18038
  2  0.78135
  3  0.174295
  4  0.206061
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/961910': 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) = 6253.96311037
delta logL = 0.00717352358151

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.361e+00  1.180e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.837e+00  7.813e-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:  4.484e-01  2.061e-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.326e+00  1.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.28
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.84 +/- 0.78
Photon Flux (Free Index): 1.17e-08 +/- 1.31e-08
Energy Flux (Free Index): 1.03e-05 +/- 1.31e-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/961910/cmap_HighResolution_646790401_647049601_4FGL_J1253.2+5301_daily_bin1572.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.29e-08', energy_flux2='1.03e-05', photon_flux_error='1.08e-08', dlogl='7.17e-03', energy_flux='9.29e-06', photon_flux2='1.17e-08', job_status='DONE', time_completed='2021-09-06 08:02:25.120105', photon_index_error2='0.78', photon_index2='1.84', ts='4.27', fit_tolerance='1e-08', GAL='0.45', photon_index_error='0.00', energy_flux_error2='1.31e-05', EG='1.32', time_epoch_completed='1630940545.12', return_code='0', job_id='961910', GAL2='0.45', EG2='1.33', return_code2='0', energy_flux_error='7.83e-06', photon_flux_error2='1.31e-08', ts2='4.28', photon_index='1.93' WHERE bin_id='1572' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:02:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 961910: <4FGL_J1253.2+5301_daily_bin1572> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin1572> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 07:45:52 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:45:54 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:54 2021
Terminated at Mon Sep  6 08:02:25 2021
Results reported at Mon Sep  6 08:02:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin1572 193.307 53.0173 646790401 647049601 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 :                                   849.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            993 sec.

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

