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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1247
RA = 204.424, Dec = -12.9517
tmin = 562550401, tmax = 562809601
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='805004', job_status='RUN', time_executed='2021-09-08 05:00:39.615204', time_epoch_executed='1631102439.62' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1247'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805004

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805004/ft1_4FGL_J1337.6-1257_daily_bin1247.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805004/ft2_4FGL_J1337.6-1257_daily_bin1247.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805004/ft1_4FGL_J1337.6-1257_daily_bin1247.fits outfile=/scratch/kocevski/805004/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1247.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=562550401.0 tmax=562809601.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.22
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805004/ft1_filtered_4FGL_J1337.6-1257_daily_bin1247.fits" evtable="EVENTS" scfile=/scratch/kocevski/805004/ft2_4FGL_J1337.6-1257_daily_bin1247.fits sctable="SC_DATA" outfile=/scratch/kocevski/805004/ltcube_562550401_562809601_4FGL_J1337.6-1257_daily_bin1247.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/805004/ft2_4FGL_J1337.6-1257_daily_bin1247.fits
.....................!
real 13.56
user 13.14
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805004/ft1_filtered_4FGL_J1337.6-1257_daily_bin1247.fits evtable="EVENTS" scfile=/scratch/kocevski/805004/ft2_4FGL_J1337.6-1257_daily_bin1247.fits sctable="SC_DATA" expcube=/scratch/kocevski/805004/ltcube_562550401_562809601_4FGL_J1337.6-1257_daily_bin1247.fits outfile=/scratch/kocevski/805004/expmap_562550401_562809601_4FGL_J1337.6-1257_daily_bin1247.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/805004/ltcube_562550401_562809601_4FGL_J1337.6-1257_daily_bin1247.fits
.....................!
real 191.79
user 185.73
sys 5.56

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/805004/ft1_filtered_4FGL_J1337.6-1257_daily_bin1247.fits scfile=/scratch/kocevski/805004/ft2_4FGL_J1337.6-1257_daily_bin1247.fits outfile=/scratch/kocevski/805004/cmap_562550401_562809601_4FGL_J1337.6-1257_daily_bin1247.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/805004/ft1_filtered_4FGL_J1337.6-1257_daily_bin1247.fits scfile=/scratch/kocevski/805004/ft2_4FGL_J1337.6-1257_daily_bin1247.fits outfile=/scratch/kocevski/805004/cmap_HighResolution_562550401_562809601_4FGL_J1337.6-1257_daily_bin1247.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805004/ft1_filtered_4FGL_J1337.6-1257_daily_bin1247.fits evtable="EVENTS" scfile=/scratch/kocevski/805004/ft2_4FGL_J1337.6-1257_daily_bin1247.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805004/Model_4FGL_J1337.6-1257_daily_bin1247.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/805004/ft1_filtered_4FGL_J1337.6-1257_daily_bin1247.fits......................!
real 30.88
user 29.53
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.375       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.905       1.0000         .10000E-03   10000.    
     4 'norm      '    4.1088       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.0427       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    26.639       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11821E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11253E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.010       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9180       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10404E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.161       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    12.347       1.0000         .10000E-03   10000.    
    20 'norm      '    65.051       1.0000         .10000E-03   10000.    
    21 'Prefactor '    123.79       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .64271       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2669       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=   2590.153     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     3026 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.387        27.928        .38927E-06   -.88089E-05
   2  norm          .10000E-03    3.3353        .20396E-07** at limit **
   3  norm          11.906        16.216        .20232E-06   -.99489E-05
   4  norm          4.1110        13.292        .37737E-05    .40338E-04
   5  Prefactor     .10000E-03    22.438       -.10978E-07** at limit **
   6  Prefactor     .10000E-03    15.566       -.21189E-07** at limit **
   7  Prefactor     .10000E-03    22.548       -.15922E-07** at limit **
   8  norm          3.0422        2.3965        .61194E-07   -.40633E-04
   9  norm          .10000E-03    4.6791        .64297E-07** at limit **
  10  norm          26.636        19.140       -.23339E-07   -.65437E-05
  11  Prefactor     .10000E-03    145.23        .24237E-05** at limit **
  12  Prefactor     .10000E-03    260.69        .14171E-05** at limit **
  13  norm          .10000E-03    19.877        .14428E-06** at limit **
  14  Prefactor     27.031        112.95       -.13909E-04   -.40132E-05
  15  norm          1.9292        134.22        .21907E-04   -.82703E-05
  16  Prefactor     .10000E-03    33.703       -.90134E-06** at limit **
  17  Prefactor     36.095        216.28        .99345E-06   -.54010E-06
  18  norm          .10000E-03    11.553       -.17352E-06** at limit **
  19  norm          12.347        8.0724        .64924E-06   -.16509E-04
  20  norm          65.062        45.055       -.96888E-06   -.36223E-05
  21  Prefactor     123.74        154.34        .62106E-05   -.39046E-05
  22  Normalizat    .64339        .47133       -.10518E-05   -.26707E-04
  23  Prefactor     1.2664        .28419       -.99071E-06    .69090E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 24.3867
  norm       = 0.0001
  norm       = 11.906
  norm       = 4.111
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.04222
  norm       = 0.0001
  norm       = 26.6362
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.0307
  norm       = 1.92917
  Prefactor  = 0.0001
  Prefactor  = 36.0953
  norm       = 0.0001
  norm       = 12.3466
  norm       = 65.0622
  Prefactor  = 123.738
  Normalizat = 0.643387
  Prefactor  = 1.26642
 **********
 **   18 **HESSE 
 **********

 FCN=   2590.153     FROM HESSE     STATUS=OK           368 CALLS     3394 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.387        28.081        .81135E-04   -1.4720    
   2  norm          .10000E-03    3.3366        .90780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.906        16.172        .11610E-03   -1.5018    
   4  norm          4.1110        13.197        .99438E-03   -1.5302    
   5  Prefactor     .10000E-03    22.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.0422        2.3832        .63755E-04   -1.5359    
   9  norm          .10000E-03    4.6904        .10743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          26.636        19.109        .77616E-04   -1.4675    
  11  Prefactor     .10000E-03    145.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    260.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    19.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.031        114.10        .77084E-04   -1.4668    
  15  norm          1.9292        139.85        .15004E-02   -1.5430    
  16  Prefactor     .10000E-03    35.075        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     36.095        220.22        .66645E-04   -1.4506    
  18  norm          .10000E-03    11.602        .16894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          12.347        8.0656        .10757E-03   -1.5005    
  20  norm          65.062        45.059        .49758E-04   -1.4093    
  21  Prefactor     123.74        154.24        .18088E-03   -1.3479    
  22  Normalizat    .64339        .51232        .50334E-03   -1.0617    
  23  Prefactor     1.2664        .31846        .22109E-03   -.84311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72007e-10
