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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin362
RA = 204.424, Dec = -12.9517
tmin = 333158401, tmax = 333417601
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='797809', job_status='RUN', time_executed='2021-09-08 04:37:41.861698', time_epoch_executed='1631101061.86' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/797809

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/797809/ft1_4FGL_J1337.6-1257_daily_bin362.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/797809/ft2_4FGL_J1337.6-1257_daily_bin362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/797809/ft1_4FGL_J1337.6-1257_daily_bin362.fits outfile=/scratch/kocevski/797809/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin362.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=333158401.0 tmax=333417601.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 6.25
user 5.96
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/797809/ft2_4FGL_J1337.6-1257_daily_bin362.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/797809/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin362.fits evtable="EVENTS" outfile="/scratch/kocevski/797809/ft1_filtered_4FGL_J1337.6-1257_daily_bin362.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.64
user 0.36
sys 0.25

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/797809/ft1_filtered_4FGL_J1337.6-1257_daily_bin362.fits" evtable="EVENTS" scfile=/scratch/kocevski/797809/ft2_4FGL_J1337.6-1257_daily_bin362.fits sctable="SC_DATA" outfile=/scratch/kocevski/797809/ltcube_333158401_333417601_4FGL_J1337.6-1257_daily_bin362.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/797809/ft2_4FGL_J1337.6-1257_daily_bin362.fits
.....................!
real 18.44
user 17.94
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/797809/ft1_filtered_4FGL_J1337.6-1257_daily_bin362.fits evtable="EVENTS" scfile=/scratch/kocevski/797809/ft2_4FGL_J1337.6-1257_daily_bin362.fits sctable="SC_DATA" expcube=/scratch/kocevski/797809/ltcube_333158401_333417601_4FGL_J1337.6-1257_daily_bin362.fits outfile=/scratch/kocevski/797809/expmap_333158401_333417601_4FGL_J1337.6-1257_daily_bin362.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/797809/ltcube_333158401_333417601_4FGL_J1337.6-1257_daily_bin362.fits
.....................!
real 194.74
user 189.03
sys 5.09

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/797809/ft1_filtered_4FGL_J1337.6-1257_daily_bin362.fits scfile=/scratch/kocevski/797809/ft2_4FGL_J1337.6-1257_daily_bin362.fits outfile=/scratch/kocevski/797809/cmap_333158401_333417601_4FGL_J1337.6-1257_daily_bin362.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.60
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/797809/ft1_filtered_4FGL_J1337.6-1257_daily_bin362.fits scfile=/scratch/kocevski/797809/ft2_4FGL_J1337.6-1257_daily_bin362.fits outfile=/scratch/kocevski/797809/cmap_HighResolution_333158401_333417601_4FGL_J1337.6-1257_daily_bin362.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.60
user 0.43
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/797809/ft1_filtered_4FGL_J1337.6-1257_daily_bin362.fits evtable="EVENTS" scfile=/scratch/kocevski/797809/ft2_4FGL_J1337.6-1257_daily_bin362.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/797809/Model_4FGL_J1337.6-1257_daily_bin362.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/797809/ft1_filtered_4FGL_J1337.6-1257_daily_bin362.fits.....................!
real 60.34
user 58.78
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0078       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0410       1.0000         .10000E-03   10000.    
     3 'norm      '    2.6816       1.0000         .10000E-03   10000.    
     4 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .73230E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.860       1.0000         .10000E-03   10000.    
     8 'norm      '    3.3963       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    14.488       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.4977       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16123E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    47.165       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .62974       1.0000         .10000E-03   10000.    
    15 'norm      '    6.2823       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .18007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.4045       1.0000         .10000E-03   10000.    
    19 'norm      '    .11323E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1336       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0501       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=   7042.855     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     3010 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0172        8.3781        .66153E-06   -.14182E-03
   2  norm          2.0410        1.9899        .10296E-06    .19078E-03
   3  norm          2.7311        21.231        .50952E-04   -.11054E-03
   4  norm          .10000E-03    3.0739        .14466E-07** at limit **
   5  Prefactor     .10000E-03    18.147        .33072E-05** at limit **
   6  Prefactor     .10000E-03    7.1033       -.58561E-06** at limit **
   7  Prefactor     20.841        18.471       -.29737E-06   -.10086E-03
   8  norm          3.3958        1.9496       -.63364E-06   -.12695E-02
   9  norm          .10000E-03    2.6046        .17005E-06** at limit **
  10  norm          14.489        8.4407       -.10700E-06   -.14631E-03
  11  Prefactor     8.5172        17.962       -.52420E-05   -.16599E-03
  12  Prefactor     .10000E-03    6.5231        .48669E-06** at limit **
  13  norm          46.855        34.635       -.56406E-05   -.63913E-05
  14  Prefactor     .57874        12.152        .62163E-06    .27400E-03
  15  norm          6.2804        5.5662        .70090E-06   -.22896E-03
  16  Prefactor     .10000E-03    2.5229        .27266E-06** at limit **
  17  Prefactor     .10000E-03    72.324        .24270E-04** at limit **
  18  norm          2.4056        6.1772       -.55030E-05   -.62500E-03
  19  norm          .10008E-03    1.1275        .63516E-06** at limit **
  20  norm          .10000E-03    3.8813        .41052E-07** at limit **
  21  Prefactor     .10000E-03    6.1969       -.13009E-06** at limit **
  22  Normalizat    1.1336        .25053       -.38029E-05   -.37201E-03
  23  Prefactor     1.0501        .12756        .58095E-06   -.78357E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.01716
  norm       = 2.04099
  norm       = 2.73109
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.8408
  norm       = 3.39578
  norm       = 0.0001
  norm       = 14.4887
  Prefactor  = 8.51723
  Prefactor  = 0.0001
  norm       = 46.8546
  Prefactor  = 0.578737
  norm       = 6.28036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.40559
  norm       = 0.000100077
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13357
  Prefactor  = 1.05015
 **********
 **   18 **HESSE 
 **********

 FCN=   7042.855     FROM HESSE     STATUS=OK           372 CALLS     3382 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0172        8.3681        .17970E-03   -1.5260    
   2  norm          2.0410        2.0007        .11377E-03   -1.5422    
   3  norm          2.7311        20.610        .24883E-03   -1.5377    
   4  norm          .10000E-03    3.0743        .14370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.612        .41908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.1592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.841        18.449        .87697E-04   -1.4795    
   8  norm          3.3958        1.9525        .83629E-04   -1.5339    
   9  norm          .10000E-03    2.6225        .13167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.489        8.4237        .10523E-03   -1.4947    
  11  Prefactor     8.5172        18.233        .13752E-03   -1.5124    
  12  Prefactor     .10000E-03    6.5258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          46.855        34.625        .58385E-04   -1.4338    
  14  Prefactor     .57874        57.240        .43884E-02   -1.5556    
  15  norm          6.2804        5.5584        .16015E-03   -1.5207    
  16  Prefactor     .10000E-03    2.5412        .13003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    72.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.4056        6.2091        .26404E-03   -1.5398    
  19  norm          .10008E-03    26.129        .17081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.8992        .16143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.2040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1336        .28786        .35899E-03   -.88681    
  23  Prefactor     1.0501        .14845        .19646E-03   -.91076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.39501e-09
