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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1031
RA = 204.424, Dec = -12.9517
tmin = 506563201, tmax = 506822401
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='803601', job_status='RUN', time_executed='2021-09-08 04:55:48.866414', time_epoch_executed='1631102148.87' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1031'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803601

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803601/ft1_4FGL_J1337.6-1257_daily_bin1031.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803601/ft2_4FGL_J1337.6-1257_daily_bin1031.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803601/ft1_4FGL_J1337.6-1257_daily_bin1031.fits outfile=/scratch/kocevski/803601/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1031.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=506563201.0 tmax=506822401.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.90
user 2.59
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/803601/ft1_filtered_4FGL_J1337.6-1257_daily_bin1031.fits" evtable="EVENTS" scfile=/scratch/kocevski/803601/ft2_4FGL_J1337.6-1257_daily_bin1031.fits sctable="SC_DATA" outfile=/scratch/kocevski/803601/ltcube_506563201_506822401_4FGL_J1337.6-1257_daily_bin1031.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/803601/ft2_4FGL_J1337.6-1257_daily_bin1031.fits
.....................!
real 16.37
user 15.97
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803601/ft1_filtered_4FGL_J1337.6-1257_daily_bin1031.fits evtable="EVENTS" scfile=/scratch/kocevski/803601/ft2_4FGL_J1337.6-1257_daily_bin1031.fits sctable="SC_DATA" expcube=/scratch/kocevski/803601/ltcube_506563201_506822401_4FGL_J1337.6-1257_daily_bin1031.fits outfile=/scratch/kocevski/803601/expmap_506563201_506822401_4FGL_J1337.6-1257_daily_bin1031.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/803601/ltcube_506563201_506822401_4FGL_J1337.6-1257_daily_bin1031.fits
.....................!
real 157.03
user 152.57
sys 3.87

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/803601/ft1_filtered_4FGL_J1337.6-1257_daily_bin1031.fits scfile=/scratch/kocevski/803601/ft2_4FGL_J1337.6-1257_daily_bin1031.fits outfile=/scratch/kocevski/803601/cmap_506563201_506822401_4FGL_J1337.6-1257_daily_bin1031.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.71
user 0.34
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/803601/ft1_filtered_4FGL_J1337.6-1257_daily_bin1031.fits scfile=/scratch/kocevski/803601/ft2_4FGL_J1337.6-1257_daily_bin1031.fits outfile=/scratch/kocevski/803601/cmap_HighResolution_506563201_506822401_4FGL_J1337.6-1257_daily_bin1031.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.51
user 0.34
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/803601/ft1_filtered_4FGL_J1337.6-1257_daily_bin1031.fits evtable="EVENTS" scfile=/scratch/kocevski/803601/ft2_4FGL_J1337.6-1257_daily_bin1031.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/803601/Model_4FGL_J1337.6-1257_daily_bin1031.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/803601/ft1_filtered_4FGL_J1337.6-1257_daily_bin1031.fits.....................!
real 45.79
user 44.51
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    42.652       1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    20.193       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10464E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.943       1.0000         .10000E-03   10000.    
    13 'norm      '    11.855       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .13833E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.4701       1.0000         .10000E-03   10000.    
    20 'norm      '    15.260       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.7474       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3705       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1516       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=   6680.373     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2177 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3845        .10716E-06** at limit **
   2  norm          .10000E-03    .82460        .82720E-08** at limit **
   3  norm          42.646        17.013        .40583E-05   -.47259E-06
   4  norm          .10000E-03    4.7343        .31514E-07** at limit **
   5  Prefactor     .10000E-03    9.8117        .73119E-06** at limit **
   6  Prefactor     .10000E-03    8.7433       -.12169E-05** at limit **
   7  Prefactor     .10000E-03    14.368       -.32980E-06** at limit **
   8  norm          .10000E-03    .55090       -.18212E-07** at limit **
   9  norm          .10000E-03    2.1278       -.32846E-07** at limit **
  10  norm          20.189        9.9058        .20217E-07   -.38440E-04
  11  Prefactor     .10000E-03    14.126        .71010E-06** at limit **
  12  Prefactor     17.896        29.422       -.31157E-05   -.10836E-04
  13  norm          11.853        20.605        .20232E-05   -.65473E-05
  14  Prefactor     .10000E-03    5.9245       -.20688E-07** at limit **
  15  norm          .10000E-03    3.3938        .67246E-06** at limit **
  16  Prefactor     .10000E-03    3.9013        .12250E-06** at limit **
  17  Prefactor     .10000E-03    17.858       -.29006E-06** at limit **
  18  norm          .10000E-03    8.5981       -.12120E-05** at limit **
  19  norm          3.4692        3.4754       -.12025E-06   -.47070E-03
  20  norm          15.259        10.886        .56557E-06   -.33714E-05
  21  Prefactor     4.7454        41.520       -.34199E-05   -.23208E-04
  22  Normalizat    1.3711        .27779       -.14979E-05    .54492E-06
  23  Prefactor     1.1514        .14557        .49598E-06   -.12758E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 42.646
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 20.1887
  Prefactor  = 0.0001
  Prefactor  = 17.8961
  norm       = 11.8532
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.46923
  norm       = 15.2592
  Prefactor  = 4.74545
  Normalizat = 1.37114
  Prefactor  = 1.15136
 **********
 **   18 **HESSE 
 **********

 FCN=   6680.373     FROM HESSE     STATUS=OK           366 CALLS     2543 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3902        .14685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .82656        .72481E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          42.646        16.961        .61383E-04   -1.4401    
   4  norm          .10000E-03    4.7425        .17369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.8638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.8392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.2245        .11804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.1427        .11620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          20.189        9.8911        .89132E-04   -1.4809    
  11  Prefactor     .10000E-03    14.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.896        29.462        .94552E-04   -1.4862    
  13  norm          11.853        20.592        .11635E-03   -1.5019    
  14  Prefactor     .10000E-03    5.9405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.3413        .29021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.9509        .15756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.8704        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.4692        3.4773        .14305E-03   -1.5335    
  20  norm          15.259        10.872        .10253E-03   -1.4927    
  21  Prefactor     4.7454        41.572        .18467E-03   -1.5272    
  22  Normalizat    1.3711        .31959        .36762E-03   -.81467    
  23  Prefactor     1.1514        .16773        .21014E-03   -.87841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03434e-10
