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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin282
RA = 204.424, Dec = -12.9517
tmin = 312422401, tmax = 312681601
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='797692', job_status='RUN', time_executed='2021-09-08 04:39:49.749843', time_epoch_executed='1631101189.75' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/797692

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/797692/ft1_4FGL_J1337.6-1257_daily_bin282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/797692/ft2_4FGL_J1337.6-1257_daily_bin282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/797692/ft1_4FGL_J1337.6-1257_daily_bin282.fits outfile=/scratch/kocevski/797692/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin282.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=312422401.0 tmax=312681601.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.90
user 3.65
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/797692/ft1_filtered_4FGL_J1337.6-1257_daily_bin282.fits" evtable="EVENTS" scfile=/scratch/kocevski/797692/ft2_4FGL_J1337.6-1257_daily_bin282.fits sctable="SC_DATA" outfile=/scratch/kocevski/797692/ltcube_312422401_312681601_4FGL_J1337.6-1257_daily_bin282.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/797692/ft2_4FGL_J1337.6-1257_daily_bin282.fits
.....................!
real 14.11
user 13.77
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/797692/ft1_filtered_4FGL_J1337.6-1257_daily_bin282.fits evtable="EVENTS" scfile=/scratch/kocevski/797692/ft2_4FGL_J1337.6-1257_daily_bin282.fits sctable="SC_DATA" expcube=/scratch/kocevski/797692/ltcube_312422401_312681601_4FGL_J1337.6-1257_daily_bin282.fits outfile=/scratch/kocevski/797692/expmap_312422401_312681601_4FGL_J1337.6-1257_daily_bin282.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/797692/ltcube_312422401_312681601_4FGL_J1337.6-1257_daily_bin282.fits
.....................!
real 192.16
user 187.20
sys 4.56

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/797692/ft1_filtered_4FGL_J1337.6-1257_daily_bin282.fits scfile=/scratch/kocevski/797692/ft2_4FGL_J1337.6-1257_daily_bin282.fits outfile=/scratch/kocevski/797692/cmap_312422401_312681601_4FGL_J1337.6-1257_daily_bin282.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.37
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/797692/ft1_filtered_4FGL_J1337.6-1257_daily_bin282.fits evtable="EVENTS" scfile=/scratch/kocevski/797692/ft2_4FGL_J1337.6-1257_daily_bin282.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/797692/Model_4FGL_J1337.6-1257_daily_bin282.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/797692/ft1_filtered_4FGL_J1337.6-1257_daily_bin282.fits.....................!
real 64.90
user 63.49
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.7706       1.0000         .10000E-03   10000.    
     3 'norm      '    20.895       1.0000         .10000E-03   10000.    
     4 'norm      '    14.923       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.741       1.0000         .10000E-03   10000.    
     8 'norm      '    5.0844       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.6450       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.669       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.554       1.0000         .10000E-03   10000.    
    13 'norm      '    25.412       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .24117E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    4.8301       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10440E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.0173       1.0000         .10000E-03   10000.    
    19 'norm      '    3.7115       1.0000         .10000E-03   10000.    
    20 'norm      '    1.6478       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.982       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2809       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97721       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8132.846     FROM MIGRAD    STATUS=CONVERGED     87 CALLS     2136 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.0873        .23453E-05** at limit **
   2  norm          2.7705        2.0384       -.35523E-07    .21724E-03
   3  norm          20.894        2.4001       -.15878E-05    .32702E-02
   4  norm          14.923        1.1931       -.54449E-06    .55612E-03
   5  Prefactor     .10000E-03    5.4400       -.22732E-06** at limit **
   6  Prefactor     .10000E-03    4.0803       -.27782E-05** at limit **
   7  Prefactor     41.742        1.0275       -.10082E-06    .53770E-04
   8  norm          5.0840        1.8681       -.13029E-06   -.15571E-04
   9  norm          .10000E-03    1.3650        .18976E-06** at limit **
  10  norm          5.6440        2.4689       -.26676E-05   -.16810E-02
  11  Prefactor     11.750        6.3858       -.50869E-05    .77884E-02
  12  Prefactor     24.540        1.8955       -.79969E-06    .30579E-02
  13  norm          25.404        1.4115       -.52516E-06    .22296E-02
  14  Prefactor     .10089E-03    104.04       -.62571E-05** at limit **
  15  norm          4.8307        4.7753       -.49189E-05   -.75741E-03
  16  Prefactor     .10000E-03    2.0417       -.29515E-07** at limit **
  17  Prefactor     .10006E-03    43.201       -.29777E-06** at limit **
  18  norm          6.0140        6.8825       -.65372E-05   -.33144E-02
  19  norm          3.7116        2.6346        .19423E-06    .89213E-03
  20  norm          1.6472        1.6534       -.40662E-05   -.53921E-02
  21  Prefactor     22.983        1.0393        .18872E-06   -.45727E-03
  22  Normalizat    1.2811        .27495        .23637E-05   -.12929E-04
  23  Prefactor     .97721        .14234        .18067E-05   -.72769E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.77046
  norm       = 20.8943
  norm       = 14.9235
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.7417
  norm       = 5.08402
  norm       = 0.0001
  norm       = 5.64402
  Prefactor  = 11.7496
  Prefactor  = 24.5396
  norm       = 25.4038
  Prefactor  = 0.000100888
  norm       = 4.83067
  Prefactor  = 0.0001
  Prefactor  = 0.000100062
  norm       = 6.01405
  norm       = 3.71157
  norm       = 1.64723
  Prefactor  = 22.9832
  Normalizat = 1.28111
  Prefactor  = 0.97721
 **********
 **   18 **HESSE 
 **********

 FCN=   8132.846     FROM HESSE     STATUS=OK           426 CALLS     2562 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.1194        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.7705        2.0377        .61126E-02   -1.5375    
   3  norm          20.894        11.474        .21906E-02   -1.4793    
   4  norm          14.923        9.9215        .25920E-02   -1.4935    
   5  Prefactor     .10000E-03    5.3920        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.0974        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.742        19.519        .15512E-02   -1.4415    
   8  norm          5.0840        1.8671        .44578E-02   -1.5257    
   9  norm          .10000E-03    1.3627        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.6440        5.6416        .42268E-02   -1.5233    
  11  Prefactor     11.750        18.103        .29318E-02   -1.5022    
  12  Prefactor     24.540        29.075        .20210E-02   -1.4717    
  13  norm          25.404        36.485        .19866E-02   -1.4699    
  14  Prefactor     .10089E-03    10.070        .91430E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.8307        5.8389        .45761E-02   -1.5268    
  16  Prefactor     .10000E-03    2.0334        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10006E-03    43.686        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.0140        7.4692        .40921E-02   -1.5217    
  19  norm          3.7116        2.6654        .52404E-02   -1.5323    
  20  norm          1.6472        3.1576        .82245E-02   -1.5451    
  21  Prefactor     22.983        22.909        .20888E-02   -1.4749    
  22  Normalizat    1.2811        .23920        .80551E-01   -.84132    
  23  Prefactor     .97721        .12250        .45982E-01   -.93493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50794e-07
