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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin250
RA = 204.424, Dec = -12.9517
tmin = 304128001, tmax = 304387201
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='797645', job_status='RUN', time_executed='2021-09-08 04:38:02.107310', time_epoch_executed='1631101082.11' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='250'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/797645

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/797645/ft1_4FGL_J1337.6-1257_daily_bin250.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/797645/ft2_4FGL_J1337.6-1257_daily_bin250.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/797645/ft1_4FGL_J1337.6-1257_daily_bin250.fits outfile=/scratch/kocevski/797645/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin250.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=304128001.0 tmax=304387201.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.45
user 3.19
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/797645/ft1_filtered_4FGL_J1337.6-1257_daily_bin250.fits" evtable="EVENTS" scfile=/scratch/kocevski/797645/ft2_4FGL_J1337.6-1257_daily_bin250.fits sctable="SC_DATA" outfile=/scratch/kocevski/797645/ltcube_304128001_304387201_4FGL_J1337.6-1257_daily_bin250.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/797645/ft2_4FGL_J1337.6-1257_daily_bin250.fits
.....................!
real 15.44
user 14.83
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/797645/ft1_filtered_4FGL_J1337.6-1257_daily_bin250.fits evtable="EVENTS" scfile=/scratch/kocevski/797645/ft2_4FGL_J1337.6-1257_daily_bin250.fits sctable="SC_DATA" expcube=/scratch/kocevski/797645/ltcube_304128001_304387201_4FGL_J1337.6-1257_daily_bin250.fits outfile=/scratch/kocevski/797645/expmap_304128001_304387201_4FGL_J1337.6-1257_daily_bin250.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/797645/ltcube_304128001_304387201_4FGL_J1337.6-1257_daily_bin250.fits
.....................!
real 192.28
user 186.24
sys 5.46

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/797645/ft1_filtered_4FGL_J1337.6-1257_daily_bin250.fits scfile=/scratch/kocevski/797645/ft2_4FGL_J1337.6-1257_daily_bin250.fits outfile=/scratch/kocevski/797645/cmap_304128001_304387201_4FGL_J1337.6-1257_daily_bin250.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.66
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/797645/ft1_filtered_4FGL_J1337.6-1257_daily_bin250.fits scfile=/scratch/kocevski/797645/ft2_4FGL_J1337.6-1257_daily_bin250.fits outfile=/scratch/kocevski/797645/cmap_HighResolution_304128001_304387201_4FGL_J1337.6-1257_daily_bin250.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.58
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/797645/ft1_filtered_4FGL_J1337.6-1257_daily_bin250.fits evtable="EVENTS" scfile=/scratch/kocevski/797645/ft2_4FGL_J1337.6-1257_daily_bin250.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/797645/Model_4FGL_J1337.6-1257_daily_bin250.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/797645/ft1_filtered_4FGL_J1337.6-1257_daily_bin250.fits.....................!
real 54.02
user 52.34
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.8761       1.0000         .10000E-03   10000.    
     3 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.8782       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.118       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .95599       1.0000         .10000E-03   10000.    
     8 'norm      '    .88683       1.0000         .10000E-03   10000.    
     9 'norm      '    .30506E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    12.449       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .41505E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .47226       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.0160       1.0000         .10000E-03   10000.    
    18 'norm      '    .72041E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    2.0557       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.874       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3559       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0055       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=   6715.127     FROM MIGRAD    STATUS=CONVERGED    982 CALLS     3547 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.6024        .15174E-02** at limit **
   2  norm          4.8756        3.3763        .12083E-03   -.28386E-03
   3  norm          .10000E-03    3.9553        .15905E-02** at limit **
   4  norm          7.8748        9.2389        .14286E-03    .41669E-04
   5  Prefactor     .10000E-03    3.5068        .14975E-02** at limit **
   6  Prefactor     30.117        12.561        .73006E-04   -.57773E-04
   7  Prefactor     .93381        224.29        .49612E-02   -.16726E-03
   8  norm          .88709        1.2583        .11832E-02    .37830E-02
   9  norm          .10102E-03    14.212        .38085E-01** at limit **
  10  norm          12.428        9.9767        .11353E-03   -.50288E-03
  11  Prefactor     .10000E-03    18.592        .18142E-02** at limit **
  12  Prefactor     .10000E-03    11.296        .18142E-02** at limit **
  13  norm          .10000E-03    53.105        .18142E-02** at limit **
  14  Prefactor     .10000E-03    15.397        .18142E-02** at limit **
  15  norm          .10614E-03    5.3083        .46268E-01** at limit **
  16  Prefactor     .54485        27.013        .27836E-02   -.13168E-03
  17  Prefactor     8.0000        38.372        .14161E-03    .21756E-04
  18  norm          .58148E-02    7.7767        .58485E-01    .40122E-03
  19  norm          2.0563        2.1779        .12026E-03   -.20854E-03
  20  norm          .10000E-03    2.7730        .13284E-02** at limit **
  21  Prefactor     32.873        22.901        .69888E-04    .68614E-04
  22  Normalizat    1.3552        .29574        .34127E-03    .95473E-04
  23  Prefactor     1.0058        .15157        .20545E-03    .14825E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 4.8756
  norm       = 0.0001
  norm       = 7.87482
  Prefactor  = 0.0001
  Prefactor  = 30.117
  Prefactor  = 0.933808
  norm       = 0.887086
  norm       = 0.000101024
  norm       = 12.4277
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.000106139
  Prefactor  = 0.544849
  Prefactor  = 7.99995
  norm       = 0.0058148
  norm       = 2.05627
  norm       = 0.0001
  Prefactor  = 32.8735
  Normalizat = 1.35519
  Prefactor  = 1.00576
 **********
 **   18 **HESSE 
 **********

 FCN=   6715.127     FROM HESSE     STATUS=OK           382 CALLS     3929 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.6026        .30348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.8756        3.3763        .48333E-05   -1.5266    
   3  norm          .10000E-03    3.9555        .31809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.8748        9.2387        .28571E-04   -1.5147    
   5  Prefactor     .10000E-03    3.5069        .29950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     30.117        12.562        .29203E-05   -1.4610    
   7  Prefactor     .93381        145.46        .19845E-03   -1.5515    
   8  norm          .88709        1.2568        .23663E-03   -1.5520    
   9  norm          .10102E-03    7.2623        .45647E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.428        9.8166        .45413E-05   -1.5003    
  11  Prefactor     .10000E-03    18.605        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.296        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    53.111        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.407        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10614E-03    4.5215        .51783E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .54485        25.193        .11134E-03   -1.5560    
  17  Prefactor     8.0000        38.338        .56646E-05   -1.5142    
  18  norm          .58148E-02    7.1361        .60272E-01   -1.5693    
  19  norm          2.0563        2.1777        .48104E-05   -1.5421    
  20  norm          .10000E-03    2.7734        .26568E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     32.873        22.901        .13978E-04   -1.4561    
  22  Normalizat    1.3552        .29363        .13651E-04   -.81934    
  23  Prefactor     1.0058        .15134        .41091E-04   -.92538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11683e-09
