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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin240
RA = 204.424, Dec = -12.9517
tmin = 301536001, tmax = 301795201
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='797630', job_status='RUN', time_executed='2021-09-08 04:37:26.187908', time_epoch_executed='1631101046.19' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/797630

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/797630/ft1_4FGL_J1337.6-1257_daily_bin240.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/797630/ft2_4FGL_J1337.6-1257_daily_bin240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/797630/ft1_4FGL_J1337.6-1257_daily_bin240.fits outfile=/scratch/kocevski/797630/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin240.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=301536001.0 tmax=301795201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.59
user 4.34
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/797630/ft1_filtered_4FGL_J1337.6-1257_daily_bin240.fits" evtable="EVENTS" scfile=/scratch/kocevski/797630/ft2_4FGL_J1337.6-1257_daily_bin240.fits sctable="SC_DATA" outfile=/scratch/kocevski/797630/ltcube_301536001_301795201_4FGL_J1337.6-1257_daily_bin240.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/797630/ft2_4FGL_J1337.6-1257_daily_bin240.fits
.....................!
real 12.71
user 12.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/797630/ft1_filtered_4FGL_J1337.6-1257_daily_bin240.fits evtable="EVENTS" scfile=/scratch/kocevski/797630/ft2_4FGL_J1337.6-1257_daily_bin240.fits sctable="SC_DATA" expcube=/scratch/kocevski/797630/ltcube_301536001_301795201_4FGL_J1337.6-1257_daily_bin240.fits outfile=/scratch/kocevski/797630/expmap_301536001_301795201_4FGL_J1337.6-1257_daily_bin240.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/797630/ltcube_301536001_301795201_4FGL_J1337.6-1257_daily_bin240.fits
.....................!
real 193.80
user 188.33
sys 5.06

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/797630/ft1_filtered_4FGL_J1337.6-1257_daily_bin240.fits scfile=/scratch/kocevski/797630/ft2_4FGL_J1337.6-1257_daily_bin240.fits outfile=/scratch/kocevski/797630/cmap_301536001_301795201_4FGL_J1337.6-1257_daily_bin240.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=204.424 yref=-12.9517 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/797630/ft1_filtered_4FGL_J1337.6-1257_daily_bin240.fits evtable="EVENTS" scfile=/scratch/kocevski/797630/ft2_4FGL_J1337.6-1257_daily_bin240.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/797630/Model_4FGL_J1337.6-1257_daily_bin240.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/797630/ft1_filtered_4FGL_J1337.6-1257_daily_bin240.fits.....................!
real 70.84
user 69.25
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .20490       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4258       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4829       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2960       1.0000         .10000E-03   10000.    
     8 'norm      '    4.6768       1.0000         .10000E-03   10000.    
     9 'norm      '    .10262E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.7113       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2118       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.842       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.3310       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10997E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.263       1.0000         .10000E-03   10000.    
    18 'norm      '    4.9084       1.0000         .10000E-03   10000.    
    19 'norm      '    5.0840       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .97969       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0086       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=   9243.921     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2177 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9100       -.47580E-08** at limit **
   2  norm          .20302        1.7990       -.22501E-05   -.71832E-03
   3  norm          .10000E-03    5.0962       -.19494E-06** at limit **
   4  norm          .10000E-03    5.4208        .30358E-06** at limit **
   5  Prefactor     6.4253        5.8832       -.47932E-08    .96329E-05
   6  Prefactor     5.4818        6.9837        .11848E-05   -.36524E-03
   7  Prefactor     5.2999        13.489       -.85508E-06   -.74857E-04
   8  norm          4.6768        1.5501        .15790E-07   -.30137E-04
   9  norm          .10000E-03    1.6059        .41697E-06** at limit **
  10  norm          3.7101        4.9148        .21010E-06    .47344E-04
  11  Prefactor     7.2054        11.122        .89092E-07    .15818E-03
  12  Prefactor     .10000E-03    26.386        .13543E-07** at limit **
  13  norm          10.833        19.933        .18869E-05    .21965E-04
  14  Prefactor     .10000E-03    6.0441       -.15077E-06** at limit **
  15  norm          3.3306        3.5902        .15489E-05   -.85149E-03
  16  Prefactor     .10006E-03    1.9615       -.55623E-06** at limit **
  17  Prefactor     30.263        22.136       -.16826E-06    .24642E-05
  18  norm          4.9088        5.1304       -.21584E-07   -.30514E-04
  19  norm          5.0838        2.5174        .69848E-07   -.55353E-04
  20  norm          .10000E-03    1.6100        .11713E-07** at limit **
  21  Prefactor     .10000E-03    5.6382        .40235E-06** at limit **
  22  Normalizat    .97974        .19847       -.13438E-05   -.31313E-04
  23  Prefactor     1.0086        .10154        .23497E-06   -.22982E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.203022
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.42535
  Prefactor  = 5.48176
  Prefactor  = 5.29992
  norm       = 4.67681
  norm       = 0.0001
  norm       = 3.7101
  Prefactor  = 7.20535
  Prefactor  = 0.0001
  norm       = 10.8333
  Prefactor  = 0.0001
  norm       = 3.33055
  Prefactor  = 0.000100057
  Prefactor  = 30.2629
  norm       = 4.9088
  norm       = 5.08381
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.979741
  Prefactor  = 1.00856
 **********
 **   18 **HESSE 
 **********

 FCN=   9243.921     FROM HESSE     STATUS=OK           378 CALLS     2555 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9346        .16016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .20302        2.8565        .20978E-02   -1.5618    
   3  norm          .10000E-03    5.1982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.4604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.4253        5.8809        .15833E-03   -1.5201    
   6  Prefactor     5.4818        7.2293        .85797E-03   -1.5240    
   7  Prefactor     5.2999        13.346        .17465E-03   -1.5247    
   8  norm          4.6768        1.5551        .65513E-04   -1.5275    
   9  norm          .10000E-03    1.6380        .23725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.7101        4.8371        .20962E-03   -1.5323    
  11  Prefactor     7.2054        11.116        .14936E-03   -1.5171    
  12  Prefactor     .10000E-03    26.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.833        19.924        .12167E-03   -1.5050    
  14  Prefactor     .10000E-03    6.0780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.3306        4.1382        .10334E-02   -1.5343    
  16  Prefactor     .10006E-03    34.947        .23715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     30.263        22.130        .72832E-04   -1.4607    
  18  norm          4.9088        4.9456        .18155E-03   -1.5265    
  19  norm          5.0838        2.5212        .10201E-03   -1.5257    
  20  norm          .10000E-03    1.6132        .11913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.6588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .97974        .22953        .33954E-03   -.93712    
  23  Prefactor     1.0086        .11946        .18294E-03   -.92445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44553e-09
