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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1555
RA = 204.424, Dec = -12.9517
tmin = 642384001, tmax = 642643201
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='805424', job_status='RUN', time_executed='2021-09-08 04:58:06.130405', time_epoch_executed='1631102286.13' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1555'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805424

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805424/ft1_4FGL_J1337.6-1257_daily_bin1555.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805424/ft2_4FGL_J1337.6-1257_daily_bin1555.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805424/ft1_4FGL_J1337.6-1257_daily_bin1555.fits outfile=/scratch/kocevski/805424/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1555.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=642384001.0 tmax=642643201.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.84
user 3.41
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/805424/ft2_4FGL_J1337.6-1257_daily_bin1555.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/805424/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1555.fits evtable="EVENTS" outfile="/scratch/kocevski/805424/ft1_filtered_4FGL_J1337.6-1257_daily_bin1555.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.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805424/ft1_filtered_4FGL_J1337.6-1257_daily_bin1555.fits" evtable="EVENTS" scfile=/scratch/kocevski/805424/ft2_4FGL_J1337.6-1257_daily_bin1555.fits sctable="SC_DATA" outfile=/scratch/kocevski/805424/ltcube_642384001_642643201_4FGL_J1337.6-1257_daily_bin1555.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/805424/ft2_4FGL_J1337.6-1257_daily_bin1555.fits
.....................!
real 14.52
user 14.13
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805424/ft1_filtered_4FGL_J1337.6-1257_daily_bin1555.fits evtable="EVENTS" scfile=/scratch/kocevski/805424/ft2_4FGL_J1337.6-1257_daily_bin1555.fits sctable="SC_DATA" expcube=/scratch/kocevski/805424/ltcube_642384001_642643201_4FGL_J1337.6-1257_daily_bin1555.fits outfile=/scratch/kocevski/805424/expmap_642384001_642643201_4FGL_J1337.6-1257_daily_bin1555.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/805424/ltcube_642384001_642643201_4FGL_J1337.6-1257_daily_bin1555.fits
.....................!
real 192.20
user 186.70
sys 4.84

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/805424/ft1_filtered_4FGL_J1337.6-1257_daily_bin1555.fits scfile=/scratch/kocevski/805424/ft2_4FGL_J1337.6-1257_daily_bin1555.fits outfile=/scratch/kocevski/805424/cmap_642384001_642643201_4FGL_J1337.6-1257_daily_bin1555.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805424/ft1_filtered_4FGL_J1337.6-1257_daily_bin1555.fits scfile=/scratch/kocevski/805424/ft2_4FGL_J1337.6-1257_daily_bin1555.fits outfile=/scratch/kocevski/805424/cmap_HighResolution_642384001_642643201_4FGL_J1337.6-1257_daily_bin1555.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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805424/ft1_filtered_4FGL_J1337.6-1257_daily_bin1555.fits evtable="EVENTS" scfile=/scratch/kocevski/805424/ft2_4FGL_J1337.6-1257_daily_bin1555.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805424/Model_4FGL_J1337.6-1257_daily_bin1555.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/805424/ft1_filtered_4FGL_J1337.6-1257_daily_bin1555.fits.....................!
real 62.61
user 61.12
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7232       1.0000         .10000E-03   10000.    
     2 'norm      '    .11435E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    15.822       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1175       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.4944       1.0000         .10000E-03   10000.    
     9 'norm      '    .51295       1.0000         .10000E-03   10000.    
    10 'norm      '    25.621       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.396       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    21.537       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .26671E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.1529       1.0000         .10000E-03   10000.    
    20 'norm      '    .23932E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7171       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3997       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80704       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=   7584.311     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2179 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7244        7.8263        .11313E-06   -.23132E-04
   2  norm          .10000E-03    .99553        .12252E-06** at limit **
   3  norm          15.823        10.964       -.59079E-07   -.22398E-04
   4  norm          .10000E-03    4.0423       -.10036E-06** at limit **
   5  Prefactor     6.1174        10.235        .13500E-06   -.69771E-04
   6  Prefactor     .10000E-03    4.0232        .12552E-06** at limit **
   7  Prefactor     .10000E-03    4.9797       -.14159E-07** at limit **
   8  norm          2.4945        1.5648        .92742E-06   -.91105E-03
   9  norm          .51284        1.6690        .70420E-06   -.12521E-03
  10  norm          25.618        8.8724       -.18413E-06   -.13489E-03
  11  Prefactor     12.405        11.750        .57330E-07   -.25728E-04
  12  Prefactor     .10000E-03    19.624       -.36386E-06** at limit **
  13  norm          .10000E-03    30.650        .11448E-05** at limit **
  14  Prefactor     .10000E-03    10.706        .19056E-06** at limit **
  15  norm          21.532        7.0236       -.30953E-07    .85981E-04
  16  Prefactor     .10000E-03    1.5571        .10237E-07** at limit **
  17  Prefactor     .10001E-03    111.16       -.10967E-04** at limit **
  18  norm          .10000E-03    2.3364        .34568E-07** at limit **
  19  norm          8.1525        3.6097        .18934E-06   -.40762E-04
  20  norm          .96344E-02    4.5688        .33880E-06   -.36919E-04
  21  Prefactor     1.6917        72.221       -.64224E-05   -.73797E-04
  22  Normalizat    1.3997        .23301       -.14599E-05   -.16173E-04
  23  Prefactor     .80701        .11708        .11613E-06   -.81288E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.72436
  norm       = 0.0001
  norm       = 15.8228
  norm       = 0.0001
  Prefactor  = 6.11742
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.49447
  norm       = 0.512838
  norm       = 25.6177
  Prefactor  = 12.4051
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 21.5318
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 0.0001
  norm       = 8.15253
  norm       = 0.00963439
  Prefactor  = 1.69169
  Normalizat = 1.39968
  Prefactor  = 0.807006
 **********
 **   18 **HESSE 
 **********

 FCN=   7584.311     FROM HESSE     STATUS=OK           384 CALLS     2563 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7244        7.8294        .13572E-03   -1.5117    
   2  norm          .10000E-03    2.2693        .16917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          15.823        10.967        .10069E-03   -1.4912    
   4  norm          .10000E-03    4.0541        .17102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.1174        10.219        .16232E-03   -1.5213    
   6  Prefactor     .10000E-03    4.0471        .17053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.9843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.4945        1.6039        .41983E-03   -1.5392    
   9  norm          .51284        1.7062        .18988E-02   -1.5565    
  10  norm          25.618        8.7847        .79141E-04   -1.4695    
  11  Prefactor     12.405        11.737        .11377E-03   -1.5003    
  12  Prefactor     .10000E-03    19.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    30.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          21.532        7.0233        .86308E-04   -1.4780    
  16  Prefactor     .10000E-03    1.5610        .10610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    117.03        .21439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.3439        .12999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.1525        3.6083        .10351E-03   -1.5137    
  20  norm          .96344E-02    6.5861        .64504E-01   -1.5688    
  21  Prefactor     1.6917        78.813        .32066E-03   -1.5448    
  22  Normalizat    1.3997        .27049        .32852E-03   -.80638    
  23  Prefactor     .80701        .13586        .21552E-03   -.99471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85454e-08
