/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 207 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 = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1337.6-1257_daily_bin396
RA = 204.424, Dec = -12.9517
tmin = 341971201, tmax = 342230401
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='799144', job_status='RUN', time_executed='2021-09-08 04:44:08.459158', time_epoch_executed='1631101448.46' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='396'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799144

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799144/ft1_4FGL_J1337.6-1257_daily_bin396.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799144/ft2_4FGL_J1337.6-1257_daily_bin396.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799144/ft1_4FGL_J1337.6-1257_daily_bin396.fits outfile=/scratch/kocevski/799144/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin396.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=341971201.0 tmax=342230401.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.48
user 3.21
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/799144/ft2_4FGL_J1337.6-1257_daily_bin396.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/799144/ft2_4FGL_J1337.6-1257_daily_bin396.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/799144/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin396.fits evtable="EVENTS" outfile="/scratch/kocevski/799144/ft1_filtered_4FGL_J1337.6-1257_daily_bin396.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.55
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799144/ft1_filtered_4FGL_J1337.6-1257_daily_bin396.fits" evtable="EVENTS" scfile=/scratch/kocevski/799144/ft2_4FGL_J1337.6-1257_daily_bin396.fits sctable="SC_DATA" outfile=/scratch/kocevski/799144/ltcube_341971201_342230401_4FGL_J1337.6-1257_daily_bin396.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/799144/ft2_4FGL_J1337.6-1257_daily_bin396.fits
.....................!
real 14.93
user 13.98
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799144/ft1_filtered_4FGL_J1337.6-1257_daily_bin396.fits evtable="EVENTS" scfile=/scratch/kocevski/799144/ft2_4FGL_J1337.6-1257_daily_bin396.fits sctable="SC_DATA" expcube=/scratch/kocevski/799144/ltcube_341971201_342230401_4FGL_J1337.6-1257_daily_bin396.fits outfile=/scratch/kocevski/799144/expmap_341971201_342230401_4FGL_J1337.6-1257_daily_bin396.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/799144/ltcube_341971201_342230401_4FGL_J1337.6-1257_daily_bin396.fits
.....................!
real 191.14
user 185.67
sys 4.74

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 165 point sources and 0 extended sources

