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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin247
RA = 204.424, Dec = -12.9517
tmin = 303350401, tmax = 303609601
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='797640', job_status='RUN', time_executed='2021-09-08 04:38:57.271179', time_epoch_executed='1631101137.27' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='247'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/797640

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/797640/ft1_4FGL_J1337.6-1257_daily_bin247.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/797640/ft2_4FGL_J1337.6-1257_daily_bin247.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/797640/ft1_4FGL_J1337.6-1257_daily_bin247.fits outfile=/scratch/kocevski/797640/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin247.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=303350401.0 tmax=303609601.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.82
user 2.58
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/797640/ft1_filtered_4FGL_J1337.6-1257_daily_bin247.fits" evtable="EVENTS" scfile=/scratch/kocevski/797640/ft2_4FGL_J1337.6-1257_daily_bin247.fits sctable="SC_DATA" outfile=/scratch/kocevski/797640/ltcube_303350401_303609601_4FGL_J1337.6-1257_daily_bin247.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/797640/ft2_4FGL_J1337.6-1257_daily_bin247.fits
.....................!
real 12.52
user 12.15
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/797640/ft1_filtered_4FGL_J1337.6-1257_daily_bin247.fits evtable="EVENTS" scfile=/scratch/kocevski/797640/ft2_4FGL_J1337.6-1257_daily_bin247.fits sctable="SC_DATA" expcube=/scratch/kocevski/797640/ltcube_303350401_303609601_4FGL_J1337.6-1257_daily_bin247.fits outfile=/scratch/kocevski/797640/expmap_303350401_303609601_4FGL_J1337.6-1257_daily_bin247.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/797640/ltcube_303350401_303609601_4FGL_J1337.6-1257_daily_bin247.fits
.....................!
real 157.95
user 153.45
sys 3.96

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/797640/ft1_filtered_4FGL_J1337.6-1257_daily_bin247.fits scfile=/scratch/kocevski/797640/ft2_4FGL_J1337.6-1257_daily_bin247.fits outfile=/scratch/kocevski/797640/cmap_303350401_303609601_4FGL_J1337.6-1257_daily_bin247.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.47
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/797640/ft1_filtered_4FGL_J1337.6-1257_daily_bin247.fits scfile=/scratch/kocevski/797640/ft2_4FGL_J1337.6-1257_daily_bin247.fits outfile=/scratch/kocevski/797640/cmap_HighResolution_303350401_303609601_4FGL_J1337.6-1257_daily_bin247.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.48
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/797640/ft1_filtered_4FGL_J1337.6-1257_daily_bin247.fits evtable="EVENTS" scfile=/scratch/kocevski/797640/ft2_4FGL_J1337.6-1257_daily_bin247.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/797640/Model_4FGL_J1337.6-1257_daily_bin247.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/797640/ft1_filtered_4FGL_J1337.6-1257_daily_bin247.fits.....................!
real 54.72
user 53.46
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5751       1.0000         .10000E-03   10000.    
     3 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.8351       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.324       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.735       1.0000         .10000E-03   10000.    
     8 'norm      '    3.0984       1.0000         .10000E-03   10000.    
     9 'norm      '    .29935E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.0519       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11064E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    26.303       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.205       1.0000         .10000E-03   10000.    
    15 'norm      '    .14283E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8248       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.8933       1.0000         .10000E-03   10000.    
    19 'norm      '    4.1915       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    2.2132       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .66139       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=   8233.161     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2584 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9967       -.40680E-08** at limit **
   2  norm          1.5751        1.5646       -.17007E-08   -.98833E-05
   3  norm          .10000E-03    6.2326       -.35955E-07** at limit **
   4  norm          4.8349        5.8773        .36627E-08   -.25850E-06
   5  Prefactor     18.321        11.681        .12337E-06   -.35335E-04
   6  Prefactor     .10000E-03    7.2272       -.54232E-07** at limit **
   7  Prefactor     11.771        21.057        .22800E-05   -.16592E-03
   8  norm          3.0981        1.5907       -.60389E-08   -.12275E-04
   9  norm          .10001E-03    2.2085       -.26342E-06** at limit **
  10  norm          8.0581        8.5537        .89676E-06   -.14583E-03
  11  Prefactor     .10000E-03    22.089       -.58758E-08** at limit **
  12  Prefactor     .10000E-03    30.691       -.82982E-06** at limit **
  13  norm          26.264        25.481        .12957E-05    .56595E-04
  14  Prefactor     15.196        12.323       -.19271E-07   -.10713E-04
  15  norm          .10001E-03    3.3429        .56960E-06** at limit **
  16  Prefactor     1.8244        3.6497       -.60135E-07   -.36733E-04
  17  Prefactor     .10000E-03    21.561        .14363E-06** at limit **
  18  norm          1.8933        4.2671        .86270E-06    .53063E-03
  19  norm          4.1908        3.3129       -.11482E-07   -.99316E-05
  20  norm          .10000E-03    4.2334        .38028E-07** at limit **
  21  Prefactor     .10000E-03    18.713        .57727E-06** at limit **
  22  Normalizat    2.2135        .25413        .23666E-06   -.10657E-03
  23  Prefactor     .66129        .12362       -.15014E-06   -.60466E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.5751
  norm       = 0.0001
  norm       = 4.8349
  Prefactor  = 18.3214
  Prefactor  = 0.0001
  Prefactor  = 11.7706
  norm       = 3.09813
  norm       = 0.00010001
  norm       = 8.05812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.2644
  Prefactor  = 15.196
  norm       = 0.000100013
  Prefactor  = 1.82438
  Prefactor  = 0.0001
  norm       = 1.89334
  norm       = 4.19082
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 2.2135
  Prefactor  = 0.661291
 **********
 **   18 **HESSE 
 **********

 FCN=   8233.161     FROM HESSE     STATUS=OK           372 CALLS     2956 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.0037        .15339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5751        1.5776        .11017E-03   -1.5457    
   3  norm          .10000E-03    6.3069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.8349        5.8741        .18295E-03   -1.5268    
   5  Prefactor     18.321        11.691        .93565E-04   -1.4852    
   6  Prefactor     .10000E-03    7.3393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.771        21.324        .11694E-03   -1.5022    
   8  norm          3.0981        1.5930        .78671E-04   -1.5356    
   9  norm          .10001E-03    6.0016        .22548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.0581        8.5066        .14130E-03   -1.5140    
  11  Prefactor     .10000E-03    22.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    30.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          26.264        25.504        .39055E-03   -1.4683    
  14  Prefactor     15.196        12.299        .10271E-03   -1.4928    
  15  norm          .10001E-03    13.740        .30448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.8244        3.6196        .23377E-03   -1.5438    
  17  Prefactor     .10000E-03    21.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8933        4.4353        .14153E-02   -1.5433    
  19  norm          4.1908        3.3187        .13960E-03   -1.5299    
  20  norm          .10000E-03    4.2671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    2.2135        .30015        .30126E-03   -.59301    
  23  Prefactor     .66129        .14436        .25268E-03   -1.0506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01563e-09