Minuit parameter uncertainties:
  1  8.37006
  2  2.00078
  3  15.012
  4  1.84918e-05
  5  2.92091e-05
  6  1.72988e-05
  7  18.4541
  8  1.95253
  9  1.63223e-05
  10  8.42437
  11  18.2451
  12  8.14038e-06
  13  34.64
  14  11.5216
  15  5.55882
  16  4.33199e-05
  17  6.86578e-05
  18  6.21081
  19  0.00284719
  20  4.85922e-06
  21  6.81099e-06
  22  0.288259
  23  0.14851
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.449e+01  8.424e+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.050e+00  1.485e-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.134e+00  2.883e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.43
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 8.82e-08 +/- 5.13e-08
Energy Flux (Fixed Index): 3.18e-05 +/- 1.85e-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) = 7042.7180196
delta logL = 0.13666101441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7042.7148661
delta logL = 0.139814516392

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.116       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9681       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1614       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0438       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=   7042.715     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      207 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.116        35.717        .26652E-02    .11501E-02
   2  alpha         1.9681        1.8356        .42395       -.75064E-05
   3  Normalizat    1.1614        .28583        .80282E-01    .17051E-04
   4  Prefactor     1.0438        .13796        .40288E-01    .21991E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 14.116
  alpha      = 1.96806
  Normalizat = 1.16138
  Prefactor  = 1.04379
 **********
 **   18 **HESSE 
 **********

 FCN=   7042.715     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.116        9.2757        .10661E-03   -1.4956    
   2  alpha         1.9681        .65546        .16311E-01   -.21442    
   3  Normalizat    1.1614        .27851        .35540E-03   -.87805    
   4  Prefactor     1.0438        .14636        .19707E-03   -.91284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.75291e-10
Minuit parameter uncertainties:
  1  9.27662
  2  0.663593
  3  0.278861
  4  0.146411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/797809': 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) = 7042.71486609
delta logL = 0.139814518755

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.412e+01  9.277e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.968e+00  6.636e-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.044e+00  1.464e-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.161e+00  2.789e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.72
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 1.97 +/- 0.66
Photon Flux (Free Index): 6.02e-08 +/- 6.30e-08
Energy Flux (Free Index): 3.31e-05 +/- 2.09e-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/797809/cmap_HighResolution_333158401_333417601_4FGL_J1337.6-1257_daily_bin362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.82e-08', energy_flux2='3.31e-05', photon_flux_error='5.13e-08', dlogl='1.40e-01', energy_flux='3.18e-05', photon_flux2='6.02e-08', job_status='DONE', time_completed='2021-09-08 04:48:50.972055', photon_index_error2='0.66', photon_index2='1.97', ts='9.43', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='2.09e-05', EG='1.13', time_epoch_completed='1631101730.97', return_code='0', job_id='797809', GAL2='1.04', EG2='1.16', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='6.30e-08', ts2='9.72', photon_index='2.30' WHERE bin_id='362' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:48:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 797809: <4FGL_J1337.6-1257_daily_bin362> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin362> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 04:35:30 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:37:10 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:37:10 2021
Terminated at Wed Sep  8 04:48:51 2021
Results reported at Wed Sep  8 04:48:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin362 204.424 -12.9517 333158401 333417601 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 :                                   662.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            801 sec.

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

