/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 81 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 = 7382
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1066
RA = 204.424, Dec = -12.9517
tmin = 515635201, tmax = 515894401
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='803658', job_status='RUN', time_executed='2021-09-08 04:57:05.696780', time_epoch_executed='1631102225.7' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1066'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803658

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803658/ft1_4FGL_J1337.6-1257_daily_bin1066.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803658/ft2_4FGL_J1337.6-1257_daily_bin1066.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803658/ft1_4FGL_J1337.6-1257_daily_bin1066.fits outfile=/scratch/kocevski/803658/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1066.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=515635201.0 tmax=515894401.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.93
user 2.65
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/803658/ft1_filtered_4FGL_J1337.6-1257_daily_bin1066.fits" evtable="EVENTS" scfile=/scratch/kocevski/803658/ft2_4FGL_J1337.6-1257_daily_bin1066.fits sctable="SC_DATA" outfile=/scratch/kocevski/803658/ltcube_515635201_515894401_4FGL_J1337.6-1257_daily_bin1066.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/803658/ft2_4FGL_J1337.6-1257_daily_bin1066.fits
.....................!
real 15.30
user 14.86
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803658/ft1_filtered_4FGL_J1337.6-1257_daily_bin1066.fits evtable="EVENTS" scfile=/scratch/kocevski/803658/ft2_4FGL_J1337.6-1257_daily_bin1066.fits sctable="SC_DATA" expcube=/scratch/kocevski/803658/ltcube_515635201_515894401_4FGL_J1337.6-1257_daily_bin1066.fits outfile=/scratch/kocevski/803658/expmap_515635201_515894401_4FGL_J1337.6-1257_daily_bin1066.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/803658/ltcube_515635201_515894401_4FGL_J1337.6-1257_daily_bin1066.fits
.....................!
real 158.03
user 153.54
sys 4.07

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/803658/ft1_filtered_4FGL_J1337.6-1257_daily_bin1066.fits scfile=/scratch/kocevski/803658/ft2_4FGL_J1337.6-1257_daily_bin1066.fits outfile=/scratch/kocevski/803658/cmap_515635201_515894401_4FGL_J1337.6-1257_daily_bin1066.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.60
user 0.34
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/803658/ft1_filtered_4FGL_J1337.6-1257_daily_bin1066.fits scfile=/scratch/kocevski/803658/ft2_4FGL_J1337.6-1257_daily_bin1066.fits outfile=/scratch/kocevski/803658/cmap_HighResolution_515635201_515894401_4FGL_J1337.6-1257_daily_bin1066.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.54
user 0.34
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/803658/ft1_filtered_4FGL_J1337.6-1257_daily_bin1066.fits evtable="EVENTS" scfile=/scratch/kocevski/803658/ft2_4FGL_J1337.6-1257_daily_bin1066.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/803658/Model_4FGL_J1337.6-1257_daily_bin1066.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/803658/ft1_filtered_4FGL_J1337.6-1257_daily_bin1066.fits.....................!
real 44.38
user 42.72
sys 1.02

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    13.714       1.0000         .10000E-03   10000.    
     3 'norm      '    39.070       1.0000         .10000E-03   10000.    
     4 'norm      '    19.031       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.2790       1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.705       1.0000         .10000E-03   10000.    
     8 'norm      '    .41096       1.0000         .10000E-03   10000.    
     9 'norm      '    .19859E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .55926E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .20406E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.196       1.0000         .10000E-03   10000.    
    13 'norm      '    6.6132       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.387       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    49.491       1.0000         .10000E-03   10000.    
    18 'norm      '    4.9073       1.0000         .10000E-03   10000.    
    19 'norm      '    .16699E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    16.683       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12369E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3468       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83875       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=   6178.286     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2656 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3830        .84587E-08** at limit **
   2  norm          13.712        5.1060       -.38006E-07    .41929E-04
   3  norm          39.078        17.822        .96565E-07   -.35707E-05
   4  norm          19.020        15.058       -.58640E-06   -.77517E-06
   5  Prefactor     .10000E-03    16.348       -.12487E-06** at limit **
   6  Prefactor     6.2710        9.9917        .34675E-06    .17605E-04
   7  Prefactor     39.734        22.693        .28923E-05    .31549E-03
   8  norm          .40960        .96772        .26122E-06   -.22450E-03
   9  norm          .10003E-03    3.7475       -.20964E-05** at limit **
  10  norm          .26219E-01    6.6184       -.50361E-07   -.12934E-03
  11  Prefactor     .10007E-03    11.866        .17608E-06** at limit **
  12  Prefactor     18.213        26.077       -.11545E-05    .17857E-04
  13  norm          6.6088        22.428        .28412E-06   -.56467E-05
  14  Prefactor     19.399        15.991        .34048E-06    .21510E-03
  15  norm          .10000E-03    1.8093        .74805E-08** at limit **
  16  Prefactor     .10000E-03    7.7651       -.29189E-07** at limit **
  17  Prefactor     49.418        50.640       -.36016E-05    .71849E-05
  18  norm          4.9102        8.3175        .63072E-06   -.42606E-04
  19  norm          .10000E-03    2.0362        .43103E-07** at limit **
  20  norm          16.690        10.369        .19583E-07    .20983E-05
  21  Prefactor     .10000E-03    28.906        .42610E-06** at limit **
  22  Normalizat    1.3471        .27265       -.76328E-06    .16782E-03
  23  Prefactor     .83875        .13790        .83717E-06    .10268E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 13.7116
  norm       = 39.0779
  norm       = 19.0196
  Prefactor  = 0.0001
  Prefactor  = 6.27099
  Prefactor  = 39.7344
  norm       = 0.409599
  norm       = 0.00010003
  norm       = 0.0262191
  Prefactor  = 0.000100072
  Prefactor  = 18.2125
  norm       = 6.60878
  Prefactor  = 19.3988
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.4175
  norm       = 4.91024
  norm       = 0.0001
  norm       = 16.6898
  Prefactor  = 0.0001
  Normalizat = 1.34714
  Prefactor  = 0.838752
 **********
 **   18 **HESSE 
 **********

 FCN=   6178.286     FROM HESSE     STATUS=OK           390 CALLS     3046 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3885        .14119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.712        5.1148        .10434E-03   -1.4967    
   3  norm          39.078        17.840        .64124E-04   -1.4457    
   4  norm          19.020        15.048        .91812E-04   -1.4835    
   5  Prefactor     .10000E-03    16.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.2710        9.9879        .16019E-03   -1.5207    
   7  Prefactor     39.734        24.476        .63612E-04   -1.4446    
   8  norm          .40960        .81037        .11434E-02   -1.5580    
   9  norm          .10003E-03    23.132        .23958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .26219E-01    8.0628        .57512E-01   -1.5676    
  11  Prefactor     .10007E-03    76.857        .48946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.213        26.063        .93893E-04   -1.4854    
  13  norm          6.6088        22.414        .15605E-03   -1.5194    
  14  Prefactor     19.399        15.235        .90964E-04   -1.4827    
  15  norm          .10000E-03    1.8166        .10324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.9895        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     49.418        50.350        .57003E-04   -1.4301    
  18  norm          4.9102        8.2633        .18157E-03   -1.5265    
  19  norm          .10000E-03    4.0507        .21410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          16.690        10.311        .98059E-04   -1.4891    
  21  Prefactor     .10000E-03    29.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3471        .31665        .34113E-03   -.82170    
  23  Prefactor     .83875        .16123        .21870E-03   -.98315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.90612e-09
