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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin193
RA = 204.424, Dec = -12.9517
tmin = 289353601, tmax = 289612801
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='796308', job_status='RUN', time_executed='2021-09-08 04:34:27.321995', time_epoch_executed='1631100867.32' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='193'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/796308

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/796308/ft1_4FGL_J1337.6-1257_daily_bin193.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/796308/ft2_4FGL_J1337.6-1257_daily_bin193.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/796308/ft1_4FGL_J1337.6-1257_daily_bin193.fits outfile=/scratch/kocevski/796308/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin193.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=289353601.0 tmax=289612801.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.59
user 3.32
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/796308/ft1_filtered_4FGL_J1337.6-1257_daily_bin193.fits" evtable="EVENTS" scfile=/scratch/kocevski/796308/ft2_4FGL_J1337.6-1257_daily_bin193.fits sctable="SC_DATA" outfile=/scratch/kocevski/796308/ltcube_289353601_289612801_4FGL_J1337.6-1257_daily_bin193.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/796308/ft2_4FGL_J1337.6-1257_daily_bin193.fits
.....................!
real 16.03
user 15.47
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/796308/ft1_filtered_4FGL_J1337.6-1257_daily_bin193.fits evtable="EVENTS" scfile=/scratch/kocevski/796308/ft2_4FGL_J1337.6-1257_daily_bin193.fits sctable="SC_DATA" expcube=/scratch/kocevski/796308/ltcube_289353601_289612801_4FGL_J1337.6-1257_daily_bin193.fits outfile=/scratch/kocevski/796308/expmap_289353601_289612801_4FGL_J1337.6-1257_daily_bin193.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/796308/ltcube_289353601_289612801_4FGL_J1337.6-1257_daily_bin193.fits
.....................!
real 193.82
user 187.53
sys 3.93

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/796308/ft1_filtered_4FGL_J1337.6-1257_daily_bin193.fits scfile=/scratch/kocevski/796308/ft2_4FGL_J1337.6-1257_daily_bin193.fits outfile=/scratch/kocevski/796308/cmap_289353601_289612801_4FGL_J1337.6-1257_daily_bin193.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.61
user 0.38
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/796308/ft1_filtered_4FGL_J1337.6-1257_daily_bin193.fits evtable="EVENTS" scfile=/scratch/kocevski/796308/ft2_4FGL_J1337.6-1257_daily_bin193.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/796308/Model_4FGL_J1337.6-1257_daily_bin193.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/796308/ft1_filtered_4FGL_J1337.6-1257_daily_bin193.fits.....................!
real 65.71
user 63.73
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3119       1.0000         .10000E-03   10000.    
     2 'norm      '    1.4647       1.0000         .10000E-03   10000.    
     3 'norm      '    3.4757       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4372       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7011       1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.027       1.0000         .10000E-03   10000.    
     8 'norm      '    3.2617       1.0000         .10000E-03   10000.    
     9 'norm      '    6.4205       1.0000         .10000E-03   10000.    
    10 'norm      '    .87786E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4241       1.0000         .10000E-03   10000.    
    15 'norm      '    15.604       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.1563       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .18749       1.0000         .10000E-03   10000.    
    20 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10633E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.9441       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .72326       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=   8215.294     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2602 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3121        3.7584        .34870E-06    .14678E-03
   2  norm          1.4646        1.6242        .21835E-07    .39756E-04
   3  norm          3.4765        9.0614        .23825E-06    .24931E-04
   4  norm          1.4381        15.606        .91618E-06    .56435E-04
   5  Prefactor     .10000E-03    4.0940       -.72936E-07** at limit **
   6  Prefactor     4.7025        8.6772        .30043E-06   -.33006E-04
   7  Prefactor     29.035        34.718       -.21352E-05   -.54031E-03
   8  norm          3.2618        1.6675        .29682E-07   -.50496E-04
   9  norm          6.4147        7.9476        .98378E-06   -.11816E-02
  10  norm          .10004E-03    11.306        .57759E-05** at limit **
  11  Prefactor     .10000E-03    5.9034        .29524E-06** at limit **
  12  Prefactor     .10000E-03    4.8419       -.57515E-06** at limit **
  13  norm          .10000E-03    17.723        .17553E-05** at limit **
  14  Prefactor     8.4238        9.7427        .93246E-06    .31809E-03
  15  norm          15.604        6.8795       -.34762E-08   -.26151E-03
  16  Prefactor     5.1557        5.0050        .17078E-05    .10701E-02
  17  Prefactor     .10000E-03    51.895        .85837E-05** at limit **
  18  norm          .10000E-03    3.1360        .21998E-06** at limit **
  19  norm          .20179        1.1914       -.14607E-06   -.28079E-04
  20  norm          .10000E-03    4.4898        .55484E-06** at limit **
  21  Prefactor     .10000E-03    39.988       -.76583E-05** at limit **
  22  Normalizat    1.9439        .24126       -.99462E-06   -.21979E-03
  23  Prefactor     .72332        .11801        .29248E-06   -.23064E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.31212
  norm       = 1.46463
  norm       = 3.47653
  norm       = 1.43811
  Prefactor  = 0.0001
  Prefactor  = 4.70255
  Prefactor  = 29.035
  norm       = 3.26184
  norm       = 6.41467
  norm       = 0.000100045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.42384
  norm       = 15.6036
  Prefactor  = 5.15573
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 0.201794
  norm       = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.94393
  Prefactor  = 0.72332
 **********
 **   18 **HESSE 
 **********

 FCN=   8215.294     FROM HESSE     STATUS=OK           374 CALLS     2976 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3121        3.7103        .28995E-03   -1.5479    
   2  norm          1.4646        1.6111        .11829E-03   -1.5466    
   3  norm          3.4765        9.0514        .21690E-03   -1.5335    
   4  norm          1.4381        15.747        .36003E-03   -1.5468    
   5  Prefactor     .10000E-03    4.1256        .17907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.7025        8.6863        .18559E-03   -1.5274    
   7  Prefactor     29.035        35.248        .74363E-04   -1.4630    
   8  norm          3.2618        1.6679        .80118E-04   -1.5347    
   9  norm          6.4147        7.6715        .15408E-03   -1.5201    
  10  norm          .10004E-03    17.516        .39108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.9337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.8454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    17.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.4238        9.8352        .69059E-03   -1.5127    
  15  norm          15.604        6.8785        .10139E-03   -1.4918    
  16  Prefactor     5.1557        5.3159        .88522E-03   -1.5254    
  17  Prefactor     .10000E-03    52.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.1547        .15679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .20179        5.9061        .18858E-02   -1.5618    
  20  norm          .10000E-03    4.5279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    40.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.9439        .28100        .30723E-03   -.65963    
  23  Prefactor     .72332        .13686        .23734E-03   -1.0262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90943e-08
