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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1236
RA = 204.424, Dec = -12.9517
tmin = 559699201, tmax = 559958401
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='804988', job_status='RUN', time_executed='2021-09-08 04:57:51.150294', time_epoch_executed='1631102271.15' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1236'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/804988

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/804988/ft1_4FGL_J1337.6-1257_daily_bin1236.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/804988/ft2_4FGL_J1337.6-1257_daily_bin1236.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/804988/ft1_4FGL_J1337.6-1257_daily_bin1236.fits outfile=/scratch/kocevski/804988/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1236.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=559699201.0 tmax=559958401.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.70
user 3.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/804988/ft1_filtered_4FGL_J1337.6-1257_daily_bin1236.fits" evtable="EVENTS" scfile=/scratch/kocevski/804988/ft2_4FGL_J1337.6-1257_daily_bin1236.fits sctable="SC_DATA" outfile=/scratch/kocevski/804988/ltcube_559699201_559958401_4FGL_J1337.6-1257_daily_bin1236.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/804988/ft2_4FGL_J1337.6-1257_daily_bin1236.fits
.....................!
real 13.02
user 12.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/804988/ft1_filtered_4FGL_J1337.6-1257_daily_bin1236.fits evtable="EVENTS" scfile=/scratch/kocevski/804988/ft2_4FGL_J1337.6-1257_daily_bin1236.fits sctable="SC_DATA" expcube=/scratch/kocevski/804988/ltcube_559699201_559958401_4FGL_J1337.6-1257_daily_bin1236.fits outfile=/scratch/kocevski/804988/expmap_559699201_559958401_4FGL_J1337.6-1257_daily_bin1236.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/804988/ltcube_559699201_559958401_4FGL_J1337.6-1257_daily_bin1236.fits
.....................!
real 191.76
user 186.02
sys 5.30

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/804988/ft1_filtered_4FGL_J1337.6-1257_daily_bin1236.fits scfile=/scratch/kocevski/804988/ft2_4FGL_J1337.6-1257_daily_bin1236.fits outfile=/scratch/kocevski/804988/cmap_559699201_559958401_4FGL_J1337.6-1257_daily_bin1236.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=204.424 yref=-12.9517 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/804988/ft1_filtered_4FGL_J1337.6-1257_daily_bin1236.fits scfile=/scratch/kocevski/804988/ft2_4FGL_J1337.6-1257_daily_bin1236.fits outfile=/scratch/kocevski/804988/cmap_HighResolution_559699201_559958401_4FGL_J1337.6-1257_daily_bin1236.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/804988/ft1_filtered_4FGL_J1337.6-1257_daily_bin1236.fits evtable="EVENTS" scfile=/scratch/kocevski/804988/ft2_4FGL_J1337.6-1257_daily_bin1236.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/804988/Model_4FGL_J1337.6-1257_daily_bin1236.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/804988/ft1_filtered_4FGL_J1337.6-1257_daily_bin1236.fits...........................!
real 17.91
user 16.57
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/804988/ft1_filtered_4FGL_J1337.6-1257_daily_bin1236.fits', '/scratch/kocevski/804988/ft2_4FGL_J1337.6-1257_daily_bin1236.fits', expMap='/scratch/kocevski/804988/expmap_559699201_559958401_4FGL_J1337.6-1257_daily_bin1236.fits', expCube='/scratch/kocevski/804988/ltcube_559699201_559958401_4FGL_J1337.6-1257_daily_bin1236.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/804988/Model_4FGL_J1337.6-1257_daily_bin1236.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/804988/ft1_filtered_4FGL_J1337.6-1257_daily_bin1236.fits
Spacecraft file(s): /scratch/kocevski/804988/ft2_4FGL_J1337.6-1257_daily_bin1236.fits
Exposure map: /scratch/kocevski/804988/expmap_559699201_559958401_4FGL_J1337.6-1257_daily_bin1236.fits
Exposure cube: /scratch/kocevski/804988/ltcube_559699201_559958401_4FGL_J1337.6-1257_daily_bin1236.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/804988/Model_4FGL_J1337.6-1257_daily_bin1236.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 677.412227621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 673.169471365

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0833       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3035       1.0000         .10000E-03   10000.    
     3 'norm      '    .11695E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .13120E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5272       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.866       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3666       1.0000         .10000E-03   10000.    
     8 'norm      '    .10179E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    13.498       1.0000         .10000E-03   10000.    
    10 'norm      '    .48707       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .31280E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.6273       1.0000         .10000E-03   10000.    
    13 'norm      '    72.821       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0401       1.0000         .10000E-03   10000.    
    15 'norm      '    .15866E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0989       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0525       1.0000         .10000E-03   10000.    
    18 'norm      '    .11369E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    28.402       1.0000         .10000E-03   10000.    
    20 'norm      '    .14520E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .51537E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93234       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   673.1606     FROM MIGRAD    STATUS=CONVERGED    222 CALLS      467 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0833        1.0077         .0000         .0000    
   2  norm          1.3035        1.1038         .0000         .0000    
   3  norm          .10000E-03    12.232        .14335E-04** at limit **
   4  norm          .10000E-03    24.117       -.12794E-05** at limit **
   5  Prefactor     .15775E-03    453.70        .57694E-04** at limit **
   6  Prefactor     19.489        63.693       -.17984E-04   -.30822E-03
   7  Prefactor     .10152E-03    1265.6       -.70180E-04** at limit **
   8  norm          .10000E-03    2.3974       -.39858E-06** at limit **
   9  norm          15.741        33.722        .37930E-05    .80488E-04
  10  norm          .10001E-03    166.43        .17053E-04** at limit **
  11  Prefactor     .10000E-03    400.12       -.53864E-04** at limit **
  12  Prefactor     8.6273        1.0017         .0000         .0000    
  13  norm          72.693        27.458       -.66842E-06   -.45062E-02
  14  Prefactor     .27090E-03    704.56        .62112E-04** at limit **
  15  norm          .10000E-03    32.351       -.26512E-04** at limit **
  16  Prefactor     5.4877        38.241       -.21363E-04   -.56751E-04
  17  Prefactor     .10566E-03    685.42        .14259E-04** at limit **
  18  norm          .10000E-03    15.889        .93632E-05** at limit **
  19  norm          28.389        10.780       -.74215E-05    .28989E-03
  20  norm          .10000E-03    9.3054       -.22263E-05** at limit **
  21  Prefactor     .10000E-03    28.317       -.59789E-06** at limit **
  22  Normalizat    .10000E-01    2.1405        .22086E-03** at limit **
  23  Prefactor     .93245        .24566        .24360E-04   -.70775E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.08329
  norm       = 1.30348
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000157754
  Prefactor  = 19.4891
  Prefactor  = 0.00010152
  norm       = 0.0001
  norm       = 15.7412
  norm       = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 8.62728
  norm       = 72.6926
  Prefactor  = 0.000270895
  norm       = 0.000100002
  Prefactor  = 5.48768
  Prefactor  = 0.000105657
  norm       = 0.0001
  norm       = 28.3886
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.932449
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   673.1606     FROM HESSE     STATUS=FAILED        11 CALLS      478 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          541.22        537.07         .0000       -1.5304    
   2  norm          1.3035        1.1038         .0000       -1.5480    
   3  norm          .10000E-03    .26667        .14335E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .20571       -.12794E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .15775E-03    .72390E-01    .57694E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.489        .99079       -.17984E-04   -1.4825    
   7  Prefactor     .10152E-03    .47022E-01   -.70180E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .20571       -.39858E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          15.741        1.0805        .37930E-05   -1.4914    
  10  norm          .10001E-03    .31460        .17053E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .21060       -.53864E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.6273        1.0017         .0000       -1.5120    
  13  norm          72.693        .99915       -.66842E-06   -1.4001    
  14  Prefactor     .27090E-03    .13098        .62112E-04   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .20571       -.26512E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.4877        1.0425       -.21363E-04   -1.5239    
  17  Prefactor     .10566E-03    .13008        .14259E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .20571        .93632E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          28.389        .99992       -.74215E-05   -1.4642    
  20  norm          .10000E-03    .20571       -.22263E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .22945       -.59789E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .10000E-01    .25651        .22086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .93245        1.2756        .24360E-04   -.95016    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.38667e-10
