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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1052
RA = 204.424, Dec = -12.9517
tmin = 512006401, tmax = 512265601
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='803635', job_status='RUN', time_executed='2021-09-08 04:55:38.138608', time_epoch_executed='1631102138.14' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1052'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803635

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803635/ft1_4FGL_J1337.6-1257_daily_bin1052.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803635/ft2_4FGL_J1337.6-1257_daily_bin1052.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803635/ft1_4FGL_J1337.6-1257_daily_bin1052.fits outfile=/scratch/kocevski/803635/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1052.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=512006401.0 tmax=512265601.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.81
user 2.61
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/803635/ft1_filtered_4FGL_J1337.6-1257_daily_bin1052.fits" evtable="EVENTS" scfile=/scratch/kocevski/803635/ft2_4FGL_J1337.6-1257_daily_bin1052.fits sctable="SC_DATA" outfile=/scratch/kocevski/803635/ltcube_512006401_512265601_4FGL_J1337.6-1257_daily_bin1052.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/803635/ft2_4FGL_J1337.6-1257_daily_bin1052.fits
.....................!
real 11.42
user 11.04
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803635/ft1_filtered_4FGL_J1337.6-1257_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/803635/ft2_4FGL_J1337.6-1257_daily_bin1052.fits sctable="SC_DATA" expcube=/scratch/kocevski/803635/ltcube_512006401_512265601_4FGL_J1337.6-1257_daily_bin1052.fits outfile=/scratch/kocevski/803635/expmap_512006401_512265601_4FGL_J1337.6-1257_daily_bin1052.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/803635/ltcube_512006401_512265601_4FGL_J1337.6-1257_daily_bin1052.fits
.....................!
real 151.19
user 146.40
sys 4.20

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/803635/ft1_filtered_4FGL_J1337.6-1257_daily_bin1052.fits scfile=/scratch/kocevski/803635/ft2_4FGL_J1337.6-1257_daily_bin1052.fits outfile=/scratch/kocevski/803635/cmap_512006401_512265601_4FGL_J1337.6-1257_daily_bin1052.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.47
user 0.30
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/803635/ft1_filtered_4FGL_J1337.6-1257_daily_bin1052.fits scfile=/scratch/kocevski/803635/ft2_4FGL_J1337.6-1257_daily_bin1052.fits outfile=/scratch/kocevski/803635/cmap_HighResolution_512006401_512265601_4FGL_J1337.6-1257_daily_bin1052.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.48
user 0.32
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/803635/ft1_filtered_4FGL_J1337.6-1257_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/803635/ft2_4FGL_J1337.6-1257_daily_bin1052.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/803635/Model_4FGL_J1337.6-1257_daily_bin1052.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/803635/ft1_filtered_4FGL_J1337.6-1257_daily_bin1052.fits.....................!
real 52.84
user 51.46
sys 1.01

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.5160       1.0000         .10000E-03   10000.    
     3 'norm      '    4.2127       1.0000         .10000E-03   10000.    
     4 'norm      '    4.5336       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9416       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .44792E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.896       1.0000         .10000E-03   10000.    
     8 'norm      '    2.1379       1.0000         .10000E-03   10000.    
     9 'norm      '    16.338       1.0000         .10000E-03   10000.    
    10 'norm      '    .72227E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0732       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.8258       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.149       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.679       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4135       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0480       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=   8286.751     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2608 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.5571       -.72521E-07** at limit **
   2  norm          7.5166        3.5960       -.61387E-07    .25765E-04
   3  norm          4.2070        15.569        .20026E-06   -.19996E-04
   4  norm          4.5330        7.7954       -.10761E-05   -.27283E-03
   5  Prefactor     7.9401        9.8740        .22179E-06   -.10916E-03
   6  Prefactor     .10000E-03    5.6565        .23919E-06** at limit **
   7  Prefactor     24.846        43.190       -.16961E-05   -.11219E-03
   8  norm          2.1372        1.7182        .81944E-07   -.29267E-03
   9  norm          16.343        10.135       -.32005E-06   -.86537E-03
  10  norm          .10000E-03    40.979       -.49640E-05** at limit **
  11  Prefactor     1.0802        14.172        .72307E-07   -.21354E-04
  12  Prefactor     .10000E-03    9.0923       -.19060E-06** at limit **
  13  norm          8.8226        25.941       -.28126E-06    .77359E-05
  14  Prefactor     12.160        14.123       -.83093E-06   -.23643E-03
  15  norm          .10000E-03    2.2719        .13118E-06** at limit **
  16  Prefactor     .10000E-03    1.3578        .48903E-07** at limit **
  17  Prefactor     .10000E-03    20.379        .40835E-06** at limit **
  18  norm          .10000E-03    2.2965        .20496E-07** at limit **
  19  norm          .10000E-03    .95659       -.15577E-07** at limit **
  20  norm          .10000E-03    7.0069        .10553E-06** at limit **
  21  Prefactor     11.678        15.452        .22153E-07   -.13864E-04
  22  Normalizat    1.4139        .28249       -.38668E-05   -.14775E-03
  23  Prefactor     1.0479        .14333        .16804E-05   -.70961E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 7.5166
  norm       = 4.20703
  norm       = 4.53296
  Prefactor  = 7.9401
  Prefactor  = 0.000100003
  Prefactor  = 24.8458
  norm       = 2.13717
  norm       = 16.3433
  norm       = 0.000100002
  Prefactor  = 1.08017
  Prefactor  = 0.0001
  norm       = 8.8226
  Prefactor  = 12.1597
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.6784
  Normalizat = 1.41393
  Prefactor  = 1.04787
 **********
 **   18 **HESSE 
 **********

 FCN=   8286.751     FROM HESSE     STATUS=OK           378 CALLS     2986 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.6427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.5166        3.5959        .11528E-03   -1.5160    
   3  norm          4.2070        15.587        .19634E-03   -1.5298    
   4  norm          4.5330        7.9723        .94537E-03   -1.5282    
   5  Prefactor     7.9401        9.8190        .14228E-03   -1.5144    
   6  Prefactor     .10000E-03    30.390        .40149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.846        43.351        .80283E-04   -1.4711    
   8  norm          2.1372        1.7101        .10063E-03   -1.5416    
   9  norm          16.343        9.8590        .99089E-04   -1.4899    
  10  norm          .10000E-03    40.950        .40984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.0802        82.561        .50572E-02   -1.5500    
  12  Prefactor     .10000E-03    9.0958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.8226        25.927        .13492E-03   -1.5114    
  14  Prefactor     12.160        15.012        .11493E-03   -1.5010    
  15  norm          .10000E-03    2.2881        .13397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3624        .10359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.3051        .13472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .96930        .86898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.2389        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.678        15.450        .11722E-03   -1.5024    
  22  Normalizat    1.4139        .29555        .36407E-03   -.80227    
  23  Prefactor     1.0479        .14981        .21654E-03   -.91150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.60324e-08
