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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin143
RA = 204.424, Dec = -12.9517
tmin = 276393601, tmax = 276652801
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='796223', job_status='RUN', time_executed='2021-09-08 04:35:21.143318', time_epoch_executed='1631100921.14' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='143'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/796223

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/796223/ft1_4FGL_J1337.6-1257_daily_bin143.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/796223/ft2_4FGL_J1337.6-1257_daily_bin143.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/796223/ft1_4FGL_J1337.6-1257_daily_bin143.fits outfile=/scratch/kocevski/796223/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin143.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=276393601.0 tmax=276652801.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.53
user 3.30
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/796223/ft1_filtered_4FGL_J1337.6-1257_daily_bin143.fits" evtable="EVENTS" scfile=/scratch/kocevski/796223/ft2_4FGL_J1337.6-1257_daily_bin143.fits sctable="SC_DATA" outfile=/scratch/kocevski/796223/ltcube_276393601_276652801_4FGL_J1337.6-1257_daily_bin143.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/796223/ft2_4FGL_J1337.6-1257_daily_bin143.fits
.....................!
real 13.14
user 12.76
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/796223/ft1_filtered_4FGL_J1337.6-1257_daily_bin143.fits evtable="EVENTS" scfile=/scratch/kocevski/796223/ft2_4FGL_J1337.6-1257_daily_bin143.fits sctable="SC_DATA" expcube=/scratch/kocevski/796223/ltcube_276393601_276652801_4FGL_J1337.6-1257_daily_bin143.fits outfile=/scratch/kocevski/796223/expmap_276393601_276652801_4FGL_J1337.6-1257_daily_bin143.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/796223/ltcube_276393601_276652801_4FGL_J1337.6-1257_daily_bin143.fits
.....................!
real 191.31
user 186.21
sys 4.52

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/796223/ft1_filtered_4FGL_J1337.6-1257_daily_bin143.fits scfile=/scratch/kocevski/796223/ft2_4FGL_J1337.6-1257_daily_bin143.fits outfile=/scratch/kocevski/796223/cmap_276393601_276652801_4FGL_J1337.6-1257_daily_bin143.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=204.424 yref=-12.9517 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.16

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

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

This is gtbin version HEAD
real 0.57
user 0.42
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/796223/ft1_filtered_4FGL_J1337.6-1257_daily_bin143.fits evtable="EVENTS" scfile=/scratch/kocevski/796223/ft2_4FGL_J1337.6-1257_daily_bin143.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/796223/Model_4FGL_J1337.6-1257_daily_bin143.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/796223/ft1_filtered_4FGL_J1337.6-1257_daily_bin143.fits.....................!
real 56.66
user 54.93
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    4.3129       1.0000         .10000E-03   10000.    
     3 'norm      '    8.9960       1.0000         .10000E-03   10000.    
     4 'norm      '    6.3419       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8952       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0398       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.965       1.0000         .10000E-03   10000.    
     8 'norm      '    3.5410       1.0000         .10000E-03   10000.    
     9 'norm      '    .10971E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.4281       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    28.504       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.1162       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6631       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.5606       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.2697       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.8243       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .85301       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=   6633.022     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2139 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9458       -.30101E-07** at limit **
   2  norm          4.3127        3.1914       -.35986E-07   -.30111E-04
   3  norm          8.9953        11.079       -.27928E-07   -.20802E-03
   4  norm          6.3409        11.806       -.74454E-07   -.26892E-03
   5  Prefactor     3.8960        9.8920        .38390E-06   -.59360E-03
   6  Prefactor     7.0396        10.810        .25132E-06   -.42150E-03
   7  Prefactor     10.951        17.377       -.44763E-05   -.78318E-04
   8  norm          3.5408        1.8984       -.38321E-07   -.38918E-04
   9  norm          .10000E-03    2.1876        .31646E-06** at limit **
  10  norm          5.4290        6.6310       -.30668E-06   -.58872E-04
  11  Prefactor     .10000E-03    14.078       -.70509E-07** at limit **
  12  Prefactor     .10000E-03    7.9410       -.37243E-06** at limit **
  13  norm          28.508        29.103        .30656E-05    .29279E-04
  14  Prefactor     .10000E-03    23.082        .77123E-05** at limit **
  15  norm          9.1174        6.9982       -.35846E-06   -.89606E-04
  16  Prefactor     3.6626        4.1574        .26739E-06   -.16308E-02
  17  Prefactor     .10000E-03    21.634       -.81060E-05** at limit **
  18  norm          9.5598        7.8166        .18380E-06    .10635E-04
  19  norm          .10000E-03    .76558       -.81560E-07** at limit **
  20  norm          9.2697        7.7276        .58495E-07    .16640E-04
  21  Prefactor     .10000E-03    40.995       -.16842E-05** at limit **
  22  Normalizat    1.8242        .27683        .38379E-06   -.82453E-04
  23  Prefactor     .85309        .13878       -.18123E-06   -.70426E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 4.31267
  norm       = 8.99532
  norm       = 6.34086
  Prefactor  = 3.89598
  Prefactor  = 7.03962
  Prefactor  = 10.9507
  norm       = 3.54082
  norm       = 0.0001
  norm       = 5.42901
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.5075
  Prefactor  = 0.0001
  norm       = 9.11743
  Prefactor  = 3.66259
  Prefactor  = 0.0001
  norm       = 9.55984
  norm       = 0.0001
  norm       = 9.26966
  Prefactor  = 0.0001
  Normalizat = 1.82421
  Prefactor  = 0.853087
 **********
 **   18 **HESSE 
 **********

 FCN=   6633.022     FROM HESSE     STATUS=OK           370 CALLS     2509 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9531        .15799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.3127        3.1957        .12124E-03   -1.5293    
   3  norm          8.9953        11.166        .66815E-03   -1.5108    
   4  norm          6.3409        11.991        .79693E-03   -1.5204    
   5  Prefactor     3.8960        11.006        .10222E-02   -1.5313    
   6  Prefactor     7.0396        11.023        .75598E-03   -1.5177    
   7  Prefactor     10.951        17.374        .12099E-03   -1.5046    
   8  norm          3.5408        1.9054        .78227E-04   -1.5332    
   9  norm          .10000E-03    2.2165        .11763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.4290        6.6194        .17247E-03   -1.5242    
  11  Prefactor     .10000E-03    14.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.9427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          28.508        29.098        .75040E-04   -1.4640    
  14  Prefactor     .10000E-03    23.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.1174        7.0098        .13274E-03   -1.5104    
  16  Prefactor     3.6626        6.4980        .10552E-02   -1.5325    
  17  Prefactor     .10000E-03    21.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.5598        7.9295        .12961E-03   -1.5089    
  19  norm          .10000E-03    .76887        .69576E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.2697        7.7323        .13163E-03   -1.5099    
  21  Prefactor     .10000E-03    41.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.8242        .32877        .33180E-03   -.69033    
  23  Prefactor     .85309        .16196        .23436E-03   -.97800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56459e-09