Setting source of interest to:
4FGL J1337.6-1257 @ 204.424 -12.9517

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/799144/ft1_filtered_4FGL_J1337.6-1257_daily_bin396.fits scfile=/scratch/kocevski/799144/ft2_4FGL_J1337.6-1257_daily_bin396.fits outfile=/scratch/kocevski/799144/cmap_341971201_342230401_4FGL_J1337.6-1257_daily_bin396.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=204.424 yref=-12.9517 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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799144/ft1_filtered_4FGL_J1337.6-1257_daily_bin396.fits scfile=/scratch/kocevski/799144/ft2_4FGL_J1337.6-1257_daily_bin396.fits outfile=/scratch/kocevski/799144/cmap_HighResolution_341971201_342230401_4FGL_J1337.6-1257_daily_bin396.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=204.424 yref=-12.9517 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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/799144/ft1_filtered_4FGL_J1337.6-1257_daily_bin396.fits evtable="EVENTS" scfile=/scratch/kocevski/799144/ft2_4FGL_J1337.6-1257_daily_bin396.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799144/Model_4FGL_J1337.6-1257_daily_bin396.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/799144/ft1_filtered_4FGL_J1337.6-1257_daily_bin396.fits.....................!
real 60.45
user 58.91
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/799144/ft1_filtered_4FGL_J1337.6-1257_daily_bin396.fits', '/scratch/kocevski/799144/ft2_4FGL_J1337.6-1257_daily_bin396.fits', expMap='/scratch/kocevski/799144/expmap_341971201_342230401_4FGL_J1337.6-1257_daily_bin396.fits', expCube='/scratch/kocevski/799144/ltcube_341971201_342230401_4FGL_J1337.6-1257_daily_bin396.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/799144/Model_4FGL_J1337.6-1257_daily_bin396.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1337.6-1257'

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  5.146e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.305e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  1.384e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  7.541e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/799144/ft1_filtered_4FGL_J1337.6-1257_daily_bin396.fits
Spacecraft file(s): /scratch/kocevski/799144/ft2_4FGL_J1337.6-1257_daily_bin396.fits
Exposure map: /scratch/kocevski/799144/expmap_341971201_342230401_4FGL_J1337.6-1257_daily_bin396.fits
Exposure cube: /scratch/kocevski/799144/ltcube_341971201_342230401_4FGL_J1337.6-1257_daily_bin396.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/799144/Model_4FGL_J1337.6-1257_daily_bin396.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) = 7017.19800576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.767       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .11489       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.373       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4397       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2102       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    17.185       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.2368       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .61444       1.0000         .10000E-03   10000.    
    13 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8193       1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.770       1.0000         .10000E-03   10000.    
    18 'norm      '    12.395       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.8708       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4561       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91609       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+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=   7017.195     FROM MIGRAD    STATUS=CONVERGED    901 CALLS     2946 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.765        10.147        .92453E-04    .24101E-04
   2  norm          .10000E-03    .77457        .71895E-03** at limit **
   3  norm          .10000E-03    4.0425        .16423E-02** at limit **
   4  norm          .69438E-01    6.5537        .73455E-01    .10885E-03
   5  Prefactor     10.373        11.954        .12441E-03    .42767E-04
   6  Prefactor     5.4431        11.024        .17229E-03    .63941E-04
   7  Prefactor     5.1860        23.379        .17611E-03   -.58358E-04
   8  norm          .10000E-03    .63755        .12842E-03** at limit **
   9  norm          .10000E-03    4.4154        .33561E-03** at limit **
  10  norm          17.200        11.014        .96616E-04    .70248E-04
  11  Prefactor     6.2423        16.911        .16074E-03   -.13862E-03
  12  Prefactor     .56902        36.060        .12838        .16606E-03
  13  norm          .10000E-03    20.125        .18142E-02** at limit **
  14  Prefactor     .10000E-03    20.793        .18142E-02** at limit **
  15  norm          .10000E-03    2.1271        .11898E-02** at limit **
  16  Prefactor     3.8186        7.3342        .20653E-03   -.16316E-03
  17  Prefactor     37.712        55.021        .65215E-04   -.33122E-05
  18  norm          12.393        9.0654        .11378E-03    .24450E-03
  19  norm          .10000E-03    1.8207        .21784E-03** at limit **
  20  norm          9.8673        7.6060        .12754E-03    .18701E-03
  21  Prefactor     .10000E-03    16.358        .18142E-02** at limit **
  22  Normalizat    1.4562        .29782        .33371E-03    .23138E-03
  23  Prefactor     .91616        .14768        .21072E-03    .61833E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 18.7651
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0694385
  Prefactor  = 10.3726
  Prefactor  = 5.44309
  Prefactor  = 5.18604
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 17.2
  Prefactor  = 6.24231
  Prefactor  = 0.569016
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.81857
  Prefactor  = 37.7121
  norm       = 12.3929
  norm       = 0.0001
  norm       = 9.86727
  Prefactor  = 0.0001
  Normalizat = 1.45625
  Prefactor  = 0.916159
 **********
 **   18 **HESSE 
 **********

 FCN=   7017.195     FROM HESSE     STATUS=OK           366 CALLS     3312 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.765        10.147        .36981E-05   -1.4841    
   2  norm          .10000E-03    .77458        .14379E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.0429        .32847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .69438E-01    6.4065        .75193E-01   -1.5655    
   5  Prefactor     10.373        11.953        .49763E-05   -1.5064    
   6  Prefactor     5.4431        11.022        .68915E-05   -1.5241    
   7  Prefactor     5.1860        23.346        .70443E-05   -1.5252    
   8  norm          .10000E-03    .63755        .25684E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.4155        .67121E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          17.200        11.008        .38646E-05   -1.4878    
  11  Prefactor     6.2423        16.906        .64296E-05   -1.5208    
  12  Prefactor     .56902        34.157        .13319       -1.5557    
  13  norm          .10000E-03    20.126        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.801        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.1273        .23796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.8186        7.3307        .82611E-05   -1.5317    
  17  Prefactor     37.712        54.984        .26086E-05   -1.4479    
  18  norm          12.393        9.0634        .45512E-05   -1.5004    
  19  norm          .10000E-03    1.8208        .43568E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.8673        7.6059        .51018E-05   -1.5080    
  21  Prefactor     .10000E-03    16.360        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4562        .29800        .66743E-04   -.79015    
  23  Prefactor     .91616        .14776        .42144E-04   -.95579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14428e-09
