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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin429
RA = 204.424, Dec = -12.9517
tmin = 350524801, tmax = 350784001
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='799199', job_status='RUN', time_executed='2021-09-08 04:44:16.966489', time_epoch_executed='1631101456.97' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='429'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799199

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799199/ft1_4FGL_J1337.6-1257_daily_bin429.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799199/ft2_4FGL_J1337.6-1257_daily_bin429.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799199/ft1_4FGL_J1337.6-1257_daily_bin429.fits outfile=/scratch/kocevski/799199/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin429.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=350524801.0 tmax=350784001.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.41
user 3.18
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799199/ft1_filtered_4FGL_J1337.6-1257_daily_bin429.fits" evtable="EVENTS" scfile=/scratch/kocevski/799199/ft2_4FGL_J1337.6-1257_daily_bin429.fits sctable="SC_DATA" outfile=/scratch/kocevski/799199/ltcube_350524801_350784001_4FGL_J1337.6-1257_daily_bin429.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/799199/ft2_4FGL_J1337.6-1257_daily_bin429.fits
.....................!
real 16.92
user 16.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799199/ft1_filtered_4FGL_J1337.6-1257_daily_bin429.fits evtable="EVENTS" scfile=/scratch/kocevski/799199/ft2_4FGL_J1337.6-1257_daily_bin429.fits sctable="SC_DATA" expcube=/scratch/kocevski/799199/ltcube_350524801_350784001_4FGL_J1337.6-1257_daily_bin429.fits outfile=/scratch/kocevski/799199/expmap_350524801_350784001_4FGL_J1337.6-1257_daily_bin429.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/799199/ltcube_350524801_350784001_4FGL_J1337.6-1257_daily_bin429.fits
.....................!
real 193.53
user 187.30
sys 4.85

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/799199/ft1_filtered_4FGL_J1337.6-1257_daily_bin429.fits scfile=/scratch/kocevski/799199/ft2_4FGL_J1337.6-1257_daily_bin429.fits outfile=/scratch/kocevski/799199/cmap_350524801_350784001_4FGL_J1337.6-1257_daily_bin429.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799199/ft1_filtered_4FGL_J1337.6-1257_daily_bin429.fits scfile=/scratch/kocevski/799199/ft2_4FGL_J1337.6-1257_daily_bin429.fits outfile=/scratch/kocevski/799199/cmap_HighResolution_350524801_350784001_4FGL_J1337.6-1257_daily_bin429.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=204.424 yref=-12.9517 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/799199/ft1_filtered_4FGL_J1337.6-1257_daily_bin429.fits evtable="EVENTS" scfile=/scratch/kocevski/799199/ft2_4FGL_J1337.6-1257_daily_bin429.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799199/Model_4FGL_J1337.6-1257_daily_bin429.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/799199/ft1_filtered_4FGL_J1337.6-1257_daily_bin429.fits.....................!
real 58.53
user 57.01
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    28.078       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0843       1.0000         .10000E-03   10000.    
     3 'norm      '    7.6168       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.232       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3867       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.871       1.0000         .10000E-03   10000.    
     8 'norm      '    .45457       1.0000         .10000E-03   10000.    
     9 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.6796       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .20590E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.195       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.1070       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.662       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .14298E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.0860       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .97882       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1062       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=   7036.804     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2212 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.078        13.904        .10389E-06    .27572E-04
   2  norm          1.0844        2.1314       -.23526E-06   -.84369E-03
   3  norm          7.6168        8.1106       -.43200E-07   -.20141E-04
   4  norm          .10000E-03    5.3907        .36476E-08** at limit **
   5  Prefactor     28.232        14.200        .75958E-08    .14954E-04
   6  Prefactor     4.3866        7.2283        .11903E-06   -.19891E-03
   7  Prefactor     26.870        19.265        .14800E-06    .38925E-04
   8  norm          .45446        .71770       -.21361E-07   -.24003E-03
   9  norm          .10000E-03    1.6674        .33205E-08** at limit **
  10  norm          6.6800        6.3630        .12706E-05   -.78371E-04
  11  Prefactor     .10037E-03    11.792       -.12506E-05** at limit **
  12  Prefactor     16.194        19.627        .22312E-06    .11465E-03
  13  norm          .10000E-03    9.1894       -.12893E-07** at limit **
  14  Prefactor     .10000E-03    19.070       -.20601E-04** at limit **
  15  norm          1.1072        3.1583       -.66531E-06   -.88994E-03
  16  Prefactor     15.660        6.5532       -.21889E-05   -.10524E-02
  17  Prefactor     .10000E-03    23.824       -.13305E-04** at limit **
  18  norm          .10000E-03    16.595        .15138E-04** at limit **
  19  norm          5.0859        3.0799       -.83808E-07   -.67349E-03
  20  norm          .10000E-03    2.5950       -.16009E-07** at limit **
  21  Prefactor     .10000E-03    27.378        .26592E-04** at limit **
  22  Normalizat    .97876        .25338        .82326E-06    .34553E-04
  23  Prefactor     1.1063        .13219        .30301E-06    .17091E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 28.0775
  norm       = 1.08436
  norm       = 7.61684
  norm       = 0.0001
  Prefactor  = 28.2319
  Prefactor  = 4.38661
  Prefactor  = 26.8703
  norm       = 0.454457
  norm       = 0.0001
  norm       = 6.68002
  Prefactor  = 0.000100373
  Prefactor  = 16.1942
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.10725
  Prefactor  = 15.6604
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.0859
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.978763
  Prefactor  = 1.10628
 **********
 **   18 **HESSE 
 **********

 FCN=   7036.804     FROM HESSE     STATUS=OK           380 CALLS     2592 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.078        13.894        .75606E-04   -1.4648    
   2  norm          1.0844        1.6591        .16684E-02   -1.5500    
   3  norm          7.6168        8.1122        .14531E-03   -1.5156    
   4  norm          .10000E-03    5.4188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.232        14.193        .75401E-04   -1.4645    
   6  Prefactor     4.3866        7.2132        .19230E-03   -1.5289    
   7  Prefactor     26.870        19.234        .77282E-04   -1.4671    
   8  norm          .45446        .57433        .86489E-03   -1.5573    
   9  norm          .10000E-03    1.6712        .10549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.6800        6.3470        .15526E-03   -1.5191    
  11  Prefactor     .10037E-03    62.586        .54312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.194        19.617        .99524E-04   -1.4903    
  13  norm          .10000E-03    9.1900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.143        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1072        2.8695        .24190E-02   -1.5498    
  16  Prefactor     15.660        6.6051        .10120E-03   -1.4916    
  17  Prefactor     .10000E-03    23.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    17.213        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.0859        3.0796        .10897E-03   -1.5257    
  20  norm          .10000E-03    2.6041        .13195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    27.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .97876        .28712        .37973E-03   -.93745    
  23  Prefactor     1.1063        .15054        .19464E-03   -.89266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.88544e-09
