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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin280
RA = 204.424, Dec = -12.9517
tmin = 311904001, tmax = 312163201
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='797689', job_status='RUN', time_executed='2021-09-08 04:37:41.721465', time_epoch_executed='1631101061.72' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/797689

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/797689/ft1_4FGL_J1337.6-1257_daily_bin280.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/797689/ft2_4FGL_J1337.6-1257_daily_bin280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/797689/ft1_4FGL_J1337.6-1257_daily_bin280.fits outfile=/scratch/kocevski/797689/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin280.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=311904001.0 tmax=312163201.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 2.89
user 2.64
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/797689/ft1_filtered_4FGL_J1337.6-1257_daily_bin280.fits" evtable="EVENTS" scfile=/scratch/kocevski/797689/ft2_4FGL_J1337.6-1257_daily_bin280.fits sctable="SC_DATA" outfile=/scratch/kocevski/797689/ltcube_311904001_312163201_4FGL_J1337.6-1257_daily_bin280.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/797689/ft2_4FGL_J1337.6-1257_daily_bin280.fits
.....................!
real 14.86
user 14.49
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/797689/ft1_filtered_4FGL_J1337.6-1257_daily_bin280.fits evtable="EVENTS" scfile=/scratch/kocevski/797689/ft2_4FGL_J1337.6-1257_daily_bin280.fits sctable="SC_DATA" expcube=/scratch/kocevski/797689/ltcube_311904001_312163201_4FGL_J1337.6-1257_daily_bin280.fits outfile=/scratch/kocevski/797689/expmap_311904001_312163201_4FGL_J1337.6-1257_daily_bin280.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/797689/ltcube_311904001_312163201_4FGL_J1337.6-1257_daily_bin280.fits
.....................!
real 158.05
user 152.94
sys 4.47

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/797689/ft1_filtered_4FGL_J1337.6-1257_daily_bin280.fits scfile=/scratch/kocevski/797689/ft2_4FGL_J1337.6-1257_daily_bin280.fits outfile=/scratch/kocevski/797689/cmap_311904001_312163201_4FGL_J1337.6-1257_daily_bin280.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.50
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/797689/ft1_filtered_4FGL_J1337.6-1257_daily_bin280.fits scfile=/scratch/kocevski/797689/ft2_4FGL_J1337.6-1257_daily_bin280.fits outfile=/scratch/kocevski/797689/cmap_HighResolution_311904001_312163201_4FGL_J1337.6-1257_daily_bin280.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.53
user 0.33
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4809       1.0000         .10000E-03   10000.    
     2 'norm      '    2.3529       1.0000         .10000E-03   10000.    
     3 'norm      '    8.0190       1.0000         .10000E-03   10000.    
     4 'norm      '    3.0834       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1763       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .68485       1.0000         .10000E-03   10000.    
     8 'norm      '    11.751       1.0000         .10000E-03   10000.    
     9 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.445       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11315E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.321       1.0000         .10000E-03   10000.    
    13 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.866       1.0000         .10000E-03   10000.    
    15 'norm      '    5.5441       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4742       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.5189       1.0000         .10000E-03   10000.    
    19 'norm      '    7.1244       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.372       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .85160       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1418       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=   9451.587     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2587 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4836        8.7222        .38722E-06    .30615E-04
   2  norm          2.3533        1.8884       -.83738E-09    .10110E-03
   3  norm          8.0197        7.3895        .68669E-07    .12540E-04
   4  norm          3.0839        6.1184       -.27978E-06    .48653E-04
   5  Prefactor     1.1751        4.2382       -.10712E-05    .15689E-03
   6  Prefactor     .10000E-03    4.4457        .88319E-07** at limit **
   7  Prefactor     .69023        5.9690       -.13277E-05    .40954E-03
   8  norm          11.751        2.2178        .47141E-07    .83534E-04
   9  norm          .10000E-03    1.0822       -.18839E-06** at limit **
  10  norm          11.440        6.7046        .11299E-05   -.11055E-03
  11  Prefactor     .10003E-03    9.1687       -.30431E-05** at limit **
  12  Prefactor     16.323        22.338        .18184E-05   -.51968E-04
  13  norm          .10000E-03    11.163       -.34307E-06** at limit **
  14  Prefactor     13.859        11.596        .34406E-05    .48534E-03
  15  norm          5.5433        3.7542        .27139E-06    .17528E-03
  16  Prefactor     3.4677        4.5536        .14231E-05   -.33297E-03
  17  Prefactor     .10000E-03    12.869       -.41650E-06** at limit **
  18  norm          1.5282        .88009        .55470E-07   -.53355E-03
  19  norm          7.1241        2.7282        .24572E-07    .29293E-04
  20  norm          .10000E-03    4.0056       -.12584E-06** at limit **
  21  Prefactor     11.372        11.420       -.29365E-07    .19175E-04
  22  Normalizat    .85174        .22379       -.14248E-05    .40446E-03
  23  Prefactor     1.1416        .11576       -.36778E-06    .75414E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.48355
  norm       = 2.35329
  norm       = 8.01969
  norm       = 3.08386
  Prefactor  = 1.17506
  Prefactor  = 0.0001
  Prefactor  = 0.690226
  norm       = 11.7507
  norm       = 0.0001
  norm       = 11.4403
  Prefactor  = 0.000100034
  Prefactor  = 16.3231
  norm       = 0.0001
  Prefactor  = 13.8588
  norm       = 5.54327
  Prefactor  = 3.46767
  Prefactor  = 0.0001
  norm       = 1.52821
  norm       = 7.12412
  norm       = 0.0001
  Prefactor  = 11.3722
  Normalizat = 0.851742
  Prefactor  = 1.14164
 **********
 **   18 **HESSE 
 **********

 FCN=   9451.587     FROM HESSE     STATUS=OK           382 CALLS     2969 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4836        8.7105        .19021E-03   -1.5284    
   2  norm          2.3533        1.8921        .11603E-03   -1.5401    
   3  norm          8.0197        7.3865        .14159E-03   -1.5142    
   4  norm          3.0839        6.1021        .23098E-03   -1.5357    
   5  Prefactor     1.1751        4.1734        .36747E-03   -1.5491    
   6  Prefactor     .10000E-03    4.5251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .69023        34.064        .42371E-02   -1.5542    
   8  norm          11.751        2.2244        .59374E-04   -1.5022    
   9  norm          .10000E-03    1.0913        .98470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.440        6.6349        .11842E-03   -1.5031    
  11  Prefactor     .10003E-03    46.940        .52002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.323        22.158        .99139E-04   -1.4900    
  13  norm          .10000E-03    11.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.859        11.524        .10756E-03   -1.4963    
  15  norm          5.5433        3.7512        .14940E-03   -1.5237    
  16  Prefactor     3.4677        4.9683        .21695E-03   -1.5336    
  17  Prefactor     .10000E-03    12.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.5282        8.5475        .17337E-02   -1.5461    
  19  norm          7.1241        2.7285        .95568E-04   -1.5174    
  20  norm          .10000E-03    4.0438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.372        11.420        .11880E-03   -1.5033    
  22  Normalizat    .85174        .24864        .39701E-03   -.98177    
  23  Prefactor     1.1416        .13101        .19066E-03   -.88147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89192e-09
