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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin436
RA = 204.424, Dec = -12.9517
tmin = 352339201, tmax = 352598401
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='799211', job_status='RUN', time_executed='2021-09-08 04:44:42.947823', time_epoch_executed='1631101482.95' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='436'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799211

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799211/ft1_4FGL_J1337.6-1257_daily_bin436.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799211/ft2_4FGL_J1337.6-1257_daily_bin436.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799211/ft1_4FGL_J1337.6-1257_daily_bin436.fits outfile=/scratch/kocevski/799211/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin436.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=352339201.0 tmax=352598401.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.51
user 3.27
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799211/ft1_filtered_4FGL_J1337.6-1257_daily_bin436.fits" evtable="EVENTS" scfile=/scratch/kocevski/799211/ft2_4FGL_J1337.6-1257_daily_bin436.fits sctable="SC_DATA" outfile=/scratch/kocevski/799211/ltcube_352339201_352598401_4FGL_J1337.6-1257_daily_bin436.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/799211/ft2_4FGL_J1337.6-1257_daily_bin436.fits
.....................!
real 15.92
user 15.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799211/ft1_filtered_4FGL_J1337.6-1257_daily_bin436.fits evtable="EVENTS" scfile=/scratch/kocevski/799211/ft2_4FGL_J1337.6-1257_daily_bin436.fits sctable="SC_DATA" expcube=/scratch/kocevski/799211/ltcube_352339201_352598401_4FGL_J1337.6-1257_daily_bin436.fits outfile=/scratch/kocevski/799211/expmap_352339201_352598401_4FGL_J1337.6-1257_daily_bin436.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/799211/ltcube_352339201_352598401_4FGL_J1337.6-1257_daily_bin436.fits
.....................!
real 193.05
user 186.96
sys 5.51

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/799211/ft1_filtered_4FGL_J1337.6-1257_daily_bin436.fits scfile=/scratch/kocevski/799211/ft2_4FGL_J1337.6-1257_daily_bin436.fits outfile=/scratch/kocevski/799211/cmap_352339201_352598401_4FGL_J1337.6-1257_daily_bin436.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799211/ft1_filtered_4FGL_J1337.6-1257_daily_bin436.fits scfile=/scratch/kocevski/799211/ft2_4FGL_J1337.6-1257_daily_bin436.fits outfile=/scratch/kocevski/799211/cmap_HighResolution_352339201_352598401_4FGL_J1337.6-1257_daily_bin436.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/799211/ft1_filtered_4FGL_J1337.6-1257_daily_bin436.fits evtable="EVENTS" scfile=/scratch/kocevski/799211/ft2_4FGL_J1337.6-1257_daily_bin436.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799211/Model_4FGL_J1337.6-1257_daily_bin436.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/799211/ft1_filtered_4FGL_J1337.6-1257_daily_bin436.fits.....................!
real 67.46
user 65.98
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.6980       1.0000         .10000E-03   10000.    
     2 'norm      '    .34118       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3373       1.0000         .10000E-03   10000.    
     9 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.550       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    44.043       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.4828       1.0000         .10000E-03   10000.    
    15 'norm      '    12.490       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.444       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11732E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.0985       1.0000         .10000E-03   10000.    
    20 'norm      '    8.8662       1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.133       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .67959       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0167       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=   8963.148     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2198 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.6982        6.8280       -.15372E-06   -.21159E-04
   2  norm          .34125        .89968       -.53210E-06   -.22698E-02
   3  norm          .10000E-03    4.3381       -.17899E-05** at limit **
   4  norm          .10000E-03    3.1837        .19572E-05** at limit **
   5  Prefactor     .10000E-03    1.9223        .46445E-08** at limit **
   6  Prefactor     .10000E-03    3.4658       -.19299E-05** at limit **
   7  Prefactor     .10000E-03    2.8984       -.83953E-06** at limit **
   8  norm          1.3374        1.2753       -.15013E-06   -.10341E-02
   9  norm          .10000E-03    .69968       -.79966E-07** at limit **
  10  norm          11.549        5.8039        .16522E-05   -.57158E-03
  11  Prefactor     .10000E-03    4.2697        .25316E-05** at limit **
  12  Prefactor     44.043        23.731       -.54237E-06    .34193E-04
  13  norm          .10000E-03    11.807        .45881E-07** at limit **
  14  Prefactor     9.4830        7.8543       -.37147E-06   -.96453E-04
  15  norm          12.489        5.1948       -.53061E-06    .69751E-04
  16  Prefactor     21.445        5.4739        .28415E-06   -.21465E-03
  17  Prefactor     .10000E-03    20.928       -.33116E-06** at limit **
  18  norm          .10000E-03    2.3417       -.22881E-08** at limit **
  19  norm          1.0990        2.0878       -.48873E-06   -.14530E-02
  20  norm          8.8659        7.2864       -.13490E-06   -.28850E-04
  21  Prefactor     26.133        18.925       -.10592E-05    .85417E-04
  22  Normalizat    .67954        .19455       -.29902E-08    .51767E-04
  23  Prefactor     1.0167        .10265        .12781E-06    .10817E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.69817
  norm       = 0.341251
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.33741
  norm       = 0.0001
  norm       = 11.5495
  Prefactor  = 0.0001
  Prefactor  = 44.0432
  norm       = 0.0001
  Prefactor  = 9.48301
  norm       = 12.4892
  Prefactor  = 21.4448
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.09902
  norm       = 8.86589
  Prefactor  = 26.1333
  Normalizat = 0.679543
  Prefactor  = 1.01669
 **********
 **   18 **HESSE 
 **********

 FCN=   8963.148     FROM HESSE     STATUS=OK           376 CALLS     2574 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.6982        6.8282        .12868E-03   -1.5085    
   2  norm          .34125        .89970        .15089E-02   -1.5591    
   3  norm          .10000E-03    4.3377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.1379        .16367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.9250        .12818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.4658        .17096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9001        .15735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3374        1.2674        .98819E-04   -1.5477    
   9  norm          .10000E-03    .70394        .77315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.549        5.6189        .11788E-03   -1.5028    
  11  Prefactor     .10000E-03    4.2079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     44.043        23.718        .60410E-04   -1.4380    
  13  norm          .10000E-03    11.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.4830        7.8593        .13014E-03   -1.5092    
  15  norm          12.489        5.1758        .11334E-03   -1.5001    
  16  Prefactor     21.445        5.4551        .86494E-04   -1.4781    
  17  Prefactor     .10000E-03    186.39        .83045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.3510        .14139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.0990        2.1328        .17971E-03   -1.5498    
  20  norm          8.8659        7.2323        .13461E-03   -1.5112    
  21  Prefactor     26.133        18.872        .78364E-04   -1.4685    
  22  Normalizat    .67954        .21688        .38129E-03   -1.0471    
  23  Prefactor     1.0167        .11656        .17583E-03   -.92175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23126e-09
