/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 29 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 = 7463
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1337.6-1257_daily_bin439
RA = 204.424, Dec = -12.9517
tmin = 353116801, tmax = 353376001
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='799216', job_status='RUN', time_executed='2021-09-08 04:41:24.758238', time_epoch_executed='1631101284.76' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='439'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799216

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799216/ft1_4FGL_J1337.6-1257_daily_bin439.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799216/ft2_4FGL_J1337.6-1257_daily_bin439.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799216/ft1_4FGL_J1337.6-1257_daily_bin439.fits outfile=/scratch/kocevski/799216/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin439.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=353116801.0 tmax=353376001.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.46
user 3.20
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799216/ft1_filtered_4FGL_J1337.6-1257_daily_bin439.fits" evtable="EVENTS" scfile=/scratch/kocevski/799216/ft2_4FGL_J1337.6-1257_daily_bin439.fits sctable="SC_DATA" outfile=/scratch/kocevski/799216/ltcube_353116801_353376001_4FGL_J1337.6-1257_daily_bin439.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/799216/ft2_4FGL_J1337.6-1257_daily_bin439.fits
.....................!
real 13.86
user 13.46
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799216/ft1_filtered_4FGL_J1337.6-1257_daily_bin439.fits evtable="EVENTS" scfile=/scratch/kocevski/799216/ft2_4FGL_J1337.6-1257_daily_bin439.fits sctable="SC_DATA" expcube=/scratch/kocevski/799216/ltcube_353116801_353376001_4FGL_J1337.6-1257_daily_bin439.fits outfile=/scratch/kocevski/799216/expmap_353116801_353376001_4FGL_J1337.6-1257_daily_bin439.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/799216/ltcube_353116801_353376001_4FGL_J1337.6-1257_daily_bin439.fits
.....................!
real 191.72
user 186.52
sys 4.73

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/799216/ft1_filtered_4FGL_J1337.6-1257_daily_bin439.fits scfile=/scratch/kocevski/799216/ft2_4FGL_J1337.6-1257_daily_bin439.fits outfile=/scratch/kocevski/799216/cmap_353116801_353376001_4FGL_J1337.6-1257_daily_bin439.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.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/799216/ft1_filtered_4FGL_J1337.6-1257_daily_bin439.fits evtable="EVENTS" scfile=/scratch/kocevski/799216/ft2_4FGL_J1337.6-1257_daily_bin439.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799216/Model_4FGL_J1337.6-1257_daily_bin439.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/799216/ft1_filtered_4FGL_J1337.6-1257_daily_bin439.fits.....................!
real 72.10
user 70.69
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.8260       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.0089       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2338       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.3109       1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.873       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7872       1.0000         .10000E-03   10000.    
    15 'norm      '    9.7338       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.185       1.0000         .10000E-03   10000.    
    17 'Prefactor '    146.07       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .33555       1.0000         .10000E-03   10000.    
    20 'norm      '    4.1322       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .82134       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0113       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=   9290.729     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2258 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.8256        7.9058       -.10500E-07   -.59205E-04
   2  norm          .10000E-03    .99923       -.15282E-07** at limit **
   3  norm          2.0090        3.0556        .79326E-07   -.46668E-03
   4  norm          .10000E-03    2.5151        .12686E-06** at limit **
   5  Prefactor     .10000E-03    1.2326        .36201E-07** at limit **
   6  Prefactor     1.2339        2.9325       -.18680E-05   -.40310E-03
   7  Prefactor     .10000E-03    3.7909        .17783E-05** at limit **
   8  norm          .10000E-03    .32313        .10481E-07** at limit **
   9  norm          1.3109        1.5508        .52330E-07    .13965E-03
  10  norm          .10000E-03    3.1996       -.14146E-05** at limit **
  11  Prefactor     .10000E-03    5.0946       -.96084E-06** at limit **
  12  Prefactor     12.871        16.260       -.33871E-05   -.16752E-03
  13  norm          .10000E-03    11.846        .20641E-05** at limit **
  14  Prefactor     2.7858        5.4744        .33883E-06   -.25598E-03
  15  norm          9.7338        4.7501       -.32794E-07    .71228E-04
  16  Prefactor     22.185        5.6851        .16199E-07    .37091E-03
  17  Prefactor     146.07        54.390        .81401E-06    .85340E-04
  18  norm          .10000E-03    1.7692       -.18051E-06** at limit **
  19  norm          .33687        1.4280       -.15950E-05    .13384E-02
  20  norm          4.1324        4.0023       -.14379E-06    .14721E-03
  21  Prefactor     .10000E-03    14.077       -.19321E-05** at limit **
  22  Normalizat    .82135        .18211        .10448E-05    .23943E-03
  23  Prefactor     1.0113        .10004        .41588E-07    .40461E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.82559
  norm       = 0.0001
  norm       = 2.00899
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.23394
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.31092
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.8706
  norm       = 0.0001
  Prefactor  = 2.7858
  norm       = 9.73377
  Prefactor  = 22.185
  Prefactor  = 146.067
  norm       = 0.0001
  norm       = 0.336871
  norm       = 4.13235
  Prefactor  = 0.0001
  Normalizat = 0.821346
  Prefactor  = 1.01127
 **********
 **   18 **HESSE 
 **********

 FCN=   9290.729     FROM HESSE     STATUS=OK           372 CALLS     2630 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.8256        7.9863        .67459E-03   -1.5114    
   2  norm          .10000E-03    1.0336        .18810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.0090        4.8885        .14606E-02   -1.5424    
   4  norm          .10000E-03    2.5182        .14929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.2334        .10450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.2339        2.9328        .25125E-03   -1.5486    
   7  Prefactor     .10000E-03    3.8155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .63269        .10656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.3109        1.5290        .12637E-03   -1.5479    
  10  norm          .10000E-03    3.2597        .16862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.1332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.871        16.393        .11164E-03   -1.4990    
  13  norm          .10000E-03    11.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.7858        6.8200        .12186E-02   -1.5374    
  15  norm          9.7338        4.7510        .12844E-03   -1.5084    
  16  Prefactor     22.185        5.6916        .85040E-04   -1.4766    
  17  Prefactor     146.07        54.433        .33341E-04   -1.3285    
  18  norm          .10000E-03    1.7746        .12516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .33687        2.2535        .19568E-02   -1.5592    
  20  norm          4.1324        3.9946        .18389E-03   -1.5301    
  21  Prefactor     .10000E-03    14.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .82135        .20914        .35159E-03   -.99282    
  23  Prefactor     1.0113        .11649        .17796E-03   -.92355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84355e-09
