/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 114 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 = 7421
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1337.6-1257_daily_bin343
RA = 204.424, Dec = -12.9517
tmin = 328233601, tmax = 328492801
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='797780', job_status='RUN', time_executed='2021-09-08 04:39:08.337828', time_epoch_executed='1631101148.34' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='343'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/797780

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/797780/ft1_4FGL_J1337.6-1257_daily_bin343.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/797780/ft2_4FGL_J1337.6-1257_daily_bin343.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/797780/ft1_4FGL_J1337.6-1257_daily_bin343.fits outfile=/scratch/kocevski/797780/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin343.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=328233601.0 tmax=328492801.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 4.02
user 3.71
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/797780/ft2_4FGL_J1337.6-1257_daily_bin343.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/797780/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin343.fits evtable="EVENTS" outfile="/scratch/kocevski/797780/ft1_filtered_4FGL_J1337.6-1257_daily_bin343.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/797780/ft1_filtered_4FGL_J1337.6-1257_daily_bin343.fits" evtable="EVENTS" scfile=/scratch/kocevski/797780/ft2_4FGL_J1337.6-1257_daily_bin343.fits sctable="SC_DATA" outfile=/scratch/kocevski/797780/ltcube_328233601_328492801_4FGL_J1337.6-1257_daily_bin343.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/797780/ft2_4FGL_J1337.6-1257_daily_bin343.fits
.....................!
real 16.10
user 15.70
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/797780/ft1_filtered_4FGL_J1337.6-1257_daily_bin343.fits evtable="EVENTS" scfile=/scratch/kocevski/797780/ft2_4FGL_J1337.6-1257_daily_bin343.fits sctable="SC_DATA" expcube=/scratch/kocevski/797780/ltcube_328233601_328492801_4FGL_J1337.6-1257_daily_bin343.fits outfile=/scratch/kocevski/797780/expmap_328233601_328492801_4FGL_J1337.6-1257_daily_bin343.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/797780/ltcube_328233601_328492801_4FGL_J1337.6-1257_daily_bin343.fits
.....................!
real 191.96
user 186.43
sys 5.03

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/797780/ft1_filtered_4FGL_J1337.6-1257_daily_bin343.fits scfile=/scratch/kocevski/797780/ft2_4FGL_J1337.6-1257_daily_bin343.fits outfile=/scratch/kocevski/797780/cmap_328233601_328492801_4FGL_J1337.6-1257_daily_bin343.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.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/797780/ft1_filtered_4FGL_J1337.6-1257_daily_bin343.fits scfile=/scratch/kocevski/797780/ft2_4FGL_J1337.6-1257_daily_bin343.fits outfile=/scratch/kocevski/797780/cmap_HighResolution_328233601_328492801_4FGL_J1337.6-1257_daily_bin343.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.62
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/797780/ft1_filtered_4FGL_J1337.6-1257_daily_bin343.fits evtable="EVENTS" scfile=/scratch/kocevski/797780/ft2_4FGL_J1337.6-1257_daily_bin343.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/797780/Model_4FGL_J1337.6-1257_daily_bin343.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/797780/ft1_filtered_4FGL_J1337.6-1257_daily_bin343.fits.....................!
real 50.69
user 49.26
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    4.6978       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.4225       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.2740       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.344       1.0000         .10000E-03   10000.    
     8 'norm      '    2.7093       1.0000         .10000E-03   10000.    
     9 'norm      '    .11274E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.7028       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.245       1.0000         .10000E-03   10000.    
    13 'norm      '    5.9962       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.2901       1.0000         .10000E-03   10000.    
    15 'norm      '    10.726       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.0325       1.0000         .10000E-03   10000.    
    19 'norm      '    1.6454       1.0000         .10000E-03   10000.    
    20 'norm      '    19.620       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .79120       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0370       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=   6186.680     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2504 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.5617        .19247E-07** at limit **
   2  norm          4.6973        2.9962       -.29696E-08    .29021E-04
   3  norm          .10000E-03    4.3623        .29587E-07** at limit **
   4  norm          5.4203        12.924        .10836E-06   -.76456E-05
   5  Prefactor     .10000E-03    5.2823        .95337E-07** at limit **
   6  Prefactor     6.2742        10.346        .23136E-06    .15595E-03
   7  Prefactor     13.310        13.127        .15750E-05    .10482E-02
   8  norm          2.7096        1.8270        .30109E-07    .86604E-04
   9  norm          .10001E-03    3.8245       -.25909E-05** at limit **
  10  norm          2.7002        4.4524        .50300E-06    .71826E-03
  11  Prefactor     .10000E-03    7.2917        .15003E-07** at limit **
  12  Prefactor     27.223        37.651       -.76134E-06   -.13952E-03
  13  norm          5.9949        21.770        .51130E-07   -.10152E-04
  14  Prefactor     8.2939        13.455        .63798E-07    .37922E-04
  15  norm          10.726        6.1795        .91546E-08    .12823E-03
  16  Prefactor     .10000E-03    2.6670        .54088E-07** at limit **
  17  Prefactor     .10000E-03    20.701        .30077E-07** at limit **
  18  norm          5.0327        4.5956       -.48778E-08    .71511E-04
  19  norm          1.6455        1.8205        .58542E-08    .21689E-04
  20  norm          19.620        11.267       -.63443E-08    .79719E-06
  21  Prefactor     .10000E-03    30.494        .22182E-06** at limit **
  22  Normalizat    .79090        .24825       -.35284E-06    .22573E-03
  23  Prefactor     1.0372        .12777        .24952E-06    .38924E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 4.6973
  norm       = 0.0001
  norm       = 5.42034
  Prefactor  = 0.0001
  Prefactor  = 6.2742
  Prefactor  = 13.3102
  norm       = 2.70955
  norm       = 0.000100007
  norm       = 2.70024
  Prefactor  = 0.0001
  Prefactor  = 27.2233
  norm       = 5.99489
  Prefactor  = 8.29392
  norm       = 10.7259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.03271
  norm       = 1.64553
  norm       = 19.62
  Prefactor  = 0.0001
  Normalizat = 0.7909
  Prefactor  = 1.03721
 **********
 **   18 **HESSE 
 **********

 FCN=   6186.680     FROM HESSE     STATUS=OK           372 CALLS     2876 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5637        .12294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.6973        3.0021        .10541E-03   -1.5274    
   3  norm          .10000E-03    4.3750        .16043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.4203        12.914        .17256E-03   -1.5242    
   5  Prefactor     .10000E-03    5.2973        .17652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.2742        10.347        .16026E-03   -1.5207    
   7  Prefactor     13.310        14.681        .10965E-03   -1.4978    
   8  norm          2.7096        1.8265        .81651E-04   -1.5379    
   9  norm          .10001E-03    5.0653        .23403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.7002        4.4839        .20624E-03   -1.5379    
  11  Prefactor     .10000E-03    7.2976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.223        38.011        .76751E-04   -1.4664    
  13  norm          5.9949        21.769        .16398E-03   -1.5218    
  14  Prefactor     8.2939        13.415        .13924E-03   -1.5132    
  15  norm          10.726        6.1840        .12233E-03   -1.5053    
  16  Prefactor     .10000E-03    2.6884        .12534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.0327        4.5940        .15652E-03   -1.5259    
  19  norm          1.6455        1.8150        .10709E-03   -1.5451    
  20  norm          19.620        11.249        .90422E-04   -1.4822    
  21  Prefactor     .10000E-03    30.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .79090        .27953        .38804E-03   -1.0041    
  23  Prefactor     1.0372        .14548        .18458E-03   -.91499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17939e-09
