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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin635
RA = 204.424, Dec = -12.9517
tmin = 403920001, tmax = 404179201
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='801014', job_status='RUN', time_executed='2021-09-08 04:54:20.974264', time_epoch_executed='1631102060.97' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/801014

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/801014/ft1_4FGL_J1337.6-1257_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/801014/ft2_4FGL_J1337.6-1257_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/801014/ft1_4FGL_J1337.6-1257_daily_bin635.fits outfile=/scratch/kocevski/801014/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin635.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=403920001.0 tmax=404179201.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 11.22
user 9.66
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/801014/ft1_filtered_4FGL_J1337.6-1257_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/801014/ft2_4FGL_J1337.6-1257_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/801014/ltcube_403920001_404179201_4FGL_J1337.6-1257_daily_bin635.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/801014/ft2_4FGL_J1337.6-1257_daily_bin635.fits
.....................!
real 11.25
user 10.53
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/801014/ft1_filtered_4FGL_J1337.6-1257_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/801014/ft2_4FGL_J1337.6-1257_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/801014/ltcube_403920001_404179201_4FGL_J1337.6-1257_daily_bin635.fits outfile=/scratch/kocevski/801014/expmap_403920001_404179201_4FGL_J1337.6-1257_daily_bin635.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/801014/ltcube_403920001_404179201_4FGL_J1337.6-1257_daily_bin635.fits
.....................!
real 189.96
user 185.63
sys 3.66

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/801014/ft1_filtered_4FGL_J1337.6-1257_daily_bin635.fits scfile=/scratch/kocevski/801014/ft2_4FGL_J1337.6-1257_daily_bin635.fits outfile=/scratch/kocevski/801014/cmap_403920001_404179201_4FGL_J1337.6-1257_daily_bin635.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/801014/ft1_filtered_4FGL_J1337.6-1257_daily_bin635.fits scfile=/scratch/kocevski/801014/ft2_4FGL_J1337.6-1257_daily_bin635.fits outfile=/scratch/kocevski/801014/cmap_HighResolution_403920001_404179201_4FGL_J1337.6-1257_daily_bin635.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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/801014/ft1_filtered_4FGL_J1337.6-1257_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/801014/ft2_4FGL_J1337.6-1257_daily_bin635.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/801014/Model_4FGL_J1337.6-1257_daily_bin635.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/801014/ft1_filtered_4FGL_J1337.6-1257_daily_bin635.fits.....................!
real 18.70
user 17.29
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.6209       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.098       1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.366       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    19.132       1.0000         .10000E-03   10000.    
     9 'norm      '    2.0754       1.0000         .10000E-03   10000.    
    10 'norm      '    .10171E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12153E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    60.566       1.0000         .10000E-03   10000.    
    13 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    50.979       1.0000         .10000E-03   10000.    
    15 'norm      '    .10322E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    44.794       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.268       1.0000         .10000E-03   10000.    
    18 'norm      '    .10480E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    10.869       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .54048       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96325       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=   824.8544     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2517 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.192        .62929E-06** at limit **
   2  norm          4.6194        9.4207       -.17085E-05   -.11976E-03
   3  norm          .10000E-03    14.925       -.31063E-05** at limit **
   4  norm          .10000E-03    25.062        .48458E-05** at limit **
   5  Prefactor     36.104        38.676       -.46040E-04   -.53769E-04
   6  Prefactor     34.372        30.765       -.23064E-04   -.73220E-04
   7  Prefactor     .10000E-03    23.335       -.31238E-05** at limit **
   8  norm          19.136        9.1613       -.18990E-05   -.13133E-03
   9  norm          2.0749        7.8191       -.32916E-06   -.70113E-04
  10  norm          .10000E-03    15.761        .80616E-06** at limit **
  11  Prefactor     .10005E-03    55.291        .73665E-05** at limit **
  12  Prefactor     60.576        97.980       -.28504E-04   -.33631E-04
  13  norm          .10000E-03    103.25       -.81717E-05** at limit **
  14  Prefactor     50.989        43.219       -.46647E-04   -.12143E-03
  15  norm          .10000E-03    8.0712        .51689E-06** at limit **
  16  Prefactor     44.803        23.174       -.23992E-05   -.85954E-04
  17  Prefactor     11.632        270.17       -.11325E-03   -.94150E-05
  18  norm          .10000E-03    14.558        .13134E-05** at limit **
  19  norm          .10000E-03    3.4397       -.72928E-07** at limit **
  20  norm          10.870        21.334       -.35577E-05   -.27669E-04
  21  Prefactor     .10000E-03    31.826       -.25039E-05** at limit **
  22  Normalizat    .53926        .74716        .10959E-03    .94224E-04
  23  Prefactor     .96392        .38958       -.48459E-05    .67802E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 4.6194
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 36.1039
  Prefactor  = 34.3715
  Prefactor  = 0.0001
  norm       = 19.1357
  norm       = 2.0749
  norm       = 0.0001
  Prefactor  = 0.000100051
  Prefactor  = 60.5763
  norm       = 0.0001
  Prefactor  = 50.9891
  norm       = 0.000100001
  Prefactor  = 44.8031
  Prefactor  = 11.6325
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.8704
  Prefactor  = 0.0001
  Normalizat = 0.539259
  Prefactor  = 0.963922
 **********
 **   18 **HESSE 
 **********

 FCN=   824.8544     FROM HESSE     STATUS=OK           360 CALLS     2877 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.197        .10937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.6194        9.4715        .12052E-03   -1.5278    
   3  norm          .10000E-03    14.925        .10841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    25.063        .14051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     36.104        38.649        .66703E-04   -1.4506    
   6  Prefactor     34.372        30.777        .34179E-03   -1.4535    
   7  Prefactor     .10000E-03    23.337        .13556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          19.136        9.1574        .55534E-04   -1.4833    
   9  norm          2.0749        7.7689        .14990E-03   -1.5420    
  10  norm          .10000E-03    15.765        .11118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10005E-03    55.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     60.576        97.977        .51556E-04   -1.4150    
  13  norm          .10000E-03    103.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     50.989        43.252        .28085E-03   -1.4279    
  15  norm          .10000E-03    8.0746        .79701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     44.803        23.154        .59904E-04   -1.4368    
  17  Prefactor     11.632        271.68        .11437E-03   -1.5026    
  18  norm          .10000E-03    14.565        .10706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.4411        .52033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.870        21.320        .12153E-03   -1.5048    
  21  Prefactor     .10000E-03    31.827        .15836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .53926        .80366        .47427E-03   -1.1063    
  23  Prefactor     .96392        .42833        .19466E-03   -.93942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15258e-09
