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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin451
RA = 204.424, Dec = -12.9517
tmin = 356227201, tmax = 356486401
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='799236', job_status='RUN', time_executed='2021-09-08 04:41:21.374751', time_epoch_executed='1631101281.37' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799236

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799236/ft1_4FGL_J1337.6-1257_daily_bin451.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...
fmerge4.1 : Error, missing column list names, file /scratch/kocevski/799236/ft2_filtered_0009.fits
fmerge4.1 : Fatal error!
FCCMPL: not found in table: RA_SUN
FCCMPL: not found in table: DEC_SUN

Merged file saved to:
/scratch/kocevski/799236/ft2_4FGL_J1337.6-1257_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799236/ft1_4FGL_J1337.6-1257_daily_bin451.fits outfile=/scratch/kocevski/799236/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin451.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=356227201.0 tmax=356486401.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.17
user 2.91
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/799236/ft2_4FGL_J1337.6-1257_daily_bin451.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/799236/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin451.fits evtable="EVENTS" outfile="/scratch/kocevski/799236/ft1_filtered_4FGL_J1337.6-1257_daily_bin451.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799236/ft1_filtered_4FGL_J1337.6-1257_daily_bin451.fits" evtable="EVENTS" scfile=/scratch/kocevski/799236/ft2_4FGL_J1337.6-1257_daily_bin451.fits sctable="SC_DATA" outfile=/scratch/kocevski/799236/ltcube_356227201_356486401_4FGL_J1337.6-1257_daily_bin451.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/799236/ft2_4FGL_J1337.6-1257_daily_bin451.fits
.....................!
real 3.97
user 3.55
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799236/ft1_filtered_4FGL_J1337.6-1257_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/799236/ft2_4FGL_J1337.6-1257_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/799236/ltcube_356227201_356486401_4FGL_J1337.6-1257_daily_bin451.fits outfile=/scratch/kocevski/799236/expmap_356227201_356486401_4FGL_J1337.6-1257_daily_bin451.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/799236/ltcube_356227201_356486401_4FGL_J1337.6-1257_daily_bin451.fits
.....................!
real 191.48
user 185.98
sys 4.83

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/799236/ft1_filtered_4FGL_J1337.6-1257_daily_bin451.fits scfile=/scratch/kocevski/799236/ft2_4FGL_J1337.6-1257_daily_bin451.fits outfile=/scratch/kocevski/799236/cmap_356227201_356486401_4FGL_J1337.6-1257_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.55
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799236/ft1_filtered_4FGL_J1337.6-1257_daily_bin451.fits scfile=/scratch/kocevski/799236/ft2_4FGL_J1337.6-1257_daily_bin451.fits outfile=/scratch/kocevski/799236/cmap_HighResolution_356227201_356486401_4FGL_J1337.6-1257_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.032       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.0042       1.0000         .10000E-03   10000.    
    10 'norm      '    .10224E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10133E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    38.612       1.0000         .10000E-03   10000.    
    15 'norm      '    9.0412       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.009       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10409E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.1243       1.0000         .10000E-03   10000.    
    20 'norm      '    22.891       1.0000         .10000E-03   10000.    
    21 'Prefactor '    38.435       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.8461       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .85944       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=   1739.095     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2544 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.7232        .24120E-06** at limit **
   2  norm          .10000E-03    6.4336        .57884E-07** at limit **
   3  norm          .10000E-03    17.415       -.10631E-05** at limit **
   4  norm          .10000E-03    11.945        .12842E-06** at limit **
   5  Prefactor     .10000E-03    10.499        .24692E-08** at limit **
   6  Prefactor     .10000E-03    7.3192       -.12914E-07** at limit **
   7  Prefactor     20.039        47.089       -.52601E-05   -.11810E-03
   8  norm          .10000E-03    2.0471        .26945E-07** at limit **
   9  norm          .99990        31.951        .43539E-05   -.10832E-03
  10  norm          .10000E-03    17.947        .64515E-06** at limit **
  11  Prefactor     .10000E-03    74.439        .35973E-05** at limit **
  12  Prefactor     .10000E-03    38.114        .92000E-07** at limit **
  13  norm          .10000E-03    62.677       -.25819E-05** at limit **
  14  Prefactor     38.613        30.807        .46951E-06   -.10610E-03
  15  norm          9.0419        14.628        .13431E-05   -.25820E-03
  16  Prefactor     15.010        13.802       -.16797E-06   -.54213E-04
  17  Prefactor     .10000E-03    173.53       -.21906E-05** at limit **
  18  norm          .10000E-03    9.9767       -.27707E-06** at limit **
  19  norm          2.1244        4.0880        .95348E-07   -.23225E-04
  20  norm          22.886        19.411        .10421E-06    .36481E-06
  21  Prefactor     38.425        55.378       -.49091E-06   -.13598E-04
  22  Normalizat    1.8463        .53656       -.88221E-06   -.62978E-04
  23  Prefactor     .85939        .28345       -.83338E-06   -.99149E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.0385
  norm       = 0.0001
  norm       = 0.999899
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 38.6132
  norm       = 9.04194
  Prefactor  = 15.0104
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.12435
  norm       = 22.8862
  Prefactor  = 38.4255
  Normalizat = 1.84627
  Prefactor  = 0.859387
 **********
 **   18 **HESSE 
 **********

 FCN=   1739.095     FROM HESSE     STATUS=OK           360 CALLS     2904 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.7329        .12706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.4826        .10331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    17.519        .17030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    11.949        .14081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.514        .13199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.3214        .11020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.039        50.077        .89489E-04   -1.4812    
   8  norm          .10000E-03    2.0629        .58253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .99990        54.007        .27840E-02   -1.5508    
  10  norm          .10000E-03    18.061        .17260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    75.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    38.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    63.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     38.613        30.713        .64502E-04   -1.4464    
  15  norm          9.0419        14.499        .66647E-03   -1.5106    
  16  Prefactor     15.010        13.847        .10338E-03   -1.4933    
  17  Prefactor     .10000E-03    174.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    9.9861        .12863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.1244        4.0606        .11334E-03   -1.5416    
  20  norm          22.886        19.409        .83720E-04   -1.4751    
  21  Prefactor     38.425        55.513        .64650E-04   -1.4467    
  22  Normalizat    1.8463        .63303        .32755E-03   -.68462    
  23  Prefactor     .85939        .33425        .23506E-03   -.97575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.306e-10