Minuit parameter uncertainties:
  1  6.32457e-08
  2  3.00221
  3  1.2547e-06
  4  12.921
  5  2.47356e-05
  6  10.35
  7  14.6854
  8  1.82653
  9  0.000384412
  10  4.48445
  11  5.32012e-06
  12  38.0448
  13  21.7973
  14  13.4201
  15  6.1844
  16  1.90077e-06
  17  1.04178e-05
  18  4.59433
  19  1.81506
  20  11.25
  21  2.05137e-05
  22  0.280035
  23  0.145534
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.700e+00  4.484e+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:  1.037e+00  1.455e-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:  7.909e-01  2.800e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/797780/likelihoodResults_328233601_328492801_4FGL_J1337.6-1257_daily_bin343.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) = 6186.624056
delta logL = 0.0562389864845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6186.61877083
delta logL = 0.0615241498826

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1649       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8783       1.0000          .0000       5.0000    
     3 'Normalizat'    .79667       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0350       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=   6186.619     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      199 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1649        11.231        .56955E-02   -.11646E-02
   2  alpha         1.8788        1.9614        .42888       -.10492E-04
   3  Normalizat    .79669        .23514        .87315E-01    .52685E-04
   4  Prefactor     1.0349        .12700        .40885E-01    .11013E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.16488
  alpha      = 1.87876
  Normalizat = 0.796695
  Prefactor  = 1.03494
 **********
 **   18 **HESSE 
 **********

 FCN=   6186.619     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1649        4.8761        .20992E-03   -1.5352    
   2  alpha         1.8788        1.0860        .31289E-01   -.25113    
   3  Normalizat    .79669        .25978        .38673E-03   -1.0019    
   4  Prefactor     1.0349        .14111        .18474E-03   -.91574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51936e-09
Minuit parameter uncertainties:
  1  4.87675
  2  1.12621
  3  0.26019
  4  0.14116
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/797780': 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) = 6186.61877074
delta logL = 0.0615242423182

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  3.165e+00  4.877e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.879e+00  1.126e+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.035e+00  1.412e-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:  7.967e-01  2.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.58
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/797780/cmap_HighResolution_328233601_328492801_4FGL_J1337.6-1257_daily_bin343.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.51e-05', job_status='DONE', photon_flux_upper_limit='9.74e-08', time_completed='2021-09-08 04:49:32.620397', job_id='797780', GAL2='1.03', fit_tolerance='1e-08', EG2='0.80', EG='0.79', time_epoch_completed='1631101772.62', return_code2='0', ts='0.58', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='6.15e-02', ts2='0.70', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='343' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:49:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 797780: <4FGL_J1337.6-1257_daily_bin343> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin343> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 04:35:28 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:37:04 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:37:04 2021
Terminated at Wed Sep  8 04:49:33 2021
Results reported at Wed Sep  8 04:49:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin343 204.424 -12.9517 328233601 328492801 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 :                                   624.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            845 sec.

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