Minuit parameter uncertainties:
  1  1.79503e-05
  2  3.59599
  3  15.6024
  4  7.97412
  5  9.82098
  6  0.000585429
  7  43.4056
  8  1.71011
  9  9.85998
  10  0.000628959
  11  18.9132
  12  2.2162e-05
  13  25.9604
  14  15.0167
  15  1.6761e-06
  16  3.3977e-06
  17  2.90112e-05
  18  2.18775e-06
  19  1.78787e-06
  20  2.30708e-05
  21  15.4557
  22  0.295906
  23  0.149873
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  6.290e-04  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.048e+00  1.499e-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.414e+00  2.959e-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.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.24e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/803635/likelihoodResults_512006401_512265601_4FGL_J1337.6-1257_daily_bin1052.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) = 8286.75125488
delta logL = -0.000114573220344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8286.75114022
delta logL = 9.46401996771e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8286.751     FROM MIGRAD    STATUS=FAILED       102 CALLS      264 TOTAL
                     EDM=   .97E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10026E-03    1854.1        .37659E-02** at limit **
   2  alpha         2.1548        3.8115        .16566        .22798E-06
   3  Normalizat    1.4139        .41978E-01    .36406E-03    .34912E-04
   4  Prefactor     1.0479        .22068E-01    .21654E-03    .58276E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8286.751     FROM SIMPLEX   STATUS=UNCHANGED    155 CALLS      419 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10026E-03    1854.1        .12576E-02** at limit **
   2  alpha         2.1548        3.8115        .31912E-05    .22798E-06
   3  Normalizat    1.4139        .41978E-01    .16881E-06    .34912E-04
   4  Prefactor     1.0479        .22068E-01    .27189E-07    .58276E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8286.751     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      447 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10011E-03    50.953        .15063E-03** at limit **
   2  alpha         2.1606        3.3643        .66264E-02    .49136E-06
   3  Normalizat    1.4139        .27681        .14562E-04    .37473E-04
   4  Prefactor     1.0479        .14556        .86618E-05    .63001E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100109
  alpha      = 2.16063
  Normalizat = 1.41392
  Prefactor  = 1.04788
 **********
 **   18 **HESSE 
 **********

 FCN=   8286.751     FROM HESSE     STATUS=OK            23 CALLS      470 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10011E-03    50.841        .30127E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1606        2.8692        .13253E-02   -.13617    
   3  Normalizat    1.4139        .27657        .29125E-05   -.80227    
   4  Prefactor     1.0479        .14542        .17324E-05   -.91150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26293e-09
Minuit parameter uncertainties:
  1  0.00471158
  2  234.205
  3  0.276859
  4  0.14548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803635': 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) = 8286.7511401
delta logL = 2.11332007893e-07

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.001e-04  4.712e-03  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.161e+00  2.342e+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:  1.048e+00  1.455e-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.414e+00  2.769e-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/803635/cmap_HighResolution_512006401_512265601_4FGL_J1337.6-1257_daily_bin1052.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.24e-05', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-08 05:06:05.032880', job_id='803635', GAL2='1.05', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1631102765.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1052' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:06:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 803635: <4FGL_J1337.6-1257_daily_bin1052> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1052 204.424 -12.9517 512006401 512265601 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 :                                   618.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   646 sec.
    Turnaround time :                            921 sec.

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

