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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin172
RA = 204.424, Dec = -12.9517
tmin = 283910401, tmax = 284169601
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='796275', job_status='RUN', time_executed='2021-09-08 04:31:40.925669', time_epoch_executed='1631100700.93' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='172'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/796275

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/796275/ft1_4FGL_J1337.6-1257_daily_bin172.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/796275/ft2_4FGL_J1337.6-1257_daily_bin172.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/796275/ft1_4FGL_J1337.6-1257_daily_bin172.fits outfile=/scratch/kocevski/796275/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin172.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=283910401.0 tmax=284169601.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.58
user 3.34
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/796275/ft2_4FGL_J1337.6-1257_daily_bin172.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/796275/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin172.fits evtable="EVENTS" outfile="/scratch/kocevski/796275/ft1_filtered_4FGL_J1337.6-1257_daily_bin172.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.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/796275/ft1_filtered_4FGL_J1337.6-1257_daily_bin172.fits" evtable="EVENTS" scfile=/scratch/kocevski/796275/ft2_4FGL_J1337.6-1257_daily_bin172.fits sctable="SC_DATA" outfile=/scratch/kocevski/796275/ltcube_283910401_284169601_4FGL_J1337.6-1257_daily_bin172.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/796275/ft2_4FGL_J1337.6-1257_daily_bin172.fits
.....................!
real 14.16
user 13.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/796275/ft1_filtered_4FGL_J1337.6-1257_daily_bin172.fits evtable="EVENTS" scfile=/scratch/kocevski/796275/ft2_4FGL_J1337.6-1257_daily_bin172.fits sctable="SC_DATA" expcube=/scratch/kocevski/796275/ltcube_283910401_284169601_4FGL_J1337.6-1257_daily_bin172.fits outfile=/scratch/kocevski/796275/expmap_283910401_284169601_4FGL_J1337.6-1257_daily_bin172.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/796275/ltcube_283910401_284169601_4FGL_J1337.6-1257_daily_bin172.fits
.....................!
real 191.97
user 186.68
sys 4.79

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/796275/ft1_filtered_4FGL_J1337.6-1257_daily_bin172.fits scfile=/scratch/kocevski/796275/ft2_4FGL_J1337.6-1257_daily_bin172.fits outfile=/scratch/kocevski/796275/cmap_283910401_284169601_4FGL_J1337.6-1257_daily_bin172.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/796275/ft1_filtered_4FGL_J1337.6-1257_daily_bin172.fits scfile=/scratch/kocevski/796275/ft2_4FGL_J1337.6-1257_daily_bin172.fits outfile=/scratch/kocevski/796275/cmap_HighResolution_283910401_284169601_4FGL_J1337.6-1257_daily_bin172.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/796275/ft1_filtered_4FGL_J1337.6-1257_daily_bin172.fits evtable="EVENTS" scfile=/scratch/kocevski/796275/ft2_4FGL_J1337.6-1257_daily_bin172.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/796275/Model_4FGL_J1337.6-1257_daily_bin172.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/796275/ft1_filtered_4FGL_J1337.6-1257_daily_bin172.fits.....................!
real 75.38
user 73.95
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .65384E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .66816       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9832       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11882E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    6.4866       1.0000         .10000E-03   10000.    
     9 'norm      '    4.4708       1.0000         .10000E-03   10000.    
    10 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.687       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5512       1.0000         .10000E-03   10000.    
    15 'norm      '    6.3322       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .35584       1.0000         .10000E-03   10000.    
    17 'Prefactor '    46.739       1.0000         .10000E-03   10000.    
    18 'norm      '    .89523       1.0000         .10000E-03   10000.    
    19 'norm      '    1.8939       1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .94204       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0668       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=   10197.41     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2626 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3429       -.85780E-07** at limit **
   2  norm          .10000E-03    .40586       -.19507E-08** at limit **
   3  norm          .10000E-03    4.0765       -.17407E-07** at limit **
   4  norm          .10000E-03    2.8533       -.62545E-08** at limit **
   5  Prefactor     .65478        4.3008       -.76404E-06    .65719E-04
   6  Prefactor     3.9845        5.0714        .10597E-06   -.66386E-03
   7  Prefactor     .10000E-03    9.6973        .15069E-06** at limit **
   8  norm          6.4863        1.7660       -.30778E-07    .21170E-04
   9  norm          4.4721        3.3049       -.47106E-07   -.12567E-03
  10  norm          .10000E-03    3.9066        .11826E-07** at limit **
  11  Prefactor     .10000E-03    3.2665        .37729E-07** at limit **
  12  Prefactor     30.688        18.489       -.10839E-08    .13767E-03
  13  norm          .10000E-03    16.776       -.18664E-07** at limit **
  14  Prefactor     1.5546        6.1500       -.13189E-05    .45074E-04
  15  norm          6.3324        3.6401       -.78876E-07    .90300E-03
  16  Prefactor     .35293        1.6226        .96160E-07   -.16591E-03
  17  Prefactor     46.735        31.349       -.96638E-06    .93473E-03
  18  norm          .89458        3.1143       -.15005E-05   -.70266E-03
  19  norm          1.8940        2.1884       -.12172E-06   -.34960E-03
  20  norm          .10000E-03    2.5834       -.45867E-09** at limit **
  21  Prefactor     .10000E-03    10.292        .11498E-07** at limit **
  22  Normalizat    .94210        .18938        .60238E-06    .85424E-04
  23  Prefactor     1.0668        .99188E-01    .10413E-06    .16679E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.654782
  Prefactor  = 3.9845
  Prefactor  = 0.0001
  norm       = 6.48626
  norm       = 4.47213
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.6881
  norm       = 0.0001
  Prefactor  = 1.55462
  norm       = 6.33241
  Prefactor  = 0.352934
  Prefactor  = 46.7351
  norm       = 0.894576
  norm       = 1.89399
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.942097
  Prefactor  = 1.06675
 **********
 **   18 **HESSE 
 **********

 FCN=   10197.41     FROM HESSE     STATUS=OK           382 CALLS     3008 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9118        .58941E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .40768        .62823E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.1107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.8572        .16658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .65478        14.241        .40359E-02   -1.5546    
   6  Prefactor     3.9845        5.0501        .20209E-03   -1.5309    
   7  Prefactor     .10000E-03    54.754        .48574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.4863        1.7785        .65953E-04   -1.5199    
   9  norm          4.4721        2.7019        .12260E-03   -1.5285    
  10  norm          .10000E-03    3.9660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.2722        .17807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     30.688        18.446        .72328E-04   -1.4599    
  13  norm          .10000E-03    16.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5546        7.0187        .34196E-03   -1.5459    
  15  norm          6.3324        3.6346        .14035E-03   -1.5205    
  16  Prefactor     .35293        5.4075        .22885E-02   -1.5589    
  17  Prefactor     46.735        30.687        .58649E-04   -1.4340    
  18  norm          .89458        5.2212        .41969E-03   -1.5519    
  19  norm          1.8940        2.1973        .15413E-03   -1.5433    
  20  norm          .10000E-03    2.6009        .15847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .94210        .21731        .35194E-03   -.94996    
  23  Prefactor     1.0668        .11423        .18341E-03   -.90536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02292e-08