Minuit parameter uncertainties:
  1  8.35954e-05
  2  2.03775
  3  11.4753
  4  9.92256
  5  3.10675e-05
  6  2.37581e-05
  7  19.5217
  8  1.86708
  9  8.21377e-06
  10  5.64215
  11  18.1115
  12  29.0919
  13  36.5173
  14  0.0059833
  15  5.83962
  16  1.12785e-05
  17  0.0032826
  18  7.47034
  19  2.66547
  20  3.15787
  21  22.9177
  22  0.239405
  23  0.122534
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  5.644e+00  5.642e+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:  9.772e-01  1.225e-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.281e+00  2.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.87
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 3.44e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 1.24e-05

TS (Fixed Index): 1.87
Ra Dec: 204.424 -12.952
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/797692/likelihoodResults_312422401_312681601_4FGL_J1337.6-1257_daily_bin282.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) = 8132.77666626
delta logL = 0.0691323285091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8132.77079373
delta logL = 0.075004854838

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1467       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6564       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2668       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98110       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=   8132.771     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      239 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1466        5.5237        .17721E-03    .22319E-03
   2  alpha         2.6564        .92817        .22319E-01    .14052E-04
   3  Normalizat    1.2668        .27112        .35823E-03    .22659E-04
   4  Prefactor     .98110        .14103        .20958E-03   -.79359E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.14657
  alpha      = 2.6564
  Normalizat = 1.26679
  Prefactor  = 0.981102
 **********
 **   18 **HESSE 
 **********

 FCN=   8132.771     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1466        5.3202        .70884E-05   -1.5254    
   2  alpha         2.6564        .89457        .89275E-03    .62603E-01
   3  Normalizat    1.2668        .27104        .14329E-04   -.84563    
   4  Prefactor     .98110        .14106        .83833E-05   -.93362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90141e-11
Minuit parameter uncertainties:
  1  5.32064
  2  0.914935
  3  0.271348
  4  0.14111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/797692': 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) = 8132.77079373
delta logL = 0.0750048552309

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  5.147e+00  5.321e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.656e+00  9.149e-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:  9.811e-01  1.411e-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.267e+00  2.713e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.02
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.66 +/- 0.91
Photon Flux (Free Index): 4.86e-08 +/- 5.74e-08
Energy Flux (Free Index): 1.30e-05 +/- 1.20e-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/797692/cmap_HighResolution_312422401_312681601_4FGL_J1337.6-1257_daily_bin282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.25e-05', comment='SUCCESS', photon_flux='3.44e-08', energy_flux2='1.30e-05', photon_flux_error='3.43e-08', dlogl='7.50e-02', energy_flux='1.24e-05', photon_flux2='4.86e-08', job_status='DONE', time_completed='2021-09-08 04:51:35.263469', photon_index_error2='0.91', photon_index2='2.66', ts='1.87', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.20e-05', EG='1.28', time_epoch_completed='1631101895.26', return_code='0', job_id='797692', GAL2='0.98', EG2='1.27', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='5.74e-08', ts2='2.02', photon_index='2.30' WHERE bin_id='282' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:51:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 797692: <4FGL_J1337.6-1257_daily_bin282> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin282> 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) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:36:40 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:40 2021
Terminated at Wed Sep  8 04:51:36 2021
Results reported at Wed Sep  8 04:51:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin282 204.424 -12.9517 312422401 312681601 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 :                                   702.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            973 sec.

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

