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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin398
RA = 204.424, Dec = -12.9517
tmin = 342489601, tmax = 342748801
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='799149', job_status='RUN', time_executed='2021-09-08 04:44:01.102173', time_epoch_executed='1631101441.1' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='398'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799149

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799149/ft1_4FGL_J1337.6-1257_daily_bin398.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799149/ft2_4FGL_J1337.6-1257_daily_bin398.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799149/ft1_4FGL_J1337.6-1257_daily_bin398.fits outfile=/scratch/kocevski/799149/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin398.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=342489601.0 tmax=342748801.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.46
user 3.25
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799149/ft1_filtered_4FGL_J1337.6-1257_daily_bin398.fits" evtable="EVENTS" scfile=/scratch/kocevski/799149/ft2_4FGL_J1337.6-1257_daily_bin398.fits sctable="SC_DATA" outfile=/scratch/kocevski/799149/ltcube_342489601_342748801_4FGL_J1337.6-1257_daily_bin398.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/799149/ft2_4FGL_J1337.6-1257_daily_bin398.fits
.....................!
real 14.53
user 14.11
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799149/ft1_filtered_4FGL_J1337.6-1257_daily_bin398.fits evtable="EVENTS" scfile=/scratch/kocevski/799149/ft2_4FGL_J1337.6-1257_daily_bin398.fits sctable="SC_DATA" expcube=/scratch/kocevski/799149/ltcube_342489601_342748801_4FGL_J1337.6-1257_daily_bin398.fits outfile=/scratch/kocevski/799149/expmap_342489601_342748801_4FGL_J1337.6-1257_daily_bin398.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/799149/ltcube_342489601_342748801_4FGL_J1337.6-1257_daily_bin398.fits
.....................!
real 194.68
user 188.38
sys 5.45

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/799149/ft1_filtered_4FGL_J1337.6-1257_daily_bin398.fits scfile=/scratch/kocevski/799149/ft2_4FGL_J1337.6-1257_daily_bin398.fits outfile=/scratch/kocevski/799149/cmap_342489601_342748801_4FGL_J1337.6-1257_daily_bin398.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/799149/ft1_filtered_4FGL_J1337.6-1257_daily_bin398.fits scfile=/scratch/kocevski/799149/ft2_4FGL_J1337.6-1257_daily_bin398.fits outfile=/scratch/kocevski/799149/cmap_HighResolution_342489601_342748801_4FGL_J1337.6-1257_daily_bin398.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.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/799149/ft1_filtered_4FGL_J1337.6-1257_daily_bin398.fits evtable="EVENTS" scfile=/scratch/kocevski/799149/ft2_4FGL_J1337.6-1257_daily_bin398.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799149/Model_4FGL_J1337.6-1257_daily_bin398.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/799149/ft1_filtered_4FGL_J1337.6-1257_daily_bin398.fits.....................!
real 63.45
user 61.81
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.125       1.0000         .10000E-03   10000.    
     2 'norm      '    6.0636       1.0000         .10000E-03   10000.    
     3 'norm      '    3.9793       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9568       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .51393E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.1802       1.0000         .10000E-03   10000.    
    10 'norm      '    3.7246       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    15.799       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.5093       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.772       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .77236E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.9362       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.2834       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1039       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99457       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=   8001.932     FROM MIGRAD    STATUS=CONVERGED    886 CALLS     2582 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.117        9.1892        .10299E-03    .22497E-03
   2  norm          6.0647        3.1983        .11206E-03   -.24045E-03
   3  norm          3.9762        7.1675        .20219E-03    .64999E-04
   4  norm          .10000E-03    2.0764        .12588E-02** at limit **
   5  Prefactor     .10000E-03    2.6093        .14093E-02** at limit **
   6  Prefactor     4.9600        7.5924        .18064E-03    .22204E-03
   7  Prefactor     .10014E-03    46.968        .51631E-02** at limit **
   8  norm          .10000E-03    .43074        .56765E-03** at limit **
   9  norm          2.1873        2.3669        .68695E-03    .24319E-02
  10  norm          3.7269        4.6233        .10269E-02    .38025E-03
  11  Prefactor     .10000E-03    4.3188        .18131E-02** at limit **
  12  Prefactor     .10000E-03    24.347        .18142E-02** at limit **
  13  norm          15.784        23.681        .10076E-03    .19719E-03
  14  Prefactor     .10000E-03    8.1839        .18142E-02** at limit **
  15  norm          3.5074        3.6873        .17026E-03    .25814E-03
  16  Prefactor     15.772        6.2294        .10085E-03    .70578E-03
  17  Prefactor     .10009E-03    174.73        .78137E-02** at limit **
  18  norm          6.9389        7.8911        .15233E-03    .98662E-04
  19  norm          .10000E-03    .72398        .73845E-03** at limit **
  20  norm          .10000E-03    3.1746        .15470E-02** at limit **
  21  Prefactor     8.2860        19.667        .13929E-03    .48154E-05
  22  Normalizat    1.1041        .25119        .34063E-03    .67385E-03
  23  Prefactor     .99453        .13422        .19182E-03    .10962E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 15.1174
  norm       = 6.06471
  norm       = 3.97623
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.96002
  Prefactor  = 0.000100139
  norm       = 0.0001
  norm       = 2.1873
  norm       = 3.72693
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.7836
  Prefactor  = 0.0001
  norm       = 3.50737
  Prefactor  = 15.7724
  Prefactor  = 0.000100086
  norm       = 6.93893
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.28596
  Normalizat = 1.10409
  Prefactor  = 0.994535
 **********
 **   18 **HESSE 
 **********

 FCN=   8001.932     FROM HESSE     STATUS=OK           346 CALLS     2928 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.117        9.1891        .41195E-05   -1.4930    
   2  norm          6.0647        3.1983        .44823E-05   -1.5215    
   3  norm          3.9762        7.1673        .80877E-05   -1.5309    
   4  norm          .10000E-03    2.0764        .25177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.6095        .28187E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.9600        7.5918        .72256E-05   -1.5263    
   7  Prefactor     .10014E-03    47.497        .10326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .43077        .11353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.1873        2.3608        .27478E-04   -1.5412    
  10  norm          3.7269        4.6210        .41076E-04   -1.5322    
  11  Prefactor     .10000E-03    4.3192        .36261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.355        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          15.784        23.681        .20153E-04   -1.4913    
  14  Prefactor     .10000E-03    8.1903        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.5074        3.6871        .68104E-05   -1.5333    
  16  Prefactor     15.772        6.2285        .40341E-05   -1.4913    
  17  Prefactor     .10009E-03    181.72        .31255E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.9389        7.8904        .60933E-05   -1.5181    
  19  norm          .10000E-03    .72404        .14769E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.1757        .30940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.2860        19.666        .55718E-05   -1.5132    
  22  Normalizat    1.1041        .25134        .68125E-04   -.89621    
  23  Prefactor     .99453        .13431        .38364E-04   -.92912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.48571e-09
