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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin164
RA = 204.424, Dec = -12.9517
tmin = 281836801, tmax = 282096001
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='796262', job_status='RUN', time_executed='2021-09-08 04:33:47.911723', time_epoch_executed='1631100827.91' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/796262

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/796262/ft1_4FGL_J1337.6-1257_daily_bin164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/796262/ft2_4FGL_J1337.6-1257_daily_bin164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/796262/ft1_4FGL_J1337.6-1257_daily_bin164.fits outfile=/scratch/kocevski/796262/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin164.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=281836801.0 tmax=282096001.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 4.04
user 3.79
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/796262/ft2_4FGL_J1337.6-1257_daily_bin164.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/796262/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin164.fits evtable="EVENTS" outfile="/scratch/kocevski/796262/ft1_filtered_4FGL_J1337.6-1257_daily_bin164.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.52
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/796262/ft1_filtered_4FGL_J1337.6-1257_daily_bin164.fits" evtable="EVENTS" scfile=/scratch/kocevski/796262/ft2_4FGL_J1337.6-1257_daily_bin164.fits sctable="SC_DATA" outfile=/scratch/kocevski/796262/ltcube_281836801_282096001_4FGL_J1337.6-1257_daily_bin164.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/796262/ft2_4FGL_J1337.6-1257_daily_bin164.fits
.....................!
real 16.46
user 16.04
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/796262/ft1_filtered_4FGL_J1337.6-1257_daily_bin164.fits evtable="EVENTS" scfile=/scratch/kocevski/796262/ft2_4FGL_J1337.6-1257_daily_bin164.fits sctable="SC_DATA" expcube=/scratch/kocevski/796262/ltcube_281836801_282096001_4FGL_J1337.6-1257_daily_bin164.fits outfile=/scratch/kocevski/796262/expmap_281836801_282096001_4FGL_J1337.6-1257_daily_bin164.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/796262/ltcube_281836801_282096001_4FGL_J1337.6-1257_daily_bin164.fits
.....................!
real 194.05
user 187.56
sys 5.90

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/796262/ft1_filtered_4FGL_J1337.6-1257_daily_bin164.fits scfile=/scratch/kocevski/796262/ft2_4FGL_J1337.6-1257_daily_bin164.fits outfile=/scratch/kocevski/796262/cmap_281836801_282096001_4FGL_J1337.6-1257_daily_bin164.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/796262/ft1_filtered_4FGL_J1337.6-1257_daily_bin164.fits scfile=/scratch/kocevski/796262/ft2_4FGL_J1337.6-1257_daily_bin164.fits outfile=/scratch/kocevski/796262/cmap_HighResolution_281836801_282096001_4FGL_J1337.6-1257_daily_bin164.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/796262/ft1_filtered_4FGL_J1337.6-1257_daily_bin164.fits evtable="EVENTS" scfile=/scratch/kocevski/796262/ft2_4FGL_J1337.6-1257_daily_bin164.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/796262/Model_4FGL_J1337.6-1257_daily_bin164.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/796262/ft1_filtered_4FGL_J1337.6-1257_daily_bin164.fits.....................!
real 49.55
user 48.03
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/796262/ft1_filtered_4FGL_J1337.6-1257_daily_bin164.fits', '/scratch/kocevski/796262/ft2_4FGL_J1337.6-1257_daily_bin164.fits', expMap='/scratch/kocevski/796262/expmap_281836801_282096001_4FGL_J1337.6-1257_daily_bin164.fits', expCube='/scratch/kocevski/796262/ltcube_281836801_282096001_4FGL_J1337.6-1257_daily_bin164.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/796262/Model_4FGL_J1337.6-1257_daily_bin164.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/796262/ft1_filtered_4FGL_J1337.6-1257_daily_bin164.fits
Spacecraft file(s): /scratch/kocevski/796262/ft2_4FGL_J1337.6-1257_daily_bin164.fits
Exposure map: /scratch/kocevski/796262/expmap_281836801_282096001_4FGL_J1337.6-1257_daily_bin164.fits
Exposure cube: /scratch/kocevski/796262/ltcube_281836801_282096001_4FGL_J1337.6-1257_daily_bin164.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/796262/Model_4FGL_J1337.6-1257_daily_bin164.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) = 5779.97833878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.224       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.0450       1.0000         .10000E-03   10000.    
     4 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.8493       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9424       1.0000         .10000E-03   10000.    
     8 'norm      '    .32599       1.0000         .10000E-03   10000.    
     9 'norm      '    4.7675       1.0000         .10000E-03   10000.    
    10 'norm      '    8.8786       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5119       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.364       1.0000         .10000E-03   10000.    
    13 'norm      '    .21228E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.755       1.0000         .10000E-03   10000.    
    15 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .78127E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.8691       1.0000         .10000E-03   10000.    
    20 'norm      '    5.3963       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2284       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92751       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.

 FCN=   5779.964     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     3092 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.228        12.710        .37577E-06   -.26597E-03
   2  norm          .10000E-03    1.1812        .18846E-08** at limit **
   3  norm          3.0436        9.8022        .27664E-06   -.65641E-04
   4  norm          .10000E-03    6.1550       -.40656E-07** at limit **
   5  Prefactor     4.8499        6.0046        .11115E-05   -.10094E-02
   6  Prefactor     .10000E-03    2.9835       -.57260E-07** at limit **
   7  Prefactor     8.9488        29.006        .88663E-05    .15180E-03
   8  norm          .32575        1.6139        .28063E-06   -.35022E-03
   9  norm          4.7680        5.5304       -.15108E-05   -.12486E-03
  10  norm          8.8778        7.6124       -.40326E-06   -.10153E-03
  11  Prefactor     3.4554        36.234        .12525E-05   -.67798E-05
  12  Prefactor     21.376        22.436        .72471E-06    .46675E-04
  13  norm          .10000E-03    34.069        .13198E-06** at limit **
  14  Prefactor     19.775        19.163       -.17559E-06   -.32859E-04
  15  norm          .10000E-03    3.0988        .70151E-07** at limit **
  16  Prefactor     .10000E-03    1.9910       -.55370E-07** at limit **
  17  Prefactor     .29363        40.294        .21211E-07   -.71995E-05
  18  norm          .10000E-03    8.0874       -.19334E-07** at limit **
  19  norm          2.8691        3.3865        .19813E-06   -.93499E-04
  20  norm          5.3973        11.351        .54535E-07   -.55049E-04
  21  Prefactor     .10000E-03    10.421       -.19359E-06** at limit **
  22  Normalizat    1.2285        .26937       -.18837E-05   -.33280E-04
  23  Prefactor     .92732        .12982        .82897E-07   -.14151E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.2278
  norm       = 0.0001
  norm       = 3.04358
  norm       = 0.0001
  Prefactor  = 4.8499
  Prefactor  = 0.0001
  Prefactor  = 8.94885
  norm       = 0.325748
  norm       = 4.76797
  norm       = 8.87783
  Prefactor  = 3.45544
  Prefactor  = 21.376
  norm       = 0.000100003
  Prefactor  = 19.7754
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.293634
  norm       = 0.0001
  norm       = 2.86913
  norm       = 5.39726
  Prefactor  = 0.0001
  Normalizat = 1.2285
  Prefactor  = 0.927321
 **********
 **   18 **HESSE 
 **********

 FCN=   5779.964     FROM HESSE     STATUS=OK           392 CALLS     3484 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.228        12.916        .53101E-03   -1.4953    
   2  norm          .10000E-03    1.1919        .80683E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.0436        9.8085        .23251E-03   -1.5359    
   4  norm          .10000E-03    6.1677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.8499        8.4710        .91337E-03   -1.5267    
   6  Prefactor     .10000E-03    2.9882        .12824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.9488        30.210        .13403E-03   -1.5110    
   8  norm          .32575        3.0471        .17301E-02   -1.5594    
   9  norm          4.7680        5.6190        .13379E-03   -1.5271    
  10  norm          8.8778        7.6175        .13452E-03   -1.5112    
  11  Prefactor     3.4554        34.403        .21573E-03   -1.5336    
  12  Prefactor     21.376        22.439        .86657E-04   -1.4783    
  13  norm          .10000E-03    34.565        .14785       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.775        18.729        .90113E-04   -1.4818    
  15  norm          .10000E-03    3.1177        .13062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.9979        .10473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .29363        40.853        .14697       -1.5600    
  18  norm          .10000E-03    8.3310        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.8691        3.3575        .13734E-03   -1.5369    
  20  norm          5.3973        11.275        .17299E-03   -1.5243    
  21  Prefactor     .10000E-03    10.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2285        .30846        .33640E-03   -.85727    
  23  Prefactor     .92732        .15128        .19853E-03   -.95193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4142e-08
