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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1554
RA = 204.424, Dec = -12.9517
tmin = 642124801, tmax = 642384001
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='805423', job_status='RUN', time_executed='2021-09-08 04:59:02.360791', time_epoch_executed='1631102342.36' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805423

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805423/ft1_4FGL_J1337.6-1257_daily_bin1554.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805423/ft2_4FGL_J1337.6-1257_daily_bin1554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805423/ft1_4FGL_J1337.6-1257_daily_bin1554.fits outfile=/scratch/kocevski/805423/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1554.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=642124801.0 tmax=642384001.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 4.41
user 4.11
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/805423/ft2_4FGL_J1337.6-1257_daily_bin1554.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/805423/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1554.fits evtable="EVENTS" outfile="/scratch/kocevski/805423/ft1_filtered_4FGL_J1337.6-1257_daily_bin1554.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.58
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805423/ft1_filtered_4FGL_J1337.6-1257_daily_bin1554.fits" evtable="EVENTS" scfile=/scratch/kocevski/805423/ft2_4FGL_J1337.6-1257_daily_bin1554.fits sctable="SC_DATA" outfile=/scratch/kocevski/805423/ltcube_642124801_642384001_4FGL_J1337.6-1257_daily_bin1554.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/805423/ft2_4FGL_J1337.6-1257_daily_bin1554.fits
.....................!
real 11.76
user 11.42
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805423/ft1_filtered_4FGL_J1337.6-1257_daily_bin1554.fits evtable="EVENTS" scfile=/scratch/kocevski/805423/ft2_4FGL_J1337.6-1257_daily_bin1554.fits sctable="SC_DATA" expcube=/scratch/kocevski/805423/ltcube_642124801_642384001_4FGL_J1337.6-1257_daily_bin1554.fits outfile=/scratch/kocevski/805423/expmap_642124801_642384001_4FGL_J1337.6-1257_daily_bin1554.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/805423/ltcube_642124801_642384001_4FGL_J1337.6-1257_daily_bin1554.fits
.....................!
real 189.99
user 184.95
sys 4.65

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/805423/ft1_filtered_4FGL_J1337.6-1257_daily_bin1554.fits scfile=/scratch/kocevski/805423/ft2_4FGL_J1337.6-1257_daily_bin1554.fits outfile=/scratch/kocevski/805423/cmap_642124801_642384001_4FGL_J1337.6-1257_daily_bin1554.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805423/ft1_filtered_4FGL_J1337.6-1257_daily_bin1554.fits scfile=/scratch/kocevski/805423/ft2_4FGL_J1337.6-1257_daily_bin1554.fits outfile=/scratch/kocevski/805423/cmap_HighResolution_642124801_642384001_4FGL_J1337.6-1257_daily_bin1554.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805423/ft1_filtered_4FGL_J1337.6-1257_daily_bin1554.fits evtable="EVENTS" scfile=/scratch/kocevski/805423/ft2_4FGL_J1337.6-1257_daily_bin1554.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805423/Model_4FGL_J1337.6-1257_daily_bin1554.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/805423/ft1_filtered_4FGL_J1337.6-1257_daily_bin1554.fits.....................!
real 59.95
user 58.66
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    34.437       1.0000         .10000E-03   10000.    
     4 'norm      '    .94352       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3937       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.839       1.0000         .10000E-03   10000.    
     8 'norm      '    2.8798       1.0000         .10000E-03   10000.    
     9 'norm      '    .11005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    24.164       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.6583       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .49705E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.4862       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.2442       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15949E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.6229       1.0000         .10000E-03   10000.    
    19 'norm      '    9.5491       1.0000         .10000E-03   10000.    
    20 'norm      '    13.093       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.5482       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2026       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80520       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=   7427.094     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2554 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.3089        .11107E-06** at limit **
   2  norm          .10000E-03    .46833        .16990E-07** at limit **
   3  norm          34.437        14.148        .10379E-05   -.18140E-03
   4  norm          .94504        15.546        .44025E-05    .69878E-04
   5  Prefactor     3.3930        5.7575        .35169E-05    .73418E-03
   6  Prefactor     .10000E-03    2.9260       -.15890E-07** at limit **
   7  Prefactor     20.844        18.213        .42817E-05    .69155E-04
   8  norm          2.8798        1.7310        .87757E-07   -.16526E-03
   9  norm          .10001E-03    2.6289       -.21056E-05** at limit **
  10  norm          24.162        8.8068       -.61490E-06    .18246E-03
  11  Prefactor     8.7015        15.325       -.78132E-06    .26006E-03
  12  Prefactor     .10000E-03    16.836       -.23816E-05** at limit **
  13  norm          .10000E-03    10.527        .69587E-06** at limit **
  14  Prefactor     .10003E-03    24.222       -.17521E-04** at limit **
  15  norm          6.4815        4.3009       -.26495E-06   -.52499E-04
  16  Prefactor     5.2415        5.6646        .24862E-06   -.68567E-04
  17  Prefactor     .10000E-03    231.11        .10225E-04** at limit **
  18  norm          3.6232        6.3868        .48385E-06   -.21057E-05
  19  norm          9.5492        3.6536        .16826E-06    .21708E-03
  20  norm          13.093        10.709        .12843E-05   -.56207E-04
  21  Prefactor     3.5451        37.646       -.20139E-05    .26039E-05
  22  Normalizat    1.2027        .22647       -.18900E-05    .17524E-03
  23  Prefactor     .80510        .11155       -.12194E-05   -.14740E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 34.4369
  norm       = 0.945043
  Prefactor  = 3.39302
  Prefactor  = 0.0001
  Prefactor  = 20.8438
  norm       = 2.87981
  norm       = 0.000100005
  norm       = 24.1616
  Prefactor  = 8.70154
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100026
  norm       = 6.48148
  Prefactor  = 5.24149
  Prefactor  = 0.0001
  norm       = 3.62324
  norm       = 9.54916
  norm       = 13.0932
  Prefactor  = 3.54506
  Normalizat = 1.20271
  Prefactor  = 0.805098
 **********
 **   18 **HESSE 
 **********

 FCN=   7427.094     FROM HESSE     STATUS=OK           376 CALLS     2930 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.4912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .46922        .57596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          34.437        14.114        .68288E-04   -1.4534    
   4  norm          .94504        16.432        .51858E-03   -1.5514    
   5  Prefactor     3.3930        7.1284        .10981E-02   -1.5340    
   6  Prefactor     .10000E-03    2.9350        .14394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.844        18.276        .87741E-04   -1.4795    
   8  norm          2.8798        1.7356        .82868E-04   -1.5369    
   9  norm          .10001E-03    2.8026        .27641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          24.162        8.7863        .81488E-04   -1.4724    
  11  Prefactor     8.7015        12.982        .13623E-03   -1.5118    
  12  Prefactor     .10000E-03    16.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    10.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10003E-03    27.466        .42195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.4815        4.2993        .14008E-03   -1.5199    
  16  Prefactor     5.2415        5.6238        .17553E-03   -1.5250    
  17  Prefactor     .10000E-03    235.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.6232        6.3350        .21226E-03   -1.5327    
  19  norm          9.5492        3.6679        .48084E-03   -1.5090    
  20  norm          13.093        10.664        .11070E-03   -1.4984    
  21  Prefactor     3.5451        37.372        .21458E-03   -1.5331    
  22  Normalizat    1.2027        .26380        .32458E-03   -.86519    
  23  Prefactor     .80510        .13087        .20220E-03   -.99541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24001e-09
