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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin241
RA = 204.424, Dec = -12.9517
tmin = 301795201, tmax = 302054401
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='797632', job_status='RUN', time_executed='2021-09-08 04:37:35.131599', time_epoch_executed='1631101055.13' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='241'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/797632

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/797632/ft1_4FGL_J1337.6-1257_daily_bin241.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/797632/ft2_4FGL_J1337.6-1257_daily_bin241.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/797632/ft1_4FGL_J1337.6-1257_daily_bin241.fits outfile=/scratch/kocevski/797632/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin241.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=301795201.0 tmax=302054401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.06
user 3.82
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/797632/ft1_filtered_4FGL_J1337.6-1257_daily_bin241.fits" evtable="EVENTS" scfile=/scratch/kocevski/797632/ft2_4FGL_J1337.6-1257_daily_bin241.fits sctable="SC_DATA" outfile=/scratch/kocevski/797632/ltcube_301795201_302054401_4FGL_J1337.6-1257_daily_bin241.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/797632/ft2_4FGL_J1337.6-1257_daily_bin241.fits
.....................!
real 14.73
user 14.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/797632/ft1_filtered_4FGL_J1337.6-1257_daily_bin241.fits evtable="EVENTS" scfile=/scratch/kocevski/797632/ft2_4FGL_J1337.6-1257_daily_bin241.fits sctable="SC_DATA" expcube=/scratch/kocevski/797632/ltcube_301795201_302054401_4FGL_J1337.6-1257_daily_bin241.fits outfile=/scratch/kocevski/797632/expmap_301795201_302054401_4FGL_J1337.6-1257_daily_bin241.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/797632/ltcube_301795201_302054401_4FGL_J1337.6-1257_daily_bin241.fits
.....................!
real 192.57
user 186.77
sys 5.13

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/797632/ft1_filtered_4FGL_J1337.6-1257_daily_bin241.fits scfile=/scratch/kocevski/797632/ft2_4FGL_J1337.6-1257_daily_bin241.fits outfile=/scratch/kocevski/797632/cmap_301795201_302054401_4FGL_J1337.6-1257_daily_bin241.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/797632/ft1_filtered_4FGL_J1337.6-1257_daily_bin241.fits scfile=/scratch/kocevski/797632/ft2_4FGL_J1337.6-1257_daily_bin241.fits outfile=/scratch/kocevski/797632/cmap_HighResolution_301795201_302054401_4FGL_J1337.6-1257_daily_bin241.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.61
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/797632/ft1_filtered_4FGL_J1337.6-1257_daily_bin241.fits evtable="EVENTS" scfile=/scratch/kocevski/797632/ft2_4FGL_J1337.6-1257_daily_bin241.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/797632/Model_4FGL_J1337.6-1257_daily_bin241.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/797632/ft1_filtered_4FGL_J1337.6-1257_daily_bin241.fits.....................!
real 74.34
user 72.58
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6848       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9199       1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.6981       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.299       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.7616       1.0000         .10000E-03   10000.    
     9 'norm      '    3.4430       1.0000         .10000E-03   10000.    
    10 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2802       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.523       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11657E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.7712       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5277       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.1932       1.0000         .10000E-03   10000.    
    19 'norm      '    4.2052       1.0000         .10000E-03   10000.    
    20 'norm      '    10.111       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0230       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96225       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=   10036.41     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2520 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6846        5.1384       -.97315E-08    .29190E-04
   2  norm          1.9198        1.9294       -.38382E-08    .18324E-04
   3  norm          .10000E-03    5.3553        .51702E-08** at limit **
   4  norm          2.6972        1.7735       -.43307E-06   -.15268E-03
   5  Prefactor     .10000E-03    8.2146        .17281E-07** at limit **
   6  Prefactor     22.300        8.5891        .76238E-08    .11847E-03
   7  Prefactor     .10000E-03    12.330        .26002E-07** at limit **
   8  norm          7.7615        1.8206       -.29797E-08   -.19510E-03
   9  norm          3.4440        2.5519       -.50182E-08    .23831E-03
  10  norm          .10000E-03    4.0100       -.18663E-08** at limit **
  11  Prefactor     5.2816        9.6454       -.24896E-07    .16503E-03
  12  Prefactor     24.525        17.767        .20617E-07   -.86768E-03
  13  norm          .10000E-03    25.271       -.47336E-09** at limit **
  14  Prefactor     .10000E-03    8.1808        .22455E-07** at limit **
  15  norm          1.7716        2.1360       -.11598E-08   -.49959E-04
  16  Prefactor     2.5268        3.6696       -.15958E-07   -.50197E-04
  17  Prefactor     .10001E-03    10.237       -.47740E-07** at limit **
  18  norm          2.1933        2.6264        .45910E-09   -.13306E-05
  19  norm          4.2052        2.1266       -.15095E-08   -.12176E-03
  20  norm          10.110        6.4602       -.30573E-08    .48159E-05
  21  Prefactor     .10000E-03    6.8188       -.17130E-07** at limit **
  22  Normalizat    1.0230        .18980        .21160E-07    .50748E-04
  23  Prefactor     .96229        .98142E-01    .12521E-07    .74170E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.68462
  norm       = 1.91981
  norm       = 0.0001
  norm       = 2.69724
  Prefactor  = 0.000100002
  Prefactor  = 22.3002
  Prefactor  = 0.000100003
  norm       = 7.76151
  norm       = 3.44399
  norm       = 0.0001
  Prefactor  = 5.28164
  Prefactor  = 24.5247
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 1.77165
  Prefactor  = 2.52679
  Prefactor  = 0.000100011
  norm       = 2.19331
  norm       = 4.20519
  norm       = 10.1103
  Prefactor  = 0.000100001
  Normalizat = 1.02299
  Prefactor  = 0.962291
 **********
 **   18 **HESSE 
 **********

 FCN=   10036.41     FROM HESSE     STATUS=OK           374 CALLS     2894 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6846        5.1355        .21040E-03   -1.5324    
   2  norm          1.9198        1.9249        .13514E-03   -1.5431    
   3  norm          .10000E-03    5.4036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.6972        9.6231        .12400E-02   -1.5379    
   5  Prefactor     .10000E-03    8.4396        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.300        8.6314        .84822E-04   -1.4763    
   7  Prefactor     .10000E-03    12.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.7615        1.8315        .31129E-03   -1.5151    
   9  norm          3.4440        2.5314        .13126E-03   -1.5337    
  10  norm          .10000E-03    4.0729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.2816        9.6033        .17492E-03   -1.5248    
  12  Prefactor     24.525        17.768        .80890E-04   -1.4717    
  13  norm          .10000E-03    25.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.2976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.7716        2.1271        .15583E-03   -1.5442    
  16  Prefactor     2.5268        3.6669        .21776E-03   -1.5390    
  17  Prefactor     .10001E-03    10.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.1933        2.6157        .17133E-03   -1.5412    
  19  norm          4.2052        2.1281        .98944E-04   -1.5298    
  20  norm          10.110        6.4576        .12602E-03   -1.5072    
  21  Prefactor     .10000E-03    6.8351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0230        .22261        .34095E-03   -.92264    
  23  Prefactor     .96229        .11572        .18903E-03   -.93997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23372e-09
