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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1205
RA = 204.424, Dec = -12.9517
tmin = 551664001, tmax = 551923201
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='803822', job_status='RUN', time_executed='2021-09-08 04:56:59.513619', time_epoch_executed='1631102219.51' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803822

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803822/ft1_4FGL_J1337.6-1257_daily_bin1205.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803822/ft2_4FGL_J1337.6-1257_daily_bin1205.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803822/ft1_4FGL_J1337.6-1257_daily_bin1205.fits outfile=/scratch/kocevski/803822/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1205.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=551664001.0 tmax=551923201.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.97
user 3.67
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/803822/ft1_filtered_4FGL_J1337.6-1257_daily_bin1205.fits" evtable="EVENTS" scfile=/scratch/kocevski/803822/ft2_4FGL_J1337.6-1257_daily_bin1205.fits sctable="SC_DATA" outfile=/scratch/kocevski/803822/ltcube_551664001_551923201_4FGL_J1337.6-1257_daily_bin1205.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/803822/ft2_4FGL_J1337.6-1257_daily_bin1205.fits
.....................!
real 14.94
user 14.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803822/ft1_filtered_4FGL_J1337.6-1257_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/803822/ft2_4FGL_J1337.6-1257_daily_bin1205.fits sctable="SC_DATA" expcube=/scratch/kocevski/803822/ltcube_551664001_551923201_4FGL_J1337.6-1257_daily_bin1205.fits outfile=/scratch/kocevski/803822/expmap_551664001_551923201_4FGL_J1337.6-1257_daily_bin1205.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/803822/ltcube_551664001_551923201_4FGL_J1337.6-1257_daily_bin1205.fits
.....................!
real 193.75
user 187.10
sys 5.83

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/803822/ft1_filtered_4FGL_J1337.6-1257_daily_bin1205.fits scfile=/scratch/kocevski/803822/ft2_4FGL_J1337.6-1257_daily_bin1205.fits outfile=/scratch/kocevski/803822/cmap_551664001_551923201_4FGL_J1337.6-1257_daily_bin1205.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/803822/ft1_filtered_4FGL_J1337.6-1257_daily_bin1205.fits scfile=/scratch/kocevski/803822/ft2_4FGL_J1337.6-1257_daily_bin1205.fits outfile=/scratch/kocevski/803822/cmap_HighResolution_551664001_551923201_4FGL_J1337.6-1257_daily_bin1205.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/803822/ft1_filtered_4FGL_J1337.6-1257_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/803822/ft2_4FGL_J1337.6-1257_daily_bin1205.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/803822/Model_4FGL_J1337.6-1257_daily_bin1205.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/803822/ft1_filtered_4FGL_J1337.6-1257_daily_bin1205.fits.....................!
real 42.26
user 40.93
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.7742       1.0000         .10000E-03   10000.    
     3 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10642E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15024E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    12.784       1.0000         .10000E-03   10000.    
    10 'norm      '    19.388       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.9755       1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.556       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1181       1.0000         .10000E-03   10000.    
    15 'norm      '    7.6420       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.7614       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2725       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96300       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=   4272.803     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2509 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.8456        .27133E-08** at limit **
   2  norm          1.7744        2.2481        .54203E-07   -.20668E-04
   3  norm          .10001E-03    59.504        .53507E-05** at limit **
   4  norm          .10000E-03    53.084       -.45132E-06** at limit **
   5  Prefactor     .10000E-03    7.6599        .20897E-07** at limit **
   6  Prefactor     .10000E-03    36.715        .84873E-06** at limit **
   7  Prefactor     .10000E-03    97.857       -.27789E-05** at limit **
   8  norm          .10000E-03    1.9070        .14756E-07** at limit **
   9  norm          12.770        8.8990        .52123E-08    .11532E-03
  10  norm          19.383        16.355       -.12144E-06    .51221E-04
  11  Prefactor     7.9760        19.314       -.49950E-06    .79106E-05
  12  Prefactor     42.558        34.511        .20295E-06    .23831E-04
  13  norm          .10000E-03    52.931       -.83811E-06** at limit **
  14  Prefactor     3.1158        13.814        .78023E-06    .11458E-04
  15  norm          7.6412        7.6625        .15687E-05   -.43794E-03
  16  Prefactor     .10000E-03    4.6737       -.16325E-07** at limit **
  17  Prefactor     .10000E-03    48.949       -.23106E-05** at limit **
  18  norm          6.7606        13.876        .16231E-06   -.16818E-04
  19  norm          .10000E-03    1.5782        .49375E-08** at limit **
  20  norm          .10000E-03    7.0560        .19642E-07** at limit **
  21  Prefactor     .10000E-03    12.807       -.22082E-07** at limit **
  22  Normalizat    1.2724        .34157       -.47830E-06   -.11006E-04
  23  Prefactor     .96297        .16115       -.23172E-06   -.10650E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.77441
  norm       = 0.000100013
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 12.7697
  norm       = 19.3827
  Prefactor  = 7.97604
  Prefactor  = 42.5578
  norm       = 0.0001
  Prefactor  = 3.11581
  norm       = 7.64123
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 6.76057
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.27244
  Prefactor  = 0.962972
 **********
 **   18 **HESSE 
 **********

 FCN=   4272.803     FROM HESSE     STATUS=OK           366 CALLS     2875 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8487        .10769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7744        2.2381        .10655E-03   -1.5442    
   3  norm          .10001E-03    66.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    53.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.6834        .17668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    37.974        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    100.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.9376        .88131E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.770        8.8949        .11203E-03   -1.4993    
  10  norm          19.383        16.363        .90962E-04   -1.4827    
  11  Prefactor     7.9760        19.028        .14198E-03   -1.5143    
  12  Prefactor     42.558        34.510        .61452E-04   -1.4402    
  13  norm          .10000E-03    53.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.1158        13.260        .22961E-03   -1.5355    
  15  norm          7.6412        8.0391        .72532E-03   -1.5155    
  16  Prefactor     .10000E-03    4.6879        .13784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    50.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.7606        13.863        .15431E-03   -1.5188    
  19  norm          .10000E-03    1.5803        .80194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.0688        .16959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2724        .40231        .37263E-03   -.84393    
  23  Prefactor     .96297        .19061        .20087E-03   -.93974    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78114e-10
