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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin128
RA = 204.424, Dec = -12.9517
tmin = 272505601, tmax = 272764801
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='796198', job_status='RUN', time_executed='2021-09-08 04:33:30.209862', time_epoch_executed='1631100810.21' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/796198

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/796198/ft1_4FGL_J1337.6-1257_daily_bin128.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/796198/ft2_4FGL_J1337.6-1257_daily_bin128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/796198/ft1_4FGL_J1337.6-1257_daily_bin128.fits outfile=/scratch/kocevski/796198/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin128.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=272505601.0 tmax=272764801.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 1.79
user 1.57
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/796198/ft1_filtered_4FGL_J1337.6-1257_daily_bin128.fits" evtable="EVENTS" scfile=/scratch/kocevski/796198/ft2_4FGL_J1337.6-1257_daily_bin128.fits sctable="SC_DATA" outfile=/scratch/kocevski/796198/ltcube_272505601_272764801_4FGL_J1337.6-1257_daily_bin128.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/796198/ft2_4FGL_J1337.6-1257_daily_bin128.fits
.....................!
real 17.95
user 17.47
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/796198/ft1_filtered_4FGL_J1337.6-1257_daily_bin128.fits evtable="EVENTS" scfile=/scratch/kocevski/796198/ft2_4FGL_J1337.6-1257_daily_bin128.fits sctable="SC_DATA" expcube=/scratch/kocevski/796198/ltcube_272505601_272764801_4FGL_J1337.6-1257_daily_bin128.fits outfile=/scratch/kocevski/796198/expmap_272505601_272764801_4FGL_J1337.6-1257_daily_bin128.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/796198/ltcube_272505601_272764801_4FGL_J1337.6-1257_daily_bin128.fits
.....................!
real 193.94
user 186.69
sys 6.39

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/796198/ft1_filtered_4FGL_J1337.6-1257_daily_bin128.fits scfile=/scratch/kocevski/796198/ft2_4FGL_J1337.6-1257_daily_bin128.fits outfile=/scratch/kocevski/796198/cmap_272505601_272764801_4FGL_J1337.6-1257_daily_bin128.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/796198/ft1_filtered_4FGL_J1337.6-1257_daily_bin128.fits scfile=/scratch/kocevski/796198/ft2_4FGL_J1337.6-1257_daily_bin128.fits outfile=/scratch/kocevski/796198/cmap_HighResolution_272505601_272764801_4FGL_J1337.6-1257_daily_bin128.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.5824       1.0000         .10000E-03   10000.    
     3 'norm      '    .79109       1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.0570       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12279E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.5821       1.0000         .10000E-03   10000.    
     9 'norm      '    10.049       1.0000         .10000E-03   10000.    
    10 'norm      '    10.697       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.504       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.115       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.197       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9231       1.0000         .10000E-03   10000.    
    17 'Prefactor '    76.266       1.0000         .10000E-03   10000.    
    18 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .13148E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.4217       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .32608       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2973       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0205       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=   9171.850     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2919 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.7459        .12678E-06** at limit **
   2  norm          5.5828        3.1997        .44354E-07   -.54098E-04
   3  norm          .79844        5.5963        .26141E-06   -.13020E-03
   4  norm          .10000E-03    4.0220        .23759E-07** at limit **
   5  Prefactor     8.0567        6.9106        .71944E-07   -.11394E-04
   6  Prefactor     .10000E-03    3.3681        .67814E-07** at limit **
   7  Prefactor     .10000E-03    25.161       -.20536E-07** at limit **
   8  norm          4.5818        1.9734        .59842E-07   -.17949E-03
   9  norm          10.047        4.1211       -.99052E-08   -.89833E-04
  10  norm          10.697        6.3056       -.17643E-06    .79178E-06
  11  Prefactor     13.504        12.833        .83274E-07   -.19231E-03
  12  Prefactor     12.117        26.152        .72169E-06   -.13665E-03
  13  norm          .10000E-03    10.146        .43147E-07** at limit **
  14  Prefactor     .10000E-03    3.0346       -.81218E-07** at limit **
  15  norm          13.197        6.9780       -.39100E-07   -.76588E-04
  16  Prefactor     3.9230        5.0408        .32877E-05    .53755E-04
  17  Prefactor     76.242        57.948        .18153E-06   -.19295E-03
  18  norm          .10000E-03    3.0097       -.35855E-07** at limit **
  19  norm          .10000E-03    .96636        .17547E-06** at limit **
  20  norm          7.4210        6.0732        .16981E-06   -.28291E-03
  21  Prefactor     .27037        14.888       -.77599E-06    .22547E-04
  22  Normalizat    1.2973        .23005       -.17342E-05   -.49444E-04
  23  Prefactor     1.0205        .11703        .12669E-06   -.73657E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 5.58283
  norm       = 0.798437
  norm       = 0.0001
  Prefactor  = 8.05674
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.58184
  norm       = 10.0471
  norm       = 10.6971
  Prefactor  = 13.5044
  Prefactor  = 12.1172
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.1975
  Prefactor  = 3.923
  Prefactor  = 76.2419
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.42104
  Prefactor  = 0.270374
  Normalizat = 1.29733
  Prefactor  = 1.02046
 **********
 **   18 **HESSE 
 **********

 FCN=   9171.850     FROM HESSE     STATUS=OK           386 CALLS     3305 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.7750        .18105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.5828        3.2043        .12499E-03   -1.5235    
   3  norm          .79844        17.509        .43743E-02   -1.5529    
   4  norm          .10000E-03    4.0447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.0567        6.9134        .14125E-03   -1.5140    
   6  Prefactor     .10000E-03    3.3895        .17161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.5818        1.9900        .81752E-04   -1.5280    
   9  norm          10.047        4.1119        .11455E-03   -1.5074    
  10  norm          10.697        6.3047        .12250E-03   -1.5054    
  11  Prefactor     13.504        12.827        .10900E-03   -1.4973    
  12  Prefactor     12.117        26.257        .11509E-03   -1.5012    
  13  norm          .10000E-03    10.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.0410        .16294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.197        6.9807        .11026E-03   -1.4981    
  16  Prefactor     3.9230        5.0503        .10184E-02   -1.5312    
  17  Prefactor     76.242        58.478        .45980E-04   -1.3959    
  18  norm          .10000E-03    3.0373        .16233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    9.3842        .17882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.4210        6.0554        .14722E-03   -1.5163    
  21  Prefactor     .27037        19.290        .10460       -1.5604    
  22  Normalizat    1.2973        .26244        .35758E-03   -.83646    
  23  Prefactor     1.0205        .13511        .21139E-03   -.92051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21902e-08