Minuit parameter uncertainties:
  1  5.1361
  2  1.92495
  3  3.15736e-05
  4  9.62863
  5  0.000245141
  6  8.6319
  7  0.000403053
  8  1.83155
  9  2.53151
  10  2.21986e-05
  11  9.60614
  12  17.772
  13  1.03534e-06
  14  0.000290062
  15  2.12715
  16  3.66725
  17  0.000675686
  18  2.61585
  19  2.12816
  20  6.45807
  21  0.000193981
  22  0.222813
  23  0.115746
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  2.220e-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:  9.623e-01  1.157e-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.023e+00  2.228e-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: 6.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.28e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/797632/likelihoodResults_301795201_302054401_4FGL_J1337.6-1257_daily_bin241.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) = 10036.4091374
delta logL = -0.00117078871699

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10036.4079667
delta logL = -6.81029632688e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3243       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0229       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96236       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=   10036.41     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      242 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.1676        .36285E-02** at limit **
   2  alpha         2.7006        3.7645        .16512E-01    .30294E-07
   3  Normalizat    1.0230        .20833        .34095E-03   -.56714E-03
   4  Prefactor     .96229        .11318        .18903E-03   -.10580E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.70056
  Normalizat = 1.02299
  Prefactor  = 0.96229
 **********
 **   18 **HESSE 
 **********

 FCN=   10036.41     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.8744        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7006        3.6460        .66049E-03    .80310E-01
   3  Normalizat    1.0230        .20845        .68190E-04   -.92264    
   4  Prefactor     .96229        .11325        .37806E-04   -.93997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39398e-10
Minuit parameter uncertainties:
  1  3.53907e-06
  2  183.982
  3  0.208614
  4  0.113281
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/797632': 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) = 10036.4079646
delta logL = 2.01385955734e-06

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  3.539e-06  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.701e+00  1.840e+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:  9.623e-01  1.133e-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.023e+00  2.086e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/797632/cmap_HighResolution_301795201_302054401_4FGL_J1337.6-1257_daily_bin241.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.28e-05', job_status='DONE', photon_flux_upper_limit='6.33e-08', time_completed='2021-09-08 04:51:41.168894', job_id='797632', GAL2='0.96', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1631101901.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.01e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='241' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:51:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 797632: <4FGL_J1337.6-1257_daily_bin241> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin241> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 04:35:19 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:35:30 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:35:30 2021
Terminated at Wed Sep  8 04:51:41 2021
Results reported at Wed Sep  8 04:51:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin241 204.424 -12.9517 301795201 302054401 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 :                                   842.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            982 sec.

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

