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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1480
RA = 204.424, Dec = -12.9517
tmin = 622944001, tmax = 623203201
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='805349', job_status='RUN', time_executed='2021-09-08 04:58:30.946476', time_epoch_executed='1631102310.95' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805349

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805349/ft1_4FGL_J1337.6-1257_daily_bin1480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805349/ft2_4FGL_J1337.6-1257_daily_bin1480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805349/ft1_4FGL_J1337.6-1257_daily_bin1480.fits outfile=/scratch/kocevski/805349/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1480.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=622944001.0 tmax=623203201.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.52
user 2.30
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805349/ft1_filtered_4FGL_J1337.6-1257_daily_bin1480.fits" evtable="EVENTS" scfile=/scratch/kocevski/805349/ft2_4FGL_J1337.6-1257_daily_bin1480.fits sctable="SC_DATA" outfile=/scratch/kocevski/805349/ltcube_622944001_623203201_4FGL_J1337.6-1257_daily_bin1480.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/805349/ft2_4FGL_J1337.6-1257_daily_bin1480.fits
.....................!
real 12.60
user 12.21
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805349/ft1_filtered_4FGL_J1337.6-1257_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/805349/ft2_4FGL_J1337.6-1257_daily_bin1480.fits sctable="SC_DATA" expcube=/scratch/kocevski/805349/ltcube_622944001_623203201_4FGL_J1337.6-1257_daily_bin1480.fits outfile=/scratch/kocevski/805349/expmap_622944001_623203201_4FGL_J1337.6-1257_daily_bin1480.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/805349/ltcube_622944001_623203201_4FGL_J1337.6-1257_daily_bin1480.fits
.....................!
real 156.24
user 151.86
sys 3.88

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/805349/ft1_filtered_4FGL_J1337.6-1257_daily_bin1480.fits scfile=/scratch/kocevski/805349/ft2_4FGL_J1337.6-1257_daily_bin1480.fits outfile=/scratch/kocevski/805349/cmap_622944001_623203201_4FGL_J1337.6-1257_daily_bin1480.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.49
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805349/ft1_filtered_4FGL_J1337.6-1257_daily_bin1480.fits scfile=/scratch/kocevski/805349/ft2_4FGL_J1337.6-1257_daily_bin1480.fits outfile=/scratch/kocevski/805349/cmap_HighResolution_622944001_623203201_4FGL_J1337.6-1257_daily_bin1480.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.49
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805349/ft1_filtered_4FGL_J1337.6-1257_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/805349/ft2_4FGL_J1337.6-1257_daily_bin1480.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805349/Model_4FGL_J1337.6-1257_daily_bin1480.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/805349/ft1_filtered_4FGL_J1337.6-1257_daily_bin1480.fits......................!
real 22.21
user 21.05
sys 1.06

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5654.7       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10605E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.9959       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    21.626       1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.440       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    38.749       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .35214       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2146       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=   2094.726     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     3026 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5653.9        3044.9       -.16264E-03   -.27027E-05
   2  norm          .10000E-03    25.106        .36163E-05** at limit **
   3  norm          .10000E-03    181.53       -.83760E-05** at limit **
   4  norm          .10000E-03    23.612       -.78540E-05** at limit **
   5  Prefactor     .10000E-03    41.092       -.25147E-05** at limit **
   6  Prefactor     .10000E-03    40.431       -.53367E-05** at limit **
   7  Prefactor     .10000E-03    24.891        .25950E-05** at limit **
   8  norm          1.9951        4.2575       -.62182E-06   -.32688E-03
   9  norm          .10000E-03    7.6868        .14743E-06** at limit **
  10  norm          21.627        22.213       -.34872E-06   -.62148E-04
  11  Prefactor     37.447        46.571        .66502E-05   -.14760E-04
  12  Prefactor     .10000E-03    29.170        .30725E-05** at limit **
  13  norm          .10000E-03    31.922       -.63373E-05** at limit **
  14  Prefactor     .10000E-03    30.957       -.31821E-05** at limit **
  15  norm          .10000E-03    5.0214        .31662E-06** at limit **
  16  Prefactor     .10000E-03    10.284       -.90243E-07** at limit **
  17  Prefactor     .10000E-03    43.241        .85646E-05** at limit **
  18  norm          .10000E-03    14.548       -.11239E-06** at limit **
  19  norm          38.748        8.1463       -.19293E-06   -.30599E-03
  20  norm          .10000E-03    5.0161       -.66381E-07** at limit **
  21  Prefactor     .10000E-03    26.278        .67812E-05** at limit **
  22  Normalizat    .35221        .73275        .16775E-04    .33414E-04
  23  Prefactor     1.2145        .37150       -.30532E-05   -.70076E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5653.85
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.99509
  norm       = 0.0001
  norm       = 21.6272
  Prefactor  = 37.4468
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 38.7482
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.352206
  Prefactor  = 1.21453
 **********
 **   18 **HESSE 
 **********

 FCN=   2094.726     FROM HESSE     STATUS=OK           354 CALLS     3380 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5653.9        3041.1        .40347E-04    .13115    
   2  norm          .10000E-03    25.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    183.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    23.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    41.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    40.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9951        4.0922        .12188E-03   -1.5425    
   9  norm          .10000E-03    7.6960        .12385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          21.627        22.124        .86130E-04   -1.4778    
  11  Prefactor     37.447        46.474        .65500E-04   -1.4483    
  12  Prefactor     .10000E-03    29.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    31.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    30.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.0246        .10017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.352        .14323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    43.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    14.637        .17045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          38.748        8.0143        .55285E-04   -1.4462    
  20  norm          .10000E-03    5.0229        .10011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    26.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .35221        .60502        .66837E-03   -1.1985    
  23  Prefactor     1.2145        .31547        .19651E-03   -.85885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29221e-10