Minuit parameter uncertainties:
  1  8.71292
  2  1.89218
  3  7.38735
  4  6.10331
  5  4.17438
  6  8.88591e-06
  7  9.70291
  8  2.2244
  9  2.35073e-06
  10  6.63531
  11  0.0025293
  12  22.1694
  13  2.1602e-05
  14  11.5263
  15  3.75136
  16  4.96885
  17  1.77558e-05
  18  7.22975
  19  2.7285
  20  9.65935e-06
  21  11.4226
  22  0.248978
  23  0.131048
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.144e+01  6.635e+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:  1.142e+00  1.310e-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.517e-01  2.490e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.06
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 6.96e-08 +/- 4.04e-08
Energy Flux (Fixed Index): 2.51e-05 +/- 1.46e-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) = 9451.51720265
delta logL = 0.06969276975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9451.51368404
delta logL = 0.0732113810882

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.369       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5244       1.0000          .0000       5.0000    
     3 'Normalizat'    .83340       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1478       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9451.514     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      275 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.361        6.9732        .62214E-03    .15121E-03
   2  alpha         2.5249        .60439        .13496E-01    .24854E-03
   3  Normalizat    .83342        .23913        .40093E-03    .17013E-06
   4  Prefactor     1.1477        .12960        .19022E-03    .16734E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.3614
  alpha      = 2.52491
  Normalizat = 0.833419
  Prefactor  = 1.14766
 **********
 **   18 **HESSE 
 **********

 FCN=   9451.514     FROM HESSE     STATUS=OK            27 CALLS      302 TOTAL
                     EDM=   .16E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.361        6.6828        .12443E-03   -1.5064    
   2  alpha         2.5249        .57916        .26992E-02    .99649E-02
   3  Normalizat    .83342        .23900        .16037E-04   -.98841    
   4  Prefactor     1.1477        .12957        .76090E-05   -.87958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64539e-14
Minuit parameter uncertainties:
  1  6.68329
  2  0.584474
  3  0.239306
  4  0.129605
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/797689': 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) = 9451.51368159
delta logL = 0.0732138292951

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.036e+01  6.683e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.525e+00  5.845e-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.148e+00  1.296e-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.334e-01  2.393e-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.52 +/- 0.58
Photon Flux (Free Index): 8.25e-08 +/- 5.34e-08
Energy Flux (Free Index): 2.43e-05 +/- 1.31e-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/797689/cmap_HighResolution_311904001_312163201_4FGL_J1337.6-1257_daily_bin280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.96e-08', energy_flux2='2.43e-05', photon_flux_error='4.04e-08', dlogl='7.32e-02', energy_flux='2.51e-05', photon_flux2='8.25e-08', job_status='DONE', time_completed='2021-09-08 04:48:08.716743', photon_index_error2='0.58', photon_index2='2.52', ts='6.06', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='1.31e-05', EG='0.85', time_epoch_completed='1631101688.72', return_code='0', job_id='797689', GAL2='1.15', EG2='0.83', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='5.34e-08', ts2='6.21', photon_index='2.30' WHERE bin_id='280' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:48:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 797689: <4FGL_J1337.6-1257_daily_bin280> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin280 204.424 -12.9517 311904001 312163201 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 :                                   620.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            766 sec.

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

