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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1316
RA = 204.424, Dec = -12.9517
tmin = 580435201, tmax = 580694401
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='805101', job_status='RUN', time_executed='2021-09-08 04:58:56.065717', time_epoch_executed='1631102336.07' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1316'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805101

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805101/ft1_4FGL_J1337.6-1257_daily_bin1316.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805101/ft2_4FGL_J1337.6-1257_daily_bin1316.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805101/ft1_4FGL_J1337.6-1257_daily_bin1316.fits outfile=/scratch/kocevski/805101/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1316.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=580435201.0 tmax=580694401.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.11
user 2.86
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805101/ft1_filtered_4FGL_J1337.6-1257_daily_bin1316.fits" evtable="EVENTS" scfile=/scratch/kocevski/805101/ft2_4FGL_J1337.6-1257_daily_bin1316.fits sctable="SC_DATA" outfile=/scratch/kocevski/805101/ltcube_580435201_580694401_4FGL_J1337.6-1257_daily_bin1316.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/805101/ft2_4FGL_J1337.6-1257_daily_bin1316.fits
.....................!
real 14.76
user 14.32
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805101/ft1_filtered_4FGL_J1337.6-1257_daily_bin1316.fits evtable="EVENTS" scfile=/scratch/kocevski/805101/ft2_4FGL_J1337.6-1257_daily_bin1316.fits sctable="SC_DATA" expcube=/scratch/kocevski/805101/ltcube_580435201_580694401_4FGL_J1337.6-1257_daily_bin1316.fits outfile=/scratch/kocevski/805101/expmap_580435201_580694401_4FGL_J1337.6-1257_daily_bin1316.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/805101/ltcube_580435201_580694401_4FGL_J1337.6-1257_daily_bin1316.fits
.....................!
real 190.87
user 185.92
sys 4.27

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/805101/ft1_filtered_4FGL_J1337.6-1257_daily_bin1316.fits scfile=/scratch/kocevski/805101/ft2_4FGL_J1337.6-1257_daily_bin1316.fits outfile=/scratch/kocevski/805101/cmap_580435201_580694401_4FGL_J1337.6-1257_daily_bin1316.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.39
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.1306       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .69510       1.0000         .10000E-03   10000.    
     8 'norm      '    2.5635       1.0000         .10000E-03   10000.    
     9 'norm      '    .10912E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    22.461       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    61.041       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.4976       1.0000         .10000E-03   10000.    
    17 'Prefactor '    60.029       1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    62.938       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.766       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .96293       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99402       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=   5840.599     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2537 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    23.562       -.42848E-05** at limit **
   2  norm          .10000E-03    2.4054       -.29044E-07** at limit **
   3  norm          7.1301        9.7831       -.67778E-06   -.69760E-04
   4  norm          .10000E-03    2.8991       -.42889E-08** at limit **
   5  Prefactor     .10000E-03    20.793       -.75750E-05** at limit **
   6  Prefactor     .10000E-03    3.2951        .10578E-07** at limit **
   7  Prefactor     .57597        13.068       -.20310E-05    .14883E-03
   8  norm          2.5635        1.7605       -.16902E-06   -.37830E-03
   9  norm          .10000E-03    3.5271        .18483E-06** at limit **
  10  norm          22.483        11.681        .34059E-06    .36346E-03
  11  Prefactor     .10000E-03    18.755        .49098E-05** at limit **
  12  Prefactor     61.036        46.320       -.51804E-05    .80092E-06
  13  norm          .10000E-03    26.827        .87647E-05** at limit **
  14  Prefactor     .10000E-03    5.0650       -.40283E-06** at limit **
  15  norm          .10000E-03    2.4797        .70449E-07** at limit **
  16  Prefactor     7.4950        8.5814        .16873E-05   -.22893E-04
  17  Prefactor     60.014        68.420       -.18549E-04    .16469E-04
  18  norm          .10000E-03    5.1608        .37877E-06** at limit **
  19  norm          .10000E-03    1.1248       -.76244E-08** at limit **
  20  norm          62.937        17.810       -.38749E-06    .12455E-04
  21  Prefactor     22.764        26.581       -.13968E-05    .16142E-05
  22  Normalizat    .96281        .26282       -.27922E-07    .20778E-03
  23  Prefactor     .99412        .13601        .15346E-05    .15346E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.13014
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.575972
  norm       = 2.56349
  norm       = 0.0001
  norm       = 22.4831
  Prefactor  = 0.0001
  Prefactor  = 61.0358
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.49505
  Prefactor  = 60.0135
  norm       = 0.0001
  norm       = 0.0001
  norm       = 62.9374
  Prefactor  = 22.7644
  Normalizat = 0.96281
  Prefactor  = 0.994116
 **********
 **   18 **HESSE 
 **********

 FCN=   5840.599     FROM HESSE     STATUS=OK           364 CALLS     2901 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    24.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.4681        .23140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.1301        9.8040        .15022E-03   -1.5174    
   4  norm          .10000E-03    2.9006        .12708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.347        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.3056        .13544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .57597        91.580        .46171E-02   -1.5556    
   8  norm          2.5635        1.7655        .77344E-04   -1.5388    
   9  norm          .10000E-03    7.1562        .24682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          22.483        11.446        .84517E-04   -1.4759    
  11  Prefactor     .10000E-03    18.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     61.036        46.383        .51356E-04   -1.4144    
  13  norm          .10000E-03    26.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.0699        .16797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.4979        .11752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.4950        8.5512        .14647E-03   -1.5160    
  17  Prefactor     60.014        68.532        .51785E-04   -1.4157    
  18  norm          .10000E-03    5.1795        .16934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.1327        .79098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          62.937        17.812        .50581E-04   -1.4120    
  21  Prefactor     22.764        26.582        .83950E-04   -1.4753    
  22  Normalizat    .96281        .29919        .37286E-03   -.94287    
  23  Prefactor     .99412        .15562        .20130E-03   -.92926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25612e-09
