/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 144 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1337.6-1257_daily_bin264
RA = 204.424, Dec = -12.9517
tmin = 307756801, tmax = 308016001
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='797666', job_status='RUN', time_executed='2021-09-08 04:38:17.927728', time_epoch_executed='1631101097.93' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='264'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/797666

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/797666/ft1_4FGL_J1337.6-1257_daily_bin264.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/797666/ft2_4FGL_J1337.6-1257_daily_bin264.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/797666/ft1_4FGL_J1337.6-1257_daily_bin264.fits outfile=/scratch/kocevski/797666/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin264.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=307756801.0 tmax=308016001.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.53
user 3.22
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/797666/ft1_filtered_4FGL_J1337.6-1257_daily_bin264.fits" evtable="EVENTS" scfile=/scratch/kocevski/797666/ft2_4FGL_J1337.6-1257_daily_bin264.fits sctable="SC_DATA" outfile=/scratch/kocevski/797666/ltcube_307756801_308016001_4FGL_J1337.6-1257_daily_bin264.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/797666/ft2_4FGL_J1337.6-1257_daily_bin264.fits
.....................!
real 13.59
user 13.18
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/797666/ft1_filtered_4FGL_J1337.6-1257_daily_bin264.fits evtable="EVENTS" scfile=/scratch/kocevski/797666/ft2_4FGL_J1337.6-1257_daily_bin264.fits sctable="SC_DATA" expcube=/scratch/kocevski/797666/ltcube_307756801_308016001_4FGL_J1337.6-1257_daily_bin264.fits outfile=/scratch/kocevski/797666/expmap_307756801_308016001_4FGL_J1337.6-1257_daily_bin264.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/797666/ltcube_307756801_308016001_4FGL_J1337.6-1257_daily_bin264.fits
.....................!
real 194.60
user 189.36
sys 4.33

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/797666/ft1_filtered_4FGL_J1337.6-1257_daily_bin264.fits scfile=/scratch/kocevski/797666/ft2_4FGL_J1337.6-1257_daily_bin264.fits outfile=/scratch/kocevski/797666/cmap_307756801_308016001_4FGL_J1337.6-1257_daily_bin264.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.57
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/797666/ft1_filtered_4FGL_J1337.6-1257_daily_bin264.fits scfile=/scratch/kocevski/797666/ft2_4FGL_J1337.6-1257_daily_bin264.fits outfile=/scratch/kocevski/797666/cmap_HighResolution_307756801_308016001_4FGL_J1337.6-1257_daily_bin264.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .95804       1.0000         .10000E-03   10000.    
     3 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.212       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.873       1.0000         .10000E-03   10000.    
     8 'norm      '    15.170       1.0000         .10000E-03   10000.    
     9 'norm      '    .32665       1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2897       1.0000         .10000E-03   10000.    
    13 'norm      '    4.1283       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.662       1.0000         .10000E-03   10000.    
    15 'norm      '    1.7868       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6350       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.3860       1.0000         .10000E-03   10000.    
    19 'norm      '    5.1161       1.0000         .10000E-03   10000.    
    20 'norm      '    .44005       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1676       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1724       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9114.898     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2542 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.1117        .90712E-02** at limit **
   2  norm          .95801        1.1427        .13017E-01   -.22638E-03
   3  norm          .10001E-03    15.274        .90712E-02** at limit **
   4  norm          .10000E-03    4.9959        .90712E-02** at limit **
   5  Prefactor     .10000E-03    2.2802        .90712E-02** at limit **
   6  Prefactor     32.205        12.342        .17650E-02   -.85569E-03
   7  Prefactor     24.866        19.036        .20080E-02    .31321E-03
   8  norm          15.171        2.8974        .25709E-02    .20640E-03
   9  norm          .31293        2.9128        .41635E-01    .13523E-02
  10  norm          .10000E-03    1.6824        .90712E-02** at limit **
  11  Prefactor     .10000E-03    7.6783        .90712E-02** at limit **
  12  Prefactor     1.2090        77.639        .97503E-02    .21359E-03
  13  norm          4.1268        39.975        .49598E-02    .29399E-03
  14  Prefactor     22.665        12.880        .21035E-02   -.69191E-03
  15  norm          1.7858        2.4728        .78245E-02    .22924E-03
  16  Prefactor     2.6325        4.1875        .62799E-02    .88144E-03
  17  Prefactor     .10002E-03    15.032        .90712E-02** at limit **
  18  norm          7.3911        6.9567        .36894E-02    .10864E-02
  19  norm          5.1147        2.8247        .44437E-02    .10521E-03
  20  norm          .46923        4.4693        .11024        .12901E-02
  21  Prefactor     .10001E-03    21.944        .90712E-02** at limit **
  22  Normalizat    1.1671        .26182        .92098E-01    .24453E-04
  23  Prefactor     1.1726        .13040        .35317E-01    .11376E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.958006
  norm       = 0.000100013
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.2048
  Prefactor  = 24.866
  norm       = 15.1711
  norm       = 0.312931
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.20903
  norm       = 4.1268
  Prefactor  = 22.6653
  norm       = 1.78575
  Prefactor  = 2.63252
  Prefactor  = 0.000100019
  norm       = 7.39115
  norm       = 5.11466
  norm       = 0.469232
  Prefactor  = 0.000100011
  Normalizat = 1.16715
  Prefactor  = 1.17257
 **********
 **   18 **HESSE 
 **********

 FCN=   9114.898     FROM HESSE     STATUS=OK           372 CALLS     2914 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.1660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .95801        1.1235        .10870E-03   -1.5512    
   3  norm          .10001E-03    15.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.0020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.2825        .14078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     32.205        12.373        .70600E-04   -1.4572    
   7  Prefactor     24.866        19.781        .80320E-04   -1.4710    
   8  norm          15.171        2.9109        .66577E-04   -1.4929    
   9  norm          .31293        7.5247        .26061E-02   -1.5596    
  10  norm          .10000E-03    1.6847        .12089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.7020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.2090        79.369        .39001E-03   -1.5488    
  13  norm          4.1268        40.012        .19839E-03   -1.5302    
  14  Prefactor     22.665        12.856        .84141E-04   -1.4755    
  15  norm          1.7858        2.4558        .17177E-03   -1.5441    
  16  Prefactor     2.6325        4.1522        .22820E-03   -1.5383    
  17  Prefactor     .10002E-03    15.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.3911        6.9268        .14758E-03   -1.5164    
  19  norm          5.1147        2.8222        .11323E-03   -1.5256    
  20  norm          .46923        41.604        .38253E-02   -1.5571    
  21  Prefactor     .10001E-03    22.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1671        .29956        .40794E-03   -.87624    
  23  Prefactor     1.1726        .14989        .21258E-03   -.87180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14176e-07
