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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1497
RA = 204.424, Dec = -12.9517
tmin = 627350401, tmax = 627609601
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='805366', job_status='RUN', time_executed='2021-09-08 04:58:33.890959', time_epoch_executed='1631102313.89' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1497'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805366

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805366/ft1_4FGL_J1337.6-1257_daily_bin1497.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805366/ft2_4FGL_J1337.6-1257_daily_bin1497.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805366/ft1_4FGL_J1337.6-1257_daily_bin1497.fits outfile=/scratch/kocevski/805366/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1497.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=627350401.0 tmax=627609601.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.78
user 2.57
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805366/ft1_filtered_4FGL_J1337.6-1257_daily_bin1497.fits" evtable="EVENTS" scfile=/scratch/kocevski/805366/ft2_4FGL_J1337.6-1257_daily_bin1497.fits sctable="SC_DATA" outfile=/scratch/kocevski/805366/ltcube_627350401_627609601_4FGL_J1337.6-1257_daily_bin1497.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/805366/ft2_4FGL_J1337.6-1257_daily_bin1497.fits
.....................!
real 18.30
user 17.93
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805366/ft1_filtered_4FGL_J1337.6-1257_daily_bin1497.fits evtable="EVENTS" scfile=/scratch/kocevski/805366/ft2_4FGL_J1337.6-1257_daily_bin1497.fits sctable="SC_DATA" expcube=/scratch/kocevski/805366/ltcube_627350401_627609601_4FGL_J1337.6-1257_daily_bin1497.fits outfile=/scratch/kocevski/805366/expmap_627350401_627609601_4FGL_J1337.6-1257_daily_bin1497.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/805366/ltcube_627350401_627609601_4FGL_J1337.6-1257_daily_bin1497.fits
.....................!
real 191.26
user 186.87
sys 3.93

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/805366/ft1_filtered_4FGL_J1337.6-1257_daily_bin1497.fits scfile=/scratch/kocevski/805366/ft2_4FGL_J1337.6-1257_daily_bin1497.fits outfile=/scratch/kocevski/805366/cmap_627350401_627609601_4FGL_J1337.6-1257_daily_bin1497.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.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805366/ft1_filtered_4FGL_J1337.6-1257_daily_bin1497.fits scfile=/scratch/kocevski/805366/ft2_4FGL_J1337.6-1257_daily_bin1497.fits outfile=/scratch/kocevski/805366/cmap_HighResolution_627350401_627609601_4FGL_J1337.6-1257_daily_bin1497.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.61
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805366/ft1_filtered_4FGL_J1337.6-1257_daily_bin1497.fits evtable="EVENTS" scfile=/scratch/kocevski/805366/ft2_4FGL_J1337.6-1257_daily_bin1497.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805366/Model_4FGL_J1337.6-1257_daily_bin1497.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/805366/ft1_filtered_4FGL_J1337.6-1257_daily_bin1497.fits.....................!
real 45.25
user 43.83
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .60377       1.0000         .10000E-03   10000.    
     3 'norm      '    6.2646       1.0000         .10000E-03   10000.    
     4 'norm      '    .49781E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.494       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.5904       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .13161E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.7571       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1597       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11720E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .33430       1.0000         .10000E-03   10000.    
    17 'Prefactor '    77.969       1.0000         .10000E-03   10000.    
    18 'norm      '    .14384E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    37.770       1.0000         .10000E-03   10000.    
    20 'norm      '    .10455E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .95047       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0932       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=   4828.593     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2301 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.5562        .83605E-08** at limit **
   2  norm          .60369        1.7273       -.49527E-06   -.13629E-02
   3  norm          6.2632        14.767       -.46387E-06   -.11706E-03
   4  norm          .10019E-03    9.0905        .18610E-05** at limit **
   5  Prefactor     11.488        10.110       -.13317E-05   -.49466E-05
   6  Prefactor     .10000E-03    6.0623        .17788E-09** at limit **
   7  Prefactor     9.5575        21.048        .32335E-05    .75365E-04
   8  norm          .10000E-03    .93982        .61687E-08** at limit **
   9  norm          .10000E-03    5.2923       -.11566E-06** at limit **
  10  norm          2.7514        15.266       -.34959E-05   -.12158E-03
  11  Prefactor     7.1513        24.129        .42381E-06   -.11826E-04
  12  Prefactor     .10000E-03    13.856        .15376E-06** at limit **
  13  norm          .10000E-03    107.76        .40478E-04** at limit **
  14  Prefactor     .10000E-03    10.624       -.12215E-06** at limit **
  15  norm          .10000E-03    5.2430       -.75533E-07** at limit **
  16  Prefactor     .26721        13.516       -.16746E-05    .27471E-04
  17  Prefactor     77.980        65.999        .10197E-04    .33305E-04
  18  norm          .10000E-03    10.906        .10510E-05** at limit **
  19  norm          37.771        9.4206       -.70009E-07    .38639E-03
  20  norm          .10000E-03    60.918       -.12164E-04** at limit **
  21  Prefactor     .10000E-03    144.87       -.39267E-04** at limit **
  22  Normalizat    .95077        .31365        .26849E-06    .17275E-04
  23  Prefactor     1.0932        .15976       -.21425E-06    .38752E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.603694
  norm       = 6.26319
  norm       = 0.000100186
  Prefactor  = 11.4881
  Prefactor  = 0.0001
  Prefactor  = 9.55753
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.75137
  Prefactor  = 7.15135
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.26721
  Prefactor  = 77.9802
  norm       = 0.000100003
  norm       = 37.771
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.950768
  Prefactor  = 1.0932
 **********
 **   18 **HESSE 
 **********

 FCN=   4828.593     FROM HESSE     STATUS=OK           374 CALLS     2675 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.6853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .60369        1.4946        .15180E-02   -1.5553    
   3  norm          6.2632        14.820        .16038E-03   -1.5207    
   4  norm          .10019E-03    52.067        .40169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.488        10.114        .11817E-03   -1.5030    
   6  Prefactor     .10000E-03    6.0982        .16701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.5575        19.284        .12940E-03   -1.5090    
   8  norm          .10000E-03    1.4532        .12900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.6599        .25910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.7514        13.694        .24514E-03   -1.5376    
  11  Prefactor     7.1513        24.044        .14991E-03   -1.5173    
  12  Prefactor     .10000E-03    13.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    107.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.2793        .15529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .26721        93.561        .40398E-02   -1.5605    
  17  Prefactor     77.980        66.022        .22739E-03   -1.3940    
  18  norm          .10000E-03    45.306        .40164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          37.771        9.3851        .65214E-04   -1.4478    
  20  norm          .10000E-03    62.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    144.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .95077        .35106        .38743E-03   -.94699    
  23  Prefactor     1.0932        .18145        .19947E-03   -.89684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54253e-09