Minuit parameter uncertainties:
  1  4.4759e-05
  2  5.93058e-06
  3  9.8062
  4  6.99755e-07
  5  8.09006e-05
  6  1.13443e-07
  7  14.5469
  8  1.76557
  9  6.11758e-05
  10  11.4467
  11  1.54245e-05
  12  46.4102
  13  3.41638e-05
  14  2.80239e-06
  15  7.08733e-06
  16  8.55258
  17  68.622
  18  2.03468e-05
  19  1.17893e-06
  20  17.813
  21  26.5961
  22  0.299708
  23  0.155693
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.248e+01  1.145e+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:  9.941e-01  1.557e-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:  9.628e-01  2.997e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.25
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.37e-07 +/- 6.97e-08
Energy Flux (Fixed Index): 4.93e-05 +/- 2.51e-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) = 5839.95670967
delta logL = 0.641894058756

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5839.93053887
delta logL = 0.668064853124

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.996       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8740       1.0000          .0000       5.0000    
     3 'Normalizat'    .89800       1.0000         .10000E-01   10.000    
     4 '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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5839.931     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      270 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.994        10.941        .10014E-03    .23739E-02
   2  alpha         2.8740        .55315        .93119E-02    .29853E-03
   3  Normalizat    .89813        .28390        .38439E-03   -.14196E-03
   4  Prefactor     1.0153        .15377        .19935E-03   -.57106E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.994
  alpha      = 2.874
  Normalizat = 0.89813
  Prefactor  = 1.01532
 **********
 **   18 **HESSE 
 **********

 FCN=   5839.931     FROM HESSE     STATUS=OK            23 CALLS      293 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.994        10.343        .20029E-04   -1.4908    
   2  alpha         2.8740        .52289        .37247E-03    .15016    
   3  Normalizat    .89813        .28351        .15376E-04   -.96526    
   4  Prefactor     1.0153        .15360        .39871E-04   -.92221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30029e-09
Minuit parameter uncertainties:
  1  10.344
  2  0.526869
  3  0.283986
  4  0.153666
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805101': 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) = 5839.93053856
delta logL = 0.668065165615

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.599e+01  1.034e+01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.874e+00  5.269e-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.015e+00  1.537e-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:  8.981e-01  2.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.63
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.87 +/- 0.53
Photon Flux (Free Index): 2.04e-07 +/- 1.00e-07
Energy Flux (Free Index): 4.73e-05 +/- 2.01e-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/805101/cmap_HighResolution_580435201_580694401_4FGL_J1337.6-1257_daily_bin1316.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.37e-07', energy_flux2='4.73e-05', photon_flux_error='6.97e-08', dlogl='6.68e-01', energy_flux='4.93e-05', photon_flux2='2.04e-07', job_status='DONE', time_completed='2021-09-08 05:09:08.804644', photon_index_error2='0.53', photon_index2='2.87', ts='8.25', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.01e-05', EG='0.96', time_epoch_completed='1631102948.8', return_code='0', job_id='805101', GAL2='1.02', EG2='0.90', return_code2='0', energy_flux_error='2.51e-05', photon_flux_error2='1.00e-07', ts2='9.63', photon_index='2.30' WHERE bin_id='1316' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:09:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 805101: <4FGL_J1337.6-1257_daily_bin1316> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1316 204.424 -12.9517 580435201 580694401 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 :                                   548.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            813 sec.

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

