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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin446
RA = 204.424, Dec = -12.9517
tmin = 354931201, tmax = 355190401
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='799227', job_status='RUN', time_executed='2021-09-08 04:40:54.686609', time_epoch_executed='1631101254.69' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='446'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799227

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799227/ft1_4FGL_J1337.6-1257_daily_bin446.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799227/ft2_4FGL_J1337.6-1257_daily_bin446.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799227/ft1_4FGL_J1337.6-1257_daily_bin446.fits outfile=/scratch/kocevski/799227/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin446.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=354931201.0 tmax=355190401.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.38
user 3.12
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799227/ft1_filtered_4FGL_J1337.6-1257_daily_bin446.fits" evtable="EVENTS" scfile=/scratch/kocevski/799227/ft2_4FGL_J1337.6-1257_daily_bin446.fits sctable="SC_DATA" outfile=/scratch/kocevski/799227/ltcube_354931201_355190401_4FGL_J1337.6-1257_daily_bin446.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/799227/ft2_4FGL_J1337.6-1257_daily_bin446.fits
.....................!
real 15.05
user 14.57
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799227/ft1_filtered_4FGL_J1337.6-1257_daily_bin446.fits evtable="EVENTS" scfile=/scratch/kocevski/799227/ft2_4FGL_J1337.6-1257_daily_bin446.fits sctable="SC_DATA" expcube=/scratch/kocevski/799227/ltcube_354931201_355190401_4FGL_J1337.6-1257_daily_bin446.fits outfile=/scratch/kocevski/799227/expmap_354931201_355190401_4FGL_J1337.6-1257_daily_bin446.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/799227/ltcube_354931201_355190401_4FGL_J1337.6-1257_daily_bin446.fits
.....................!
real 192.75
user 187.18
sys 4.89

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/799227/ft1_filtered_4FGL_J1337.6-1257_daily_bin446.fits scfile=/scratch/kocevski/799227/ft2_4FGL_J1337.6-1257_daily_bin446.fits outfile=/scratch/kocevski/799227/cmap_354931201_355190401_4FGL_J1337.6-1257_daily_bin446.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799227/ft1_filtered_4FGL_J1337.6-1257_daily_bin446.fits scfile=/scratch/kocevski/799227/ft2_4FGL_J1337.6-1257_daily_bin446.fits outfile=/scratch/kocevski/799227/cmap_HighResolution_354931201_355190401_4FGL_J1337.6-1257_daily_bin446.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/799227/ft1_filtered_4FGL_J1337.6-1257_daily_bin446.fits evtable="EVENTS" scfile=/scratch/kocevski/799227/ft2_4FGL_J1337.6-1257_daily_bin446.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799227/Model_4FGL_J1337.6-1257_daily_bin446.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/799227/ft1_filtered_4FGL_J1337.6-1257_daily_bin446.fits.....................!
real 48.42
user 46.97
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    15.136       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8216       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    19.293       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.714       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .27477E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    19.797       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10614E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .90143E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.735       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.4914       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    11.437       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0437       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0335       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=   5409.266     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2553 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    27.537       -.24919E-05** at limit **
   2  norm          .10000E-03    1.9735       -.19144E-06** at limit **
   3  norm          .10000E-03    16.304       -.12326E-05** at limit **
   4  norm          15.136        12.973       -.53490E-07    .81367E-04
   5  Prefactor     2.8226        7.3388        .10318E-06    .37324E-03
   6  Prefactor     .10000E-03    8.9873       -.25928E-06** at limit **
   7  Prefactor     .10000E-03    41.869       -.22836E-05** at limit **
   8  norm          .10000E-03    .60244       -.97512E-07** at limit **
   9  norm          .10000E-03    3.1840       -.38611E-06** at limit **
  10  norm          19.299        11.488        .68615E-06    .14014E-02
  11  Prefactor     24.725        25.742        .36821E-09   -.25480E-03
  12  Prefactor     .10001E-03    206.00        .22810E-05** at limit **
  13  norm          19.798        41.008       -.32822E-06    .63158E-05
  14  Prefactor     .10000E-03    19.811       -.79825E-06** at limit **
  15  norm          .10002E-03    50.867       -.22202E-04** at limit **
  16  Prefactor     11.737        8.7021       -.10115E-06    .58146E-03
  17  Prefactor     .10000E-03    43.078       -.14658E-05** at limit **
  18  norm          5.4914        7.5852       -.59693E-07    .21643E-03
  19  norm          .10000E-03    1.4617       -.12678E-06** at limit **
  20  norm          11.437        8.5383       -.66424E-07    .71227E-04
  21  Prefactor     .10000E-03    17.458       -.18157E-06** at limit **
  22  Normalizat    1.0439        .27103        .19589E-05    .56524E-03
  23  Prefactor     1.0335        .14313        .80299E-07    .82783E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  norm       = 0.0001
  norm       = 0.0001
  norm       = 15.1362
  Prefactor  = 2.82259
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 0.0001
  norm       = 19.2991
  Prefactor  = 24.7245
  Prefactor  = 0.000100006
  norm       = 19.7975
  Prefactor  = 0.0001
  norm       = 0.000100015
  Prefactor  = 11.7366
  Prefactor  = 0.000100001
  norm       = 5.49139
  norm       = 0.0001
  norm       = 11.4371
  Prefactor  = 0.0001
  Normalizat = 1.04385
  Prefactor  = 1.03348
 **********
 **   18 **HESSE 
 **********

 FCN=   5409.266     FROM HESSE     STATUS=OK           364 CALLS     2917 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    28.532        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.0153        .10094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    16.896        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          15.136        12.973        .10295E-03   -1.4930    
   5  Prefactor     2.8226        7.3188        .24213E-03   -1.5372    
   6  Prefactor     .10000E-03    9.1973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    42.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .61721        .55737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.8892        .23853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          19.299        10.958        .91185E-04   -1.4829    
  11  Prefactor     24.725        25.861        .80578E-04   -1.4713    
  12  Prefactor     .10001E-03    207.57        .42853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          19.798        41.015        .90019E-04   -1.4818    
  14  Prefactor     .10000E-03    20.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10002E-03    49.482        .35978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.737        8.6945        .11694E-03   -1.5023    
  17  Prefactor     .10000E-03    43.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.4914        7.5628        .17146E-03   -1.5239    
  19  norm          .10000E-03    1.4993        .17362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.437        8.5357        .11846E-03   -1.5031    
  21  Prefactor     .10000E-03    17.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0439        .31773        .35634E-03   -.91576    
  23  Prefactor     1.0335        .16753        .19088E-03   -.91622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86944e-09
