/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 11 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 = 7427
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1441
RA = 204.424, Dec = -12.9517
tmin = 612835201, tmax = 613094401
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='805294', job_status='RUN', time_executed='2021-09-08 04:57:51.505984', time_epoch_executed='1631102271.51' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805294

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805294/ft1_4FGL_J1337.6-1257_daily_bin1441.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805294/ft2_4FGL_J1337.6-1257_daily_bin1441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805294/ft1_4FGL_J1337.6-1257_daily_bin1441.fits outfile=/scratch/kocevski/805294/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1441.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=612835201.0 tmax=613094401.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 2.98
user 2.71
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805294/ft1_filtered_4FGL_J1337.6-1257_daily_bin1441.fits" evtable="EVENTS" scfile=/scratch/kocevski/805294/ft2_4FGL_J1337.6-1257_daily_bin1441.fits sctable="SC_DATA" outfile=/scratch/kocevski/805294/ltcube_612835201_613094401_4FGL_J1337.6-1257_daily_bin1441.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/805294/ft2_4FGL_J1337.6-1257_daily_bin1441.fits
.....................!
real 17.72
user 17.18
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805294/ft1_filtered_4FGL_J1337.6-1257_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/805294/ft2_4FGL_J1337.6-1257_daily_bin1441.fits sctable="SC_DATA" expcube=/scratch/kocevski/805294/ltcube_612835201_613094401_4FGL_J1337.6-1257_daily_bin1441.fits outfile=/scratch/kocevski/805294/expmap_612835201_613094401_4FGL_J1337.6-1257_daily_bin1441.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/805294/ltcube_612835201_613094401_4FGL_J1337.6-1257_daily_bin1441.fits
.....................!
real 194.21
user 188.34
sys 4.52

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/805294/ft1_filtered_4FGL_J1337.6-1257_daily_bin1441.fits scfile=/scratch/kocevski/805294/ft2_4FGL_J1337.6-1257_daily_bin1441.fits outfile=/scratch/kocevski/805294/cmap_612835201_613094401_4FGL_J1337.6-1257_daily_bin1441.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.58
user 0.38
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805294/ft1_filtered_4FGL_J1337.6-1257_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/805294/ft2_4FGL_J1337.6-1257_daily_bin1441.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805294/Model_4FGL_J1337.6-1257_daily_bin1441.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/805294/ft1_filtered_4FGL_J1337.6-1257_daily_bin1441.fits.....................!
real 47.31
user 45.42
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.036       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2308       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8321       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.8653       1.0000         .10000E-03   10000.    
    10 'norm      '    19.429       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9072       1.0000         .10000E-03   10000.    
    12 'Prefactor '    43.564       1.0000         .10000E-03   10000.    
    13 'norm      '    23.917       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .99304       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6966       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10151E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.7157       1.0000         .10000E-03   10000.    
    20 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    58.480       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.8595       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .70903       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=   4855.180     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2493 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9535       -.47472E-08** at limit **
   2  norm          .10000E-03    .95764        .11384E-07** at limit **
   3  norm          12.035        10.497       -.10776E-06   -.45808E-05
   4  norm          .10000E-03    4.0363        .98958E-08** at limit **
   5  Prefactor     2.2297        17.076       -.34310E-06   -.42185E-04
   6  Prefactor     6.8285        14.771       -.41601E-06   -.94479E-05
   7  Prefactor     .10000E-03    36.743       -.60292E-06** at limit **
   8  norm          .10000E-03    .55240       -.59101E-08** at limit **
   9  norm          1.8614        4.2197       -.12587E-06   -.10142E-03
  10  norm          19.430        11.535       -.12033E-06    .28223E-04
  11  Prefactor     3.8972        19.624       -.31479E-06   -.13704E-04
  12  Prefactor     43.560        43.112       -.31162E-05   -.50724E-04
  13  norm          23.918        25.309        .25630E-06    .96442E-05
  14  Prefactor     .10000E-03    9.0659        .18658E-07** at limit **
  15  norm          .99285        6.6810       -.80860E-08   -.23118E-03
  16  Prefactor     2.6909        4.8636        .18608E-05   -.16619E-02
  17  Prefactor     .10000E-03    57.778        .72346E-06** at limit **
  18  norm          .10000E-03    10.214       -.61269E-06** at limit **
  19  norm          4.7120        4.9271        .31024E-06   -.32562E-04
  20  norm          .10000E-03    26.891        .50130E-06** at limit **
  21  Prefactor     58.461        52.745       -.13832E-04   -.21480E-03
  22  Normalizat    1.8597        .32553        .37299E-06    .52113E-05
  23  Prefactor     .70887        .16195        .59287E-06    .15068E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 12.0352
  norm       = 0.0001
  Prefactor  = 2.22971
  Prefactor  = 6.8285
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.86142
  norm       = 19.4295
  Prefactor  = 3.89716
  Prefactor  = 43.5598
  norm       = 23.9179
  Prefactor  = 0.0001
  norm       = 0.992845
  Prefactor  = 2.69094
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.71196
  norm       = 0.000100001
  Prefactor  = 58.4609
  Normalizat = 1.8597
  Prefactor  = 0.708867
 **********
 **   18 **HESSE 
 **********

 FCN=   4855.180     FROM HESSE     STATUS=OK           370 CALLS     2863 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9624        .13530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .95941        .66590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.035        10.517        .11547E-03   -1.5014    
   4  norm          .10000E-03    4.0387        .13672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.2297        16.959        .27525E-03   -1.5409    
   6  Prefactor     6.8285        14.939        .15350E-03   -1.5185    
   7  Prefactor     .10000E-03    36.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .55970        .50536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8614        4.1450        .19880E-03   -1.5435    
  10  norm          19.430        11.630        .90865E-04   -1.4826    
  11  Prefactor     3.8972        19.555        .20411E-03   -1.5313    
  12  Prefactor     43.560        43.168        .60740E-04   -1.4387    
  13  norm          23.918        25.310        .81907E-04   -1.4729    
  14  Prefactor     .10000E-03    9.0778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .99285        6.7003        .34718E-03   -1.5509    
  16  Prefactor     2.6909        9.4994        .12404E-02   -1.5380    
  17  Prefactor     .10000E-03    57.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    10.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.7120        4.9277        .15038E-03   -1.5274    
  20  norm          .10000E-03    27.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     58.461        53.214        .52462E-04   -1.4177    
  22  Normalizat    1.8597        .38924        .32111E-03   -.68115    
  23  Prefactor     .70887        .18941        .25036E-03   -1.0318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.66741e-09