Minuit parameter uncertainties:
  1  9.24054e-05
  2  1.12348
  3  0.000884223
  4  7.78351e-05
  5  9.63861e-07
  6  12.3735
  7  19.7863
  8  2.91097
  9  3.06895
  10  2.27577e-07
  11  4.00875e-05
  12  19.6181
  13  25.7221
  14  12.8579
  15  2.45598
  16  4.15269
  17  0.00105758
  18  6.92755
  19  2.82228
  20  8.8421
  21  0.000985802
  22  0.299999
  23  0.14994
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  2.276e-07  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.173e+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.167e+00  3.000e-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: 5.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.95e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/797666/likelihoodResults_307756801_308016001_4FGL_J1337.6-1257_daily_bin264.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) = 9114.90112544
delta logL = -0.00274900720979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9114.89837643
delta logL = -4.53837856185e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3041       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1672       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1726       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=   9114.898     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      222 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    3.1343        .12089E-02** at limit **
   2  alpha         2.2792        2.7427        .16525        .10761E-05
   3  Normalizat    1.1671        .27850        .40794E-03    .45147E-05
   4  Prefactor     1.1726        .14653        .21258E-03    .96690E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100017
  alpha      = 2.27924
  Normalizat = 1.16715
  Prefactor  = 1.17257
 **********
 **   18 **HESSE 
 **********

 FCN=   9114.898     FROM HESSE     STATUS=OK            23 CALLS      245 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    1.6866        .24179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2792        3.2289        .66100E-02   -.88420E-01
   3  Normalizat    1.1671        .27872        .16318E-04   -.87624    
   4  Prefactor     1.1726        .14665        .42516E-04   -.87180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21294e-08
Minuit parameter uncertainties:
  1  0.000343575
  2  256.115
  3  0.279075
  4  0.146699
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/797666': 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) = 9114.89837642
delta logL = 1.07484083856e-08

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  3.436e-04  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.279e+00  2.561e+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.173e+00  1.467e-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.167e+00  2.791e-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/797666/cmap_HighResolution_307756801_308016001_4FGL_J1337.6-1257_daily_bin264.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.95e-05', job_status='DONE', photon_flux_upper_limit='5.42e-08', time_completed='2021-09-08 04:51:31.333952', job_id='797666', GAL2='1.17', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1631101891.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.07e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='264' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:51:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 797666: <4FGL_J1337.6-1257_daily_bin264> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin264> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 04:35:21 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:35:41 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:35:41 2021
Terminated at Wed Sep  8 04:51:32 2021
Results reported at Wed Sep  8 04:51:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin264 204.424 -12.9517 307756801 308016001 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 :                                   791.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            971 sec.

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