Minuit parameter uncertainties:
  1  0.000581667
  2  1.90002e-05
  3  0.000177501
  4  12.9751
  5  7.32113
  6  7.00217e-05
  7  0.000758315
  8  7.41086e-06
  9  7.95406e-06
  10  10.9589
  11  25.8728
  12  0.00222959
  13  41.0735
  14  6.83741e-05
  15  0.00174649
  16  8.69546
  17  0.000506936
  18  7.56411
  19  1.464e-05
  20  8.53657
  21  7.05729e-05
  22  0.318307
  23  0.16762
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.930e+01  1.096e+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.033e+00  1.676e-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.044e+00  3.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.33
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.17e-07 +/- 6.67e-08
Energy Flux (Fixed Index): 4.23e-05 +/- 2.40e-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) = 5406.37727441
delta logL = 2.88883682855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5406.35920948
delta logL = 2.90690175762

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3115       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.2174       1.0000          .0000       5.0000    
     3 'Normalizat'    .74223       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1491       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=   5406.359     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      263 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3062        15.831        .55615E-02    .21322E-03
   2  alpha         4.2184        4.2088        .18705        .26197E-04
   3  Normalizat    .74211        .12880        .93179E-01    .23122E-05
   4  Prefactor     1.1492        .70130E-01    .35962E-01   -.37778E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.30619
  alpha      = 4.21842
  Normalizat = 0.742105
  Prefactor  = 1.14918
 **********
 **   18 **HESSE 
 **********

 FCN=   5406.359     FROM HESSE     STATUS=OK            31 CALLS      294 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3062        7.9059        .44303E-04   -1.5344    
   2  alpha         4.2184        1.3241        .83770E-03    .75786    
   3  Normalizat    .74211        .33550        .41281E-03   -1.0225    
   4  Prefactor     1.1492        .17905        .18197E-03   -.87910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34247e-11
Minuit parameter uncertainties:
  1  7.9084
  2  1.48377
  3  0.336434
  4  0.179149
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799227': 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) = 5406.35920913
delta logL = 2.90690211212

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  3.306e+00  7.908e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  4.218e+00  1.484e+00  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.149e+00  1.791e-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.421e-01  3.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.26
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 4.22 +/- 1.48
Photon Flux (Free Index): 3.44e-07 +/- 1.29e-07
Energy Flux (Free Index): 5.25e-05 +/- 2.02e-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/799227/cmap_HighResolution_354931201_355190401_4FGL_J1337.6-1257_daily_bin446.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.17e-07', energy_flux2='5.25e-05', photon_flux_error='6.67e-08', dlogl='2.91e+00', energy_flux='4.23e-05', photon_flux2='3.44e-07', job_status='DONE', time_completed='2021-09-08 04:50:06.406924', photon_index_error2='1.48', photon_index2='4.22', ts='6.33', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='2.02e-05', EG='1.04', time_epoch_completed='1631101806.41', return_code='0', job_id='799227', GAL2='1.15', EG2='0.74', return_code2='0', energy_flux_error='2.40e-05', photon_flux_error2='1.29e-07', ts2='13.26', photon_index='2.30' WHERE bin_id='446' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:50:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 799227: <4FGL_J1337.6-1257_daily_bin446> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin446 204.424 -12.9517 354931201 355190401 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 :                                   547.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   566 sec.
    Turnaround time :                            575 sec.

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

