/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 17 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 = 7432
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1337.6-1257_daily_bin514
RA = 204.424, Dec = -12.9517
tmin = 372556801, tmax = 372816001
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='799339', job_status='RUN', time_executed='2021-09-08 04:41:21.185462', time_epoch_executed='1631101281.19' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='514'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799339

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799339/ft1_4FGL_J1337.6-1257_daily_bin514.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799339/ft2_4FGL_J1337.6-1257_daily_bin514.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799339/ft1_4FGL_J1337.6-1257_daily_bin514.fits outfile=/scratch/kocevski/799339/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin514.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=372556801.0 tmax=372816001.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.42
user 3.14
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799339/ft1_filtered_4FGL_J1337.6-1257_daily_bin514.fits" evtable="EVENTS" scfile=/scratch/kocevski/799339/ft2_4FGL_J1337.6-1257_daily_bin514.fits sctable="SC_DATA" outfile=/scratch/kocevski/799339/ltcube_372556801_372816001_4FGL_J1337.6-1257_daily_bin514.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/799339/ft2_4FGL_J1337.6-1257_daily_bin514.fits
.....................!
real 16.31
user 15.97
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799339/ft1_filtered_4FGL_J1337.6-1257_daily_bin514.fits evtable="EVENTS" scfile=/scratch/kocevski/799339/ft2_4FGL_J1337.6-1257_daily_bin514.fits sctable="SC_DATA" expcube=/scratch/kocevski/799339/ltcube_372556801_372816001_4FGL_J1337.6-1257_daily_bin514.fits outfile=/scratch/kocevski/799339/expmap_372556801_372816001_4FGL_J1337.6-1257_daily_bin514.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/799339/ltcube_372556801_372816001_4FGL_J1337.6-1257_daily_bin514.fits
.....................!
real 192.55
user 186.62
sys 5.32

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/799339/ft1_filtered_4FGL_J1337.6-1257_daily_bin514.fits scfile=/scratch/kocevski/799339/ft2_4FGL_J1337.6-1257_daily_bin514.fits outfile=/scratch/kocevski/799339/cmap_372556801_372816001_4FGL_J1337.6-1257_daily_bin514.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/799339/ft1_filtered_4FGL_J1337.6-1257_daily_bin514.fits scfile=/scratch/kocevski/799339/ft2_4FGL_J1337.6-1257_daily_bin514.fits outfile=/scratch/kocevski/799339/cmap_HighResolution_372556801_372816001_4FGL_J1337.6-1257_daily_bin514.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/799339/ft1_filtered_4FGL_J1337.6-1257_daily_bin514.fits evtable="EVENTS" scfile=/scratch/kocevski/799339/ft2_4FGL_J1337.6-1257_daily_bin514.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799339/Model_4FGL_J1337.6-1257_daily_bin514.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/799339/ft1_filtered_4FGL_J1337.6-1257_daily_bin514.fits.....................!
real 74.20
user 72.07
sys 1.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.805       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9825       1.0000         .10000E-03   10000.    
     3 'norm      '    25.739       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.496       1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.715       1.0000         .10000E-03   10000.    
     8 'norm      '    .38950       1.0000         .10000E-03   10000.    
     9 'norm      '    8.5336       1.0000         .10000E-03   10000.    
    10 'norm      '    16.437       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7669       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.152       1.0000         .10000E-03   10000.    
    13 'norm      '    28.521       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.070       1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.155       1.0000         .10000E-03   10000.    
    18 'norm      '    8.9837       1.0000         .10000E-03   10000.    
    19 'norm      '    2.3265       1.0000         .10000E-03   10000.    
    20 'norm      '    .79777E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.355       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6379       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0807       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=   8809.750     FROM MIGRAD    STATUS=CONVERGED    887 CALLS     3665 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.807        10.412        .92360E-04    .24126E-04
   2  norm          1.9825        1.8911        .12204E-03   -.44715E-05
   3  norm          25.742        13.510        .78960E-04    .28796E-04
   4  norm          .10000E-03    3.9066        .18111E-02** at limit **
   5  Prefactor     .10000E-03    2.8814        .15552E-02** at limit **
   6  Prefactor     36.500        14.105        .66340E-04    .66834E-04
   7  Prefactor     37.716        37.230        .65262E-04    .19510E-04
   8  norm          .38955        1.3253        .18784E-03   -.16644E-03
   9  norm          8.5344        7.0848        .13722E-03    .17564E-04
  10  norm          16.437        10.759        .98790E-04    .13119E-04
  11  Prefactor     5.7602        17.652        .16725E-03    .66615E-05
  12  Prefactor     17.151        24.057        .96708E-04    .54076E-05
  13  norm          28.524        36.547        .75018E-04    .78804E-05
  14  Prefactor     .10000E-03    10.786        .18142E-02** at limit **
  15  norm          .10000E-03    3.0481        .15927E-02** at limit **
  16  Prefactor     10.072        8.7374        .63134E-03    .28668E-04
  17  Prefactor     34.158        41.485        .68568E-04    .89533E-05
  18  norm          8.9844        9.6997        .13372E-03    .28906E-05
  19  norm          2.3239        2.6917        .15747E-03    .16966E-03
  20  norm          .39178E-01    9.2621        .74752E-01    .20224E-03
  21  Prefactor     13.312        31.183        .10961E-03   -.28005E-04
  22  Normalizat    1.6376        .32861        .38571E-03   -.25937E-05
  23  Prefactor     1.0808        .16088        .23689E-03    .28589E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 18.8067
  norm       = 1.98255
  norm       = 25.7419
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.5003
  Prefactor  = 37.7164
  norm       = 0.389554
  norm       = 8.53435
  norm       = 16.4371
  Prefactor  = 5.76022
  Prefactor  = 17.1515
  norm       = 28.5245
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.0724
  Prefactor  = 34.1578
  norm       = 8.98442
  norm       = 2.32391
  norm       = 0.0391778
  Prefactor  = 13.3115
  Normalizat = 1.63764
  Prefactor  = 1.08076
 **********
 **   18 **HESSE 
 **********

 FCN=   8809.750     FROM HESSE     STATUS=OK           358 CALLS     4023 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.807        10.412        .36944E-05   -1.4840    
   2  norm          1.9825        1.8912        .48815E-05   -1.5426    
   3  norm          25.742        13.511        .31584E-05   -1.4693    
   4  norm          .10000E-03    3.9068        .36221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8815        .31104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     36.500        14.108        .26536E-05   -1.4499    
   7  Prefactor     37.716        37.242        .26105E-05   -1.4479    
   8  norm          .38955        1.3250        .75135E-05   -1.5583    
   9  norm          8.5344        7.0849        .54890E-05   -1.5124    
  10  norm          16.437        10.758        .39516E-05   -1.4897    
  11  Prefactor     5.7602        17.651        .66900E-05   -1.5228    
  12  Prefactor     17.151        24.059        .38683E-05   -1.4879    
  13  norm          28.524        36.560        .30007E-05   -1.4639    
  14  Prefactor     .10000E-03    10.789        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.0489        .31854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.072        8.7317        .25254E-04   -1.5073    
  17  Prefactor     34.158        41.481        .27427E-05   -1.4538    
  18  norm          8.9844        9.6957        .53489E-05   -1.5108    
  19  norm          2.3239        2.6910        .62988E-05   -1.5403    
  20  norm          .39178E-01    8.6432        .78571E-01   -1.5668    
  21  Prefactor     13.312        31.185        .43842E-05   -1.4978    
  22  Normalizat    1.6376        .32883        .15429E-04   -.73981    
  23  Prefactor     1.0808        .16101        .47379E-04   -.90084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87571e-10