Minuit parameter uncertainties:
  1  28.0962
  2  2.18272e-06
  3  16.1777
  4  13.206
  5  3.53304e-05
  6  5.65541e-06
  7  3.82875e-07
  8  2.38326
  9  2.37454e-06
  10  19.1132
  11  0.0009022
  12  0.000437367
  13  5.86465e-06
  14  111.437
  15  32.9298
  16  0.000206395
  17  179.305
  18  2.69097e-05
  19  8.06633
  20  45.0823
  21  154.749
  22  0.516175
  23  0.318949
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.664e+01  1.911e+01  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.266e+00  3.189e-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.434e-01  5.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.93
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.62e-07 +/- 1.16e-07
Energy Flux (Fixed Index): 5.84e-05 +/- 4.19e-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) = 2590.11832753
delta logL = 0.0349142300474

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2590.11516845
delta logL = 0.0380733108454

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.318       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5131       1.0000          .0000       5.0000    
     3 'Normalizat'    .62299       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2707       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=   2590.115     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      280 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.324        19.240        .79612E-04    .59262E-05
   2  alpha         2.5139        .75324        .11989E-01    .59096E-04
   3  Normalizat    .62199        .48802        .51127E-03    .15676E-05
   4  Prefactor     1.2718        .29211        .22068E-03   -.32971E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 25.324
  alpha      = 2.51386
  Normalizat = 0.621994
  Prefactor  = 1.27177
 **********
 **   18 **HESSE 
 **********

 FCN=   2590.115     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .48E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.324        19.027        .31845E-05   -1.4701    
   2  alpha         2.5139        .74468        .23978E-02    .55447E-02
   3  Normalizat    .62199        .48797        .20451E-04   -1.0706    
   4  Prefactor     1.2718        .29214        .88272E-05   -.84150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.8084e-13
Minuit parameter uncertainties:
  1  19.032
  2  0.756153
  3  0.491413
  4  0.29252
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805004': 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) = 2590.11515881
delta logL = 0.0380829528203

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.532e+01  1.903e+01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.514e+00  7.562e-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.272e+00  2.925e-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.220e-01  4.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.03
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.51 +/- 0.76
Photon Flux (Free Index): 1.99e-07 +/- 1.91e-07
Energy Flux (Free Index): 5.90e-05 +/- 4.10e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/805004/cmap_HighResolution_562550401_562809601_4FGL_J1337.6-1257_daily_bin1247.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.62e-07', energy_flux2='5.90e-05', photon_flux_error='1.16e-07', dlogl='3.81e-02', energy_flux='5.84e-05', photon_flux2='1.99e-07', job_status='DONE', time_completed='2021-09-08 05:08:53.976830', photon_index_error2='0.76', photon_index2='2.51', ts='4.93', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', energy_flux_error2='4.10e-05', EG='0.64', time_epoch_completed='1631102933.98', return_code='0', job_id='805004', GAL2='1.27', EG2='0.62', return_code2='0', energy_flux_error='4.19e-05', photon_flux_error2='1.91e-07', ts2='5.03', photon_index='2.30' WHERE bin_id='1247' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:08:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 805004: <4FGL_J1337.6-1257_daily_bin1247> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1247> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 04:55:31 2021
Job was executed on host(s) <bullet0006>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:56:54 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:56:54 2021
Terminated at Wed Sep  8 05:08:54 2021
Results reported at Wed Sep  8 05:08:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1247 204.424 -12.9517 562550401 562809601 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 :                                   435.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             230.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            803 sec.

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

