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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1297
RA = 204.424, Dec = -12.9517
tmin = 575510401, tmax = 575769601
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='805075', job_status='RUN', time_executed='2021-09-08 04:57:26.114920', time_epoch_executed='1631102246.11' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1297'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805075

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805075/ft1_4FGL_J1337.6-1257_daily_bin1297.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805075/ft2_4FGL_J1337.6-1257_daily_bin1297.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805075/ft1_4FGL_J1337.6-1257_daily_bin1297.fits outfile=/scratch/kocevski/805075/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1297.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=575510401.0 tmax=575769601.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 5.26
user 5.01
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805075/ft1_filtered_4FGL_J1337.6-1257_daily_bin1297.fits" evtable="EVENTS" scfile=/scratch/kocevski/805075/ft2_4FGL_J1337.6-1257_daily_bin1297.fits sctable="SC_DATA" outfile=/scratch/kocevski/805075/ltcube_575510401_575769601_4FGL_J1337.6-1257_daily_bin1297.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/805075/ft2_4FGL_J1337.6-1257_daily_bin1297.fits
.....................!
real 12.95
user 12.50
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805075/ft1_filtered_4FGL_J1337.6-1257_daily_bin1297.fits evtable="EVENTS" scfile=/scratch/kocevski/805075/ft2_4FGL_J1337.6-1257_daily_bin1297.fits sctable="SC_DATA" expcube=/scratch/kocevski/805075/ltcube_575510401_575769601_4FGL_J1337.6-1257_daily_bin1297.fits outfile=/scratch/kocevski/805075/expmap_575510401_575769601_4FGL_J1337.6-1257_daily_bin1297.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/805075/ltcube_575510401_575769601_4FGL_J1337.6-1257_daily_bin1297.fits
.....................!
real 190.78
user 185.25
sys 4.98

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/805075/ft1_filtered_4FGL_J1337.6-1257_daily_bin1297.fits scfile=/scratch/kocevski/805075/ft2_4FGL_J1337.6-1257_daily_bin1297.fits outfile=/scratch/kocevski/805075/cmap_575510401_575769601_4FGL_J1337.6-1257_daily_bin1297.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805075/ft1_filtered_4FGL_J1337.6-1257_daily_bin1297.fits scfile=/scratch/kocevski/805075/ft2_4FGL_J1337.6-1257_daily_bin1297.fits outfile=/scratch/kocevski/805075/cmap_HighResolution_575510401_575769601_4FGL_J1337.6-1257_daily_bin1297.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/805075/ft1_filtered_4FGL_J1337.6-1257_daily_bin1297.fits evtable="EVENTS" scfile=/scratch/kocevski/805075/ft2_4FGL_J1337.6-1257_daily_bin1297.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805075/Model_4FGL_J1337.6-1257_daily_bin1297.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/805075/ft1_filtered_4FGL_J1337.6-1257_daily_bin1297.fits.....................!
real 50.65
user 49.36
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.7981       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.456       1.0000         .10000E-03   10000.    
     8 'norm      '    .20478E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.8734       1.0000         .10000E-03   10000.    
    10 'norm      '    12.853       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10660E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.066       1.0000         .10000E-03   10000.    
    15 'norm      '    .52384E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.1277       1.0000         .10000E-03   10000.    
    20 'norm      '    6.1304       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.8005       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83356       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=   5761.021     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2535 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.6164       -.26685E-06** at limit **
   2  norm          .10000E-03    1.5173        .17692E-07** at limit **
   3  norm          5.7986        13.424        .44159E-05   -.29455E-03
   4  norm          .10000E-03    5.5507       -.34548E-07** at limit **
   5  Prefactor     .10000E-03    10.151       -.82261E-07** at limit **
   6  Prefactor     .10000E-03    4.7193        .25714E-06** at limit **
   7  Prefactor     26.434        36.438       -.48171E-05   -.35980E-03
   8  norm          .10000E-03    .76859        .18979E-08** at limit **
   9  norm          6.8659        8.6186        .17558E-05   -.47450E-04
  10  norm          12.855        10.261        .53225E-08    .10325E-04
  11  Prefactor     .10000E-03    18.075       -.41252E-06** at limit **
  12  Prefactor     .10000E-03    19.075       -.24029E-06** at limit **
  13  norm          .10000E-03    13.099        .44202E-06** at limit **
  14  Prefactor     12.076        16.523        .57382E-06    .15665E-03
  15  norm          .10000E-03    5.4421       -.73644E-06** at limit **
  16  Prefactor     .10000E-03    2.1322        .63980E-08** at limit **
  17  Prefactor     .10000E-03    37.326       -.17661E-05** at limit **
  18  norm          .10000E-03    2.5743        .12999E-07** at limit **
  19  norm          4.1276        3.2006       -.53706E-07   -.57524E-04
  20  norm          6.1288        8.1215        .22176E-05   -.43868E-03
  21  Prefactor     .10000E-03    30.772        .23963E-05** at limit **
  22  Normalizat    1.8001        .28540        .38796E-06    .85870E-05
  23  Prefactor     .83390        .14196       -.89486E-06    .13121E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.79864
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.4336
  norm       = 0.0001
  norm       = 6.86593
  norm       = 12.8552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.0761
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 4.12764
  norm       = 6.12875
  Prefactor  = 0.000100004
  Normalizat = 1.80006
  Prefactor  = 0.833903
 **********
 **   18 **HESSE 
 **********

 FCN=   5761.021     FROM HESSE     STATUS=OK           366 CALLS     2901 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.6347        .15940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.5334        .91291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.7986        13.784        .83397E-03   -1.5226    
   4  norm          .10000E-03    5.5566        .17465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.7475        .16119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.434        38.862        .77884E-04   -1.4679    
   8  norm          .10000E-03    4.0383        .12845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.8659        8.8883        .15303E-03   -1.5184    
  10  norm          12.855        10.238        .11173E-03   -1.4991    
  11  Prefactor     .10000E-03    18.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    13.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.076        16.493        .11532E-03   -1.5013    
  15  norm          .10000E-03    12.039        .33558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.1373        .10822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    37.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.5799        .11893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.1276        3.2023        .11409E-03   -1.5302    
  20  norm          6.1288        8.2452        .81074E-03   -1.5213    
  21  Prefactor     .10000E-03    31.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.8001        .33104        .32325E-03   -.69662    
  23  Prefactor     .83390        .16342        .22697E-03   -.98490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86369e-09
