/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 232 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 = 7284
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1337.6-1257_daily_bin118
RA = 204.424, Dec = -12.9517
tmin = 269913601, tmax = 270172801
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='796178', job_status='RUN', time_executed='2021-09-08 04:35:09.080015', time_epoch_executed='1631100909.08' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/796178

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/796178/ft1_4FGL_J1337.6-1257_daily_bin118.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/796178/ft2_4FGL_J1337.6-1257_daily_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/796178/ft1_4FGL_J1337.6-1257_daily_bin118.fits outfile=/scratch/kocevski/796178/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin118.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=269913601.0 tmax=270172801.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 1.34
user 1.17
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/796178/ft1_filtered_4FGL_J1337.6-1257_daily_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/796178/ft2_4FGL_J1337.6-1257_daily_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/796178/ltcube_269913601_270172801_4FGL_J1337.6-1257_daily_bin118.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/796178/ft2_4FGL_J1337.6-1257_daily_bin118.fits
.....................!
real 10.30
user 9.90
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/796178/ft1_filtered_4FGL_J1337.6-1257_daily_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/796178/ft2_4FGL_J1337.6-1257_daily_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/796178/ltcube_269913601_270172801_4FGL_J1337.6-1257_daily_bin118.fits outfile=/scratch/kocevski/796178/expmap_269913601_270172801_4FGL_J1337.6-1257_daily_bin118.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/796178/ltcube_269913601_270172801_4FGL_J1337.6-1257_daily_bin118.fits
.....................!
real 153.46
user 148.10
sys 4.34

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/796178/ft1_filtered_4FGL_J1337.6-1257_daily_bin118.fits scfile=/scratch/kocevski/796178/ft2_4FGL_J1337.6-1257_daily_bin118.fits outfile=/scratch/kocevski/796178/cmap_269913601_270172801_4FGL_J1337.6-1257_daily_bin118.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.46
user 0.29
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/796178/ft1_filtered_4FGL_J1337.6-1257_daily_bin118.fits scfile=/scratch/kocevski/796178/ft2_4FGL_J1337.6-1257_daily_bin118.fits outfile=/scratch/kocevski/796178/cmap_HighResolution_269913601_270172801_4FGL_J1337.6-1257_daily_bin118.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.47
user 0.29
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .39247E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.1682       1.0000         .10000E-03   10000.    
     3 'norm      '    .47910       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.3140       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1818       1.0000         .10000E-03   10000.    
     8 'norm      '    2.0317       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    12.200       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.497       1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7682       1.0000         .10000E-03   10000.    
    15 'norm      '    9.7508       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.3381       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.067       1.0000         .10000E-03   10000.    
    18 'norm      '    2.5326       1.0000         .10000E-03   10000.    
    19 'norm      '    2.7988       1.0000         .10000E-03   10000.    
    20 'norm      '    4.3388       1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.015       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .77811       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1078       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=   10471.62     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2528 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1865        .24412E-06** at limit **
   2  norm          2.1682        1.6384        .49389E-08   -.33854E-04
   3  norm          .48440        4.0814       -.38031E-06    .75577E-04
   4  norm          .10000E-03    4.6712       -.30705E-08** at limit **
   5  Prefactor     .10000E-03    2.6256       -.31233E-07** at limit **
   6  Prefactor     7.3145        5.9440        .36879E-06    .12184E-04
   7  Prefactor     5.1820        7.4258        .63919E-07   -.95690E-05
   8  norm          2.0318        1.0490        .11352E-07    .32549E-04
   9  norm          .10000E-03    1.2360       -.56695E-07** at limit **
  10  norm          12.200        5.5293        .77947E-06    .76609E-04
  11  Prefactor     .10000E-03    3.0345        .28751E-08** at limit **
  12  Prefactor     28.498        21.711        .99662E-06    .11475E-04
  13  norm          .10000E-03    19.979       -.93990E-07** at limit **
  14  Prefactor     3.7688        2.2847        .21375E-06   -.11113E-02
  15  norm          9.7511        4.3478       -.13389E-06   -.41792E-04
  16  Prefactor     5.3384        3.4046       -.72738E-06   -.13052E-03
  17  Prefactor     13.067        15.747        .36353E-06    .48255E-05
  18  norm          2.5329        4.4602       -.14193E-06   -.12882E-03
  19  norm          2.7989        2.0027        .21142E-07   -.77923E-04
  20  norm          4.3393        5.1886       -.88702E-07   -.52961E-04
  21  Prefactor     21.016        21.693        .14309E-05    .12941E-04
  22  Normalizat    .77811        .18962       -.33475E-06   -.51292E-05
  23  Prefactor     1.1078        .10330       -.10874E-06    .54172E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 2.16822
  norm       = 0.484399
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.31451
  Prefactor  = 5.18198
  norm       = 2.03179
  norm       = 0.0001
  norm       = 12.2001
  Prefactor  = 0.0001
  Prefactor  = 28.4984
  norm       = 0.0001
  Prefactor  = 3.76877
  norm       = 9.75111
  Prefactor  = 5.33839
  Prefactor  = 13.0671
  norm       = 2.53285
  norm       = 2.79894
  norm       = 4.33925
  Prefactor  = 21.0159
  Normalizat = 0.778111
  Prefactor  = 1.1078
 **********
 **   18 **HESSE 
 **********

 FCN=   10471.62     FROM HESSE     STATUS=OK           382 CALLS     2910 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.738        .35288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1682        1.6402        .11074E-03   -1.5413    
   3  norm          .48440        16.432        .40090E-02   -1.5569    
   4  norm          .10000E-03    4.6951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.6385        .16191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.3145        5.9535        .14831E-03   -1.5167    
   7  Prefactor     5.1820        7.3706        .17660E-03   -1.5253    
   8  norm          2.0318        1.0501        .29021E-04   -1.5423    
   9  norm          .10000E-03    1.2534        .22072E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.200        5.5361        .11469E-03   -1.5009    
  11  Prefactor     .10000E-03    3.0411        .17407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.498        21.837        .75049E-04   -1.4640    
  13  norm          .10000E-03    20.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.7688        5.5132        .10399E-02   -1.5320    
  15  norm          9.7511        4.3498        .12833E-03   -1.5083    
  16  Prefactor     5.3384        3.3994        .14140E-03   -1.5246    
  17  Prefactor     13.067        15.747        .11081E-03   -1.4985    
  18  norm          2.5329        4.4641        .25665E-03   -1.5390    
  19  norm          2.7989        1.9971        .11664E-03   -1.5373    
  20  norm          4.3393        5.1768        .19338E-03   -1.5291    
  21  Prefactor     21.016        21.679        .87373E-04   -1.4791    
  22  Normalizat    .77811        .21248        .38437E-03   -1.0089    
  23  Prefactor     1.1078        .11686        .18386E-03   -.89218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34413e-09
