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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin1012
RA = 193.307, Dec = 53.0173
tmin = 501638401, tmax = 501897601
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='958743', job_status='RUN', time_executed='2021-09-06 07:39:22.904128', time_epoch_executed='1630939162.9' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='1012'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958743

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958743/ft1_4FGL_J1253.2+5301_daily_bin1012.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958743/ft2_4FGL_J1253.2+5301_daily_bin1012.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958743/ft1_4FGL_J1253.2+5301_daily_bin1012.fits outfile=/scratch/kocevski/958743/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1012.fits ra=193.307 dec=53.0173 rad=12.0 tmin=501638401.0 tmax=501897601.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.82
user 3.27
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/958743/ft1_filtered_4FGL_J1253.2+5301_daily_bin1012.fits" evtable="EVENTS" scfile=/scratch/kocevski/958743/ft2_4FGL_J1253.2+5301_daily_bin1012.fits sctable="SC_DATA" outfile=/scratch/kocevski/958743/ltcube_501638401_501897601_4FGL_J1253.2+5301_daily_bin1012.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/958743/ft2_4FGL_J1253.2+5301_daily_bin1012.fits
.....................!
real 14.04
user 13.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958743/ft1_filtered_4FGL_J1253.2+5301_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/958743/ft2_4FGL_J1253.2+5301_daily_bin1012.fits sctable="SC_DATA" expcube=/scratch/kocevski/958743/ltcube_501638401_501897601_4FGL_J1253.2+5301_daily_bin1012.fits outfile=/scratch/kocevski/958743/expmap_501638401_501897601_4FGL_J1253.2+5301_daily_bin1012.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/958743/ltcube_501638401_501897601_4FGL_J1253.2+5301_daily_bin1012.fits
.....................!
real 190.23
user 184.77
sys 5.10

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/958743/ft1_filtered_4FGL_J1253.2+5301_daily_bin1012.fits scfile=/scratch/kocevski/958743/ft2_4FGL_J1253.2+5301_daily_bin1012.fits outfile=/scratch/kocevski/958743/cmap_501638401_501897601_4FGL_J1253.2+5301_daily_bin1012.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/958743/ft1_filtered_4FGL_J1253.2+5301_daily_bin1012.fits scfile=/scratch/kocevski/958743/ft2_4FGL_J1253.2+5301_daily_bin1012.fits outfile=/scratch/kocevski/958743/cmap_HighResolution_501638401_501897601_4FGL_J1253.2+5301_daily_bin1012.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.57
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33448E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4500       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18064E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.9101       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.2255       1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.291       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.5145       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.6255       1.0000         .10000E-03   10000.    
    13 'norm      '    4.0349       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.954       1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.507       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    23.921       1.0000         .10000E-03   10000.    
    18 'norm      '    6.1780       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11448E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10755E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    50.556       1.0000         .10000E-03   10000.    
    22 'norm      '    4.3203       1.0000         .10000E-03   10000.    
    23 'Prefactor '    35.553       1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.279       1.0000         .10000E-03   10000.    
    25 'norm      '    7.3386       1.0000         .10000E-03   10000.    
    26 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    9.5679       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1663       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .28237       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=   5057.727     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     3920 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1.9606        .49109E-01** at limit **
   2  norm          .10000E-03    2.7171        .90712E-02** at limit **
   3  Prefactor     4.4232        13.988        .47722E-02   -.79792E-04
   4  Prefactor     .10000E-03    4.8273        .54426E-01** at limit **
   5  Prefactor     .10000E-03    8.7972        .90712E-02** at limit **
   6  norm          1.9099        1.6934        .75199E-02    .65862E-04
   7  Prefactor     .10003E-03    18.904        .90712E-02** at limit **
   8  norm          8.2246        7.6965        .34947E-02   -.69554E-03
   9  Prefactor     33.288        23.058        .17362E-02   -.38044E-03
  10  Prefactor     .10000E-03    4.3789        .90712E-02** at limit **
  11  norm          2.5146        1.6563        .64414E-02   -.14256E-03
  12  Prefactor     8.6263        14.692        .34122E-02   -.96366E-04
  13  norm          4.0351        2.4490        .50187E-02    .20715E-03
  14  Prefactor     21.955        21.958        .21371E-02    .92189E-05
  15  Prefactor     34.508        41.678        .17055E-02   -.17023E-03
  16  Prefactor     .10000E-03    4.0633        .90712E-02** at limit **
  17  norm          23.921        15.869        .20475E-02   -.15684E-03
  18  norm          6.1786        4.8595        .40378E-02    .26190E-02
  19  Prefactor     .10002E-03    24.220        .90712E-02** at limit **
  20  Prefactor     .10000E-03    34.774        .90712E-02** at limit **
  21  Prefactor     50.559        35.597        .14100E-02   -.42330E-03
  22  norm          4.3224        3.8920        .48452E-02    .34991E-02
  23  Prefactor     35.554        46.718        .16803E-02   -.12245E-03
  24  Prefactor     23.275        30.576        .20755E-02    .61360E-03
  25  norm          7.3387        2.6176        .37014E-02   -.15849E-03
  26  norm          .10000E-03    119.57        .90712E-02** at limit **
  27  norm          9.5684        5.0592        .32389E-02    .38654E-02
  28  Prefactor     .10001E-03    18.060        .90712E-02** at limit **
  29  Normalizat    1.1663        .17178        .35776E-01   -.76756E-05
  30  Prefactor     .28236        .19749        .93478E-01    .60966E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  norm       = 0.0001
  Prefactor  = 4.42318
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.90992
  Prefactor  = 0.000100028
  norm       = 8.22464
  Prefactor  = 33.2878
  Prefactor  = 0.0001
  norm       = 2.51465
  Prefactor  = 8.62635
  norm       = 4.03506
  Prefactor  = 21.9554
  Prefactor  = 34.5078
  Prefactor  = 0.0001
  norm       = 23.9213
  norm       = 6.17864
  Prefactor  = 0.000100016
  Prefactor  = 0.000100005
  Prefactor  = 50.5588
  norm       = 4.32243
  Prefactor  = 35.5538
  Prefactor  = 23.2749
  norm       = 7.33867
  norm       = 0.0001
  norm       = 9.56837
  Prefactor  = 0.000100005
  Normalizat = 1.16629
  Prefactor  = 0.28236
 **********
 **   18 **HESSE 
 **********

 FCN=   5057.727     FROM HESSE     STATUS=OK           578 CALLS     4498 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    5.5854        .18061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.7533        .11429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.4232        13.258        .19089E-03   -1.5287    
   4  Prefactor     .10000E-03    12.054        .30150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.8147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.9099        1.6974        .83172E-04   -1.5432    
   7  Prefactor     .10003E-03    18.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.2246        7.6795        .13979E-03   -1.5134    
   9  Prefactor     33.288        23.085        .69449E-04   -1.4553    
  10  Prefactor     .10000E-03    4.4483        .14518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.5146        1.6612        .72130E-04   -1.5391    
  12  Prefactor     8.6263        14.680        .13649E-03   -1.5120    
  13  norm          4.0351        2.4465        .83374E-04   -1.5306    
  14  Prefactor     21.955        21.964        .85485E-04   -1.4770    
  15  Prefactor     34.508        41.656        .68219E-04   -1.4532    
  16  Prefactor     .10000E-03    4.0875        .13998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          23.921        15.859        .81900E-04   -1.4729    
  18  norm          6.1786        4.8485        .13191E-03   -1.5211    
  19  Prefactor     .10002E-03    24.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     50.559        35.581        .56402E-04   -1.4285    
  22  norm          4.3224        3.8824        .12740E-03   -1.5292    
  23  Prefactor     35.554        46.734        .67211E-04   -1.4515    
  24  Prefactor     23.275        30.565        .83021E-04   -1.4743    
  25  norm          7.3387        2.6159        .65964E-04   -1.5166    
  26  norm          .10000E-03    119.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          9.5684        5.0571        .11124E-03   -1.5089    
  28  Prefactor     .10001E-03    18.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1663        .17526        .18325E-03   -.87651    
  30  Prefactor     .28236        .19644        .41430E-03   -1.2331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75112e-08
