/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 29 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 = 7450
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1582
RA = 204.424, Dec = -12.9517
tmin = 649382401, tmax = 649641601
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='806618', job_status='RUN', time_executed='2021-09-08 05:01:07.571425', time_epoch_executed='1631102467.57' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1582'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806618

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806618/ft1_4FGL_J1337.6-1257_daily_bin1582.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806618/ft2_4FGL_J1337.6-1257_daily_bin1582.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806618/ft1_4FGL_J1337.6-1257_daily_bin1582.fits outfile=/scratch/kocevski/806618/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1582.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=649382401.0 tmax=649641601.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 2.76
user 2.53
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806618/ft1_filtered_4FGL_J1337.6-1257_daily_bin1582.fits" evtable="EVENTS" scfile=/scratch/kocevski/806618/ft2_4FGL_J1337.6-1257_daily_bin1582.fits sctable="SC_DATA" outfile=/scratch/kocevski/806618/ltcube_649382401_649641601_4FGL_J1337.6-1257_daily_bin1582.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/806618/ft2_4FGL_J1337.6-1257_daily_bin1582.fits
.....................!
real 14.82
user 14.47
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806618/ft1_filtered_4FGL_J1337.6-1257_daily_bin1582.fits evtable="EVENTS" scfile=/scratch/kocevski/806618/ft2_4FGL_J1337.6-1257_daily_bin1582.fits sctable="SC_DATA" expcube=/scratch/kocevski/806618/ltcube_649382401_649641601_4FGL_J1337.6-1257_daily_bin1582.fits outfile=/scratch/kocevski/806618/expmap_649382401_649641601_4FGL_J1337.6-1257_daily_bin1582.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/806618/ltcube_649382401_649641601_4FGL_J1337.6-1257_daily_bin1582.fits
.....................!
real 191.15
user 185.84
sys 4.85

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/806618/ft1_filtered_4FGL_J1337.6-1257_daily_bin1582.fits scfile=/scratch/kocevski/806618/ft2_4FGL_J1337.6-1257_daily_bin1582.fits outfile=/scratch/kocevski/806618/cmap_649382401_649641601_4FGL_J1337.6-1257_daily_bin1582.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806618/ft1_filtered_4FGL_J1337.6-1257_daily_bin1582.fits scfile=/scratch/kocevski/806618/ft2_4FGL_J1337.6-1257_daily_bin1582.fits outfile=/scratch/kocevski/806618/cmap_HighResolution_649382401_649641601_4FGL_J1337.6-1257_daily_bin1582.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    2.6483       1.0000         .10000E-03   10000.    
     3 'norm      '    24.839       1.0000         .10000E-03   10000.    
     4 'norm      '    5.3634       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.108       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6610       1.0000         .10000E-03   10000.    
     9 'norm      '    1.6251       1.0000         .10000E-03   10000.    
    10 'norm      '    18.573       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .88385       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7830       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6410       1.0000         .10000E-03   10000.    
    15 'norm      '    6.2930       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .33044E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.7377       1.0000         .10000E-03   10000.    
    18 'norm      '    6.1079       1.0000         .10000E-03   10000.    
    19 'norm      '    5.7795       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5746       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4522       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89880       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=   13137.87     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2179 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.0837       -.21943E-06** at limit **
   2  norm          2.6483        1.4694        .28031E-07    .10005E-04
   3  norm          24.838        10.174        .11372E-06   -.24321E-04
   4  norm          5.3634        5.1220        .42032E-07    .30663E-04
   5  Prefactor     .10000E-03    3.5568       -.72556E-06** at limit **
   6  Prefactor     .10000E-03    2.0769        .27807E-06** at limit **
   7  Prefactor     22.107        15.015        .64909E-06   -.73087E-04
   8  norm          1.6611        1.2518        .87868E-07   -.35857E-04
   9  norm          1.6259        2.8368        .21880E-06   -.70976E-04
  10  norm          18.574        5.9201       -.15105E-06   -.10569E-03
  11  Prefactor     .88472        10.723        .84810E-06   -.48185E-05
  12  Prefactor     3.7826        14.095        .77003E-06   -.79608E-05
  13  norm          .10000E-03    11.151        .10705E-05** at limit **
  14  Prefactor     2.6399        2.5151        .37603E-06   -.35880E-03
  15  norm          6.2930        3.6726        .71410E-07   -.65394E-04
  16  Prefactor     .10000E-03    10.938        .45589E-05** at limit **
  17  Prefactor     7.7387        18.519       -.18350E-05    .43475E-05
  18  norm          6.1197        5.9066        .17130E-06   -.14075E-03
  19  norm          5.7794        2.2593        .98985E-07   -.11202E-03
  20  norm          1.5749        2.3164       -.32249E-06   -.33978E-04
  21  Prefactor     .10000E-03    3.9161        .18814E-05** at limit **
  22  Normalizat    1.4522        .18123       -.11649E-05   -.59298E-04
  23  Prefactor     .89880        .92952E-01   -.30113E-06   -.30089E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.64831
  norm       = 24.8383
  norm       = 5.36336
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.107
  norm       = 1.66106
  norm       = 1.62585
  norm       = 18.5742
  Prefactor  = 0.884722
  Prefactor  = 3.7826
  norm       = 0.0001
  Prefactor  = 2.63993
  norm       = 6.29299
  Prefactor  = 0.0001
  Prefactor  = 7.73871
  norm       = 6.11968
  norm       = 5.77935
  norm       = 1.57493
  Prefactor  = 0.0001
  Normalizat = 1.45221
  Prefactor  = 0.898801
 **********
 **   18 **HESSE 
 **********

 FCN=   13137.87     FROM HESSE     STATUS=OK           382 CALLS     2561 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.1244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.6483        1.4738        .10077E-03   -1.5382    
   3  norm          24.838        10.184        .80376E-04   -1.4711    
   4  norm          5.3634        5.1333        .86764E-03   -1.5245    
   5  Prefactor     .10000E-03    3.5625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.0886        .16138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.107        14.656        .85187E-04   -1.4767    
   8  norm          1.6611        1.2506        .10492E-03   -1.5450    
   9  norm          1.6259        2.7267        .20312E-03   -1.5453    
  10  norm          18.574        5.8972        .92936E-04   -1.4846    
  11  Prefactor     .88472        10.691        .50995E-03   -1.5520    
  12  Prefactor     3.7826        14.131        .20755E-03   -1.5319    
  13  norm          .10000E-03    11.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.6399        6.5203        .12544E-02   -1.5383    
  15  norm          6.2930        3.6698        .16001E-03   -1.5206    
  16  Prefactor     .10000E-03    11.146        .24331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.7387        18.483        .14416E-03   -1.5152    
  18  norm          6.1197        5.8960        .16245E-03   -1.5213    
  19  norm          5.7794        2.2609        .10311E-03   -1.5227    
  20  norm          1.5749        2.2934        .20644E-03   -1.5457    
  21  Prefactor     .10000E-03    3.9169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4522        .21284        .31969E-03   -.79130    
  23  Prefactor     .89880        .11016        .21140E-03   -.96183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85477e-10