Minuit parameter uncertainties:
  1  9.78571e-06
  2  3.03327e-06
  3  4.50005e-05
  4  6.13831e-06
  5  1.88718e-06
  6  7.3246e-07
  7  50.182
  8  2.06413e-06
  9  14.7104
  10  3.05784e-05
  11  0.000209306
  12  3.74231e-06
  13  0.000241668
  14  30.7258
  15  14.5042
  16  13.8501
  17  0.000345948
  18  5.52142e-06
  19  4.06117
  20  19.4145
  21  55.5881
  22  0.635887
  23  0.33505
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  3.058e-05  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.594e-01  3.351e-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.846e+00  6.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 204.424 -12.952
Photon Flux Upper Limit: 2.81e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/799236/likelihoodResults_356227201_356486401_4FGL_J1337.6-1257_daily_bin451.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1739.09569787
delta logL = -0.00026349390896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1739.09543931
delta logL = -4.9356638101e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9155       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8463       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85939       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=   1739.095     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      275 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    636.52        .10806E-01** at limit **
   2  alpha         1.9235        2.7443        .16757        .96421E-07
   3  Normalizat    1.8463        .75273E-01    .32755E-03    .14644E-02
   4  Prefactor     .85940        .39153E-01    .23506E-03    .20411E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.92349
  Normalizat = 1.84629
  Prefactor  = 0.859398
 **********
 **   18 **HESSE 
 **********

 FCN=   1739.095     FROM HESSE     STATUS=OK            23 CALLS      298 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    24.480        .19750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9235        3.0712        .67030E-02   -.23270    
   3  Normalizat    1.8463        .61676        .65509E-04   -.68462    
   4  Prefactor     .85940        .32140        .47011E-04   -.97575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50308e-08
Minuit parameter uncertainties:
  1  0.000195386
  2  350.424
  3  0.619398
  4  0.322107
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799236': 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) = 1739.09543372
delta logL = 6.50613856124e-07

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  1.954e-04  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.923e+00  3.504e+02  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:  8.594e-01  3.221e-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.846e+00  6.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 204.424 -12.952

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/799236/cmap_HighResolution_356227201_356486401_4FGL_J1337.6-1257_daily_bin451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-04', job_status='DONE', photon_flux_upper_limit='2.81e-07', time_completed='2021-09-08 04:48:05.547999', job_id='799236', GAL2='0.86', fit_tolerance='1e-08', EG2='1.85', EG='1.85', time_epoch_completed='1631101685.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='6.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='451' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:48:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 799236: <4FGL_J1337.6-1257_daily_bin451> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin451> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 04:40:33 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:40:42 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:42 2021
Terminated at Wed Sep  8 04:48:06 2021
Results reported at Wed Sep  8 04:48:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin451 204.424 -12.9517 356227201 356486401 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 :                                   400.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   445 sec.
    Turnaround time :                            453 sec.

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