Minuit parameter uncertainties:
  1  3.85146e-08
  2  3.19586
  3  11.1689
  4  11.9955
  5  11.0119
  6  11.0263
  7  17.3824
  8  1.9054
  9  4.24976e-05
  10  6.62028
  11  4.33183e-06
  12  3.74293e-06
  13  29.1129
  14  5.57402e-05
  15  7.01043
  16  6.49925
  17  9.43775e-05
  18  7.9304
  19  3.57453e-07
  20  7.73315
  21  3.15443e-05
  22  0.329175
  23  0.162052
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  5.429e+00  6.620e+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:  8.531e-01  1.621e-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.824e+00  3.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.20
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 3.30e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 1.19e-05 +/- 1.45e-05

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

Saving results to:
/scratch/kocevski/796223/likelihoodResults_276393601_276652801_4FGL_J1337.6-1257_daily_bin143.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) = 6632.70095859
delta logL = 0.320836562077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6632.69508651
delta logL = 0.326708638498

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7922       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5639       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87727       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=   6632.695     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      267 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7946        45.032        .60872E-02    .51643E-03
   2  alpha         3.5616        4.2450        .47281        .53563E-04
   3  Normalizat    1.7477        .88869E-01    .76205E-01    .63050E-05
   4  Prefactor     .87712        .40937E-01    .44715E-01    .13161E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.79459
  alpha      = 3.56162
  Normalizat = 1.74771
  Prefactor  = 0.877117
 **********
 **   18 **HESSE 
 **********

 FCN=   6632.695     FROM HESSE     STATUS=OK            33 CALLS      300 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7946        15.143        .11001E-03   -1.5374    
   2  alpha         3.5616        4.1962        .18379E-01    .43857    
   3  Normalizat    1.7477        .36496        .33718E-03   -.71036    
   4  Prefactor     .87712        .17508        .23143E-03   -.96945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91174e-10
Minuit parameter uncertainties:
  1  13.0154
  2  3.71025
  3  0.365527
  4  0.175189
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/796223': 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) = 6632.6950832
delta logL = 0.32671195286

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.795e+00  1.302e+01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  3.562e+00  3.710e+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:  8.771e-01  1.752e-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.748e+00  3.655e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.98
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 3.56 +/- 3.71
Photon Flux (Free Index): 9.98e-08 +/- 1.52e-07
Energy Flux (Free Index): 1.76e-05 +/- 1.56e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/796223/cmap_HighResolution_276393601_276652801_4FGL_J1337.6-1257_daily_bin143.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.81e-05', comment='SUCCESS', photon_flux='3.30e-08', energy_flux2='1.76e-05', photon_flux_error='4.03e-08', dlogl='3.27e-01', energy_flux='1.19e-05', photon_flux2='9.98e-08', job_status='DONE', time_completed='2021-09-08 04:45:55.895118', photon_index_error2='3.71', photon_index2='3.56', ts='1.20', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.56e-05', EG='1.82', time_epoch_completed='1631101555.9', return_code='0', job_id='796223', GAL2='0.88', EG2='1.75', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='1.52e-07', ts2='1.98', photon_index='2.30' WHERE bin_id='143' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:45:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 796223: <4FGL_J1337.6-1257_daily_bin143> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin143> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 04:30:37 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:31:18 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:31:18 2021
Terminated at Wed Sep  8 04:45:56 2021
Results reported at Wed Sep  8 04:45:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin143 204.424 -12.9517 276393601 276652801 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 :                                   633.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            919 sec.

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