Minuit parameter uncertainties:
  1  7.83034
  2  1.40938e-05
  3  10.9687
  4  5.31104e-06
  5  10.2221
  6  3.23891e-06
  7  1.58052e-06
  8  1.60394
  9  1.70635
  10  8.78518
  11  11.7393
  12  3.65795e-05
  13  0.0001189
  14  2.13101e-05
  15  7.0236
  16  1.08246e-06
  17  0.00203331
  18  1.8062e-06
  19  3.60835
  20  0.50123
  21  23.1252
  22  0.270772
  23  0.135917
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.562e+01  8.785e+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.070e-01  1.359e-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.400e+00  2.708e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.95
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.56e-07 +/- 5.35e-08
Energy Flux (Fixed Index): 5.62e-05 +/- 1.93e-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) = 7583.92934198
delta logL = 0.381665514847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7583.9053064
delta logL = 0.405701101334

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.653       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9784       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79495       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=   7583.905     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      205 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.653        13.114        .19046E-02   -.30915E-02
   2  alpha         1.9786        .44722        .27422        .64079E-05
   3  Normalizat    1.4409        .22832        .73377E-01    .94707E-05
   4  Prefactor     .79495        .11606        .43651E-01    .13545E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 27.6533
  alpha      = 1.97859
  Normalizat = 1.44088
  Prefactor  = 0.794952
 **********
 **   18 **HESSE 
 **********

 FCN=   7583.905     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.653        9.6610        .76183E-04   -1.4656    
   2  alpha         1.9786        .35503        .11151E-01   -.21011    
   3  Normalizat    1.4409        .26160        .32468E-03   -.79454    
   4  Prefactor     .79495        .13388        .21702E-03   -.99915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27314e-09
Minuit parameter uncertainties:
  1  9.66153
  2  0.356292
  3  0.261839
  4  0.133933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805424': 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) = 7583.90530622
delta logL = 0.405701281312

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.765e+01  9.662e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.979e+00  3.563e-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:  7.950e-01  1.339e-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.441e+00  2.618e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.75
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 1.98 +/- 0.36
Photon Flux (Free Index): 1.19e-07 +/- 5.65e-08
Energy Flux (Free Index): 6.44e-05 +/- 2.59e-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/805424/cmap_HighResolution_642384001_642643201_4FGL_J1337.6-1257_daily_bin1555.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.56e-07', energy_flux2='6.44e-05', photon_flux_error='5.35e-08', dlogl='4.06e-01', energy_flux='5.62e-05', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-08 05:08:19.811611', photon_index_error2='0.36', photon_index2='1.98', ts='25.95', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='2.59e-05', EG='1.40', time_epoch_completed='1631102899.81', return_code='0', job_id='805424', GAL2='0.79', EG2='1.44', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='5.65e-08', ts2='26.75', photon_index='2.30' WHERE bin_id='1555' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:08:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 805424: <4FGL_J1337.6-1257_daily_bin1555> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1555 204.424 -12.9517 642384001 642643201 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 :                                   603.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             326.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   639 sec.
    Turnaround time :                            744 sec.

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

