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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1522
RA = 204.424, Dec = -12.9517
tmin = 633830401, tmax = 634089601
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='805391', job_status='RUN', time_executed='2021-09-08 04:57:51.189847', time_epoch_executed='1631102271.19' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1522'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805391

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805391/ft1_4FGL_J1337.6-1257_daily_bin1522.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805391/ft2_4FGL_J1337.6-1257_daily_bin1522.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805391/ft1_4FGL_J1337.6-1257_daily_bin1522.fits outfile=/scratch/kocevski/805391/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1522.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=633830401.0 tmax=634089601.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.78
user 3.44
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805391/ft1_filtered_4FGL_J1337.6-1257_daily_bin1522.fits" evtable="EVENTS" scfile=/scratch/kocevski/805391/ft2_4FGL_J1337.6-1257_daily_bin1522.fits sctable="SC_DATA" outfile=/scratch/kocevski/805391/ltcube_633830401_634089601_4FGL_J1337.6-1257_daily_bin1522.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/805391/ft2_4FGL_J1337.6-1257_daily_bin1522.fits
.....................!
real 17.02
user 16.59
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805391/ft1_filtered_4FGL_J1337.6-1257_daily_bin1522.fits evtable="EVENTS" scfile=/scratch/kocevski/805391/ft2_4FGL_J1337.6-1257_daily_bin1522.fits sctable="SC_DATA" expcube=/scratch/kocevski/805391/ltcube_633830401_634089601_4FGL_J1337.6-1257_daily_bin1522.fits outfile=/scratch/kocevski/805391/expmap_633830401_634089601_4FGL_J1337.6-1257_daily_bin1522.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/805391/ltcube_633830401_634089601_4FGL_J1337.6-1257_daily_bin1522.fits
.....................!
real 192.62
user 186.50
sys 5.45

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/805391/ft1_filtered_4FGL_J1337.6-1257_daily_bin1522.fits scfile=/scratch/kocevski/805391/ft2_4FGL_J1337.6-1257_daily_bin1522.fits outfile=/scratch/kocevski/805391/cmap_633830401_634089601_4FGL_J1337.6-1257_daily_bin1522.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805391/ft1_filtered_4FGL_J1337.6-1257_daily_bin1522.fits scfile=/scratch/kocevski/805391/ft2_4FGL_J1337.6-1257_daily_bin1522.fits outfile=/scratch/kocevski/805391/cmap_HighResolution_633830401_634089601_4FGL_J1337.6-1257_daily_bin1522.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805391/ft1_filtered_4FGL_J1337.6-1257_daily_bin1522.fits evtable="EVENTS" scfile=/scratch/kocevski/805391/ft2_4FGL_J1337.6-1257_daily_bin1522.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805391/Model_4FGL_J1337.6-1257_daily_bin1522.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/805391/ft1_filtered_4FGL_J1337.6-1257_daily_bin1522.fits.....................!
real 61.90
user 60.41
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .90000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.0236       1.0000         .10000E-03   10000.    
     3 'norm      '    .11064       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6286       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12051E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.9512       1.0000         .10000E-03   10000.    
     9 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.532       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.873       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10415E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.5680       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.5821       1.0000         .10000E-03   10000.    
    19 'norm      '    17.830       1.0000         .10000E-03   10000.    
    20 'norm      '    .32949E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6749       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83671       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=   7561.022     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2254 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.2195        .25748E-06** at limit **
   2  norm          3.0236        2.4165        .73261E-07   -.61540E-04
   3  norm          .21802        11.377        .58058E-06   -.14585E-03
   4  norm          .10000E-03    8.3681       -.10517E-05** at limit **
   5  Prefactor     4.6287        4.6739        .31310E-05    .19707E-03
   6  Prefactor     .10000E-03    11.240       -.28312E-05** at limit **
   7  Prefactor     .10000E-03    9.6424        .51967E-06** at limit **
   8  norm          2.9505        2.0685        .12398E-06   -.58577E-03
   9  norm          .10000E-03    2.5143        .16126E-07** at limit **
  10  norm          11.536        7.1813        .26608E-06   -.10217E-03
  11  Prefactor     .10000E-03    5.2851       -.38964E-07** at limit **
  12  Prefactor     12.863        28.743        .26862E-04   -.63273E-04
  13  norm          .10000E-03    9.3390        .21977E-05** at limit **
  14  Prefactor     .10000E-03    17.733        .11423E-04** at limit **
  15  norm          8.5691        5.6211        .41340E-07   -.24925E-03
  16  Prefactor     .10000E-03    1.6338        .20089E-07** at limit **
  17  Prefactor     .10000E-03    21.167       -.15289E-04** at limit **
  18  norm          2.5827        5.5298       -.50133E-06   -.48331E-03
  19  norm          17.836        4.6631        .42185E-06   -.95938E-03
  20  norm          .10037E-03    4.2498        .18623E-05** at limit **
  21  Prefactor     .10000E-03    19.299       -.21433E-05** at limit **
  22  Normalizat    1.6745        .25259       -.13407E-05   -.28350E-03
  23  Prefactor     .83682        .12394       -.15957E-05   -.33967E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.02359
  norm       = 0.21802
  norm       = 0.0001
  Prefactor  = 4.62875
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.95053
  norm       = 0.0001
  norm       = 11.5358
  Prefactor  = 0.0001
  Prefactor  = 12.8625
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 8.56906
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.58272
  norm       = 17.836
  norm       = 0.000100368
  Prefactor  = 0.0001
  Normalizat = 1.67445
  Prefactor  = 0.83682
 **********
 **   18 **HESSE 
 **********

 FCN=   7561.022     FROM HESSE     STATUS=OK           378 CALLS     2632 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    24.565        .34707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.0236        2.4210        .11731E-03   -1.5360    
   3  norm          .21802        14.579        .81594E-01   -1.5615    
   4  norm          .10000E-03    8.4042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.6287        4.6988        .18482E-03   -1.5278    
   6  Prefactor     .10000E-03    11.607        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.6710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9505        2.0805        .96741E-04   -1.5364    
   9  norm          .10000E-03    2.5635        .26817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.536        7.1620        .11797E-03   -1.5029    
  11  Prefactor     .10000E-03    5.2968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.863        28.594        .11164E-03   -1.4991    
  13  norm          .10000E-03    9.3403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.935        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.5691        5.6207        .13695E-03   -1.5122    
  16  Prefactor     .10000E-03    1.6393        .10850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.5827        5.5112        .25397E-03   -1.5387    
  19  norm          17.836        4.6099        .89444E-04   -1.4863    
  20  norm          .10037E-03    30.679        .33904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.6745        .29886        .32412E-03   -.72987    
  23  Prefactor     .83682        .14550        .22476E-03   -.98385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22497e-08