Minuit parameter uncertainties:
  1  1.9616e-05
  2  1.47385
  3  10.1852
  4  5.13372
  5  1.15861e-05
  6  3.09645e-06
  7  14.6584
  8  1.25064
  9  2.72694
  10  5.89737
  11  6.15204
  12  14.143
  13  6.68535e-06
  14  6.52203
  15  3.66994
  16  5.58333e-05
  17  18.4971
  18  5.8966
  19  2.26093
  20  2.2935
  21  7.66885e-06
  22  0.212971
  23  0.110184
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.857e+01  5.897e+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.988e-01  1.102e-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.452e+00  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 36.58
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.13e-07 +/- 3.59e-08
Energy Flux (Fixed Index): 4.08e-05 +/- 1.29e-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) = 13133.2089739
delta logL = 4.65848034041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13133.1607738
delta logL = 4.70668046682

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.286       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3364       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5211       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88061       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=   13133.16     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      217 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.286        5.6588        .24811E-02    .11584E-02
   2  alpha         1.3364        .23516        .27196       -.72192E-04
   3  Normalizat    1.5211        .17084        .70982E-01   -.33574E-04
   4  Prefactor     .88061        .91866E-01    .44757E-01   -.17975E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.2863
  alpha      = 1.33641
  Normalizat = 1.52107
  Prefactor  = 0.880606
 **********
 **   18 **HESSE 
 **********

 FCN=   13133.16     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.286        6.9621        .99245E-04   -1.4901    
   2  alpha         1.3364        .30347        .11451E-01   -.48413    
   3  Normalizat    1.5211        .20069        .31405E-03   -.77188    
   4  Prefactor     .88061        .10801        .21347E-03   -.96822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02245e-09
Minuit parameter uncertainties:
  1  6.96243
  2  0.304427
  3  0.200799
  4  0.108037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806618': 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) = 13133.1607738
delta logL = 4.70668046691

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.629e+01  6.962e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.336e+00  3.044e-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:  8.806e-01  1.080e-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.521e+00  2.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 46.26
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 1.34 +/- 0.30
Photon Flux (Free Index): 4.76e-08 +/- 2.20e-08
Energy Flux (Free Index): 8.75e-05 +/- 4.37e-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/806618/cmap_HighResolution_649382401_649641601_4FGL_J1337.6-1257_daily_bin1582.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-07', energy_flux2='8.75e-05', photon_flux_error='3.59e-08', dlogl='4.71e+00', energy_flux='4.08e-05', photon_flux2='4.76e-08', job_status='DONE', time_completed='2021-09-08 05:15:13.104586', photon_index_error2='0.30', photon_index2='1.34', ts='36.58', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='4.37e-05', EG='1.45', time_epoch_completed='1631103313.1', return_code='0', job_id='806618', GAL2='0.88', EG2='1.52', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='2.20e-08', ts2='46.26', photon_index='2.30' WHERE bin_id='1582' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:15:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 806618: <4FGL_J1337.6-1257_daily_bin1582> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1582> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 05:00:25 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 05:00:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 05:00:28 2021
Terminated at Wed Sep  8 05:15:14 2021
Results reported at Wed Sep  8 05:15:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1582 204.424 -12.9517 649382401 649641601 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 :                                   834.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            889 sec.

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

