/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 230 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 = 7485
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1337.6-1257_daily_bin270
RA = 204.424, Dec = -12.9517
tmin = 309312001, tmax = 309571201
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='797675', job_status='RUN', time_executed='2021-09-08 04:40:28.469334', time_epoch_executed='1631101228.47' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='270'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/797675

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/797675/ft1_4FGL_J1337.6-1257_daily_bin270.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/797675/ft2_4FGL_J1337.6-1257_daily_bin270.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/797675/ft1_4FGL_J1337.6-1257_daily_bin270.fits outfile=/scratch/kocevski/797675/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin270.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=309312001.0 tmax=309571201.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.09
user 3.80
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/797675/ft1_filtered_4FGL_J1337.6-1257_daily_bin270.fits" evtable="EVENTS" scfile=/scratch/kocevski/797675/ft2_4FGL_J1337.6-1257_daily_bin270.fits sctable="SC_DATA" outfile=/scratch/kocevski/797675/ltcube_309312001_309571201_4FGL_J1337.6-1257_daily_bin270.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/797675/ft2_4FGL_J1337.6-1257_daily_bin270.fits
.....................!
real 15.04
user 14.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/797675/ft1_filtered_4FGL_J1337.6-1257_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/797675/ft2_4FGL_J1337.6-1257_daily_bin270.fits sctable="SC_DATA" expcube=/scratch/kocevski/797675/ltcube_309312001_309571201_4FGL_J1337.6-1257_daily_bin270.fits outfile=/scratch/kocevski/797675/expmap_309312001_309571201_4FGL_J1337.6-1257_daily_bin270.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/797675/ltcube_309312001_309571201_4FGL_J1337.6-1257_daily_bin270.fits
.....................!
real 192.04
user 186.32
sys 4.94

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/797675/ft1_filtered_4FGL_J1337.6-1257_daily_bin270.fits scfile=/scratch/kocevski/797675/ft2_4FGL_J1337.6-1257_daily_bin270.fits outfile=/scratch/kocevski/797675/cmap_309312001_309571201_4FGL_J1337.6-1257_daily_bin270.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/797675/ft1_filtered_4FGL_J1337.6-1257_daily_bin270.fits scfile=/scratch/kocevski/797675/ft2_4FGL_J1337.6-1257_daily_bin270.fits outfile=/scratch/kocevski/797675/cmap_HighResolution_309312001_309571201_4FGL_J1337.6-1257_daily_bin270.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/797675/ft1_filtered_4FGL_J1337.6-1257_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/797675/ft2_4FGL_J1337.6-1257_daily_bin270.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/797675/Model_4FGL_J1337.6-1257_daily_bin270.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/797675/ft1_filtered_4FGL_J1337.6-1257_daily_bin270.fits.....................!
real 61.26
user 59.72
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.023       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.4110       1.0000         .10000E-03   10000.    
     4 'norm      '    6.4477       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8261       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.967       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11108E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.2453       1.0000         .10000E-03   10000.    
     9 'norm      '    .52098E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    20.748       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    72.076       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4668       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.804       1.0000         .10000E-03   10000.    
    17 'Prefactor '    72.299       1.0000         .10000E-03   10000.    
    18 'norm      '    1.3719       1.0000         .10000E-03   10000.    
    19 'norm      '    6.1621       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2757       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1415       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=   7262.879     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2577 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.023        16.193        .21277E-07   -.23648E-04
   2  norm          .10000E-03    1.1969        .86358E-07** at limit **
   3  norm          9.4105        9.0898       -.20604E-06   -.89344E-05
   4  norm          6.4479        7.4035        .95030E-07   -.57344E-05
   5  Prefactor     2.8244        10.629       -.47130E-06   -.13130E-03
   6  Prefactor     19.965        12.750       -.35697E-06   -.25212E-03
   7  Prefactor     .10000E-03    99.988        .11133E-05** at limit **
   8  norm          7.2451        2.2258       -.41400E-07   -.28327E-03
   9  norm          .10000E-03    3.2245        .18174E-05** at limit **
  10  norm          20.738        12.594       -.33015E-05   -.12730E-02
  11  Prefactor     .10000E-03    43.950        .54603E-06** at limit **
  12  Prefactor     72.056        45.462       -.13084E-04   -.34695E-04
  13  norm          .10000E-03    10.575       -.11372E-06** at limit **
  14  Prefactor     5.4680        10.801        .49691E-06   -.14007E-04
  15  norm          .10000E-03    2.3619       -.40685E-07** at limit **
  16  Prefactor     29.804        10.215        .18851E-06   -.39752E-03
  17  Prefactor     72.310        65.974        .92792E-05   -.27632E-04
  18  norm          1.3713        2.0282        .43781E-06   -.12867E-02
  19  norm          6.1623        3.4427       -.12421E-06   -.33644E-04
  20  norm          .10000E-03    5.6552       -.12280E-06** at limit **
  21  Prefactor     .10000E-03    8.8381       -.23164E-07** at limit **
  22  Normalizat    1.2759        .29669        .15476E-05   -.25790E-03
  23  Prefactor     1.1414        .15005        .36972E-06   -.40984E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 29.023
  norm       = 0.0001
  norm       = 9.41051
  norm       = 6.44788
  Prefactor  = 2.82437
  Prefactor  = 19.9655
  Prefactor  = 0.000100002
  norm       = 7.24513
  norm       = 0.000100001
  norm       = 20.7383
  Prefactor  = 0.0001
  Prefactor  = 72.0557
  norm       = 0.0001
  Prefactor  = 5.46801
  norm       = 0.0001
  Prefactor  = 29.8042
  Prefactor  = 72.3095
  norm       = 1.37133
  norm       = 6.16226
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.27586
  Prefactor  = 1.14142
 **********
 **   18 **HESSE 
 **********

 FCN=   7262.879     FROM HESSE     STATUS=OK           370 CALLS     2947 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.023        16.203        .74368E-04   -1.4630    
   2  norm          .10000E-03    1.2034        .91041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.4105        9.0873        .13064E-03   -1.5094    
   4  norm          6.4479        7.4031        .15806E-03   -1.5200    
   5  Prefactor     2.8244        10.568        .24192E-03   -1.5372    
   6  Prefactor     19.965        12.755        .89635E-04   -1.4814    
   7  Prefactor     .10000E-03    101.96        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.2451        2.2333        .33547E-03   -1.5170    
   9  norm          .10000E-03    26.319        .25724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          20.738        11.629        .87933E-04   -1.4797    
  11  Prefactor     .10000E-03    44.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     72.056        44.656        .47287E-04   -1.4008    
  13  norm          .10000E-03    10.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.4680        10.772        .17185E-03   -1.5240    
  15  norm          .10000E-03    2.3692        .12788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     29.804        10.836        .73389E-04   -1.4616    
  17  Prefactor     72.310        65.842        .47215E-04   -1.4005    
  18  norm          1.3713        9.5077        .18607E-02   -1.5474    
  19  norm          6.1623        3.4428        .11309E-03   -1.5211    
  20  norm          .10000E-03    5.7209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.8537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2759        .33465        .40953E-03   -.84290    
  23  Prefactor     1.1414        .17003        .22562E-03   -.88153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.92784e-09