Minuit parameter uncertainties:
  1  2.75496e-06
  2  3.14362e-07
  3  10.5182
  4  5.38846e-07
  5  12.303
  6  14.9472
  7  2.43687e-05
  8  9.57707e-07
  9  4.14565
  10  11.6312
  11  17.4685
  12  43.1991
  13  25.3215
  14  6.69358e-06
  15  5.15902
  16  9.50471
  17  3.11067e-05
  18  1.38906e-05
  19  4.92808
  20  0.000253473
  21  53.2577
  22  0.389895
  23  0.189578
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.943e+01  1.163e+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:  7.089e-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.860e+00  3.899e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.53
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.18e-07 +/- 7.08e-08
Energy Flux (Fixed Index): 4.26e-05 +/- 2.55e-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) = 4854.13439743
delta logL = 1.04565290706

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4854.08842707
delta logL = 1.09162327137

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.694       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4793       1.0000          .0000       5.0000    
     3 'Normalizat'    1.9146       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69789       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=   4854.088     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      214 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.677        10.157        .24506E-02    .17832E-03
   2  alpha         1.4790        .42763        .30195       -.60195E-04
   3  Normalizat    1.9145        .30746        .71792E-01    .67778E-04
   4  Prefactor     .69795        .15851        .42373E-01    .13960E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 16.6767
  alpha      = 1.47901
  Normalizat = 1.91451
  Prefactor  = 0.697955
 **********
 **   18 **HESSE 
 **********

 FCN=   4854.088     FROM HESSE     STATUS=OK            29 CALLS      243 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.677        12.271        .98026E-04   -1.4891    
   2  alpha         1.4790        .54585        .12582E-01   -.42070    
   3  Normalizat    1.9145        .35649        .31756E-03   -.66711    
   4  Prefactor     .69795        .18394        .25214E-03   -1.0361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1424e-10
Minuit parameter uncertainties:
  1  12.2727
  2  0.551195
  3  0.356984
  4  0.184096
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805294': 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) = 4854.08842603
delta logL = 1.09162431161

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.668e+01  1.227e+01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.479e+00  5.512e-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:  6.980e-01  1.841e-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.915e+00  3.570e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.61
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 1.48 +/- 0.55
Photon Flux (Free Index): 5.08e-08 +/- 4.48e-08
Energy Flux (Free Index): 6.81e-05 +/- 5.47e-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/805294/cmap_HighResolution_612835201_613094401_4FGL_J1337.6-1257_daily_bin1441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.18e-07', energy_flux2='6.81e-05', photon_flux_error='7.08e-08', dlogl='1.09e+00', energy_flux='4.26e-05', photon_flux2='5.08e-08', job_status='DONE', time_completed='2021-09-08 05:06:57.598485', photon_index_error2='0.55', photon_index2='1.48', ts='7.53', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='5.47e-05', EG='1.86', time_epoch_completed='1631102817.6', return_code='0', job_id='805294', GAL2='0.70', EG2='1.91', return_code2='0', energy_flux_error='2.55e-05', photon_flux_error2='4.48e-08', ts2='9.61', photon_index='2.30' WHERE bin_id='1441' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:06:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 805294: <4FGL_J1337.6-1257_daily_bin1441> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1441 204.424 -12.9517 612835201 613094401 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 :                                   518.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             375.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   573 sec.
    Turnaround time :                            671 sec.

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