Minuit parameter uncertainties:
  1  0.000475489
  2  1.48026e-06
  3  13.2673
  4  8.20982e-07
  5  3.50931e-05
  6  1.69745
  7  0.0014548
  8  7.68046
  9  23.091
  10  8.39943e-06
  11  1.66121
  12  14.6862
  13  2.44651
  14  21.9722
  15  41.691
  16  6.47925e-05
  17  15.8615
  18  4.84878
  19  0.00124408
  20  0.000835862
  21  35.5957
  22  3.88262
  23  46.782
  24  30.5855
  25  2.61591
  26  0.000166088
  27  5.05732
  28  0.000607852
  29  0.175347
  30  0.196907
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  4.035e+00  2.447e+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:  2.824e-01  1.969e-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.166e+00  1.753e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.44
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 3.92e-08 +/- 2.38e-08
Energy Flux (Fixed Index): 2.83e-05 +/- 1.72e-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) = 5057.56020199
delta logL = 0.167168717083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5057.55322439
delta logL = 0.174146320991

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7112       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2351       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1499       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .29058       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=   5057.553     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      263 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7113        2.3712        .71589E-04   -.67603E-03
   2  alpha         2.2352        .50740        .97006E-02   -.67394E-04
   3  Normalizat    1.1499        .17014        .18422E-03    .71956E-04
   4  Prefactor     .29058        .19557        .40834E-03    .60137E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.7113
  alpha      = 2.23523
  Normalizat = 1.14989
  Prefactor  = 0.290584
 **********
 **   18 **HESSE 
 **********

 FCN=   5057.553     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7113        2.3147        .28636E-05   -1.5323    
   2  alpha         2.2352        .49506        .38803E-03   -.10611    
   3  Normalizat    1.1499        .17003        .36845E-04   -.88166    
   4  Prefactor     .29058        .19549        .16334E-04   -1.2282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9558e-10