Minuit parameter uncertainties:
  1  10.4131
  2  1.89121
  3  13.5129
  4  2.8826e-06
  5  2.81781e-06
  6  14.109
  7  37.2651
  8  1.32509
  9  7.0856
  10  10.7597
  11  17.6673
  12  24.0728
  13  36.5886
  14  1.25784e-05
  15  1.68688e-06
  16  8.73282
  17  41.5156
  18  9.69738
  19  2.69113
  20  1.16251
  21  31.2233
  22  0.329269
  23  0.161082
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.644e+01  1.076e+01  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.081e+00  1.611e-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.638e+00  3.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.71
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.00e-07 +/- 6.55e-08
Energy Flux (Fixed Index): 3.61e-05 +/- 2.36e-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) = 8809.67796351
delta logL = 0.0715516004529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8809.67135706
delta logL = 0.078158044973

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.476       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0631       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6579       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0739       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=   8809.671     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      243 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.471        10.643        .95808E-04   -.52211E-05
   2  alpha         2.0637        .58875        .17126E-01    .35184E-06
   3  Normalizat    1.6571        .30545        .38404E-03   -.35701E-04
   4  Prefactor     1.0744        .15719        .23751E-03    .46908E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.4714
  alpha      = 2.06365
  Normalizat = 1.65706
  Prefactor  = 1.07438
 **********
 **   18 **HESSE 
 **********

 FCN=   8809.671     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.471        10.613        .38323E-05   -1.4872    
   2  alpha         2.0637        .58685        .68502E-03   -.17544    
   3  Normalizat    1.6571        .30557        .15362E-04   -.73456    
   4  Prefactor     1.0744        .15728        .95005E-05   -.90290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63229e-11
Minuit parameter uncertainties:
  1  10.6137
  2  0.592559
  3  0.305918
  4  0.157343
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799339': 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) = 8809.67135258
delta logL = 0.0781625223772

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.747e+01  1.061e+01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.064e+00  5.926e-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.074e+00  1.573e-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.657e+00  3.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.91
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.06 +/- 0.59
Photon Flux (Free Index): 8.18e-08 +/- 6.75e-08
Energy Flux (Free Index): 3.93e-05 +/- 2.55e-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/799339/cmap_HighResolution_372556801_372816001_4FGL_J1337.6-1257_daily_bin514.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.00e-07', energy_flux2='3.93e-05', photon_flux_error='6.55e-08', dlogl='7.82e-02', energy_flux='3.61e-05', photon_flux2='8.18e-08', job_status='DONE', time_completed='2021-09-08 04:55:11.574926', photon_index_error2='0.59', photon_index2='2.06', ts='4.71', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='2.55e-05', EG='1.64', time_epoch_completed='1631102111.57', return_code='0', job_id='799339', GAL2='1.07', EG2='1.66', return_code2='0', energy_flux_error='2.36e-05', photon_flux_error2='6.75e-08', ts2='4.91', photon_index='2.30' WHERE bin_id='514' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:55:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 799339: <4FGL_J1337.6-1257_daily_bin514> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin514> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 04:40:42 2021
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:40:49 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:49 2021
Terminated at Wed Sep  8 04:55:12 2021
Results reported at Wed Sep  8 04:55:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin514 204.424 -12.9517 372556801 372816001 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 :                                   825.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             374.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            870 sec.

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

