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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin508
RA = 204.424, Dec = -12.9517
tmin = 371001601, tmax = 371260801
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='799329', job_status='RUN', time_executed='2021-09-08 04:43:24.859729', time_epoch_executed='1631101404.86' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799329

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799329/ft1_4FGL_J1337.6-1257_daily_bin508.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799329/ft2_4FGL_J1337.6-1257_daily_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799329/ft1_4FGL_J1337.6-1257_daily_bin508.fits outfile=/scratch/kocevski/799329/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin508.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=371001601.0 tmax=371260801.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 6.51
user 6.11
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799329/ft1_filtered_4FGL_J1337.6-1257_daily_bin508.fits" evtable="EVENTS" scfile=/scratch/kocevski/799329/ft2_4FGL_J1337.6-1257_daily_bin508.fits sctable="SC_DATA" outfile=/scratch/kocevski/799329/ltcube_371001601_371260801_4FGL_J1337.6-1257_daily_bin508.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/799329/ft2_4FGL_J1337.6-1257_daily_bin508.fits
.....................!
real 14.50
user 14.11
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799329/ft1_filtered_4FGL_J1337.6-1257_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/799329/ft2_4FGL_J1337.6-1257_daily_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/799329/ltcube_371001601_371260801_4FGL_J1337.6-1257_daily_bin508.fits outfile=/scratch/kocevski/799329/expmap_371001601_371260801_4FGL_J1337.6-1257_daily_bin508.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/799329/ltcube_371001601_371260801_4FGL_J1337.6-1257_daily_bin508.fits
.....................!
real 192.89
user 186.67
sys 4.21

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/799329/ft1_filtered_4FGL_J1337.6-1257_daily_bin508.fits scfile=/scratch/kocevski/799329/ft2_4FGL_J1337.6-1257_daily_bin508.fits outfile=/scratch/kocevski/799329/cmap_371001601_371260801_4FGL_J1337.6-1257_daily_bin508.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799329/ft1_filtered_4FGL_J1337.6-1257_daily_bin508.fits scfile=/scratch/kocevski/799329/ft2_4FGL_J1337.6-1257_daily_bin508.fits outfile=/scratch/kocevski/799329/cmap_HighResolution_371001601_371260801_4FGL_J1337.6-1257_daily_bin508.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=204.424 yref=-12.9517 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/799329/ft1_filtered_4FGL_J1337.6-1257_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/799329/ft2_4FGL_J1337.6-1257_daily_bin508.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799329/Model_4FGL_J1337.6-1257_daily_bin508.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/799329/ft1_filtered_4FGL_J1337.6-1257_daily_bin508.fits.....................!
real 74.82
user 73.32
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5626       1.0000         .10000E-03   10000.    
     2 'norm      '    3.1780       1.0000         .10000E-03   10000.    
     3 'norm      '    38.795       1.0000         .10000E-03   10000.    
     4 'norm      '    .19508E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.245       1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.686       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.193       1.0000         .10000E-03   10000.    
     8 'norm      '    4.0619       1.0000         .10000E-03   10000.    
     9 'norm      '    6.0828       1.0000         .10000E-03   10000.    
    10 'norm      '    6.8597       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6393       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.335       1.0000         .10000E-03   10000.    
    13 'norm      '    .11581E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5431       1.0000         .10000E-03   10000.    
    15 'norm      '    2.1727       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2945       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .67193E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.8577       1.0000         .10000E-03   10000.    
    20 'norm      '    3.3464       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.1553       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .68499       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2008       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=   10151.69     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     1898 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5459        8.0257        .76315E-07   -.17795E-03
   2  norm          3.1771        1.8456        .14848E-07   -.20774E-04
   3  norm          38.651        12.811        .10447E-06    .78922E-04
   4  norm          .10000E-03    16.350        .82397E-06** at limit **
   5  Prefactor     14.239        9.4209        .33844E-06    .76531E-04
   6  Prefactor     32.684        10.415        .52233E-07   -.60940E-04
   7  Prefactor     13.540        24.009       -.61472E-05   -.56741E-03
   8  norm          4.0609        1.5243        .12171E-07   -.96233E-04
   9  norm          6.1745        5.5571        .14312E-05   -.21264E-03
  10  norm          6.9248        5.4538        .12881E-05   -.63361E-03
  11  Prefactor     2.6865        14.368        .33539E-06    .10484E-03
  12  Prefactor     16.322        21.118       -.12440E-05   -.19857E-03
  13  norm          .10000E-03    14.784       -.29725E-06** at limit **
  14  Prefactor     1.4546        9.5694        .26901E-05   -.21714E-03
  15  norm          2.1717        2.9771        .27861E-06   -.23614E-03
  16  Prefactor     4.2931        3.2479        .78689E-07   -.19386E-03
  17  Prefactor     .10018E-03    119.97        .22703E-04** at limit **
  18  norm          .10000E-03    1.2718        .27006E-08** at limit **
  19  norm          1.8554        1.8304       -.95810E-07   -.27922E-03
  20  norm          3.3543        4.0716        .39807E-05   -.15334E-02
  21  Prefactor     5.1514        10.183       -.34619E-06   -.48773E-04
  22  Normalizat    .68619        .21521        .61548E-06   -.17713E-03
  23  Prefactor     1.2006        .11242       -.52567E-06   -.26666E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.54594
  norm       = 3.17712
  norm       = 38.6514
  norm       = 0.0001
  Prefactor  = 14.2388
  Prefactor  = 32.6843
  Prefactor  = 13.5399
  norm       = 4.06087
  norm       = 6.17446
  norm       = 6.92479
  Prefactor  = 2.68646
  Prefactor  = 16.3224
  norm       = 0.0001
  Prefactor  = 1.45455
  norm       = 2.17175
  Prefactor  = 4.29312
  Prefactor  = 0.000100183
  norm       = 0.0001
  norm       = 1.85538
  norm       = 3.35432
  Prefactor  = 5.15138
  Normalizat = 0.686195
  Prefactor  = 1.20059
 **********
 **   18 **HESSE 
 **********

 FCN=   10151.69     FROM HESSE     STATUS=OK           380 CALLS     2278 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5459        8.0203        .21413E-03   -1.5331    
   2  norm          3.1771        1.8464        .10151E-03   -1.5351    
   3  norm          38.651        12.806        .64351E-04   -1.4464    
   4  norm          .10000E-03    16.855        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.239        9.4174        .10612E-03   -1.4953    
   6  Prefactor     32.684        10.411        .70088E-04   -1.4564    
   7  Prefactor     13.540        24.920        .10632E-03   -1.4972    
   8  norm          4.0609        1.5232        .72228E-04   -1.5305    
   9  norm          6.1745        5.7092        .13406E-03   -1.5211    
  10  norm          6.9248        5.4584        .76594E-03   -1.5182    
  11  Prefactor     2.6865        13.214        .25098E-03   -1.5380    
  12  Prefactor     16.322        21.117        .99098E-04   -1.4900    
  13  norm          .10000E-03    14.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.4546        8.8687        .34314E-03   -1.5467    
  15  norm          2.1717        2.9573        .19535E-03   -1.5413    
  16  Prefactor     4.2931        3.2405        .15119E-03   -1.5294    
  17  Prefactor     .10018E-03    131.54        .37415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.2754        .11094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.8554        1.8157        .12962E-03   -1.5436    
  20  norm          3.3543        4.1906        .11062E-02   -1.5342    
  21  Prefactor     5.1514        10.169        .17706E-03   -1.5254    
  22  Normalizat    .68619        .23217        .42757E-03   -1.0444    
  23  Prefactor     1.2006        .12364        .18390E-03   -.86313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36605e-09
