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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1289
RA = 204.424, Dec = -12.9517
tmin = 573436801, tmax = 573696001
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='805063', job_status='RUN', time_executed='2021-09-08 04:57:38.260900', time_epoch_executed='1631102258.26' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1289'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805063

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805063/ft1_4FGL_J1337.6-1257_daily_bin1289.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805063/ft2_4FGL_J1337.6-1257_daily_bin1289.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805063/ft1_4FGL_J1337.6-1257_daily_bin1289.fits outfile=/scratch/kocevski/805063/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1289.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=573436801.0 tmax=573696001.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 5.60
user 5.17
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805063/ft1_filtered_4FGL_J1337.6-1257_daily_bin1289.fits" evtable="EVENTS" scfile=/scratch/kocevski/805063/ft2_4FGL_J1337.6-1257_daily_bin1289.fits sctable="SC_DATA" outfile=/scratch/kocevski/805063/ltcube_573436801_573696001_4FGL_J1337.6-1257_daily_bin1289.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/805063/ft2_4FGL_J1337.6-1257_daily_bin1289.fits
.....................!
real 12.62
user 12.20
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805063/ft1_filtered_4FGL_J1337.6-1257_daily_bin1289.fits evtable="EVENTS" scfile=/scratch/kocevski/805063/ft2_4FGL_J1337.6-1257_daily_bin1289.fits sctable="SC_DATA" expcube=/scratch/kocevski/805063/ltcube_573436801_573696001_4FGL_J1337.6-1257_daily_bin1289.fits outfile=/scratch/kocevski/805063/expmap_573436801_573696001_4FGL_J1337.6-1257_daily_bin1289.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/805063/ltcube_573436801_573696001_4FGL_J1337.6-1257_daily_bin1289.fits
.....................!
real 190.85
user 185.92
sys 4.17

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/805063/ft1_filtered_4FGL_J1337.6-1257_daily_bin1289.fits scfile=/scratch/kocevski/805063/ft2_4FGL_J1337.6-1257_daily_bin1289.fits outfile=/scratch/kocevski/805063/cmap_573436801_573696001_4FGL_J1337.6-1257_daily_bin1289.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.54
user 0.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805063/ft1_filtered_4FGL_J1337.6-1257_daily_bin1289.fits evtable="EVENTS" scfile=/scratch/kocevski/805063/ft2_4FGL_J1337.6-1257_daily_bin1289.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805063/Model_4FGL_J1337.6-1257_daily_bin1289.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/805063/ft1_filtered_4FGL_J1337.6-1257_daily_bin1289.fits.....................!
real 69.63
user 68.18
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10126E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.114       1.0000         .10000E-03   10000.    
     4 'norm      '    .27769E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.934       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .61836       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10398E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.4030       1.0000         .10000E-03   10000.    
    10 'norm      '    3.5611       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.9825       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7607       1.0000         .10000E-03   10000.    
    15 'norm      '    19.375       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.007       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16657E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .14895E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .12940E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.8369       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.5241       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0660       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97414       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8989.343     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2266 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6347         .0000    ** at limit **
   2  norm          .10000E-03    .89094         .0000    ** at limit **
   3  norm          11.112        8.8244         .0000        .12982E-03
   4  norm          .10000E-03    4.9477         .0000    ** at limit **
   5  Prefactor     14.932        9.6126         .0000        .76314E-03
   6  Prefactor     .63406        5.6309         .0000        .51310E-03
   7  Prefactor     .10000E-03    13.164         .0000    ** at limit **
   8  norm          .10000E-03    .53006         .0000    ** at limit **
   9  norm          8.3967        4.2932         .0000        .34396E-03
  10  norm          3.5642        6.3063         .0000        .58609E-03
  11  Prefactor     8.9795        9.4204         .0000        .35358E-03
  12  Prefactor     .10000E-03    6.3635         .0000    ** at limit **
  13  norm          .10000E-03    9.2805         .0000    ** at limit **
  14  Prefactor     1.7619        7.6608         .0000        .14623E-01
  15  norm          19.389        5.9092         .0000        .71162E-03
  16  Prefactor     14.015        5.6588         .0000       -.19037E-02
  17  Prefactor     .10000E-03    78.905         .0000    ** at limit **
  18  norm          .10000E-03    4.1375         .0000    ** at limit **
  19  norm          .10000E-03    .98794         .0000    ** at limit **
  20  norm          6.8350        5.7187         .0000        .11590E-03
  21  Prefactor     4.5213        13.918         .0000        .98802E-04
  22  Normalizat    1.0660        .20745         .0000        .73204E-04
  23  Prefactor     .97420        .10644         .0000       -.99570E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 11.1122
  norm       = 0.000100001
  Prefactor  = 14.9319
  Prefactor  = 0.634057
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.39668
  norm       = 3.56425
  Prefactor  = 8.97952
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.76188
  norm       = 19.3887
  Prefactor  = 14.0151
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.83496
  Prefactor  = 4.52127
  Normalizat = 1.066
  Prefactor  = 0.974204
 **********
 **   18 **HESSE 
 **********

 FCN=   8989.343     FROM HESSE     STATUS=OK           382 CALLS     2648 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6536        .15028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.6691        .17416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.112        8.8164        .12017E-03   -1.5041    
   4  norm          .10000E-03    48.373        .40886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.932        9.5787        .10364E-03   -1.4935    
   6  Prefactor     .63406        20.316        .41060E-02   -1.5549    
   7  Prefactor     .10000E-03    13.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.0404        .13057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.3967        4.2545        .11531E-03   -1.5128    
  10  norm          3.5642        6.2547        .21417E-03   -1.5330    
  11  Prefactor     8.9795        9.3316        .13373E-03   -1.5109    
  12  Prefactor     .10000E-03    6.3695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    9.2814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.7619        7.4849        .15789E-02   -1.5442    
  15  norm          19.389        5.9030        .90991E-04   -1.4827    
  16  Prefactor     14.015        5.3612        .10702E-03   -1.4959    
  17  Prefactor     .10000E-03    79.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    15.148        .35127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.4461        .18104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.8350        5.7026        .15345E-03   -1.5185    
  21  Prefactor     4.5213        13.903        .18928E-03   -1.5283    
  22  Normalizat    1.0660        .23751        .34392E-03   -.90851    
  23  Prefactor     .97420        .12447        .19328E-03   -.93594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.41751e-08