Minuit parameter uncertainties:
  1  0.000152675
  2  2.42108
  3  3.5658
  4  1.56931e-05
  5  4.69916
  6  6.31574e-05
  7  1.41098e-06
  8  2.08051
  9  1.9545e-07
  10  7.16253
  11  1.99816e-05
  12  28.6243
  13  1.36127e-06
  14  0.000361005
  15  5.62104
  16  3.29347e-06
  17  3.16707e-05
  18  5.51229
  19  4.61002
  20  0.00672804
  21  1.84303e-05
  22  0.299178
  23  0.145565
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.154e+01  7.163e+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:  8.368e-01  1.456e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.674e+00  2.992e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.89
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 7.02e-08 +/- 4.36e-08
Energy Flux (Fixed Index): 2.53e-05 +/- 1.57e-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) = 7560.81309831
delta logL = 0.20904895544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7560.79446723
delta logL = 0.227680036191

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.294       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6497       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7191       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82509       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=   7560.794     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      233 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.292        8.5802        .12488E-03   -.98580E-03
   2  alpha         1.6496        .82771        .19631E-01    .90157E-04
   3  Normalizat    1.7190        .27555        .32071E-03    .83310E-03
   4  Prefactor     .82512        .14103        .22614E-03    .97960E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.2918
  alpha      = 1.64958
  Normalizat = 1.71901
  Prefactor  = 0.825117
 **********
 **   18 **HESSE 
 **********

 FCN=   7560.794     FROM HESSE     STATUS=OK            25 CALLS      258 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.292        8.8773        .24977E-04   -1.5066    
   2  alpha         1.6496        .85509        .78524E-03   -.34709    
   3  Normalizat    1.7190        .27583        .64142E-04   -.71797    
   4  Prefactor     .82512        .14112        .45228E-04   -.98809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73462e-09
Minuit parameter uncertainties:
  1  8.87844
  2  0.875168
  3  0.276076
  4  0.141185
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805391': 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) = 7560.79446718
delta logL = 0.227680093668

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.029e+01  8.878e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.650e+00  8.752e-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:  8.251e-01  1.412e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.719e+00  2.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.35
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 1.65 +/- 0.88
Photon Flux (Free Index): 3.42e-08 +/- 4.37e-08
Energy Flux (Free Index): 3.24e-05 +/- 2.90e-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/805391/cmap_HighResolution_633830401_634089601_4FGL_J1337.6-1257_daily_bin1522.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.02e-08', energy_flux2='3.24e-05', photon_flux_error='4.36e-08', dlogl='2.28e-01', energy_flux='2.53e-05', photon_flux2='3.42e-08', job_status='DONE', time_completed='2021-09-08 05:08:39.547575', photon_index_error2='0.88', photon_index2='1.65', ts='4.89', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='2.90e-05', EG='1.67', time_epoch_completed='1631102919.55', return_code='0', job_id='805391', GAL2='0.83', EG2='1.72', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='4.37e-08', ts2='5.35', photon_index='2.30' WHERE bin_id='1522' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:08:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 805391: <4FGL_J1337.6-1257_daily_bin1522> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1522 204.424 -12.9517 633830401 634089601 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 :                                   621.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             372.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   662 sec.
    Turnaround time :                            767 sec.

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