Minuit parameter uncertainties:
  1  0.000130585
  2  1.29429e-06
  3  14.1155
  4  7.88358
  5  7.13016
  6  7.21162e-06
  7  18.2806
  8  1.73568
  9  0.000244497
  10  8.78681
  11  12.9858
  12  0.000157492
  13  1.15493e-05
  14  0.00168421
  15  4.29953
  16  5.62437
  17  3.00789e-05
  18  6.33621
  19  3.66797
  20  10.6651
  21  23.0388
  22  0.264094
  23  0.130926
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.416e+01  8.787e+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.051e-01  1.309e-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.203e+00  2.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.26
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.47e-07 +/- 5.35e-08
Energy Flux (Fixed Index): 5.30e-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) = 7426.74921194
delta logL = 0.344940347376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7426.73856178
delta logL = 0.355590505868

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.495       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9873       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79515       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=   7426.739     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      205 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.495        13.612        .19834E-02    .43039E-02
   2  alpha         1.9871        .49906        .28796        .79240E-05
   3  Normalizat    1.2398        .21754        .72462E-01    .14385E-04
   4  Prefactor     .79515        .11155        .43654E-01    .10743E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.4954
  alpha      = 1.98711
  Normalizat = 1.23984
  Prefactor  = 0.795146
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.495        9.3216        .79335E-04   -1.4698    
   2  alpha         1.9871        .37770        .11416E-01   -.20662    
   3  Normalizat    1.2398        .25002        .32066E-03   -.85380    
   4  Prefactor     .79515        .12931        .20344E-03   -.99907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.36732e-09
Minuit parameter uncertainties:
  1  9.32218
  2  0.379216
  3  0.250262
  4  0.129363
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805423': 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) = 7426.7385617
delta logL = 0.355590580503

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.550e+01  9.322e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.987e+00  3.792e-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.951e-01  1.294e-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.240e+00  2.503e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.00
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 1.99 +/- 0.38
Photon Flux (Free Index): 1.11e-07 +/- 5.80e-08
Energy Flux (Free Index): 5.91e-05 +/- 2.40e-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/805423/cmap_HighResolution_642124801_642384001_4FGL_J1337.6-1257_daily_bin1554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.47e-07', energy_flux2='5.91e-05', photon_flux_error='5.35e-08', dlogl='3.56e-01', energy_flux='5.30e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-08 05:09:37.796981', photon_index_error2='0.38', photon_index2='1.99', ts='23.26', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='2.40e-05', EG='1.20', time_epoch_completed='1631102977.8', return_code='0', job_id='805423', GAL2='0.80', EG2='1.24', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='5.80e-08', ts2='24.00', photon_index='2.30' WHERE bin_id='1554' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:09:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 805423: <4FGL_J1337.6-1257_daily_bin1554> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1554> 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) <bullet0190>, 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:09:38 2021
Results reported at Wed Sep  8 05:09:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1554 204.424 -12.9517 642124801 642384001 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 :                                   628.11 sec.
    Max Memory :                                 1166 MB
    Average Memory :                             311.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            822 sec.

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