Minuit parameter uncertainties:
  1  2.31472
  2  0.498395
  3  0.170107
  4  0.195935
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958743': 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) = 5057.55322424
delta logL = 0.174146471789

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  3.711e+00  2.315e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.235e+00  4.984e-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:  2.906e-01  1.959e-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.150e+00  1.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.73
Ra Dec: 193.307 53.017
Photon Index (Free Index): 2.24 +/- 0.50
Photon Flux (Free Index): 5.57e-08 +/- 4.00e-08
Energy Flux (Free Index): 2.41e-05 +/- 1.43e-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/958743/cmap_HighResolution_501638401_501897601_4FGL_J1253.2+5301_daily_bin1012.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.92e-08', energy_flux2='2.41e-05', photon_flux_error='2.38e-08', dlogl='1.74e-01', energy_flux='2.83e-05', photon_flux2='5.57e-08', job_status='DONE', time_completed='2021-09-06 07:51:45.603529', photon_index_error2='0.50', photon_index2='2.24', ts='9.44', fit_tolerance='1e-08', GAL='0.28', photon_index_error='0.00', energy_flux_error2='1.43e-05', EG='1.17', time_epoch_completed='1630939905.6', return_code='0', job_id='958743', GAL2='0.29', EG2='1.15', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='4.00e-08', ts2='9.73', photon_index='1.93' WHERE bin_id='1012' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:51:45 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin1012 193.307 53.0173 501638401 501897601 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 :                                   731.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            925 sec.

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

