/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 180 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 = 7469
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1253.2+5301_daily_bin21
RA = 193.307, Dec = 53.0173
tmin = 244771201, tmax = 245030401
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='952283', job_status='RUN', time_executed='2021-09-06 07:19:42.604194', time_epoch_executed='1630937982.6' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='21'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952283

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/952283/ft1_4FGL_J1253.2+5301_daily_bin21.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/952283/ft2_4FGL_J1253.2+5301_daily_bin21.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/952283/ft1_4FGL_J1253.2+5301_daily_bin21.fits outfile=/scratch/kocevski/952283/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin21.fits ra=193.307 dec=53.0173 rad=12.0 tmin=244771201.0 tmax=245030401.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 1.49
user 1.29
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/952283/ft2_4FGL_J1253.2+5301_daily_bin21.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/952283/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin21.fits evtable="EVENTS" outfile="/scratch/kocevski/952283/ft1_filtered_4FGL_J1253.2+5301_daily_bin21.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.53
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952283/ft1_filtered_4FGL_J1253.2+5301_daily_bin21.fits evtable="EVENTS" scfile=/scratch/kocevski/952283/ft2_4FGL_J1253.2+5301_daily_bin21.fits sctable="SC_DATA" expcube=/scratch/kocevski/952283/ltcube_244771201_245030401_4FGL_J1253.2+5301_daily_bin21.fits outfile=/scratch/kocevski/952283/expmap_244771201_245030401_4FGL_J1253.2+5301_daily_bin21.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/952283/ltcube_244771201_245030401_4FGL_J1253.2+5301_daily_bin21.fits
.....................!
real 190.31
user 185.84
sys 3.95

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/952283/ft1_filtered_4FGL_J1253.2+5301_daily_bin21.fits scfile=/scratch/kocevski/952283/ft2_4FGL_J1253.2+5301_daily_bin21.fits outfile=/scratch/kocevski/952283/cmap_244771201_245030401_4FGL_J1253.2+5301_daily_bin21.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.63
user 0.38
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.214       1.0000         .10000E-03   10000.    
     6 'norm      '    2.2354       1.0000         .10000E-03   10000.    
     7 'Prefactor '    66.784       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.274       1.0000         .10000E-03   10000.    
    11 'norm      '    5.3071       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.695       1.0000         .10000E-03   10000.    
    13 'norm      '    .53677       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.905       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .25483E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.7418       1.0000         .10000E-03   10000.    
    23 'Prefactor '    45.215       1.0000         .10000E-03   10000.    
    24 'Prefactor '    81.875       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.3969       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0609       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .97380       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=   4584.424     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     3820 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5579        .72303E-07** at limit **
   2  norm          .10000E-03    1.8998        .55537E-07** at limit **
   3  Prefactor     .10014E-03    15.203       -.59176E-06** at limit **
   4  Prefactor     .10000E-03    4.2247        .66742E-07** at limit **
   5  Prefactor     30.240        18.046        .91541E-06    .56590E-02
   6  norm          2.2365        2.8610       -.64404E-08    .85129E-04
   7  Prefactor     66.807        6.0457        .54894E-06    .95612E-03
   8  norm          .10000E-03    2.1227       -.14733E-06** at limit **
   9  Prefactor     .10000E-03    9.8681        .45260E-06** at limit **
  10  Prefactor     11.272        1.1903       -.62131E-07   -.46609E-04
  11  norm          5.3082        3.4454       -.19533E-07    .17669E-04
  12  Prefactor     17.693        18.175       -.79421E-07   -.10258E-01
  13  norm          .53843        2.8094        .18259E-07    .42405E-04
  14  Prefactor     .10009E-03    17.879        .84143E-06** at limit **
  15  Prefactor     36.876        7.4807       -.93313E-06   -.22089E-02
  16  Prefactor     .10000E-03    8.8797       -.46109E-06** at limit **
  17  norm          .10000E-03    7.3397       -.24593E-07** at limit **
  18  norm          .10000E-03    2.0708       -.14206E-06** at limit **
  19  Prefactor     .74922E-03    1127.3       -.50976E-04** at limit **
  20  Prefactor     .10000E-03    9.1335       -.82692E-07** at limit **
  21  Prefactor     .10005E-03    30.069        .44769E-06** at limit **
  22  norm          1.7415        3.8304        .15296E-06    .79596E-04
  23  Prefactor     45.134        20.193       -.23061E-05   -.55690E-02
  24  Prefactor     81.805        19.457       -.14956E-05   -.11843E-01
  25  norm          .10000E-03    .76515       -.76865E-07** at limit **
  26  norm          .10004E-03    36.165        .23115E-06** at limit **
  27  norm          3.4029        5.1280        .30952E-06    .10479E-03
  28  Prefactor     .10039E-03    15.840        .58541E-09** at limit **
  29  Normalizat    1.0606        .23428        .94542E-06    .17307E-03
  30  Prefactor     .97388        .27858       -.13720E-06    .12550E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100142
  Prefactor  = 0.0001
  Prefactor  = 30.2398
  norm       = 2.23649
  Prefactor  = 66.8072
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 11.2715
  norm       = 5.30816
  Prefactor  = 17.6931
  norm       = 0.538425
  Prefactor  = 0.000100088
  Prefactor  = 36.8758
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000749219
  Prefactor  = 0.000100004
  Prefactor  = 0.000100045
  norm       = 1.74153
  Prefactor  = 45.1337
  Prefactor  = 81.8049
  norm       = 0.0001
  norm       = 0.000100044
  norm       = 3.40291
  Prefactor  = 0.000100392
  Normalizat = 1.06063
  Prefactor  = 0.973882
 **********
 **   18 **HESSE 
 **********

 FCN=   4584.424     FROM HESSE     STATUS=OK           646 CALLS     4466 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5410        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.8981        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10014E-03    15.235        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.2210        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.240        40.129        .18223E-02   -1.4608    
   6  norm          2.2365        2.8793        .68732E-02   -1.5409    
   7  Prefactor     66.807        115.27        .12278E-02   -1.4071    
   8  norm          .10000E-03    2.1209        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.8556        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.272        11.861        .29829E-02   -1.5036    
  11  norm          5.3082        3.9487        .43616E-02   -1.5247    
  12  Prefactor     17.693        21.421        .23803E-02   -1.4866    
  13  norm          .53843        2.8184        .11420E-01   -1.5561    
  14  Prefactor     .10009E-03    17.961        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     36.876        51.740        .16493E-02   -1.4493    
  16  Prefactor     .10000E-03    8.8346        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.3258        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.0579        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .74922E-03    48.993        .12018       -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.1278        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10005E-03    30.083        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.7415        3.8783        .79465E-02   -1.5444    
  23  Prefactor     45.134        59.154        .14906E-02   -1.4363    
  24  Prefactor     81.805        49.489        .11097E-02   -1.3897    
  25  norm          .10000E-03    .75628        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10004E-03    36.208        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.4029        5.2157        .54879E-02   -1.5339    
  28  Prefactor     .10039E-03    16.197        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0606        .20763        .39881E-01   -.91026    
  30  Prefactor     .97388        .23887        .45939E-01   -.93605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10024e-06
