/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 44 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 = 7364
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1312
RA = 204.424, Dec = -12.9517
tmin = 579398401, tmax = 579657601
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='805096', job_status='RUN', time_executed='2021-09-08 04:58:04.091641', time_epoch_executed='1631102284.09' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1312'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805096

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805096/ft1_4FGL_J1337.6-1257_daily_bin1312.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805096/ft2_4FGL_J1337.6-1257_daily_bin1312.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805096/ft1_4FGL_J1337.6-1257_daily_bin1312.fits outfile=/scratch/kocevski/805096/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1312.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=579398401.0 tmax=579657601.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.54
user 3.27
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/805096/ft2_4FGL_J1337.6-1257_daily_bin1312.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/805096/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1312.fits evtable="EVENTS" outfile="/scratch/kocevski/805096/ft1_filtered_4FGL_J1337.6-1257_daily_bin1312.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805096/ft1_filtered_4FGL_J1337.6-1257_daily_bin1312.fits" evtable="EVENTS" scfile=/scratch/kocevski/805096/ft2_4FGL_J1337.6-1257_daily_bin1312.fits sctable="SC_DATA" outfile=/scratch/kocevski/805096/ltcube_579398401_579657601_4FGL_J1337.6-1257_daily_bin1312.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/805096/ft2_4FGL_J1337.6-1257_daily_bin1312.fits
.....................!
real 15.68
user 15.24
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805096/ft1_filtered_4FGL_J1337.6-1257_daily_bin1312.fits evtable="EVENTS" scfile=/scratch/kocevski/805096/ft2_4FGL_J1337.6-1257_daily_bin1312.fits sctable="SC_DATA" expcube=/scratch/kocevski/805096/ltcube_579398401_579657601_4FGL_J1337.6-1257_daily_bin1312.fits outfile=/scratch/kocevski/805096/expmap_579398401_579657601_4FGL_J1337.6-1257_daily_bin1312.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/805096/ltcube_579398401_579657601_4FGL_J1337.6-1257_daily_bin1312.fits
.....................!
real 192.47
user 187.12
sys 4.79

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/805096/ft1_filtered_4FGL_J1337.6-1257_daily_bin1312.fits scfile=/scratch/kocevski/805096/ft2_4FGL_J1337.6-1257_daily_bin1312.fits outfile=/scratch/kocevski/805096/cmap_579398401_579657601_4FGL_J1337.6-1257_daily_bin1312.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805096/ft1_filtered_4FGL_J1337.6-1257_daily_bin1312.fits scfile=/scratch/kocevski/805096/ft2_4FGL_J1337.6-1257_daily_bin1312.fits outfile=/scratch/kocevski/805096/cmap_HighResolution_579398401_579657601_4FGL_J1337.6-1257_daily_bin1312.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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805096/ft1_filtered_4FGL_J1337.6-1257_daily_bin1312.fits evtable="EVENTS" scfile=/scratch/kocevski/805096/ft2_4FGL_J1337.6-1257_daily_bin1312.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805096/Model_4FGL_J1337.6-1257_daily_bin1312.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/805096/ft1_filtered_4FGL_J1337.6-1257_daily_bin1312.fits.....................!
real 49.81
user 48.45
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .44857E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    36.663       1.0000         .10000E-03   10000.    
     4 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12714E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10642E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10296E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    60.606       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    94.498       1.0000         .10000E-03   10000.    
    13 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.171       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2673       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.4376       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.9370       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1504       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88832       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=   5835.688     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2549 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    32.430        .11886E-04** at limit **
   2  norm          .10000E-03    .83231       -.14515E-07** at limit **
   3  norm          36.664        15.881       -.68063E-07    .10727E-03
   4  norm          .10000E-03    10.559       -.61846E-06** at limit **
   5  Prefactor     .10000E-03    3.2656       -.27098E-07** at limit **
   6  Prefactor     .10000E-03    6.7156        .66599E-06** at limit **
   7  Prefactor     .10000E-03    9.3831        .20146E-06** at limit **
   8  norm          .10000E-03    1.0944       -.20905E-06** at limit **
   9  norm          .10000E-03    3.0932       -.57892E-07** at limit **
  10  norm          60.609        13.170        .17397E-06    .22175E-03
  11  Prefactor     .10000E-03    15.630        .73614E-06** at limit **
  12  Prefactor     94.490        50.685        .78864E-06    .84660E-04
  13  norm          .10000E-03    48.858       -.53282E-05** at limit **
  14  Prefactor     22.179        16.972        .14059E-06    .43766E-04
  15  norm          1.2616        9.8968       -.25348E-05    .26352E-03
  16  Prefactor     .10000E-03    1.4404       -.21020E-07** at limit **
  17  Prefactor     .10000E-03    54.155        .67486E-05** at limit **
  18  norm          .10000E-03    1.5271       -.17856E-07** at limit **
  19  norm          .10000E-03    .85954       -.57708E-07** at limit **
  20  norm          6.4369        6.5711       -.10635E-06    .15309E-04
  21  Prefactor     5.9342        18.344       -.33400E-06    .21514E-04
  22  Normalizat    1.1508        .25260        .13817E-05    .30375E-03
  23  Prefactor     .88820        .13304        .35566E-06    .48818E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  norm       = 0.0001
  norm       = 36.6637
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 60.6092
  Prefactor  = 0.0001
  Prefactor  = 94.4901
  norm       = 0.000100002
  Prefactor  = 22.1788
  norm       = 1.26163
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.4369
  Prefactor  = 5.93416
  Normalizat = 1.15081
  Prefactor  = 0.888201
 **********
 **   18 **HESSE 
 **********

 FCN=   5835.688     FROM HESSE     STATUS=OK           362 CALLS     2911 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    32.187        .35569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .83478        .68061E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          36.664        15.883        .66189E-04   -1.4496    
   4  norm          .10000E-03    10.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.2696        .13482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.067        .37332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.3932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.8835        .15230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.1322        .13075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          60.609        13.123        .51539E-04   -1.4149    
  11  Prefactor     .10000E-03    15.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     94.490        50.849        .41344E-04   -1.3761    
  13  norm          .10000E-03    50.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.179        16.945        .85068E-04   -1.4766    
  15  norm          1.2616        10.568        .39555E-03   -1.5483    
  16  Prefactor     .10000E-03    1.4436        .89529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    55.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.5287        .92194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .87156        .69155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.4369        6.5675        .15818E-03   -1.5200    
  21  Prefactor     5.9342        18.336        .16480E-03   -1.5221    
  22  Normalizat    1.1508        .28773        .34188E-03   -.88137    
  23  Prefactor     .88820        .15462        .20294E-03   -.96555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.38101e-10