Minuit parameter uncertainties:
  1  7.4211e-07
  2  1.46184e-07
  3  16.963
  4  4.30667e-06
  5  4.38424e-06
  6  4.5238e-06
  7  6.95344e-06
  8  8.28933e-06
  9  1.26684e-06
  10  9.8919
  11  1.35379e-05
  12  29.4859
  13  20.6042
  14  6.77695e-06
  15  0.000269564
  16  4.78746e-06
  17  2.34426e-08
  18  1.9761e-05
  19  3.47752
  20  10.8735
  21  28.1172
  22  0.320051
  23  0.167806
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.019e+01  9.892e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.305e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  1.384e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  7.541e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  1.151e+00  1.678e-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.371e+00  3.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.65
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.23e-07 +/- 6.02e-08
Energy Flux (Fixed Index): 4.43e-05 +/- 2.17e-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) = 6680.32427754
delta logL = 0.048461243211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6680.31840975
delta logL = 0.0543290288297

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.985       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0899       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3943       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1429       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=   6680.318     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      271 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.982        11.626        .85425E-04    .30742E-04
   2  alpha         2.0911        .64294        .15423E-01    .12085E-03
   3  Normalizat    1.3943        .31929        .36505E-03   -.25413E-04
   4  Prefactor     1.1431        .16764        .21077E-03    .41760E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 21.9823
  alpha      = 2.09108
  Normalizat = 1.39432
  Prefactor  = 1.14307
 **********
 **   18 **HESSE 
 **********

 FCN=   6680.318     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.982        11.477        .34170E-05   -1.4770    
   2  alpha         2.0911        .63440        .30845E-02   -.16431    
   3  Normalizat    1.3943        .31921        .14602E-04   -.80793    
   4  Prefactor     1.1431        .16766        .42154E-04   -.88102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93963e-11
Minuit parameter uncertainties:
  1  11.4785
  2  0.641609
  3  0.31967
  4  0.167735
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803601': 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) = 6680.31840591
delta logL = 0.0543328754111

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.198e+01  1.148e+01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.091e+00  6.416e-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.143e+00  1.677e-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.394e+00  3.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.73
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.09 +/- 0.64
Photon Flux (Free Index): 1.06e-07 +/- 7.40e-08
Energy Flux (Free Index): 4.90e-05 +/- 2.95e-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/803601/cmap_HighResolution_506563201_506822401_4FGL_J1337.6-1257_daily_bin1031.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.23e-07', energy_flux2='4.90e-05', photon_flux_error='6.02e-08', dlogl='5.43e-02', energy_flux='4.43e-05', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-09-08 05:03:55.895608', photon_index_error2='0.64', photon_index2='2.09', ts='7.65', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='2.95e-05', EG='1.37', time_epoch_completed='1631102635.9', return_code='0', job_id='803601', GAL2='1.14', EG2='1.39', return_code2='0', energy_flux_error='2.17e-05', photon_flux_error2='7.40e-08', ts2='7.73', photon_index='2.30' WHERE bin_id='1031' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:03:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 803601: <4FGL_J1337.6-1257_daily_bin1031> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1031> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 04:50:41 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:55:05 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:55:05 2021
Terminated at Wed Sep  8 05:03:56 2021
Results reported at Wed Sep  8 05:03:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1031 204.424 -12.9517 506563201 506822401 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 :                                   475.58 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   531 sec.
    Turnaround time :                            795 sec.

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