Minuit parameter uncertainties:
  1  0.000110668
  2  9.47461
  3  6.26222e-06
  4  5.98038e-06
  5  38.676
  6  30.791
  7  0.00013963
  8  9.15809
  9  7.77269
  10  1.16967e-05
  11  0.00337092
  12  98.239
  13  0.000281011
  14  43.2788
  15  0.000144704
  16  23.1587
  17  113.014
  18  4.76549e-05
  19  1.5198e-05
  20  21.3354
  21  5.92592e-05
  22  0.82202
  23  0.429846
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  1.170e-05  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.305e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  1.384e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  7.541e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  9.639e-01  4.298e-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:  5.393e-01  8.220e-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: 3.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/801014/likelihoodResults_403920001_404179201_4FGL_J1337.6-1257_daily_bin635.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) = 824.854728961
delta logL = -0.000299493707303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 824.854435672
delta logL = -6.20451339728e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10377E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1063       1.0000          .0000       5.0000    
     3 'Normalizat'    .53925       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96394       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=   824.8544     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      275 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1056.6        .67917E-02** at limit **
   2  alpha         1.8511        3.6076        .17118        .34825E-07
   3  Normalizat    .53925        .13514        .47418E-03    .18920E-03
   4  Prefactor     .96393        .73447E-01    .19466E-03    .44490E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.85109
  Normalizat = 0.539249
  Prefactor  = 0.963932
 **********
 **   18 **HESSE 
 **********

 FCN=   824.8544     FROM HESSE     STATUS=OK            23 CALLS      298 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    19.512        .12357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8511        3.6846        .68474E-02   -.26257    
   3  Normalizat    .53925        .74595        .94836E-04   -1.1063    
   4  Prefactor     .96393        .41175        .38933E-04   -.93942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09619e-09
Minuit parameter uncertainties:
  1  4.88927e-05
  2  433.531
  3  0.760507
  4  0.413102
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/801014': 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) = 824.854428871
delta logL = 5.96736640546e-07

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  4.889e-05  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.851e+00  4.335e+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:  9.639e-01  4.131e-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:  5.392e-01  7.605e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/801014/cmap_HighResolution_403920001_404179201_4FGL_J1337.6-1257_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-04', job_status='DONE', photon_flux_upper_limit='3.32e-07', time_completed='2021-09-08 05:01:01.622995', job_id='801014', GAL2='0.96', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1631102461.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='5.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='635' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:01:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 801014: <4FGL_J1337.6-1257_daily_bin635> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin635> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 04:45:31 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:52:33 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:52:33 2021
Terminated at Wed Sep  8 05:01:02 2021
Results reported at Wed Sep  8 05:01:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin635 204.424 -12.9517 403920001 404179201 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 :                                   389.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             236.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   512 sec.
    Turnaround time :                            931 sec.

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

