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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1560
RA = 204.424, Dec = -12.9517
tmin = 643680001, tmax = 643939201
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='806586', job_status='RUN', time_executed='2021-09-08 05:02:35.538733', time_epoch_executed='1631102555.54' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1560'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806586

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806586/ft1_4FGL_J1337.6-1257_daily_bin1560.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806586/ft2_4FGL_J1337.6-1257_daily_bin1560.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806586/ft1_4FGL_J1337.6-1257_daily_bin1560.fits outfile=/scratch/kocevski/806586/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1560.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=643680001.0 tmax=643939201.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.52
user 3.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806586/ft1_filtered_4FGL_J1337.6-1257_daily_bin1560.fits" evtable="EVENTS" scfile=/scratch/kocevski/806586/ft2_4FGL_J1337.6-1257_daily_bin1560.fits sctable="SC_DATA" outfile=/scratch/kocevski/806586/ltcube_643680001_643939201_4FGL_J1337.6-1257_daily_bin1560.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/806586/ft2_4FGL_J1337.6-1257_daily_bin1560.fits
.....................!
real 15.46
user 15.09
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806586/ft1_filtered_4FGL_J1337.6-1257_daily_bin1560.fits evtable="EVENTS" scfile=/scratch/kocevski/806586/ft2_4FGL_J1337.6-1257_daily_bin1560.fits sctable="SC_DATA" expcube=/scratch/kocevski/806586/ltcube_643680001_643939201_4FGL_J1337.6-1257_daily_bin1560.fits outfile=/scratch/kocevski/806586/expmap_643680001_643939201_4FGL_J1337.6-1257_daily_bin1560.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/806586/ltcube_643680001_643939201_4FGL_J1337.6-1257_daily_bin1560.fits
.....................!
real 190.39
user 186.34
sys 3.56

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/806586/ft1_filtered_4FGL_J1337.6-1257_daily_bin1560.fits scfile=/scratch/kocevski/806586/ft2_4FGL_J1337.6-1257_daily_bin1560.fits outfile=/scratch/kocevski/806586/cmap_643680001_643939201_4FGL_J1337.6-1257_daily_bin1560.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806586/ft1_filtered_4FGL_J1337.6-1257_daily_bin1560.fits scfile=/scratch/kocevski/806586/ft2_4FGL_J1337.6-1257_daily_bin1560.fits outfile=/scratch/kocevski/806586/cmap_HighResolution_643680001_643939201_4FGL_J1337.6-1257_daily_bin1560.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.016       1.0000         .10000E-03   10000.    
     2 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    42.606       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.154       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10555E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    58.789       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.917       1.0000         .10000E-03   10000.    
    15 'norm      '    11.992       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    42.995       1.0000         .10000E-03   10000.    
    18 'norm      '    10.446       1.0000         .10000E-03   10000.    
    19 'norm      '    8.5955       1.0000         .10000E-03   10000.    
    20 'norm      '    5.6471       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .27756E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0193       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96825       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=   6205.945     FROM MIGRAD    STATUS=CONVERGED    883 CALLS     3268 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.017        11.271        .11556E-03    .46533E-04
   2  norm          .10000E-03    2.6224        .24352E-02** at limit **
   3  norm          42.607        16.370        .61416E-04    .11777E-03
   4  norm          .10000E-03    3.6870        .14771E-02** at limit **
   5  Prefactor     .10000E-03    5.7422        .18142E-02** at limit **
   6  Prefactor     12.154        10.174        .11490E-03    .11061E-03
   7  Prefactor     .10000E-03    8.3445        .18142E-02** at limit **
   8  norm          .10000E-03    2.7574        .16188E-02** at limit **
   9  norm          .10000E-03    1.7433        .10123E-02** at limit **
  10  norm          58.788        13.199        .52325E-04   -.11576E-03
  11  Prefactor     .10000E-03    7.8103        .18142E-02** at limit **
  12  Prefactor     .10000E-03    54.884        .18142E-02** at limit **
  13  norm          .10000E-03    11.741        .18142E-02** at limit **
  14  Prefactor     10.923        16.825        .12126E-03    .10210E-03
  15  norm          11.992        6.9312        .57839E-03    .82389E-03
  16  Prefactor     .10000E-03    3.1631        .13621E-02** at limit **
  17  Prefactor     42.993        58.568        .61139E-04    .33954E-04
  18  norm          10.446        7.8108        .12397E-03    .10913E-04
  19  norm          8.5952        3.6981        .93359E-04   -.40307E-04
  20  norm          5.6428        9.2656        .16904E-03   -.23303E-03
  21  Prefactor     .10001E-03    39.088        .11392    ** at limit **
  22  Normalizat    1.0191        .31888        .38159E-03    .13559E-03
  23  Prefactor     .96826        .16004        .20497E-03    .18088E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.0173
  norm       = 0.0001
  norm       = 42.6072
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.154
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 58.7877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.9227
  norm       = 11.9923
  Prefactor  = 0.0001
  Prefactor  = 42.9935
  norm       = 10.4459
  norm       = 8.59517
  norm       = 5.64283
  Prefactor  = 0.000100014
  Normalizat = 1.01914
  Prefactor  = 0.968259
 **********
 **   18 **HESSE 
 **********

 FCN=   6205.945     FROM HESSE     STATUS=OK           356 CALLS     3624 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.017        11.271        .46225E-05   -1.5015    
   2  norm          .10000E-03    2.6315        .48703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          42.607        16.370        .12283E-04   -1.4402    
   4  norm          .10000E-03    3.6870        .29542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.7447        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.154        10.174        .45962E-05   -1.5011    
   7  Prefactor     .10000E-03    8.3449        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.7753        .32376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.7434        .20245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          58.788        13.198        .10465E-04   -1.4173    
  11  Prefactor     .10000E-03    7.8106        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    54.898        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    11.741        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.923        16.824        .48503E-05   -1.5047    
  15  norm          11.992        6.9308        .23136E-04   -1.5015    
  16  Prefactor     .10000E-03    3.1636        .27242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     42.993        58.566        .12228E-04   -1.4396    
  18  norm          10.446        7.8105        .49587E-05   -1.5061    
  19  norm          8.5952        3.6980        .37343E-05   -1.5122    
  20  norm          5.6428        9.2639        .67617E-05   -1.5233    
  21  Prefactor     .10001E-03    36.381        .11921       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0191        .31901        .15264E-04   -.92392    
  23  Prefactor     .96826        .16015        .40993E-04   -.93795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.85882e-10