Minuit parameter uncertainties:
  1  3273.96
  2  3.55116e-05
  3  0.000418363
  4  3.97139e-06
  5  0.000218379
  6  0.000159019
  7  4.90396e-05
  8  4.09275
  9  3.04838e-05
  10  22.1321
  11  46.5192
  12  1.44343e-05
  13  2.25767e-06
  14  3.2439e-05
  15  4.16783e-06
  16  9.24201e-06
  17  8.14581e-06
  18  7.42307e-06
  19  8.01456
  20  3.55722e-06
  21  4.60222e-05
  22  0.6168
  23  0.315961
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.163e+01  2.213e+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:  1.215e+00  3.160e-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:  3.522e-01  6.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.53
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.32e-07 +/- 1.35e-07
Energy Flux (Fixed Index): 4.75e-05 +/- 4.86e-05

TS (Fixed Index): 1.53
Ra Dec: 204.424 -12.952
Photon Flux Upper Limit: 4.57e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.65e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805349/likelihoodResults_622944001_623203201_4FGL_J1337.6-1257_daily_bin1480.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): 0
logL (Free Index) = 2094.68578008
delta logL = 0.040363676892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2094.68338747
delta logL = 0.0427562926966

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.258       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9080       1.0000          .0000       5.0000    
     3 'Normalizat'    .38053       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2064       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=   2094.683     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      256 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.259        25.224        .84901E-04   -.35699E-03
   2  alpha         1.9080        1.4241        .17501E-01   -.44209E-04
   3  Normalizat    .38064        .59261        .64476E-03    .26528E-04
   4  Prefactor     1.2064        .31482        .19714E-03    .97761E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 22.2592
  alpha      = 1.90798
  Normalizat = 0.380639
  Prefactor  = 1.20638
 **********
 **   18 **HESSE 
 **********

 FCN=   2094.683     FROM HESSE     STATUS=OK            23 CALLS      279 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.259        25.659        .16980E-04   -1.4764    
   2  alpha         1.9080        1.4454        .70005E-03   -.23908    
   3  Normalizat    .38064        .59238        .25791E-04   -1.1831    
   4  Prefactor     1.2064        .31458        .39427E-04   -.86135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67987e-09
Minuit parameter uncertainties:
  1  25.6713
  2  1.5481
  3  0.602552
  4  0.315071
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805349': 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) = 2094.68338745
delta logL = 0.0427563120088

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.226e+01  2.567e+01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.908e+00  1.548e+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.206e+00  3.151e-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:  3.806e-01  6.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.60
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 1.91 +/- 1.55
Photon Flux (Free Index): 9.00e-08 +/- 1.87e-07
Energy Flux (Free Index): 5.41e-05 +/- 6.77e-05

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/805349/cmap_HighResolution_622944001_623203201_4FGL_J1337.6-1257_daily_bin1480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.65e-04', comment='SUCCESS', photon_flux='1.32e-07', energy_flux2='5.41e-05', photon_flux_error='1.35e-07', dlogl='4.28e-02', energy_flux='4.75e-05', photon_flux2='9.00e-08', job_status='DONE', time_completed='2021-09-08 05:05:36.281953', photon_index_error2='1.55', photon_index2='1.91', ts='1.53', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='4.57e-07', energy_flux_error2='6.77e-05', EG='0.35', time_epoch_completed='1631102736.28', return_code='0', job_id='805349', GAL2='1.21', EG2='0.38', return_code2='0', energy_flux_error='4.86e-05', photon_flux_error2='1.87e-07', ts2='1.60', photon_index='2.30' WHERE bin_id='1480' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:05:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 805349: <4FGL_J1337.6-1257_daily_bin1480> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1480 204.424 -12.9517 622944001 623203201 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 :                                   351.53 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   487 sec.
    Turnaround time :                            587 sec.

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