Minuit parameter uncertainties:
  1  16.2059
  2  1.02993e-07
  3  9.08867
  4  7.40415
  5  10.5748
  6  12.7564
  7  0.000990808
  8  2.2333
  9  0.000388729
  10  11.6299
  11  0.000143712
  12  44.6769
  13  9.35545e-07
  14  10.776
  15  7.79952e-06
  16  10.8366
  17  65.9086
  18  7.22309
  19  3.44287
  20  5.62744e-06
  21  5.79662e-06
  22  0.335214
  23  0.170111
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  1.141e+00  1.701e-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.276e+00  3.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.21
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.26e-07 +/- 7.08e-08
Energy Flux (Fixed Index): 4.55e-05 +/- 2.55e-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) = 7262.4159075
delta logL = 0.463050314517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7262.40357615
delta logL = 0.475381661529

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.161       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8745       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2018       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1662       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=   7262.404     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      285 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.164        12.368        .10286E-03   -.20885E-02
   2  alpha         2.8744        .65576        .11215E-01   -.29101E-03
   3  Normalizat    1.2023        .32633        .41958E-03    .43108E-03
   4  Prefactor     1.1659        .16875        .22348E-03    .14268E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 15.164
  alpha      = 2.87439
  Normalizat = 1.20234
  Prefactor  = 1.1659
 **********
 **   18 **HESSE 
 **********

 FCN=   7262.404     FROM HESSE     STATUS=OK            23 CALLS      308 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.164        11.425        .20573E-04   -1.4929    
   2  alpha         2.8744        .60599        .44862E-03    .15032    
   3  Normalizat    1.2023        .32552        .83916E-04   -.86531    
   4  Prefactor     1.1659        .16837        .44695E-04   -.87387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63593e-09
Minuit parameter uncertainties:
  1  11.4269
  2  0.612236
  3  0.326071
  4  0.168444
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/797675': 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) = 7262.40357392
delta logL = 0.475383896594

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.516e+01  1.143e+01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.874e+00  6.122e-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.166e+00  1.684e-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.202e+00  3.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.21
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.87 +/- 0.61
Photon Flux (Free Index): 1.93e-07 +/- 1.11e-07
Energy Flux (Free Index): 4.49e-05 +/- 2.23e-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/797675/cmap_HighResolution_309312001_309571201_4FGL_J1337.6-1257_daily_bin270.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.26e-07', energy_flux2='4.49e-05', photon_flux_error='7.08e-08', dlogl='4.75e-01', energy_flux='4.55e-05', photon_flux2='1.93e-07', job_status='DONE', time_completed='2021-09-08 04:51:01.351047', photon_index_error2='0.61', photon_index2='2.87', ts='5.21', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='2.23e-05', EG='1.28', time_epoch_completed='1631101861.35', return_code='0', job_id='797675', GAL2='1.17', EG2='1.20', return_code2='0', energy_flux_error='2.55e-05', photon_flux_error2='1.11e-07', ts2='6.21', photon_index='2.30' WHERE bin_id='270' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:51:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 797675: <4FGL_J1337.6-1257_daily_bin270> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin270> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 04:35:22 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:36:28 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:36:28 2021
Terminated at Wed Sep  8 04:51:02 2021
Results reported at Wed Sep  8 04:51:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin270 204.424 -12.9517 309312001 309571201 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 :                                   631.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            940 sec.

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