Minuit parameter uncertainties:
  1  7.98727
  2  1.03356e-06
  3  4.88951
  4  2.27923e-06
  5  6.27361e-07
  6  2.93317
  7  3.61123e-05
  8  2.23877e-06
  9  1.52904
  10  2.98686e-05
  11  2.63283e-05
  12  16.3983
  13  7.3102e-05
  14  6.82192
  15  4.75118
  16  5.69176
  17  54.4519
  18  2.37503e-06
  19  1.74243
  20  3.99489
  21  7.36107e-05
  22  0.209345
  23  0.116522
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  2.987e-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:  1.011e+00  1.165e-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:  8.213e-01  2.093e-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.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.20e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/799216/likelihoodResults_353116801_353376001_4FGL_J1337.6-1257_daily_bin439.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) = 9290.73072372
delta logL = -0.00146236331057

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9290.7201916
delta logL = 0.0090697562955

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .95915E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9488       1.0000          .0000       5.0000    
     3 'Normalizat'    .81474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0130       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=   9290.720     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      323 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .95912E-01    201.02        .10246E-02    .81451E-03
   2  alpha         3.9487        3.7492        .13387        .16166E-04
   3  Normalizat    .81475        .89256E-01    .35285E-03   -.18649E-03
   4  Prefactor     1.0130        .47600E-01    .17781E-03   -.11279E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0959121
  alpha      = 3.94871
  Normalizat = 0.814747
  Prefactor  = 1.01304
 **********
 **   18 **HESSE 
 **********

 FCN=   9290.720     FROM HESSE     STATUS=OK            27 CALLS      350 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .95912E-01    2.9703        .40985E-04   -1.5646    
   2  alpha         3.9487        4.4456        .53546E-02    .61809    
   3  Normalizat    .81475        .20992        .14114E-04   -.99524    
   4  Prefactor     1.0130        .11527        .35561E-04   -.92296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64771e-10
Minuit parameter uncertainties:
  1  1.067
  2  4.89731
  3  0.210129
  4  0.115295
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799216': 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) = 9290.7201916
delta logL = 0.00906975757061

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  1.013e+00  1.153e-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:  8.147e-01  2.101e-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/799216/cmap_HighResolution_353116801_353376001_4FGL_J1337.6-1257_daily_bin439.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.20e-05', job_status='DONE', photon_flux_upper_limit='6.11e-08', time_completed='2021-09-08 04:54:29.322330', job_id='799216', GAL2='1.01', fit_tolerance='1e-08', EG2='0.81', EG='0.82', time_epoch_completed='1631102069.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='9.07e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='439' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:54:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 799216: <4FGL_J1337.6-1257_daily_bin439> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin439> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 04:40:31 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:40:39 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:40:39 2021
Terminated at Wed Sep  8 04:54:30 2021
Results reported at Wed Sep  8 04:54:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin439 204.424 -12.9517 353116801 353376001 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 :                                   780.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            839 sec.

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