Minuit parameter uncertainties:
  1  1.06402e-06
  2  1.57769
  3  3.22075e-06
  4  5.8748
  5  11.6926
  6  1.52092e-05
  7  21.3379
  8  1.59304
  9  0.000497507
  10  8.50792
  11  2.97071e-05
  12  3.53686e-05
  13  25.5143
  14  12.3015
  15  0.000847759
  16  3.62007
  17  1.15029e-05
  18  4.43605
  19  3.31889
  20  1.20451e-06
  21  1.24396e-05
  22  0.300411
  23  0.14444
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  8.058e+00  8.508e+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:  6.613e-01  1.444e-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:  2.214e+00  3.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.56
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 4.91e-08 +/- 5.18e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.87e-05

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

Saving results to:
/scratch/kocevski/797640/likelihoodResults_303350401_303609601_4FGL_J1337.6-1257_daily_bin247.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) = 8233.14102438
delta logL = 0.0201968920937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8233.13454317
delta logL = 0.0266781022765

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1207       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6254       1.0000          .0000       5.0000    
     3 'Normalizat'    2.1924       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66849       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=   8233.135     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      255 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1118        13.736        .75163E-03   -.32374E-03
   2  alpha         2.6260        1.8811        .21023E-01   -.23442E-04
   3  Normalizat    2.1924        .31419        .30225E-03   -.21486E-03
   4  Prefactor     .66850        .15271        .25144E-03   -.76050E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.11176
  alpha      = 2.62605
  Normalizat = 2.19236
  Prefactor  = 0.668503
 **********
 **   18 **HESSE 
 **********

 FCN=   8233.135     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1118        9.8446        .30065E-04   -1.5175    
   2  alpha         2.6260        1.4304        .84093E-03    .50439E-01
   3  Normalizat    2.1924        .30197        .60450E-04   -.59812    
   4  Prefactor     .66850        .14790        .10058E-04   -1.0477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08638e-10
Minuit parameter uncertainties:
  1  9.84685
  2  1.52308
  3  0.302237
  4  0.147983
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/797640': 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) = 8233.13454265
delta logL = 0.026678630029

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  7.112e+00  9.847e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.626e+00  1.523e+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:  6.685e-01  1.480e-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:  2.192e+00  3.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.65
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.63 +/- 1.52
Photon Flux (Free Index): 6.46e-08 +/- 8.38e-08
Energy Flux (Free Index): 1.76e-05 +/- 1.59e-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/797640/cmap_HighResolution_303350401_303609601_4FGL_J1337.6-1257_daily_bin247.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.24e-05', comment='SUCCESS', photon_flux='4.91e-08', energy_flux2='1.76e-05', photon_flux_error='5.18e-08', dlogl='2.67e-02', energy_flux='1.77e-05', photon_flux2='6.46e-08', job_status='DONE', time_completed='2021-09-08 04:49:28.263890', photon_index_error2='1.52', photon_index2='2.63', ts='1.56', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='1.45e-07', energy_flux_error2='1.59e-05', EG='2.21', time_epoch_completed='1631101768.26', return_code='0', job_id='797640', GAL2='0.67', EG2='2.19', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='8.38e-08', ts2='1.65', photon_index='2.30' WHERE bin_id='247' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:49:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 797640: <4FGL_J1337.6-1257_daily_bin247> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin247> 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) <bullet0033>, 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:29 2021
Results reported at Wed Sep  8 04:49:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin247 204.424 -12.9517 303350401 303609601 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 :                                   628.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            849 sec.

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