Minuit parameter uncertainties:
  1  3.16609e-06
  2  1.4947
  3  14.8292
  4  0.0062269
  5  10.115
  6  3.98611e-06
  7  19.2965
  8  5.55068e-07
  9  1.91027e-05
  10  12.2808
  11  24.077
  12  1.52656e-06
  13  0.000666653
  14  1.53876e-05
  15  2.03954e-05
  16  10.014
  17  66.0845
  18  0.000713655
  19  9.38547
  20  0.000326024
  21  0.000339037
  22  0.351908
  23  0.181554
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.751e+00  1.228e+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:  1.093e+00  1.816e-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.508e-01  3.519e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 204.424 -12.952
Photon Flux Upper Limit: 1.73e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.23e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805366/likelihoodResults_627350401_627609601_4FGL_J1337.6-1257_daily_bin1497.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): 0
logL (Free Index) = 4828.44744994
delta logL = 0.145873328869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4828.44219609
delta logL = 0.15112718163

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1280       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1465       1.0000          .0000       5.0000    
     3 'Normalizat'    .91412       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1007       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=   4828.442     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      244 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1275        9.3704        .19643E-03    .34090E-04
   2  alpha         3.1467        1.6649        .22339E-01    .96817E-05
   3  Normalizat    .91414        .33240        .39430E-03   -.18078E-03
   4  Prefactor     1.1007        .17986        .19881E-03   -.37345E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.1275
  alpha      = 3.1467
  Normalizat = 0.91414
  Prefactor  = 1.1007
 **********
 **   18 **HESSE 
 **********

 FCN=   4828.442     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1275        7.6893        .78570E-05   -1.5354    
   2  alpha         3.1467        1.4087        .89355E-03    .26166    
   3  Normalizat    .91414        .33249        .15772E-04   -.95965    
   4  Prefactor     1.1007        .17945        .39762E-04   -.89444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48698e-10
Minuit parameter uncertainties:
  1  7.69169
  2  1.50411
  3  0.333241
  4  0.179549
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805366': 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) = 4828.44219606
delta logL = 0.15112720245

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  3.128e+00  7.692e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  3.147e+00  1.504e+00  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.101e+00  1.795e-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.141e-01  3.332e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/805366/cmap_HighResolution_627350401_627609601_4FGL_J1337.6-1257_daily_bin1497.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.23e-05', job_status='DONE', photon_flux_upper_limit='1.73e-07', time_completed='2021-09-08 05:08:32.492737', job_id='805366', GAL2='1.10', fit_tolerance='1e-08', EG2='0.91', EG='0.95', time_epoch_completed='1631102912.49', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.51e-01', ts2='0.42', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1497' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:08:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 805366: <4FGL_J1337.6-1257_daily_bin1497> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1497 204.424 -12.9517 627350401 627609601 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 :                                   552.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             258.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   659 sec.
    Turnaround time :                            761 sec.

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