Minuit parameter uncertainties:
  1  6.82877
  2  0.899733
  3  3.75162e-05
  4  3.15365e-05
  5  1.20417e-06
  6  3.17057e-05
  7  1.55758e-06
  8  1.26746
  9  6.68533e-06
  10  5.61915
  11  4.0952e-05
  12  23.7232
  13  1.00106e-06
  14  7.86019
  15  5.17594
  16  5.45527
  17  0.000522404
  18  4.89693e-06
  19  2.13295
  20  7.23304
  21  18.8763
  22  0.217151
  23  0.116589
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.155e+01  5.619e+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.017e+00  1.166e-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.795e-01  2.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.93
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 7.03e-08 +/- 3.42e-08
Energy Flux (Fixed Index): 2.53e-05 +/- 1.23e-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) = 8962.88875817
delta logL = 0.259081799071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8962.88207084
delta logL = 0.265769125694

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.2778       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6550       1.0000          .0000       5.0000    
     3 'Normalizat'    .65962       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0233       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=   8962.882     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      309 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.2848        6.0802        .63155E-03   -.55804E-04
   2  alpha         2.6559        .51999        .11773E-01    .27293E-03
   3  Normalizat    .65961        .20829        .38646E-03    .11414E-04
   4  Prefactor     1.0232        .11544        .17527E-03    .27372E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.28477
  alpha      = 2.65588
  Normalizat = 0.659612
  Prefactor  = 1.02323
 **********
 **   18 **HESSE 
 **********

 FCN=   8962.882     FROM HESSE     STATUS=OK            27 CALLS      336 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.2848        5.7625        .25262E-04   -1.5098    
   2  alpha         2.6559        .49297        .23547E-02    .62394E-01
   3  Normalizat    .65961        .20826        .15458E-04   -1.0551    
   4  Prefactor     1.0232        .11543        .70109E-05   -.91959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20131e-12
Minuit parameter uncertainties:
  1  5.76287
  2  0.496234
  3  0.208504
  4  0.11546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799211': 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) = 8962.88206292
delta logL = 0.265777044855

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  9.285e+00  5.763e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.656e+00  4.962e-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.023e+00  1.155e-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.596e-01  2.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.55
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.66 +/- 0.50
Photon Flux (Free Index): 8.77e-08 +/- 4.52e-08
Energy Flux (Free Index): 2.34e-05 +/- 1.10e-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/799211/cmap_HighResolution_352339201_352598401_4FGL_J1337.6-1257_daily_bin436.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.03e-08', energy_flux2='2.34e-05', photon_flux_error='3.42e-08', dlogl='2.66e-01', energy_flux='2.53e-05', photon_flux2='8.77e-08', job_status='DONE', time_completed='2021-09-08 04:55:59.708131', photon_index_error2='0.50', photon_index2='2.66', ts='8.93', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.10e-05', EG='0.68', time_epoch_completed='1631102159.71', return_code='0', job_id='799211', GAL2='1.02', EG2='0.66', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='4.52e-08', ts2='9.55', photon_index='2.30' WHERE bin_id='436' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:55:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 799211: <4FGL_J1337.6-1257_daily_bin436> in cluster <slac> Done

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

Your job looked like:

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

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