Minuit parameter uncertainties:
  1  0.00048003
  2  1.09016e-06
  3  15.8853
  4  3.27777e-05
  5  4.16561e-06
  6  0.000187878
  7  1.09577e-05
  8  1.37718e-05
  9  2.50405e-05
  10  13.1233
  11  4.70743e-05
  12  50.8726
  13  0.000626784
  14  16.9486
  15  7.30423
  16  2.94727e-06
  17  0.000999781
  18  1.45631e-06
  19  2.29972e-06
  20  6.56824
  21  18.3535
  22  0.288122
  23  0.154692
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  6.061e+01  1.312e+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:  8.882e-01  1.547e-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.151e+00  2.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 55.18
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 3.69e-07 +/- 7.99e-08
Energy Flux (Fixed Index): 1.33e-04 +/- 2.88e-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) = 5835.11584383
delta logL = 0.572186304697

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5835.10469513
delta logL = 0.583335001601

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    50.839       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5717       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0930       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90734       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=   5835.105     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      241 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          50.837        14.910        .56246E-04    .34159E-02
   2  alpha         2.5718        .25529        .51674E-03    .68007E-03
   3  Normalizat    1.0929        .29011        .34914E-03   -.11940E-03
   4  Prefactor     .90730        .15201        .20093E-03   -.22325E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 50.8366
  alpha      = 2.57182
  Normalizat = 1.09294
  Prefactor  = 0.907299
 **********
 **   18 **HESSE 
 **********

 FCN=   5835.105     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          50.837        14.878        .11249E-04   -1.4281    
   2  alpha         2.5718        .25474        .20670E-04    .28731E-01
   3  Normalizat    1.0929        .29031        .13966E-04   -.89979    
   4  Prefactor     .90730        .15211        .40186E-04   -.95887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21113e-09
Minuit parameter uncertainties:
  1  14.8793
  2  0.255185
  3  0.290734
  4  0.152186
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805096': 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) = 5835.10469489
delta logL = 0.583335239361

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  5.084e+01  1.488e+01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.572e+00  2.552e-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.073e-01  1.522e-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.093e+00  2.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 56.09
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.57 +/- 0.26
Photon Flux (Free Index): 4.30e-07 +/- 1.05e-07
Energy Flux (Free Index): 1.22e-04 +/- 2.70e-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/805096/cmap_HighResolution_579398401_579657601_4FGL_J1337.6-1257_daily_bin1312.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.69e-07', energy_flux2='1.22e-04', photon_flux_error='7.99e-08', dlogl='5.83e-01', energy_flux='1.33e-04', photon_flux2='4.30e-07', job_status='DONE', time_completed='2021-09-08 05:08:12.465131', photon_index_error2='0.26', photon_index2='2.57', ts='55.18', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='2.70e-05', EG='1.15', time_epoch_completed='1631102892.47', return_code='0', job_id='805096', GAL2='0.91', EG2='1.09', return_code2='0', energy_flux_error='2.88e-05', photon_flux_error2='1.05e-07', ts2='56.09', photon_index='2.30' WHERE bin_id='1312' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:08:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 805096: <4FGL_J1337.6-1257_daily_bin1312> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1312> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 04:55:36 2021
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:57:05 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:57:05 2021
Terminated at Wed Sep  8 05:08:13 2021
Results reported at Wed Sep  8 05:08:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1312 204.424 -12.9517 579398401 579657601 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 :                                   561.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   667 sec.
    Turnaround time :                            757 sec.

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