Minuit parameter uncertainties:
  1  1.0077
  2  1.10385
  3  1.60532e-05
  4  1.26634e-05
  5  0.00408942
  6  0.990792
  7  0.000534611
  8  6.21268e-07
  9  1.08052
  10  0.000106801
  11  1.22826e-05
  12  1.00169
  13  0.99915
  14  0.00946246
  15  3.94407e-05
  16  1.04248
  17  0.00171567
  18  2.88311e-06
  19  0.999916
  20  1.04004e-06
  21  9.11986e-06
  22  1.2082e-05
  23  1.32058
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 673.160622165

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  1.068e-04  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.324e-01  1.321e+00  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.000e-02  1.208e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 204.424 -12.952
Photon Flux Upper Limit: 1.01e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.63e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/804988/likelihoodResults_559699201_559958401_4FGL_J1337.6-1257_daily_bin1236.txt

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): 102
logL (Free Index) = 673.160652974
delta logL = -3.08089264536e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 673.16065295
delta logL = -3.07849070396e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96336E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3047       1.0000          .0000       5.0000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93247       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=   673.1606     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      247 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    25.967        .12180    ** at limit **
   2  alpha         2.8615        2.9550        .16525        .90126E-08
   3  Normalizat    .10000E-01    .22000E-02    .12904E-01** at limit **
   4  Prefactor     .93245        .63696E-02    .17903E-03    .25867E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010002
  alpha      = 2.8615
  Normalizat = 0.01
  Prefactor  = 0.932452
 **********
 **   18 **HESSE 
 **********

 FCN=   673.1606     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    304.56        .37247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8615        2.9252        .66098E-02    .14511    
   3  Normalizat    .10000E-01    2.1338        .25808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .93245        .20525        .35806E-04   -.95016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45415e-10
Minuit parameter uncertainties:
  1  0.00496882
  2  1268.36
  3  3.33679e-05
  4  0.205423
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/804988': 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) = 673.160622054
delta logL = 1.10976657197e-07

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  4.969e-03  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.862e+00  1.268e+03  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.325e-01  2.054e-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.000e-02  3.337e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 204.424 -12.952

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/804988/cmap_HighResolution_559699201_559958401_4FGL_J1337.6-1257_daily_bin1236.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.63e-04', job_status='DONE', photon_flux_upper_limit='1.01e-06', time_completed='2021-09-08 05:04:10.109162', job_id='804988', GAL2='0.93', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631102650.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.93', dlogl='1.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1236' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:04:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 804988: <4FGL_J1337.6-1257_daily_bin1236> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1236 204.424 -12.9517 559699201 559958401 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 :                                   330.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             383.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   438 sec.
    Turnaround time :                            520 sec.

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