Minuit parameter uncertainties:
  1  6.26875e-07
  2  2.23821
  3  0.001864
  4  0.00016995
  5  3.15438e-06
  6  0.00020313
  7  0.00130874
  8  6.54414e-07
  9  8.89581
  10  16.367
  11  19.0427
  12  34.5263
  13  0.000275923
  14  12.8599
  15  8.04027
  16  1.63902e-07
  17  0.000729093
  18  13.8692
  19  5.14493e-07
  20  2.96972e-06
  21  2.83457e-06
  22  0.403306
  23  0.190745
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.938e+01  1.637e+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.630e-01  1.907e-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.272e+00  4.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.40
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.18e-07 +/- 9.96e-08
Energy Flux (Fixed Index): 4.25e-05 +/- 3.59e-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) = 4272.80250053
delta logL = 3.94091330236e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4272.80250041
delta logL = 4.05937498726e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.383       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3028       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2725       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96301       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=   4272.803     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      228 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.388        14.389        .90975E-04    .52985E-04
   2  alpha         2.3026        .71633        .13638E-01    .61614E-04
   3  Normalizat    1.2727        .40302        .37260E-03    .83451E-04
   4  Prefactor     .96291        .18940        .20087E-03   -.10100E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.3877
  alpha      = 2.3026
  Normalizat = 1.27269
  Prefactor  = 0.962905
 **********
 **   18 **HESSE 
 **********

 FCN=   4272.803     FROM HESSE     STATUS=OK            25 CALLS      253 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.388        14.325        .36390E-05   -1.4827    
   2  alpha         2.3026        .71257        .27275E-02   -.79043E-01
   3  Normalizat    1.2727        .40322        .14904E-04   -.84385    
   4  Prefactor     .96291        .18951        .40175E-04   -.93976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63762e-10
Minuit parameter uncertainties:
  1  14.328
  2  0.722651
  3  0.40422
  4  0.189636
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803822': 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) = 4272.80250016
delta logL = 4.30763520853e-06

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.939e+01  1.433e+01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.303e+00  7.227e-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:  9.629e-01  1.896e-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.273e+00  4.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.50
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.30 +/- 0.72
Photon Flux (Free Index): 1.18e-07 +/- 1.23e-07
Energy Flux (Free Index): 4.25e-05 +/- 3.12e-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/803822/cmap_HighResolution_551664001_551923201_4FGL_J1337.6-1257_daily_bin1205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.18e-07', energy_flux2='4.25e-05', photon_flux_error='9.96e-08', dlogl='4.31e-06', energy_flux='4.25e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-08 05:05:40.307155', photon_index_error2='0.72', photon_index2='2.30', ts='4.40', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='3.12e-05', EG='1.27', time_epoch_completed='1631102740.31', return_code='0', job_id='803822', GAL2='0.96', EG2='1.27', return_code2='0', energy_flux_error='3.59e-05', photon_flux_error2='1.23e-07', ts2='4.50', photon_index='2.30' WHERE bin_id='1205' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:05:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 803822: <4FGL_J1337.6-1257_daily_bin1205> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1205> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 04:51:02 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:56:44 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:56:44 2021
Terminated at Wed Sep  8 05:05:40 2021
Results reported at Wed Sep  8 05:05:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1205 204.424 -12.9517 551664001 551923201 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 :                                   498.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   536 sec.
    Turnaround time :                            878 sec.

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