Minuit parameter uncertainties:
  1  10.1478
  2  1.44376e-06
  3  6.76563e-06
  4  1.33314
  5  11.9554
  6  11.0257
  7  22.0208
  8  8.77886e-07
  9  9.72041e-05
  10  11.0091
  11  16.9188
  12  8.82171
  13  2.62586e-06
  14  4.15355e-05
  15  3.07335e-05
  16  7.33239
  17  55.0575
  18  9.06443
  19  2.03266e-06
  20  7.60665
  21  4.43852e-05
  22  0.298358
  23  0.147829
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.720e+01  1.101e+01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.305e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  1.384e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  7.541e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  9.162e-01  1.478e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.456e+00  2.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.62
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 6.70e-08
Energy Flux (Fixed Index): 3.77e-05 +/- 2.42e-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) = 7016.63591765
delta logL = 0.558877393375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7016.60195772
delta logL = 0.592837319593

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.722       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8864       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3930       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93549       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7016.602     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      306 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.712        9.6269        .56151E-03    .12158E-03
   2  alpha         2.8853        .58764        .10850E-01    .24459E-03
   3  Normalizat    1.3930        .28777        .33958E-03   -.42183E-05
   4  Prefactor     .93565        .14618        .20865E-03   -.17435E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 12.7122
  alpha      = 2.88534
  Normalizat = 1.39304
  Prefactor  = 0.935654
 **********
 **   18 **HESSE 
 **********

 FCN=   7016.602     FROM HESSE     STATUS=OK            27 CALLS      333 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.712        9.0155        .11230E-03   -1.4995    
   2  alpha         2.8853        .55047        .21699E-02    .15475    
   3  Normalizat    1.3930        .28765        .13583E-04   -.80830    
   4  Prefactor     .93565        .14610        .83461E-05   -.94906    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66679e-12
Minuit parameter uncertainties:
  1  9.01646
  2  0.555131
  3  0.287987
  4  0.14616
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799144': 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) = 7016.60194746
delta logL = 0.592847584412

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.271e+01  9.016e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.885e+00  5.551e-01  0.000e+00  5.000e+00 ( 1.000e+00)
265         beta:  1.384e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  7.541e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  9.357e-01  1.462e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.393e+00  2.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.87
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.89 +/- 0.56
Photon Flux (Free Index): 1.65e-07 +/- 9.14e-08
Energy Flux (Free Index): 3.80e-05 +/- 1.86e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/799144/cmap_HighResolution_341971201_342230401_4FGL_J1337.6-1257_daily_bin396.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='3.80e-05', photon_flux_error='6.70e-08', dlogl='5.93e-01', energy_flux='3.77e-05', photon_flux2='1.65e-07', job_status='DONE', time_completed='2021-09-08 04:54:56.982311', photon_index_error2='0.56', photon_index2='2.89', ts='5.62', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.86e-05', EG='1.46', time_epoch_completed='1631102096.98', return_code='0', job_id='799144', GAL2='0.94', EG2='1.39', return_code2='0', energy_flux_error='2.42e-05', photon_flux_error2='9.14e-08', ts2='6.87', photon_index='2.30' WHERE bin_id='396' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:54:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 799144: <4FGL_J1337.6-1257_daily_bin396> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin396> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 04:40:26 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:40:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 04:40:32 2021
Terminated at Wed Sep  8 04:54:57 2021
Results reported at Wed Sep  8 04:54:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin396 204.424 -12.9517 341971201 342230401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1337.6-1257 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   643.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            871 sec.

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

