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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin392
RA = 204.424, Dec = -12.9517
tmin = 340934401, tmax = 341193601
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='799137', job_status='RUN', time_executed='2021-09-08 04:41:53.877652', time_epoch_executed='1631101313.88' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799137

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799137/ft1_4FGL_J1337.6-1257_daily_bin392.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799137/ft2_4FGL_J1337.6-1257_daily_bin392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799137/ft1_4FGL_J1337.6-1257_daily_bin392.fits outfile=/scratch/kocevski/799137/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin392.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=340934401.0 tmax=341193601.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.42
user 3.15
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799137/ft1_filtered_4FGL_J1337.6-1257_daily_bin392.fits" evtable="EVENTS" scfile=/scratch/kocevski/799137/ft2_4FGL_J1337.6-1257_daily_bin392.fits sctable="SC_DATA" outfile=/scratch/kocevski/799137/ltcube_340934401_341193601_4FGL_J1337.6-1257_daily_bin392.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/799137/ft2_4FGL_J1337.6-1257_daily_bin392.fits
.....................!
real 13.07
user 12.69
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799137/ft1_filtered_4FGL_J1337.6-1257_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/799137/ft2_4FGL_J1337.6-1257_daily_bin392.fits sctable="SC_DATA" expcube=/scratch/kocevski/799137/ltcube_340934401_341193601_4FGL_J1337.6-1257_daily_bin392.fits outfile=/scratch/kocevski/799137/expmap_340934401_341193601_4FGL_J1337.6-1257_daily_bin392.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/799137/ltcube_340934401_341193601_4FGL_J1337.6-1257_daily_bin392.fits
.....................!
real 191.82
user 187.32
sys 4.04

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/799137/ft1_filtered_4FGL_J1337.6-1257_daily_bin392.fits scfile=/scratch/kocevski/799137/ft2_4FGL_J1337.6-1257_daily_bin392.fits outfile=/scratch/kocevski/799137/cmap_340934401_341193601_4FGL_J1337.6-1257_daily_bin392.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799137/ft1_filtered_4FGL_J1337.6-1257_daily_bin392.fits scfile=/scratch/kocevski/799137/ft2_4FGL_J1337.6-1257_daily_bin392.fits outfile=/scratch/kocevski/799137/cmap_HighResolution_340934401_341193601_4FGL_J1337.6-1257_daily_bin392.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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/799137/ft1_filtered_4FGL_J1337.6-1257_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/799137/ft2_4FGL_J1337.6-1257_daily_bin392.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799137/Model_4FGL_J1337.6-1257_daily_bin392.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/799137/ft1_filtered_4FGL_J1337.6-1257_daily_bin392.fits.....................!
real 59.30
user 57.91
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.510       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5004       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.556       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10675E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.0109       1.0000         .10000E-03   10000.    
     9 'norm      '    .85414       1.0000         .10000E-03   10000.    
    10 'norm      '    17.959       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    19.138       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.655       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.002       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10978E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    27.204       1.0000         .10000E-03   10000.    
    19 'norm      '    2.7618       1.0000         .10000E-03   10000.    
    20 'norm      '    6.4416       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .81576       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3402       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7193.904     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2588 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.512        13.981         .0000        .46052E-04
   2  norm          .10000E-03    3.0673         .0000    ** at limit **
   3  norm          .10000E-03    3.0565         .0000    ** at limit **
   4  norm          .10000E-03    36.415         .0000    ** at limit **
   5  Prefactor     1.5030        11.562         .0000        .11752E-01
   6  Prefactor     10.559        12.656         .0000        .15525E-02
   7  Prefactor     .10000E-03    27.914         .0000    ** at limit **
   8  norm          2.0110        2.0067         .0000        .72234E-03
   9  norm          .85611        7.0631         .0000        .15412E-02
  10  norm          17.966        12.154         .0000        .48804E-04
  11  Prefactor     .10000E-03    6.6554         .0000    ** at limit **
  12  Prefactor     .10000E-03    11.469         .0000    ** at limit **
  13  norm          19.138        26.666         .0000        .14340E-04
  14  Prefactor     20.655        14.088         .0000        .85248E-04
  15  norm          .10000E-03    4.3899         .0000    ** at limit **
  16  Prefactor     27.000        10.895         .0000       -.13026E-03
  17  Prefactor     .10000E-03    98.611         .0000    ** at limit **
  18  norm          27.204        14.403         .0000        .29567E-04
  19  norm          2.7620        3.3077         .0000        .67578E-03
  20  norm          6.4412        6.6823         .0000       -.25283E-03
  21  Prefactor     .10000E-03    7.4465         .0000    ** at limit **
  22  Normalizat    .81573        .30598         .0000        .27469E-04
  23  Prefactor     1.3402        .15136         .0000       -.12049E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 23.5117
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.50296
  Prefactor  = 10.5587
  Prefactor  = 0.0001
  norm       = 2.01095
  norm       = 0.856106
  norm       = 17.9658
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.1384
  Prefactor  = 20.6548
  norm       = 0.0001
  Prefactor  = 26.9998
  Prefactor  = 0.0001
  norm       = 27.2043
  norm       = 2.762
  norm       = 6.44118
  Prefactor  = 0.0001
  Normalizat = 0.815727
  Prefactor  = 1.3402
 **********
 **   18 **HESSE 
 **********

 FCN=   7193.904     FROM HESSE     STATUS=OK           376 CALLS     2964 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.512        13.965        .82612E-04   -1.4738    
   2  norm          .10000E-03    3.1673        .28988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.0582        .14482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    37.809        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5030        11.447        .17480E-02   -1.5463    
   6  Prefactor     10.559        12.619        .61659E-03   -1.5058    
   7  Prefactor     .10000E-03    27.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.0110        1.9951        .10959E-03   -1.5424    
   9  norm          .85611        6.1070        .34678E-03   -1.5523    
  10  norm          17.966        11.334        .94511E-04   -1.4860    
  11  Prefactor     .10000E-03    6.6646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          19.138        26.663        .91553E-04   -1.4833    
  14  Prefactor     20.655        14.048        .88129E-04   -1.4799    
  15  norm          .10000E-03    15.858        .33960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     27.000        10.904        .77095E-04   -1.4668    
  17  Prefactor     .10000E-03    99.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          27.204        14.404        .76808E-04   -1.4664    
  19  norm          2.7620        3.2903        .15847E-03   -1.5376    
  20  norm          6.4412        6.6747        .15813E-03   -1.5200    
  21  Prefactor     .10000E-03    7.4527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .81573        .33729        .46868E-03   -.99488    
  23  Prefactor     1.3402        .16977        .20309E-03   -.82119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01248e-09