Minuit parameter uncertainties:
  1  3.71095
  2  1.61113
  3  9.05498
  4  9.52031
  5  2.71983e-09
  6  8.68863
  7  35.2734
  8  1.66794
  9  7.67271
  10  0.00177068
  11  9.7993e-06
  12  1.97868e-05
  13  0.000110688
  14  9.83709
  15  6.87886
  16  5.31634
  17  0.000903469
  18  5.36554e-06
  19  2.1831
  20  1.75223e-05
  21  0.000632894
  22  0.281239
  23  0.136924
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  1.771e-03  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:  7.233e-01  1.369e-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.944e+00  2.812e-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: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.91e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/796308/likelihoodResults_289353601_289612801_4FGL_J1337.6-1257_daily_bin193.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) = 8215.29394677
delta logL = -0.000271060598607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8215.29367627
delta logL = -5.60899934499e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12445E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3596       1.0000          .0000       5.0000    
     3 'Normalizat'    1.9437       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72342       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8215.294     FROM MIGRAD    STATUS=FAILED        92 CALLS      247 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10995E-03    58.700        .32717E-02** at limit **
   2  alpha         2.8589        3.7915        .16494E-01   -.67522E-06
   3  Normalizat    1.9439        .26384        .30723E-03    .75221E-04
   4  Prefactor     .72332        .13374        .23734E-03    .61505E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8215.294     FROM SIMPLEX   STATUS=UNCHANGED    109 CALLS      356 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10995E-03    58.700        .93767E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8589        3.7915        .58639E-03    .14405    
   3  Normalizat    1.9439        .26384        .53464E-04   -.65963    
   4  Prefactor     .72332        .13374        .39358E-04   -1.0262    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8215.294     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      392 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    122.56        .13087E-02** at limit **
   2  alpha         2.8786        2.8345        .32987E-01    .89606E-08
   3  Normalizat    1.9439        .26394        .61446E-04    .23534E-04
   4  Prefactor     .72332        .13384        .94935E-05    .27303E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.87865
  Normalizat = 1.94393
  Prefactor  = 0.72332
 **********
 **   18 **HESSE 
 **********

 FCN=   8215.294     FROM HESSE     STATUS=OK            23 CALLS      415 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    54.522        .26173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8786        3.2704        .13195E-02    .15204    
   3  Normalizat    1.9439        .26373        .12289E-04   -.65963    
   4  Prefactor     .72332        .13374        .18987E-05   -1.0262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.30999e-12
Minuit parameter uncertainties:
  1  0.000248987
  2  281.052
  3  0.263922
  4  0.133802
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/796308': 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) = 8215.29367379
delta logL = 1.92194602278e-06

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  2.490e-04  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.879e+00  2.811e+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:  7.233e-01  1.338e-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.944e+00  2.639e-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/796308/cmap_HighResolution_289353601_289612801_4FGL_J1337.6-1257_daily_bin193.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.91e-05', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-08 04:47:14.050992', job_id='796308', GAL2='0.72', fit_tolerance='1e-08', EG2='1.94', EG='1.94', time_epoch_completed='1631101634.05', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.92e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='193' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:47:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 796308: <4FGL_J1337.6-1257_daily_bin193> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin193> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 04:30:43 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:32:09 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:32:09 2021
Terminated at Wed Sep  8 04:47:14 2021
Results reported at Wed Sep  8 04:47:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin193 204.424 -12.9517 289353601 289612801 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 :                                   758.15 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             287.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            991 sec.

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