Minuit parameter uncertainties:
  1  1.59439e-06
  2  3.20439
  3  7.47991
  4  1.21673e-05
  5  6.9141
  6  1.389e-05
  7  1.02622e-05
  8  1.98998
  9  4.11202
  10  6.3051
  11  12.8298
  12  26.2816
  13  6.88925e-06
  14  4.37503e-05
  15  6.98116
  16  5.05083
  17  58.5217
  18  2.1604e-05
  19  0.000119437
  20  6.05595
  21  4.56821
  22  0.262705
  23  0.135155
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.070e+01  6.305e+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.020e+00  1.352e-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.297e+00  2.627e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.09
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 6.51e-08 +/- 3.84e-08
Energy Flux (Fixed Index): 2.35e-05 +/- 1.38e-05

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) = 9171.54547492
delta logL = 0.304976692512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9171.53890149
delta logL = 0.311550116432

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.132       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7980       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3223       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0131       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=   9171.539     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      240 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.131        6.7970        .12007E-03    .24545E-03
   2  alpha         1.7981        .60540        .18597E-01    .54794E-04
   3  Normalizat    1.3224        .24465        .35488E-03    .73120E-03
   4  Prefactor     1.0132        .13049        .21211E-03    .11404E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 11.1312
  alpha      = 1.79809
  Normalizat = 1.32244
  Prefactor  = 1.01315
 **********
 **   18 **HESSE 
 **********

 FCN=   9171.539     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.131        6.8553        .24015E-04   -1.5041    
   2  alpha         1.7981        .61052        .74387E-03   -.28459    
   3  Normalizat    1.3224        .24478        .70977E-04   -.82899    
   4  Prefactor     1.0132        .13056        .42422E-04   -.92292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.69608e-10
Minuit parameter uncertainties:
  1  6.85574
  2  0.617311
  3  0.244996
  4  0.130606
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/796198': 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) = 9171.53889869
delta logL = 0.311552919073

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.113e+01  6.856e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.798e+00  6.173e-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.013e+00  1.306e-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.322e+00  2.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.77
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 1.80 +/- 0.62
Photon Flux (Free Index): 4.11e-08 +/- 3.60e-08
Energy Flux (Free Index): 2.96e-05 +/- 2.14e-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/796198/cmap_HighResolution_272505601_272764801_4FGL_J1337.6-1257_daily_bin128.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.51e-08', energy_flux2='2.96e-05', photon_flux_error='3.84e-08', dlogl='3.12e-01', energy_flux='2.35e-05', photon_flux2='4.11e-08', job_status='DONE', time_completed='2021-09-08 04:45:58.176899', photon_index_error2='0.62', photon_index2='1.80', ts='8.09', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.14e-05', EG='1.30', time_epoch_completed='1631101558.18', return_code='0', job_id='796198', GAL2='1.01', EG2='1.32', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='3.60e-08', ts2='8.77', photon_index='2.30' WHERE bin_id='128' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:45:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 796198: <4FGL_J1337.6-1257_daily_bin128> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin128 204.424 -12.9517 272505601 272764801 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 :                                   741.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            923 sec.

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

