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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1375
RA = 204.424, Dec = -12.9517
tmin = 595728001, tmax = 595987201
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='805198', job_status='RUN', time_executed='2021-09-08 04:57:34.963430', time_epoch_executed='1631102254.96' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805198

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805198/ft1_4FGL_J1337.6-1257_daily_bin1375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805198/ft2_4FGL_J1337.6-1257_daily_bin1375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805198/ft1_4FGL_J1337.6-1257_daily_bin1375.fits outfile=/scratch/kocevski/805198/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1375.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=595728001.0 tmax=595987201.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 2.66
user 2.39
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805198/ft1_filtered_4FGL_J1337.6-1257_daily_bin1375.fits" evtable="EVENTS" scfile=/scratch/kocevski/805198/ft2_4FGL_J1337.6-1257_daily_bin1375.fits sctable="SC_DATA" outfile=/scratch/kocevski/805198/ltcube_595728001_595987201_4FGL_J1337.6-1257_daily_bin1375.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/805198/ft2_4FGL_J1337.6-1257_daily_bin1375.fits
.....................!
real 13.61
user 13.13
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805198/ft1_filtered_4FGL_J1337.6-1257_daily_bin1375.fits evtable="EVENTS" scfile=/scratch/kocevski/805198/ft2_4FGL_J1337.6-1257_daily_bin1375.fits sctable="SC_DATA" expcube=/scratch/kocevski/805198/ltcube_595728001_595987201_4FGL_J1337.6-1257_daily_bin1375.fits outfile=/scratch/kocevski/805198/expmap_595728001_595987201_4FGL_J1337.6-1257_daily_bin1375.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/805198/ltcube_595728001_595987201_4FGL_J1337.6-1257_daily_bin1375.fits
.....................!
real 192.00
user 186.07
sys 5.40

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/805198/ft1_filtered_4FGL_J1337.6-1257_daily_bin1375.fits scfile=/scratch/kocevski/805198/ft2_4FGL_J1337.6-1257_daily_bin1375.fits outfile=/scratch/kocevski/805198/cmap_595728001_595987201_4FGL_J1337.6-1257_daily_bin1375.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805198/ft1_filtered_4FGL_J1337.6-1257_daily_bin1375.fits scfile=/scratch/kocevski/805198/ft2_4FGL_J1337.6-1257_daily_bin1375.fits outfile=/scratch/kocevski/805198/cmap_HighResolution_595728001_595987201_4FGL_J1337.6-1257_daily_bin1375.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.631       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0070       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.835       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9528       1.0000         .10000E-03   10000.    
     8 'norm      '    .12008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10356E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.5787       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.353       1.0000         .10000E-03   10000.    
    12 'Prefactor '    71.503       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12195E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    19.503       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.9042       1.0000         .10000E-03   10000.    
    17 'Prefactor '    76.285       1.0000         .10000E-03   10000.    
    18 'norm      '    6.4316       1.0000         .10000E-03   10000.    
    19 'norm      '    11.809       1.0000         .10000E-03   10000.    
    20 'norm      '    13.893       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10559E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .68917       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1353       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=   3620.157     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2530 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.634        14.127       -.11276E-06    .32413E-04
   2  norm          .10000E-03    1.3414       -.71538E-07** at limit **
   3  norm          1.0146        58.996        .12286E-04    .23442E-05
   4  norm          .10000E-03    5.8459       -.48271E-07** at limit **
   5  Prefactor     10.835        10.512        .73458E-06    .41357E-04
   6  Prefactor     .10000E-03    5.3075        .15041E-06** at limit **
   7  Prefactor     2.9111        69.960       -.67242E-06   -.36517E-05
   8  norm          .10000E-03    1.2335       -.17734E-06** at limit **
   9  norm          .10000E-03    2.4751        .13608E-05** at limit **
  10  norm          6.5778        7.8014       -.38890E-08   -.20875E-03
  11  Prefactor     13.353        36.967       -.42002E-06    .10193E-04
  12  Prefactor     71.515        76.283       -.17230E-05   -.21564E-04
  13  norm          .10000E-03    12.115       -.66797E-08** at limit **
  14  Prefactor     .10000E-03    41.701       -.81524E-06** at limit **
  15  norm          19.504        13.271        .97810E-07    .18580E-04
  16  Prefactor     2.9031        14.656       -.84945E-06    .32872E-05
  17  Prefactor     76.285        88.798        .59906E-07    .64581E-06
  18  norm          6.4319        14.745        .51189E-06    .58455E-04
  19  norm          11.809        6.7307       -.16480E-06   -.29111E-04
  20  norm          13.887        26.952       -.39805E-07    .16897E-04
  21  Prefactor     .10000E-03    97.384       -.18968E-06** at limit **
  22  Normalizat    .68914        .36897        .95387E-06    .93530E-04
  23  Prefactor     1.1352        .19607        .83944E-06    .10920E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 22.6337
  norm       = 0.0001
  norm       = 1.01457
  norm       = 0.0001
  Prefactor  = 10.8345
  Prefactor  = 0.0001
  Prefactor  = 2.91107
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.5778
  Prefactor  = 13.3534
  Prefactor  = 71.5148
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 19.5041
  Prefactor  = 2.90306
  Prefactor  = 76.285
  norm       = 6.43185
  norm       = 11.8094
  norm       = 13.8866
  Prefactor  = 0.0001
  Normalizat = 0.68914
  Prefactor  = 1.13519
 **********
 **   18 **HESSE 
 **********

 FCN=   3620.157     FROM HESSE     STATUS=OK           372 CALLS     2902 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.634        14.129        .84199E-04   -1.4756    
   2  norm          .10000E-03    1.3467        .68067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0146        59.943        .36651E-02   -1.5507    
   4  norm          .10000E-03    5.8504        .14209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.835        10.469        .12171E-03   -1.5050    
   6  Prefactor     .10000E-03    5.3078        .13523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.9111        71.183        .23634E-03   -1.5367    
   8  norm          .10000E-03    2.7572        .12864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.4105        .90938E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.5778        7.7948        .15646E-03   -1.5195    
  11  Prefactor     13.353        36.818        .10961E-03   -1.4977    
  12  Prefactor     71.515        76.352        .47475E-04   -1.4015    
  13  norm          .10000E-03    12.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    41.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          19.504        13.267        .90694E-04   -1.4824    
  16  Prefactor     2.9031        13.979        .23843E-03   -1.5367    
  17  Prefactor     76.285        88.786        .45974E-04   -1.3959    
  18  norm          6.4319        14.433        .15826E-03   -1.5201    
  19  norm          11.809        6.7320        .11025E-03   -1.5021    
  20  norm          13.887        26.970        .10746E-03   -1.4962    
  21  Prefactor     .10000E-03    97.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .68914        .39388        .43845E-03   -1.0432    
  23  Prefactor     1.1352        .21383        .19920E-03   -.88350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36269e-10