Minuit parameter uncertainties:
  1  3.10706e-06
  2  2.68693e-06
  3  0.00293976
  4  4.9321e-06
  5  40.1644
  6  2.87945
  7  115.656
  8  7.63874e-06
  9  0.000247968
  10  11.8636
  11  3.94885
  12  21.4306
  13  2.4637
  14  0.00251024
  15  51.8029
  16  0.000190652
  17  4.05151e-06
  18  7.20431e-06
  19  0.356983
  20  0.000399765
  21  0.00233903
  22  3.87886
  23  59.2313
  24  49.5141
  25  2.24546e-06
  26  0.00251743
  27  5.21637
  28  0.00504313
  29  0.207786
  30  0.239126
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  5.384e-01  2.464e+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:  9.739e-01  2.391e-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.061e+00  2.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/952283/likelihoodResults_244771201_245030401_4FGL_J1253.2+5301_daily_bin21.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): 102
logL (Free Index) = 4584.02347252
delta logL = 0.400281247124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4583.97649194
delta logL = 0.447261830501

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16579E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .98514       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0380       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=   4583.976     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      370 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16581E-01    .22084E-01    .93416E-04   -.18725E-02
   2  alpha         5.0000        3.3566        .50000    ** at limit **
   3  Normalizat    .98491        .24294        .23395E-03   -.15138E-03
   4  Prefactor     1.0381        .28650        .27876E-03   -.37642E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0165808
  alpha      = 5
  Normalizat = 0.984911
  Prefactor  = 1.03813
 **********
 **   18 **HESSE 
 **********

 FCN=   4583.976     FROM HESSE     STATUS=OK            31 CALLS      401 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16581E-01    .21225E-01    .37366E-05   -1.5682    
   2  alpha         5.0000        3.3010        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .98491        .24371        .46790E-04   -.93538    
   4  Prefactor     1.0381        .28710        .11150E-04   -.91469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.99683e-11
Minuit parameter uncertainties:
  1  0.0212249
  2  8.1331e-06
  3  0.24399
  4  0.287526
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952283': 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) = 4583.97649114
delta logL = 0.447262629449

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.658e-02  2.122e-02  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  5.000e+00  8.133e-06  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.038e+00  2.875e-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.849e-01  2.440e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 193.307 53.017
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 6.05e-08 +/- 7.70e-08
Energy Flux (Free Index): 8.28e-06 +/- 1.06e-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/952283/cmap_HighResolution_244771201_245030401_4FGL_J1253.2+5301_daily_bin21.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.14e-05', comment='SUCCESS', energy_flux2='8.28e-06', dlogl='4.47e-01', photon_flux2='6.05e-08', job_status='DONE', time_completed='2021-09-06 07:32:32.582975', photon_index_error2='0.00', photon_index2='5.00', ts='0.05', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='7.11e-08', energy_flux_error2='1.06e-05', EG='1.06', time_epoch_completed='1630938752.58', return_code='0', job_id='952283', GAL2='1.04', EG2='0.98', return_code2='0', photon_flux_error2='7.70e-08', ts2='1.02', photon_index='1.93' WHERE bin_id='21' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:32:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 952283: <4FGL_J1253.2+5301_daily_bin21> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin21> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 07:16:08 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:16:09 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:16:09 2021
Terminated at Mon Sep  6 07:32:33 2021
Results reported at Mon Sep  6 07:32:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin21 193.307 53.0173 244771201 245030401 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 :                                   766.00 sec.
    Max Memory :                                 1206 MB
    Average Memory :                             274.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