Minuit parameter uncertainties:
  1  2.2332e-05
  2  2.08089e-05
  3  8.81742
  4  0.000448125
  5  9.57973
  6  7.18031
  7  7.83568e-05
  8  6.5471e-05
  9  4.25464
  10  6.2558
  11  9.33314
  12  6.07472e-06
  13  4.29603e-05
  14  7.26425
  15  5.90318
  16  5.36137
  17  0.000717677
  18  0.000168242
  19  5.47691e-05
  20  5.70307
  21  13.9126
  22  0.237745
  23  0.124509
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  3.564e+00  6.256e+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

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  9.742e-01  1.245e-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.066e+00  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.53
Ra Dec: 204.424 -12.952
Photon Flux Upper Limit: 9.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805063/likelihoodResults_573436801_573696001_4FGL_J1337.6-1257_daily_bin1289.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) = 8989.33912155
delta logL = 0.00347136172604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8989.33858266
delta logL = 0.00401025734027

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3874       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3931       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0645       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97474       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=   8989.339     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      204 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3874        237.76        .54959E-02    .71145E-03
   2  alpha         2.3930        2.9148        .41199        .38908E-04
   3  Normalizat    1.0645        .72851E-01    .77745E-01    .13479E-05
   4  Prefactor     .97474        .38818E-01    .45951E-01   -.39452E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.38742
  alpha      = 2.393
  Normalizat = 1.06455
  Prefactor  = 0.974744
 **********
 **   18 **HESSE 
 **********

 FCN=   8989.339     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3874        5.9418        .21984E-03   -1.5340    
   2  alpha         2.3930        1.0235        .27824E-01   -.42813E-01
   3  Normalizat    1.0645        .22648        .34412E-03   -.90898    
   4  Prefactor     .97474        .12290        .19323E-03   -.93576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16829e-09
Minuit parameter uncertainties:
  1  5.9428
  2  1.05451
  3  0.226685
  4  0.122934
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805063': 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) = 8989.33858265
delta logL = 0.00401026260261

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  3.387e+00  5.943e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.393e+00  1.055e+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:  9.747e-01  1.229e-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.065e+00  2.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/805063/cmap_HighResolution_573436801_573696001_4FGL_J1337.6-1257_daily_bin1289.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.52e-05', job_status='DONE', photon_flux_upper_limit='9.77e-08', time_completed='2021-09-08 05:10:28.431203', job_id='805063', GAL2='0.97', fit_tolerance='1e-08', EG2='1.06', EG='1.07', time_epoch_completed='1631103028.43', return_code2='0', ts='0.53', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='4.01e-03', ts2='0.54', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1289' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:10:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 805063: <4FGL_J1337.6-1257_daily_bin1289> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1289 204.424 -12.9517 573436801 573696001 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 :                                   761.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            894 sec.

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