Minuit parameter uncertainties:
  1  12.9188
  2  5.34437e-07
  3  9.8137
  4  1.76712e-07
  5  8.47311
  6  2.79008e-06
  7  30.2618
  8  1.9924
  9  5.61966
  10  7.61836
  11  21.822
  12  22.4483
  13  0.000657473
  14  18.7346
  15  6.95248e-07
  16  9.29428e-07
  17  6.93064
  18  8.64177e-06
  19  3.3577
  20  11.2793
  21  7.27019e-06
  22  0.30892
  23  0.151344
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  8.878e+00  7.618e+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

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  9.273e-01  1.513e-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.228e+00  3.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.03
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 5.40e-08 +/- 4.64e-08
Energy Flux (Fixed Index): 1.95e-05 +/- 1.67e-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) = 5779.89682743
delta logL = 0.0669484055652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5779.89606926
delta logL = 0.0677065747768

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9268       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0193       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2403       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92477       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.

 FCN=   5779.896     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      204 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9793        6.2421        .58949E-06   -.78551E-03
   2  alpha         2.0253        .58108       -.61635E-05   -.66490E-04
   3  Normalizat    1.2401        .24535        .21054E-06    .31102E-03
   4  Prefactor     .92474        .12788       -.87700E-07    .42909E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.97929
  alpha      = 2.02526
  Normalizat = 1.24013
  Prefactor  = 0.924742
 **********
 **   18 **HESSE 
 **********

 FCN=   5779.896     FROM HESSE     STATUS=OK            27 CALLS      231 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9793        7.5259        .13415E-03   -1.5109    
   2  alpha         2.0253        .74868        .19035E-01   -.19106    
   3  Normalizat    1.2401        .28316        .33511E-03   -.85372    
   4  Prefactor     .92474        .14789        .19880E-03   -.95282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28426e-09