Minuit parameter uncertainties:
  1  4.45378e-06
  2  3.37641
  3  6.26261e-06
  4  9.24033
  5  9.31635e-07
  6  12.5627
  7  23.3658
  8  1.25681
  9  0.00545412
  10  9.8179
  11  0.000290024
  12  5.78414e-05
  13  0.000913637
  14  0.000123225
  15  0.0105375
  16  7.41251
  17  35.0619
  18  0.403935
  19  2.17776
  20  2.33993e-06
  21  22.9066
  22  0.293994
  23  0.1514
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.243e+01  9.818e+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.006e+00  1.514e-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.355e+00  2.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.76
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 7.56e-08 +/- 5.97e-08
Energy Flux (Fixed Index): 2.73e-05 +/- 2.15e-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) = 6715.12656305
delta logL = 0.000145668050209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6715.12652582
delta logL = 0.000182902751476

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.466       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2868       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3568       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0053       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=   6715.127     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      224 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.462        205.11        .28363E-02   -.14940E-03
   2  alpha         2.2855        2.7518        .41342       -.28871E-04
   3  Normalizat    1.3570        .17042        .77069E-01   -.43857E-03
   4  Prefactor     1.0052        .53982E-01    .44119E-01   -.11024E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 12.4624
  alpha      = 2.28553
  Normalizat = 1.35696
  Prefactor  = 1.00524
 **********
 **   18 **HESSE 
 **********

 FCN=   6715.127     FROM HESSE     STATUS=OK            29 CALLS      253 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.462        9.0071        .11345E-03   -1.5002    
   2  alpha         2.2855        .98955        .18397E-01   -.85895E-01
   3  Normalizat    1.3570        .29109        .34109E-03   -.81882    
   4  Prefactor     1.0052        .14858        .20550E-03   -.92555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11099e-09
Minuit parameter uncertainties:
  1  9.00806
  2  1.01762
  3  0.291439
  4  0.148643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/797645': 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) = 6715.12652457
delta logL = 0.00018415210252

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.246e+01  9.008e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.286e+00  1.018e+00  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.005e+00  1.486e-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.357e+00  2.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.76
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.29 +/- 1.02
Photon Flux (Free Index): 7.42e-08 +/- 9.01e-08
Energy Flux (Free Index): 2.73e-05 +/- 1.93e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/797645/cmap_HighResolution_304128001_304387201_4FGL_J1337.6-1257_daily_bin250.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.56e-08', energy_flux2='2.73e-05', photon_flux_error='5.97e-08', dlogl='1.84e-04', energy_flux='2.73e-05', photon_flux2='7.42e-08', job_status='DONE', time_completed='2021-09-08 04:49:17.132861', photon_index_error2='1.02', photon_index2='2.29', ts='5.76', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.93e-05', EG='1.36', time_epoch_completed='1631101757.13', return_code='0', job_id='797645', GAL2='1.01', EG2='1.36', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='9.01e-08', ts2='5.76', photon_index='2.30' WHERE bin_id='250' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:49:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 797645: <4FGL_J1337.6-1257_daily_bin250> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin250 204.424 -12.9517 304128001 304387201 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 :                                   671.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            837 sec.

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