Minuit parameter uncertainties:
  1  13.8952
  2  1.65913
  3  8.11335
  4  2.453e-06
  5  14.1944
  6  7.21467
  7  19.2383
  8  0.574334
  9  5.47724e-06
  10  6.34763
  11  0.00966918
  12  19.6247
  13  5.59488e-07
  14  0.000297921
  15  2.86982
  16  6.60546
  17  2.00186e-05
  18  0.000121225
  19  3.07969
  20  2.26124e-06
  21  0.000106921
  22  0.287577
  23  0.150601
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  6.680e+00  6.348e+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.106e+00  1.506e-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:  9.788e-01  2.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.49
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 4.07e-08 +/- 3.86e-08
Energy Flux (Fixed Index): 1.47e-05 +/- 1.39e-05

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

Saving results to:
/scratch/kocevski/799199/likelihoodResults_350524801_350784001_4FGL_J1337.6-1257_daily_bin429.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) = 7036.80024571
delta logL = 0.00349847779853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7036.79971766
delta logL = 0.00402652838147

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5103       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4079       1.0000          .0000       5.0000    
     3 'Normalizat'    .97437       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1076       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=   7036.800     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      228 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5089        6.4740        .15729E-03   -.45536E-05
   2  alpha         2.4087        1.1261        .82374E-02    .16130E-04
   3  Normalizat    .97443        .27762        .38044E-03   -.11505E-04
   4  Prefactor     1.1076        .14955        .19453E-03   -.58909E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.50894
  alpha      = 2.40868
  Normalizat = 0.974427
  Prefactor  = 1.1076
 **********
 **   18 **HESSE 
 **********

 FCN=   7036.800     FROM HESSE     STATUS=OK            25 CALLS      253 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5089        6.4092        .62915E-05   -1.5198    
   2  alpha         2.4087        1.1152        .16475E-02   -.36536E-01
   3  Normalizat    .97443        .27769        .15218E-04   -.93892    
   4  Prefactor     1.1076        .14962        .38906E-04   -.89224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80024e-12
Minuit parameter uncertainties:
  1  6.4099
  2  1.15596
  3  0.278101
  4  0.149679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799199': 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) = 7036.79971739
delta logL = 0.00402679778654

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  6.509e+00  6.410e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.409e+00  1.156e+00  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.108e+00  1.497e-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:  9.744e-01  2.781e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.51
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.41 +/- 1.16
Photon Flux (Free Index): 4.48e-08 +/- 6.15e-08
Energy Flux (Free Index): 1.46e-05 +/- 1.33e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.76e-05', comment='SUCCESS', photon_flux='4.07e-08', energy_flux2='1.46e-05', photon_flux_error='3.86e-08', dlogl='4.03e-03', energy_flux='1.47e-05', photon_flux2='4.48e-08', job_status='DONE', time_completed='2021-09-08 04:55:22.079048', photon_index_error2='1.16', photon_index2='2.41', ts='2.49', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='1.33e-05', EG='0.98', time_epoch_completed='1631102122.08', return_code='0', job_id='799199', GAL2='1.11', EG2='0.97', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='6.15e-08', ts2='2.51', photon_index='2.30' WHERE bin_id='429' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:55:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 799199: <4FGL_J1337.6-1257_daily_bin429> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin429> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 04:40:30 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:40:38 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:38 2021
Terminated at Wed Sep  8 04:55:22 2021
Results reported at Wed Sep  8 04:55:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin429 204.424 -12.9517 350524801 350784001 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 :                                   661.48 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             270.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            892 sec.

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