Minuit parameter uncertainties:
  1  9.18998
  2  3.19836
  3  7.16887
  4  8.05898e-07
  5  9.10525e-06
  6  7.59332
  7  0.00513376
  8  3.32877e-06
  9  2.36095
  10  4.62149
  11  1.82065e-05
  12  4.7663e-05
  13  23.6948
  14  8.07822e-05
  15  3.68735
  16  6.22878
  17  0.00791679
  18  7.89159
  19  6.01326e-06
  20  1.5087e-05
  21  19.6818
  22  0.251613
  23  0.13435
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  3.727e+00  4.621e+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:  9.945e-01  1.344e-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.104e+00  2.516e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.06
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 2.27e-08 +/- 2.81e-08
Energy Flux (Fixed Index): 8.18e-06 +/- 1.01e-05

TS (Fixed Index): 1.06
Ra Dec: 204.424 -12.952
Photon Flux Upper Limit: 9.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/799149/likelihoodResults_342489601_342748801_4FGL_J1337.6-1257_daily_bin398.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) = 8001.91526491
delta logL = 0.0172273589769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8001.91373154
delta logL = 0.0187607322614

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9691       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1287       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99355       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=   8001.914     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      242 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9693        4.9502        .20246E-03   -.63504E-03
   2  alpha         2.1290        .88684        .26603E-01   -.41240E-04
   3  Normalizat    1.1072        .24292        .34022E-03   -.33419E-03
   4  Prefactor     .99353        .13141        .19191E-03   -.63948E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.96927
  alpha      = 2.12905
  Normalizat = 1.10721
  Prefactor  = 0.993529
 **********
 **   18 **HESSE 
 **********

 FCN=   8001.914     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9693        4.9059        .80983E-05   -1.5309    
   2  alpha         2.1290        .87955        .10641E-02   -.14893    
   3  Normalizat    1.1072        .24308        .13609E-04   -.89521    
   4  Prefactor     .99353        .13150        .38381E-04   -.92946    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.62874e-10
Minuit parameter uncertainties:
  1  4.90642
  2  0.899252
  3  0.243326
  4  0.131539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799149': 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) = 8001.91373144
delta logL = 0.0187608308179

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  3.969e+00  4.906e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.129e+00  8.993e-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:  9.935e-01  1.315e-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.107e+00  2.433e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.13 +/- 0.90
Photon Flux (Free Index): 1.99e-08 +/- 2.90e-08
Energy Flux (Free Index): 8.76e-06 +/- 1.11e-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/799149/cmap_HighResolution_342489601_342748801_4FGL_J1337.6-1257_daily_bin398.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.43e-05', comment='SUCCESS', photon_flux='2.27e-08', energy_flux2='8.76e-06', photon_flux_error='2.81e-08', dlogl='1.88e-02', energy_flux='8.18e-06', photon_flux2='1.99e-08', job_status='DONE', time_completed='2021-09-08 04:56:09.159534', photon_index_error2='0.90', photon_index2='2.13', ts='1.06', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='9.53e-08', energy_flux_error2='1.11e-05', EG='1.10', time_epoch_completed='1631102169.16', return_code='0', job_id='799149', GAL2='0.99', EG2='1.11', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='2.90e-08', ts2='1.09', photon_index='2.30' WHERE bin_id='398' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:56:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 799149: <4FGL_J1337.6-1257_daily_bin398> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin398> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 04:40:26 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:40:33 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:33 2021
Terminated at Wed Sep  8 04:56:09 2021
Results reported at Wed Sep  8 04:56:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin398 204.424 -12.9517 342489601 342748801 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 :                                   724.11 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             270.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            943 sec.

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