Minuit parameter uncertainties:
  1  14.1307
  2  3.18376e-06
  3  15.6127
  4  8.22474e-06
  5  10.4703
  6  3.09978e-05
  7  28.8281
  8  2.95157e-05
  9  3.56404e-05
  10  7.79604
  11  36.8803
  12  76.4571
  13  1.03373e-06
  14  4.39928e-06
  15  13.2687
  16  12.7452
  17  88.9404
  18  14.4409
  19  6.73243
  20  26.9941
  21  0.000137551
  22  0.395512
  23  0.213989
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  6.578e+00  7.796e+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:  1.135e+00  2.140e-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:  6.891e-01  3.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.01
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 4.00e-08 +/- 4.74e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.71e-05

TS (Fixed Index): 2.01
Ra Dec: 204.424 -12.952
Photon Flux Upper Limit: 1.84e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.64e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805198/likelihoodResults_595728001_595987201_4FGL_J1337.6-1257_daily_bin1375.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): 0
logL (Free Index) = 3619.74274647
delta logL = 0.414124609291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3619.69901912
delta logL = 0.457851960816

Fit tolerance = 1e-08

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

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

 FCN=   3619.699     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      216 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5332        5.0652        .47257E-02   -.11851E-03
   2  alpha         1.2076        .66932        .44968        .71056E-05
   3  Normalizat    .71646        .32866        .97141E-01    .18019E-04
   4  Prefactor     1.1273        .18869        .36632E-01   -.98779E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.53322
  alpha      = 1.20763
  Normalizat = 0.716455
  Prefactor  = 1.12727
 **********
 **   18 **HESSE 
 **********

 FCN=   3619.699     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5332        6.1068        .13726E-03   -1.5282    
   2  alpha         1.2076        .86395        .18345E-01   -.54328    
   3  Normalizat    .71646        .35804        .43051E-03   -1.0325    
   4  Prefactor     1.1273        .20637        .19975E-03   -.88600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.86379e-11
Minuit parameter uncertainties:
  1  6.10766
  2  0.889325
  3  0.359221
  4  0.206521
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805198': 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) = 3619.69901893
delta logL = 0.457852149882

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  4.533e+00  6.108e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.208e+00  8.893e-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:  1.127e+00  2.065e-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:  7.165e-01  3.592e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.92
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 1.21 +/- 0.89
Photon Flux (Free Index): 1.31e-08 +/- 1.74e-08
Energy Flux (Free Index): 3.25e-05 +/- 5.64e-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/805198/cmap_HighResolution_595728001_595987201_4FGL_J1337.6-1257_daily_bin1375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.64e-05', comment='SUCCESS', photon_flux='4.00e-08', energy_flux2='3.25e-05', photon_flux_error='4.74e-08', dlogl='4.58e-01', energy_flux='1.44e-05', photon_flux2='1.31e-08', job_status='DONE', time_completed='2021-09-08 05:05:55.302009', photon_index_error2='0.89', photon_index2='1.21', ts='2.01', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.84e-07', energy_flux_error2='5.64e-05', EG='0.69', time_epoch_completed='1631102755.3', return_code='0', job_id='805198', GAL2='1.13', EG2='0.72', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='1.74e-08', ts2='2.92', photon_index='2.30' WHERE bin_id='1375' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:05:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 805198: <4FGL_J1337.6-1257_daily_bin1375> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1375 204.424 -12.9517 595728001 595987201 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 :                                   493.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   521 sec.
    Turnaround time :                            615 sec.

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

