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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin319
RA = 204.424, Dec = -12.9517
tmin = 322012801, tmax = 322272001
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='797746', job_status='RUN', time_executed='2021-09-08 04:40:16.023074', time_epoch_executed='1631101216.02' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/797746

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/797746/ft1_4FGL_J1337.6-1257_daily_bin319.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/797746/ft2_4FGL_J1337.6-1257_daily_bin319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/797746/ft1_4FGL_J1337.6-1257_daily_bin319.fits outfile=/scratch/kocevski/797746/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin319.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=322012801.0 tmax=322272001.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.38
user 3.16
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/797746/ft1_filtered_4FGL_J1337.6-1257_daily_bin319.fits" evtable="EVENTS" scfile=/scratch/kocevski/797746/ft2_4FGL_J1337.6-1257_daily_bin319.fits sctable="SC_DATA" outfile=/scratch/kocevski/797746/ltcube_322012801_322272001_4FGL_J1337.6-1257_daily_bin319.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/797746/ft2_4FGL_J1337.6-1257_daily_bin319.fits
.....................!
real 13.41
user 13.05
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/797746/ft1_filtered_4FGL_J1337.6-1257_daily_bin319.fits evtable="EVENTS" scfile=/scratch/kocevski/797746/ft2_4FGL_J1337.6-1257_daily_bin319.fits sctable="SC_DATA" expcube=/scratch/kocevski/797746/ltcube_322012801_322272001_4FGL_J1337.6-1257_daily_bin319.fits outfile=/scratch/kocevski/797746/expmap_322012801_322272001_4FGL_J1337.6-1257_daily_bin319.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/797746/ltcube_322012801_322272001_4FGL_J1337.6-1257_daily_bin319.fits
.....................!
real 189.65
user 185.36
sys 3.70

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/797746/ft1_filtered_4FGL_J1337.6-1257_daily_bin319.fits scfile=/scratch/kocevski/797746/ft2_4FGL_J1337.6-1257_daily_bin319.fits outfile=/scratch/kocevski/797746/cmap_322012801_322272001_4FGL_J1337.6-1257_daily_bin319.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/797746/ft1_filtered_4FGL_J1337.6-1257_daily_bin319.fits scfile=/scratch/kocevski/797746/ft2_4FGL_J1337.6-1257_daily_bin319.fits outfile=/scratch/kocevski/797746/cmap_HighResolution_322012801_322272001_4FGL_J1337.6-1257_daily_bin319.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.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/797746/ft1_filtered_4FGL_J1337.6-1257_daily_bin319.fits evtable="EVENTS" scfile=/scratch/kocevski/797746/ft2_4FGL_J1337.6-1257_daily_bin319.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/797746/Model_4FGL_J1337.6-1257_daily_bin319.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/797746/ft1_filtered_4FGL_J1337.6-1257_daily_bin319.fits.....................!
real 57.38
user 56.02
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.149       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.7199       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.911       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.5679       1.0000         .10000E-03   10000.    
     8 'norm      '    .68951       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    14.274       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.168       1.0000         .10000E-03   10000.    
    12 'Prefactor '    58.974       1.0000         .10000E-03   10000.    
    13 'norm      '    12.193       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10268E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5696       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.4129       1.0000         .10000E-03   10000.    
    19 'norm      '    1.5160       1.0000         .10000E-03   10000.    
    20 'norm      '    6.1554       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2831       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91073       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6874.398     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2191 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.149        10.451         .0000        .26149E-04
   2  norm          .10000E-03    1.2415         .0000    ** at limit **
   3  norm          1.7205        11.526         .0000        .91822E-02
   4  norm          .10000E-03    5.4355         .0000    ** at limit **
   5  Prefactor     .10000E-03    3.1302         .0000    ** at limit **
   6  Prefactor     13.912        9.5141         .0000        .10673E-03
   7  Prefactor     7.5672        16.390         .0000        .10976E-02
   8  norm          .68977        1.6785         .0000        .15777E-02
   9  norm          .10000E-03    2.2173         .0000    ** at limit **
  10  norm          14.274        8.6928         .0000        .60927E-04
  11  Prefactor     11.166        13.542         .0000       -.49261E-04
  12  Prefactor     58.974        32.839         .0000       -.11265E-03
  13  norm          12.193        20.525         .0000        .24291E-04
  14  Prefactor     .10000E-03    12.420         .0000    ** at limit **
  15  norm          .10000E-03    6.2962         .0000    ** at limit **
  16  Prefactor     2.5696        6.3613         .0000        .72415E-03
  17  Prefactor     .10000E-03    14.009         .0000    ** at limit **
  18  norm          4.4126        7.7599         .0000        .29703E-03
  19  norm          1.5164        2.6112         .0000        .98807E-03
  20  norm          6.1547        6.5410         .0000       -.18810E-03
  21  Prefactor     .10000E-03    44.081         .0000    ** at limit **
  22  Normalizat    1.2830        .25340         .0000        .13001E-04
  23  Prefactor     .91074        .12323         .0000        .69035E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.1493
  norm       = 0.0001
  norm       = 1.72051
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9116
  Prefactor  = 7.56716
  norm       = 0.689773
  norm       = 0.0001
  norm       = 14.2739
  Prefactor  = 11.166
  Prefactor  = 58.974
  norm       = 12.1929
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.56964
  Prefactor  = 0.0001
  norm       = 4.4126
  norm       = 1.51639
  norm       = 6.15472
  Prefactor  = 0.0001
  Normalizat = 1.28299
  Prefactor  = 0.91074
 **********
 **   18 **HESSE 
 **********

 FCN=   6874.398     FROM HESSE     STATUS=OK           374 CALLS     2565 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.149        10.451        .94014E-04   -1.4856    
   2  norm          .10000E-03    1.2639        .90198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7205        11.565        .16017E-02   -1.5446    
   4  norm          .10000E-03    5.4564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.1342        .14325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.912        9.5345        .10739E-03   -1.4962    
   7  Prefactor     7.5672        16.287        .72889E-03   -1.5158    
   8  norm          .68977        1.6844        .15370E-03   -1.5542    
   9  norm          .10000E-03    2.2237        .11974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.274        8.6532        .10602E-03   -1.4952    
  11  Prefactor     11.166        13.519        .11988E-03   -1.5040    
  12  Prefactor     58.974        32.838        .52243E-04   -1.4171    
  13  norm          12.193        20.520        .11472E-03   -1.5009    
  14  Prefactor     .10000E-03    12.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.4581        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.5696        6.2494        .25464E-03   -1.5387    
  17  Prefactor     .10000E-03    14.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.4126        7.6242        .19171E-03   -1.5288    
  19  norm          1.5164        2.5838        .16609E-03   -1.5462    
  20  norm          6.1547        6.5248        .16181E-03   -1.5212    
  21  Prefactor     .10000E-03    44.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2830        .29593        .33687E-03   -.84075    
  23  Prefactor     .91074        .14515        .20325E-03   -.95767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.6356e-10