Minuit parameter uncertainties:
  1  8.02277
  2  1.84647
  3  12.8066
  4  0.000114878
  5  9.41835
  6  10.4111
  7  24.9393
  8  1.52322
  9  5.70968
  10  5.45882
  11  11.9201
  12  21.127
  13  5.61883e-05
  14  7.18465
  15  2.95754
  16  3.24064
  17  0.00984717
  18  8.5749e-07
  19  1.81577
  20  4.19099
  21  10.1724
  22  0.232502
  23  0.12367
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  6.925e+00  5.459e+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

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  1.201e+00  1.237e-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:  6.862e-01  2.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.64
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 4.22e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.20e-05

TS (Fixed Index): 3.64
Ra Dec: 204.424 -12.952
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.04e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/799329/likelihoodResults_371001601_371260801_4FGL_J1337.6-1257_daily_bin508.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) = 10151.6293332
delta logL = 0.0629957257297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10151.620547
delta logL = 0.0717819280253

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3375       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5820       1.0000          .0000       5.0000    
     3 'Normalizat'    .67301       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2044       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=   10151.62     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3349        94.731        .39861E-02    .50249E-03
   2  alpha         2.5833        3.6212        .41180        .84445E-04
   3  Normalizat    .67301        .94665E-01    .97335E-01   -.17175E-03
   4  Prefactor     1.2044        .38471E-01    .34527E-01   -.39155E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.33492
  alpha      = 2.58333
  Normalizat = 0.673015
  Prefactor  = 1.20442
 **********
 **   18 **HESSE 
 **********

 FCN=   10151.62     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3349        5.2647        .15944E-03   -1.5205    
   2  alpha         2.5833        .75600        .18442E-01    .33337E-01
   3  Normalizat    .67301        .21937        .43132E-03   -1.0497    
   4  Prefactor     1.2044        .12093        .18362E-03   -.86196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71703e-10
Minuit parameter uncertainties:
  1  5.26513
  2  0.768038
  3  0.219653
  4  0.120955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799329': 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) = 10151.6205454
delta logL = 0.071783573223

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  6.335e+00  5.265e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.583e+00  7.680e-01  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.204e+00  1.210e-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:  6.730e-01  2.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.81
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.58 +/- 0.77
Photon Flux (Free Index): 5.44e-08 +/- 4.80e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.07e-05

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/799329/cmap_HighResolution_371001601_371260801_4FGL_J1337.6-1257_daily_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-05', comment='SUCCESS', photon_flux='4.22e-08', energy_flux2='1.53e-05', photon_flux_error='3.32e-08', dlogl='7.18e-02', energy_flux='1.52e-05', photon_flux2='5.44e-08', job_status='DONE', time_completed='2021-09-08 04:56:41.483216', photon_index_error2='0.77', photon_index2='2.58', ts='3.64', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='1.07e-05', EG='0.69', time_epoch_completed='1631102201.48', return_code='0', job_id='799329', GAL2='1.20', EG2='0.67', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='4.80e-08', ts2='3.81', photon_index='2.30' WHERE bin_id='508' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:56:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 799329: <4FGL_J1337.6-1257_daily_bin508> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin508 204.424 -12.9517 371001601 371260801 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.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            962 sec.

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