Minuit parameter uncertainties:
  1  2.10365e-06
  2  5.11493
  3  17.8428
  4  15.0514
  5  2.1759e-05
  6  9.99056
  7  24.4825
  8  0.810393
  9  0.00166778
  10  0.917932
  11  0.00469714
  12  26.0797
  13  22.4429
  14  15.2383
  15  1.66368e-06
  16  2.46493e-05
  17  50.3935
  18  8.26519
  19  5.58074e-05
  20  10.3123
  21  3.85414e-05
  22  0.317113
  23  0.161319
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.622e-02  9.179e-01  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:  8.388e-01  1.613e-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.347e+00  3.171e-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.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.05e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/803658/likelihoodResults_515635201_515894401_4FGL_J1337.6-1257_daily_bin1066.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) = 6178.28597137
delta logL = 4.63769538328e-08

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6178.28594354
delta logL = 2.78792085737e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32984E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2136       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3471       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83875       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6178.286     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      280 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60306E-01    104.04        .69711E-01    .23623E-03
   2  alpha         2.2206        2.7211        .41498        .12807E-04
   3  Normalizat    1.3471        .30216E-01    .77077E-01   -.16538E-03
   4  Prefactor     .83868        .15806E-01    .44220E-01   -.15539E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.060306
  alpha      = 2.22056
  Normalizat = 1.34715
  Prefactor  = 0.83868
 **********
 **   18 **HESSE 
 **********

 FCN=   6178.286     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      321 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .60306E-01    346.98        .59077E-01   -1.5659    
   2  alpha         2.2206        3.8857        .16599       -.11201    
   3  Normalizat    1.3471        .54649E-01    .34113E-03   -.82170    
   4  Prefactor     .83868        .28867E-01    .21871E-03   -.98318    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.4124e-09
Minuit parameter uncertainties:
  1  9.19492
  2  58.0582
  3  0.0546513
  4  0.0288677
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803658': 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): 102
logL (Free Index) = 6178.28593367
delta logL = 3.77491160179e-05

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  6.031e-02  9.195e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.221e+00  5.806e+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:  8.387e-01  2.887e-02  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.347e+00  5.465e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/803658/cmap_HighResolution_515635201_515894401_4FGL_J1337.6-1257_daily_bin1066.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.05e-05', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-08 05:06:28.360772', job_id='803658', GAL2='0.84', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1631102788.36', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='3.77e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1066' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:06:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 803658: <4FGL_J1337.6-1257_daily_bin1066> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1066> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 04:50:45 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:55:34 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:55:34 2021
Terminated at Wed Sep  8 05:06:29 2021
Results reported at Wed Sep  8 05:06:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1066 204.424 -12.9517 515635201 515894401 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 :                                   538.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             294.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   654 sec.
    Turnaround time :                            944 sec.

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