Minuit parameter uncertainties:
  1  11.2727
  2  9.85834e-06
  3  16.3721
  4  4.95972e-06
  5  2.57002e-06
  6  10.1759
  7  0.000163735
  8  6.06354e-05
  9  7.3551e-06
  10  13.1988
  11  0.000109033
  12  0.000181789
  13  1.6405e-05
  14  16.8309
  15  6.93122
  16  7.66992e-06
  17  58.645
  18  7.8113
  19  3.69806
  20  9.26621
  21  0.00142063
  22  0.319606
  23  0.160229
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  5.879e+01  1.320e+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:  9.683e-01  1.602e-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.019e+00  3.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 68.13
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 3.58e-07 +/- 8.03e-08
Energy Flux (Fixed Index): 1.29e-04 +/- 2.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) = 6205.49886503
delta logL = 0.446135951786

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6205.42867821
delta logL = 0.516322776061

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    63.644       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0452       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94683       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=   6205.429     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      206 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          63.644        18.732        .12575E-02    .79745E-03
   2  alpha         2.0451        .30790        .17190        .27402E-04
   3  Normalizat    1.0895        .26420        .83855E-01    .17199E-04
   4  Prefactor     .94682        .13569        .45599E-01    .51651E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 63.6436
  alpha      = 2.04513
  Normalizat = 1.08945
  Prefactor  = 0.946823
 **********
 **   18 **HESSE 
 **********

 FCN=   6205.429     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          63.644        15.034        .50302E-04   -1.4111    
   2  alpha         2.0451        .25712        .72820E-02   -.18297    
   3  Normalizat    1.0895        .30609        .37129E-03   -.90091    
   4  Prefactor     .94682        .15780        .20716E-03   -.94524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12626e-10
Minuit parameter uncertainties:
  1  15.0345
  2  0.257593
  3  0.306588
  4  0.157876
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806586': 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) = 6205.42867814
delta logL = 0.516322838039

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  6.364e+01  1.503e+01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.045e+00  2.576e-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.468e-01  1.579e-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.089e+00  3.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 68.91
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.05 +/- 0.26
Photon Flux (Free Index): 2.93e-07 +/- 9.36e-08
Energy Flux (Free Index): 1.44e-04 +/- 3.87e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/806586/cmap_HighResolution_643680001_643939201_4FGL_J1337.6-1257_daily_bin1560.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.58e-07', energy_flux2='1.44e-04', photon_flux_error='8.03e-08', dlogl='5.16e-01', energy_flux='1.29e-04', photon_flux2='2.93e-07', job_status='DONE', time_completed='2021-09-08 05:13:00.226773', photon_index_error2='0.26', photon_index2='2.05', ts='68.13', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='3.87e-05', EG='1.02', time_epoch_completed='1631103180.23', return_code='0', job_id='806586', GAL2='0.95', EG2='1.09', return_code2='0', energy_flux_error='2.90e-05', photon_flux_error2='9.36e-08', ts2='68.91', photon_index='2.30' WHERE bin_id='1560' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:13:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 806586: <4FGL_J1337.6-1257_daily_bin1560> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1560> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 05:00:23 2021
Job was executed on host(s) <bullet0006>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 05:00:25 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:25 2021
Terminated at Wed Sep  8 05:13:00 2021
Results reported at Wed Sep  8 05:13:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1560 204.424 -12.9517 643680001 643939201 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 :                                   615.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            757 sec.

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