Minuit parameter uncertainties:
  1  2.07487e-06
  2  1.52277
  3  1.69545e-05
  4  1.46197e-06
  5  5.88143
  6  7.23044
  7  13.3531
  8  1.55509
  9  3.5034e-05
  10  4.83761
  11  11.119
  12  5.22068e-05
  13  19.9364
  14  3.00856e-05
  15  4.13857
  16  0.00281794
  17  22.1361
  18  4.946
  19  2.52124
  20  5.22542e-07
  21  8.99509e-07
  22  0.229764
  23  0.11949
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  3.710e+00  4.838e+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.009e+00  1.195e-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:  9.797e-01  2.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.09
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 2.26e-08 +/- 2.94e-08
Energy Flux (Fixed Index): 8.14e-06 +/- 1.06e-05

TS (Fixed Index): 1.09
Ra Dec: 204.424 -12.952
Photon Flux Upper Limit: 9.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/797630/likelihoodResults_301536001_301795201_4FGL_J1337.6-1257_daily_bin240.txt

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) = 9242.81423869
delta logL = 1.10635642327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9242.78358456
delta logL = 1.13701054803

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0680       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1426       1.0000          .0000       5.0000    
     3 'Normalizat'    .87612       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0429       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=   9242.784     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      300 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0674        8.4268        .11775E-01    .12584E-02
   2  alpha         4.1431        4.4319        .39975        .78467E-04
   3  Normalizat    .87609        .51006E-01    .80591E-01    .32004E-04
   4  Prefactor     1.0429        .27982E-01    .40347E-01   -.41998E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.06739
  alpha      = 4.1431
  Normalizat = 0.876086
  Prefactor  = 1.0429
 **********
 **   18 **HESSE 
 **********

 FCN=   9242.784     FROM HESSE     STATUS=OK            31 CALLS      331 TOTAL
                     EDM=   .15E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0674        3.6247        .57840E-04   -1.5501    
   2  alpha         4.1431        3.7894        .18033E-02    .71715    
   3  Normalizat    .87609        .22236        .35676E-03   -.97306    
   4  Prefactor     1.0429        .11945        .18018E-03   -.91313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52211e-13
Minuit parameter uncertainties:
  1  3.62547
  2  2.07409
  3  0.222597
  4  0.119476
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/797630': 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) = 9242.78358442
delta logL = 1.13701068923

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.067e+00  3.625e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  4.143e+00  2.074e+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.043e+00  1.195e-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.761e-01  2.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.82
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 4.14 +/- 2.07
Photon Flux (Free Index): 9.79e-08 +/- 6.11e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.01e-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/797630/cmap_HighResolution_301536001_301795201_4FGL_J1337.6-1257_daily_bin240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.26e-05', comment='SUCCESS', photon_flux='2.26e-08', energy_flux2='1.51e-05', photon_flux_error='2.94e-08', dlogl='1.14e+00', energy_flux='8.14e-06', photon_flux2='9.79e-08', job_status='DONE', time_completed='2021-09-08 04:50:26.364675', photon_index_error2='2.07', photon_index2='4.14', ts='1.09', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='9.05e-08', energy_flux_error2='1.01e-05', EG='0.98', time_epoch_completed='1631101826.36', return_code='0', job_id='797630', GAL2='1.04', EG2='0.88', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='6.11e-08', ts2='3.82', photon_index='2.30' WHERE bin_id='240' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:50:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 797630: <4FGL_J1337.6-1257_daily_bin240> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin240> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 04:35:19 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:35:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 04:35:28 2021
Terminated at Wed Sep  8 04:50:27 2021
Results reported at Wed Sep  8 04:50:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin240 204.424 -12.9517 301536001 301795201 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 :                                   776.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            908 sec.

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