Minuit parameter uncertainties:
  1  13.9667
  2  8.7263e-07
  3  7.19535e-07
  4  4.70916e-05
  5  8.29771
  6  12.6221
  7  2.65984e-07
  8  1.99519
  9  4.57347
  10  11.3349
  11  4.25983e-07
  12  7.27599e-07
  13  26.6795
  14  14.0499
  15  6.57481e-06
  16  10.9046
  17  4.35618e-06
  18  14.4056
  19  3.29054
  20  6.67549
  21  4.01396e-06
  22  0.338162
  23  0.169836
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.797e+01  1.133e+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.340e+00  1.698e-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:  8.157e-01  3.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.16
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.09e-07 +/- 6.90e-08
Energy Flux (Fixed Index): 3.94e-05 +/- 2.49e-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) = 7193.89810832
delta logL = 0.00624453485761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7193.89653802
delta logL = 0.00781483294941

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.443       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3743       1.0000          .0000       5.0000    
     3 'Normalizat'    .80905       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3425       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=   7193.897     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      209 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.443        193.64        .23974E-02    .41463E-03
   2  alpha         2.3744        3.5449        .36474        .38761E-04
   3  Normalizat    .80904        .16307        .10612        .34253E-04
   4  Prefactor     1.3425        .67576E-01    .45912E-01   -.38497E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 17.4429
  alpha      = 2.37438
  Normalizat = 0.809043
  Prefactor  = 1.34246
 **********
 **   18 **HESSE 
 **********

 FCN=   7193.897     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.443        10.873        .95898E-04   -1.4872    
   2  alpha         2.3744        .56882        .13166E-01   -.50268E-01
   3  Normalizat    .80904        .31044        .47039E-03   -.99734    
   4  Prefactor     1.3425        .16735        .20294E-03   -.82053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02761e-09
Minuit parameter uncertainties:
  1  10.8745
  2  0.573855
  3  0.311122
  4  0.167419
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799137': 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) = 7193.89653802
delta logL = 0.00781483544597

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.744e+01  1.087e+01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.374e+00  5.739e-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.342e+00  1.674e-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:  8.090e-01  3.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.18
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.37 +/- 0.57
Photon Flux (Free Index): 1.15e-07 +/- 7.73e-08
Energy Flux (Free Index): 3.88e-05 +/- 2.21e-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/799137/cmap_HighResolution_340934401_341193601_4FGL_J1337.6-1257_daily_bin392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.09e-07', energy_flux2='3.88e-05', photon_flux_error='6.90e-08', dlogl='7.81e-03', energy_flux='3.94e-05', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-09-08 04:52:15.915343', photon_index_error2='0.57', photon_index2='2.37', ts='7.16', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', energy_flux_error2='2.21e-05', EG='0.82', time_epoch_completed='1631101935.92', return_code='0', job_id='799137', GAL2='1.34', EG2='0.81', return_code2='0', energy_flux_error='2.49e-05', photon_flux_error2='7.73e-08', ts2='7.18', photon_index='2.30' WHERE bin_id='392' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:52:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 799137: <4FGL_J1337.6-1257_daily_bin392> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin392> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 04:40:26 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:40:32 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:40:32 2021
Terminated at Wed Sep  8 04:52:16 2021
Results reported at Wed Sep  8 04:52:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin392 204.424 -12.9517 340934401 341193601 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 :                                   618.32 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             340.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            710 sec.

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