Minuit parameter uncertainties:
  1  3.00593e-05
  2  1.16669e-06
  3  13.7913
  4  4.17958e-06
  5  2.15844e-05
  6  3.47512e-05
  7  38.8996
  8  3.00577e-05
  9  8.89002
  10  10.2392
  11  0.000129167
  12  6.62383e-05
  13  8.2528e-05
  14  16.4993
  15  0.000465999
  16  2.32114e-06
  17  0.000539458
  18  1.23301e-06
  19  3.20243
  20  8.24673
  21  0.000672099
  22  0.331457
  23  0.163519
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.286e+01  1.024e+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:  8.339e-01  1.635e-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.800e+00  3.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.64
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 7.83e-08 +/- 6.23e-08
Energy Flux (Fixed Index): 2.82e-05 +/- 2.25e-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) = 5760.95889745
delta logL = 0.0616344367172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5760.95693856
delta logL = 0.0635933283183

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.787       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9928       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8212       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82840       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=   5760.957     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      204 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.718        25.962        .28004E-02    .32512E-03
   2  alpha         1.9855        1.6062        .42276       -.13061E-04
   3  Normalizat    1.8220        .30196        .72758E-01   -.39983E-04
   4  Prefactor     .82827        .14621        .44086E-01   -.58764E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.718
  alpha      = 1.98551
  Normalizat = 1.82201
  Prefactor  = 0.82827
 **********
 **   18 **HESSE 
 **********

 FCN=   5760.957     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.718        10.322        .56009E-03   -1.4995    
   2  alpha         1.9855        .85804        .19787E-01   -.20728    
   3  Normalizat    1.8220        .32431        .32187E-03   -.69091    
   4  Prefactor     .82827        .16274        .22771E-03   -.98695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02025e-10
Minuit parameter uncertainties:
  1  10.3239
  2  0.876685
  3  0.324699
  4  0.162834
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805075': 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) = 5760.95689404
delta logL = 0.0636378443232

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.272e+01  1.032e+01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.986e+00  8.767e-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:  8.283e-01  1.628e-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.822e+00  3.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.82
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 1.99 +/- 0.88
Photon Flux (Free Index): 5.52e-08 +/- 7.14e-08
Energy Flux (Free Index): 2.95e-05 +/- 2.43e-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/805075/cmap_HighResolution_575510401_575769601_4FGL_J1337.6-1257_daily_bin1297.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.83e-08', energy_flux2='2.95e-05', photon_flux_error='6.23e-08', dlogl='6.36e-02', energy_flux='2.82e-05', photon_flux2='5.52e-08', job_status='DONE', time_completed='2021-09-08 05:06:56.238444', photon_index_error2='0.88', photon_index2='1.99', ts='5.64', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='2.43e-05', EG='1.80', time_epoch_completed='1631102816.24', return_code='0', job_id='805075', GAL2='0.83', EG2='1.82', return_code2='0', energy_flux_error='2.25e-05', photon_flux_error2='7.14e-08', ts2='5.82', photon_index='2.30' WHERE bin_id='1297' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:06:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 805075: <4FGL_J1337.6-1257_daily_bin1297> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1297 204.424 -12.9517 575510401 575769601 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 :                                   561.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   593 sec.
    Turnaround time :                            682 sec.

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

