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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin552
RA = 204.424, Dec = -12.9517
tmin = 382406401, tmax = 382665601
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='799409', job_status='RUN', time_executed='2021-09-08 04:44:36.970916', time_epoch_executed='1631101476.97' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='552'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799409

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799409/ft1_4FGL_J1337.6-1257_daily_bin552.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799409/ft2_4FGL_J1337.6-1257_daily_bin552.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799409/ft1_4FGL_J1337.6-1257_daily_bin552.fits outfile=/scratch/kocevski/799409/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin552.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=382406401.0 tmax=382665601.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 4.76
user 4.51
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/799409/ft2_4FGL_J1337.6-1257_daily_bin552.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/799409/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin552.fits evtable="EVENTS" outfile="/scratch/kocevski/799409/ft1_filtered_4FGL_J1337.6-1257_daily_bin552.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.52
user 0.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799409/ft1_filtered_4FGL_J1337.6-1257_daily_bin552.fits" evtable="EVENTS" scfile=/scratch/kocevski/799409/ft2_4FGL_J1337.6-1257_daily_bin552.fits sctable="SC_DATA" outfile=/scratch/kocevski/799409/ltcube_382406401_382665601_4FGL_J1337.6-1257_daily_bin552.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/799409/ft2_4FGL_J1337.6-1257_daily_bin552.fits
.....................!
real 14.54
user 14.18
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799409/ft1_filtered_4FGL_J1337.6-1257_daily_bin552.fits evtable="EVENTS" scfile=/scratch/kocevski/799409/ft2_4FGL_J1337.6-1257_daily_bin552.fits sctable="SC_DATA" expcube=/scratch/kocevski/799409/ltcube_382406401_382665601_4FGL_J1337.6-1257_daily_bin552.fits outfile=/scratch/kocevski/799409/expmap_382406401_382665601_4FGL_J1337.6-1257_daily_bin552.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/799409/ltcube_382406401_382665601_4FGL_J1337.6-1257_daily_bin552.fits
.....................!
real 194.24
user 189.16
sys 4.36

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/799409/ft1_filtered_4FGL_J1337.6-1257_daily_bin552.fits scfile=/scratch/kocevski/799409/ft2_4FGL_J1337.6-1257_daily_bin552.fits outfile=/scratch/kocevski/799409/cmap_382406401_382665601_4FGL_J1337.6-1257_daily_bin552.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799409/ft1_filtered_4FGL_J1337.6-1257_daily_bin552.fits scfile=/scratch/kocevski/799409/ft2_4FGL_J1337.6-1257_daily_bin552.fits outfile=/scratch/kocevski/799409/cmap_HighResolution_382406401_382665601_4FGL_J1337.6-1257_daily_bin552.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.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/799409/ft1_filtered_4FGL_J1337.6-1257_daily_bin552.fits evtable="EVENTS" scfile=/scratch/kocevski/799409/ft2_4FGL_J1337.6-1257_daily_bin552.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799409/Model_4FGL_J1337.6-1257_daily_bin552.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/799409/ft1_filtered_4FGL_J1337.6-1257_daily_bin552.fits.....................!
real 50.86
user 49.48
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8833       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8056       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.358       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.431       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11016E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .98519       1.0000         .10000E-03   10000.    
     9 'norm      '    2.0153       1.0000         .10000E-03   10000.    
    10 'norm      '    17.368       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.791       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11687E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9000       1.0000         .10000E-03   10000.    
    15 'norm      '    3.3424       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.1210       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10524E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .24740E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.3864       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.0277       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0085       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0154       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=   5992.301     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2540 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8831        10.020       -.75192E-06   -.19736E-04
   2  norm          1.8058        2.4998       -.19844E-06   -.32459E-03
   3  norm          .10000E-03    12.001        .93598E-07** at limit **
   4  norm          .10000E-03    3.7126        .73315E-07** at limit **
   5  Prefactor     11.361        13.864       -.45619E-06   -.26993E-04
   6  Prefactor     21.422        13.338       -.10596E-06   -.22193E-04
   7  Prefactor     .10000E-03    25.352        .64212E-05** at limit **
   8  norm          .98503        1.1487       -.54344E-07   -.24647E-03
   9  norm          2.0133        3.3267       -.29354E-06   -.75783E-03
  10  norm          17.371        7.9486       -.39833E-06    .23958E-03
  11  Prefactor     24.815        21.453        .13428E-04   -.42891E-03
  12  Prefactor     .10001E-03    37.212        .99976E-05** at limit **
  13  norm          .10001E-03    28.668       -.75329E-05** at limit **
  14  Prefactor     1.8736        38.049       -.33975E-04   -.16745E-03
  15  norm          3.3430        4.3138       -.10706E-05    .27620E-03
  16  Prefactor     4.1172        4.3546       -.21243E-06    .40854E-03
  17  Prefactor     .10000E-03    54.198        .19039E-05** at limit **
  18  norm          .10014E-03    4.8536       -.11386E-05** at limit **
  19  norm          .10000E-03    1.1939        .16083E-07** at limit **
  20  norm          6.3863        7.5004        .70014E-06   -.19568E-03
  21  Prefactor     5.0262        36.428       -.37142E-05    .22457E-04
  22  Normalizat    1.0085        .26608        .17413E-05    .28036E-03
  23  Prefactor     1.0154        .13516        .12754E-06    .52941E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.88314
  norm       = 1.80575
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.3607
  Prefactor  = 21.4218
  Prefactor  = 0.000100004
  norm       = 0.985031
  norm       = 2.01327
  norm       = 17.3705
  Prefactor  = 24.8154
  Prefactor  = 0.000100007
  norm       = 0.000100006
  Prefactor  = 1.87362
  norm       = 3.34297
  Prefactor  = 4.11724
  Prefactor  = 0.0001
  norm       = 0.000100139
  norm       = 0.0001
  norm       = 6.38634
  Prefactor  = 5.0262
  Normalizat = 1.00851
  Prefactor  = 1.01538
 **********
 **   18 **HESSE 
 **********

 FCN=   5992.301     FROM HESSE     STATUS=OK           374 CALLS     2914 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8831        10.017        .15292E-03   -1.5183    
   2  norm          1.8058        2.4833        .13959E-03   -1.5439    
   3  norm          .10000E-03    12.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.7142        .14567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.361        13.836        .11887E-03   -1.5034    
   6  Prefactor     21.422        13.399        .86522E-04   -1.4782    
   7  Prefactor     .10000E-03    25.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .98503        1.1180        .85825E-04   -1.5509    
   9  norm          2.0133        3.2791        .16813E-03   -1.5424    
  10  norm          17.371        7.9122        .96105E-04   -1.4874    
  11  Prefactor     24.815        21.606        .80453E-04   -1.4711    
  12  Prefactor     .10001E-03    37.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    28.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.8736        40.719        .30174E-03   -1.5434    
  15  norm          3.3430        4.3046        .17558E-03   -1.5342    
  16  Prefactor     4.1172        4.2461        .15557E-03   -1.5302    
  17  Prefactor     .10000E-03    54.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10014E-03    30.388        .31598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.2064        .82532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.3863        7.4735        .15882E-03   -1.5202    
  21  Prefactor     5.0262        36.327        .17934E-03   -1.5260    
  22  Normalizat    1.0085        .30718        .36011E-03   -.92746    
  23  Prefactor     1.0154        .15851        .19213E-03   -.92219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.41921e-09