Minuit parameter uncertainties:
  1  10.4519
  2  4.05097e-06
  3  8.92359
  4  6.82798e-06
  5  5.977e-06
  6  9.53555
  7  16.2964
  8  1.68453
  9  1.73521e-05
  10  8.65393
  11  13.5231
  12  32.8476
  13  20.5323
  14  3.08293e-05
  15  4.22829e-06
  16  6.25097
  17  1.08883e-05
  18  7.62592
  19  2.58401
  20  6.52554
  21  0.000109294
  22  0.296325
  23  0.145208
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.427e+01  8.654e+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.107e-01  1.452e-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.283e+00  2.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.24
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 8.69e-08 +/- 5.27e-08
Energy Flux (Fixed Index): 3.13e-05 +/- 1.90e-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) = 6874.3980567
delta logL = 0.000373769438738

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6874.3980002
delta logL = 0.000430267360571

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.335       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2867       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2845       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91037       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=   6874.398     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      226 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.349        184.40        .26447E-02    .54601E-04
   2  alpha         2.2878        3.2822        .39104        .32071E-04
   3  Normalizat    1.2844        .17838        .76080E-01    .23344E-04
   4  Prefactor     .91030        .63584E-01    .45137E-01   -.45544E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 14.3491
  alpha      = 2.28782
  Normalizat = 1.28441
  Prefactor  = 0.910302
 **********
 **   18 **HESSE 
 **********

 FCN=   6874.398     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.349        8.6010        .10579E-03   -1.4950    
   2  alpha         2.2878        .57451        .14075E-01   -.84974E-01
   3  Normalizat    1.2844        .27714        .33671E-03   -.84033    
   4  Prefactor     .91030        .14285        .20329E-03   -.95782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.44849e-12
Minuit parameter uncertainties:
  1  8.60176
  2  0.579731
  3  0.277461
  4  0.142913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/797746': 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) = 6874.39799515
delta logL = 0.00043532233758

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.435e+01  8.602e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.288e+00  5.797e-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.103e-01  1.429e-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.284e+00  2.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.25
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.29 +/- 0.58
Photon Flux (Free Index): 8.57e-08 +/- 6.33e-08
Energy Flux (Free Index): 3.14e-05 +/- 1.84e-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/797746/cmap_HighResolution_322012801_322272001_4FGL_J1337.6-1257_daily_bin319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.69e-08', energy_flux2='3.14e-05', photon_flux_error='5.27e-08', dlogl='4.35e-04', energy_flux='3.13e-05', photon_flux2='8.57e-08', job_status='DONE', time_completed='2021-09-08 04:49:47.464777', photon_index_error2='0.58', photon_index2='2.29', ts='6.24', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.84e-05', EG='1.28', time_epoch_completed='1631101787.46', return_code='0', job_id='797746', GAL2='0.91', EG2='1.28', return_code2='0', energy_flux_error='1.90e-05', photon_flux_error2='6.33e-08', ts2='6.25', photon_index='2.30' WHERE bin_id='319' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:49:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 797746: <4FGL_J1337.6-1257_daily_bin319> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin319> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 04:35:26 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:36:56 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:36:56 2021
Terminated at Wed Sep  8 04:49:48 2021
Results reported at Wed Sep  8 04:49:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin319 204.424 -12.9517 322012801 322272001 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 :                                   570.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            862 sec.

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