Minuit parameter uncertainties:
  1  2.66566e-05
  2  1.59946e-07
  3  1.34643e-06
  4  3.6922e-07
  5  6.10838
  6  5.05059
  7  3.77887e-06
  8  1.7785
  9  2.70194
  10  8.27363e-07
  11  6.9018e-06
  12  18.4494
  13  7.61095e-06
  14  6.60754
  15  3.63476
  16  2.76287
  17  30.697
  18  4.3227
  19  2.19737
  20  3.32387e-07
  21  1.53094e-05
  22  0.217518
  23  0.114259
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  8.274e-07  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.067e+00  1.143e-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.421e-01  2.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/796275/likelihoodResults_283910401_284169601_4FGL_J1337.6-1257_daily_bin172.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): 102
logL (Free Index) = 10197.4112257
delta logL = -0.00120227116167

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10197.410024
delta logL = -6.17179466644e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10400E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2889       1.0000          .0000       5.0000    
     3 'Normalizat'    .94198       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0668       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=   10197.41     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      245 TOTAL
                     EDM=   .93E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.4071        .60815E-01** at limit **
   2  alpha         2.0743        3.4448        .16535       -.15126E-08
   3  Normalizat    .94210        .80571E-02    .35194E-03   -.76106E-04
   4  Prefactor     1.0668        .44697E-02    .18341E-03   -.13521E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.07434
  Normalizat = 0.942096
  Prefactor  = 1.06675
 **********
 **   18 **HESSE 
 **********

 FCN=   10197.41     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .79E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.3704        .30903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0743        2.9528        .66142E-02   -.17110    
   3  Normalizat    .94210        .20278        .14078E-04   -.94996    
   4  Prefactor     1.0668        .11256        .36681E-04   -.90536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.86173e-12
Minuit parameter uncertainties:
  1  4.80657e-06
  2  178.058
  3  0.202948
  4  0.112586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/796275': 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) = 10197.4100225
delta logL = 8.86808265932e-07

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  4.807e-06  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.074e+00  1.781e+02  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.067e+00  1.126e-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.421e-01  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 204.424 -12.952

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/796275/cmap_HighResolution_283910401_284169601_4FGL_J1337.6-1257_daily_bin172.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.21e-05', job_status='DONE', photon_flux_upper_limit='6.13e-08', time_completed='2021-09-08 04:46:16.528472', job_id='796275', GAL2='1.07', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1631101576.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='8.87e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='172' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:46:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 796275: <4FGL_J1337.6-1257_daily_bin172> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin172> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 04:30:41 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:31:30 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:31:30 2021
Terminated at Wed Sep  8 04:46:17 2021
Results reported at Wed Sep  8 04:46:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin172 204.424 -12.9517 283910401 284169601 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 :                                   871.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             376.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            936 sec.

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