Minuit parameter uncertainties:
  1  7.52669
  2  0.760805
  3  0.283513
  4  0.147951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/796262': 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) = 5779.8960222
delta logL = 0.0677536282701

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  8.979e+00  7.527e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.025e+00  7.608e-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.247e-01  1.480e-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.240e+00  2.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.17
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.03 +/- 0.76
Photon Flux (Free Index): 4.05e-08 +/- 4.83e-08
Energy Flux (Free Index): 2.05e-05 +/- 1.75e-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/796262/cmap_HighResolution_281836801_282096001_4FGL_J1337.6-1257_daily_bin164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.40e-08', energy_flux2='2.05e-05', photon_flux_error='4.64e-08', dlogl='6.78e-02', energy_flux='1.95e-05', photon_flux2='4.05e-08', job_status='DONE', time_completed='2021-09-08 04:43:49.543542', photon_index_error2='0.76', photon_index2='2.03', ts='4.03', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='1.23', time_epoch_completed='1631101429.54', return_code='0', job_id='796262', GAL2='0.92', EG2='1.24', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='4.83e-08', ts2='4.17', photon_index='2.30' WHERE bin_id='164' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:43:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 796262: <4FGL_J1337.6-1257_daily_bin164> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin164> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 04:30:40 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:31:27 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:31:27 2021
Terminated at Wed Sep  8 04:43:50 2021
Results reported at Wed Sep  8 04:43:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin164 204.424 -12.9517 281836801 282096001 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 :                                   600.15 sec.
    Max Memory :                                 1062 MB
    Average Memory :                             267.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            790 sec.

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