Minuit parameter uncertainties:
  1  0.000238733
  2  1.64023
  3  5.64372
  4  1.75912e-07
  5  9.71875e-07
  6  5.95395
  7  7.37191
  8  1.05011
  9  8.14633e-06
  10  5.53629
  11  2.58009e-07
  12  21.8428
  13  2.2543e-06
  14  5.51394
  15  4.3499
  16  3.39954
  17  15.752
  18  4.46468
  19  1.99711
  20  5.17729
  21  21.6867
  22  0.212711
  23  0.116889
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.220e+01  5.536e+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.108e+00  1.169e-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:  7.781e-01  2.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.99
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 7.43e-08 +/- 3.37e-08
Energy Flux (Fixed Index): 2.68e-05 +/- 1.21e-05

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) = 10471.3059664
delta logL = 0.316712976653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10471.3057049
delta logL = 0.316974417679

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.397       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9781       1.0000          .0000       5.0000    
     3 'Normalizat'    .79511       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1012       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=   10471.31     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      270 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.383        143.09        .26390E-02    .60276E-04
   2  alpha         1.9770        3.2773        .35641        .28220E-04
   3  Normalizat    .79523        .17378        .85943E-01    .40461E-04
   4  Prefactor     1.1012        .84283E-01    .37543E-01   -.11496E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.3827
  alpha      = 1.97697
  Normalizat = 0.795235
  Prefactor  = 1.10115
 **********
 **   18 **HESSE 
 **********

 FCN=   10471.31     FROM HESSE     STATUS=OK            33 CALLS      303 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.383        6.6072        .10556E-03   -1.4949    
   2  alpha         1.9770        .39944        .13537E-01   -.21077    
   3  Normalizat    .79523        .20364        .38060E-03   -1.0025    
   4  Prefactor     1.1012        .11495        .18433E-03   -.89430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14648e-12
Minuit parameter uncertainties:
  1  6.60757
  2  0.401239
  3  0.20384
  4  0.114979
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/796178': 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) = 10471.3056971
delta logL = 0.316982287763

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.438e+01  6.608e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.977e+00  4.012e-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.101e+00  1.150e-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:  7.952e-01  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.65
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 1.98 +/- 0.40
Photon Flux (Free Index): 6.19e-08 +/- 3.22e-08
Energy Flux (Free Index): 3.35e-05 +/- 1.84e-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/796178/cmap_HighResolution_269913601_270172801_4FGL_J1337.6-1257_daily_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.43e-08', energy_flux2='3.35e-05', photon_flux_error='3.37e-08', dlogl='3.17e-01', energy_flux='2.68e-05', photon_flux2='6.19e-08', job_status='DONE', time_completed='2021-09-08 04:45:18.993495', photon_index_error2='0.40', photon_index2='1.98', ts='9.99', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.84e-05', EG='0.78', time_epoch_completed='1631101518.99', return_code='0', job_id='796178', GAL2='1.10', EG2='0.80', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='3.22e-08', ts2='10.65', photon_index='2.30' WHERE bin_id='118' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:45:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 796178: <4FGL_J1337.6-1257_daily_bin118> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin118> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 04:30:34 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:31:07 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:31:07 2021
Terminated at Wed Sep  8 04:45:19 2021
Results reported at Wed Sep  8 04:45:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin118 204.424 -12.9517 269913601 270172801 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 :                                   605.36 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             251.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   39 MB
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            885 sec.

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