Minuit parameter uncertainties:
  1  10.0198
  2  2.48342
  3  2.9801e-05
  4  3.78066e-06
  5  13.8398
  6  13.4004
  7  0.000655421
  8  1.11799
  9  3.27941
  10  7.9127
  11  21.6129
  12  0.000993524
  13  0.000818828
  14  17.482
  15  4.30502
  16  4.24645
  17  0.000274069
  18  0.00410663
  19  2.20125e-06
  20  7.47456
  21  27.0478
  22  0.307722
  23  0.15858
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.737e+01  7.913e+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.015e+00  1.586e-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.009e+00  3.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.11
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.06e-07 +/- 4.82e-08
Energy Flux (Fixed Index): 3.81e-05 +/- 1.74e-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) = 5992.13711037
delta logL = 0.164230478418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5992.13686004
delta logL = 0.164480807186

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.588       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0657       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0237       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0098       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=   5992.137     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      283 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.586        9.1534        .90497E-04    .65074E-04
   2  alpha         2.0657        .40698        .11067E-01    .11462E-04
   3  Normalizat    1.0236        .28715        .35782E-03    .12452E-03
   4  Prefactor     1.0098        .15451        .19258E-03    .21215E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.5865
  alpha      = 2.06572
  Normalizat = 1.02364
  Prefactor  = 1.00983
 **********
 **   18 **HESSE 
 **********

 FCN=   5992.137     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.586        9.0889        .36199E-05   -1.4823    
   2  alpha         2.0657        .40408        .44266E-03   -.17460    
   3  Normalizat    1.0236        .28732        .14313E-04   -.92243    
   4  Prefactor     1.0098        .15461        .38516E-04   -.92403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5452e-11
Minuit parameter uncertainties:
  1  9.08949
  2  0.405919
  3  0.287759
  4  0.154675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799409': 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) = 5992.13685986
delta logL = 0.164480979749

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.959e+01  9.089e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.066e+00  4.059e-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.010e+00  1.547e-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.024e+00  2.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.42
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.07 +/- 0.41
Photon Flux (Free Index): 9.19e-08 +/- 4.78e-08
Energy Flux (Free Index): 4.40e-05 +/- 2.29e-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/799409/cmap_HighResolution_382406401_382665601_4FGL_J1337.6-1257_daily_bin552.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.06e-07', energy_flux2='4.40e-05', photon_flux_error='4.82e-08', dlogl='1.64e-01', energy_flux='3.81e-05', photon_flux2='9.19e-08', job_status='DONE', time_completed='2021-09-08 04:54:20.659538', photon_index_error2='0.41', photon_index2='2.07', ts='12.11', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.29e-05', EG='1.01', time_epoch_completed='1631102060.66', return_code='0', job_id='799409', GAL2='1.01', EG2='1.02', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='4.78e-08', ts2='12.42', photon_index='2.30' WHERE bin_id='552' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:54:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 799409: <4FGL_J1337.6-1257_daily_bin552> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin552 204.424 -12.9517 382406401 382665601 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 :                                   580.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            814 sec.

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

