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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1597
RA = 204.424, Dec = -12.9517
tmin = 653270401, tmax = 653529601
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='547646', job_status='RUN', time_executed='2021-09-17 01:06:00.989319', time_epoch_executed='1631865960.99' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/547646

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/547646/ft1_4FGL_J1337.6-1257_daily_bin1597.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/547646/ft2_4FGL_J1337.6-1257_daily_bin1597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/547646/ft1_4FGL_J1337.6-1257_daily_bin1597.fits outfile=/scratch/kocevski/547646/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1597.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=653270401.0 tmax=653529601.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.38
user 3.15
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/547646/ft1_filtered_4FGL_J1337.6-1257_daily_bin1597.fits" evtable="EVENTS" scfile=/scratch/kocevski/547646/ft2_4FGL_J1337.6-1257_daily_bin1597.fits sctable="SC_DATA" outfile=/scratch/kocevski/547646/ltcube_653270401_653529601_4FGL_J1337.6-1257_daily_bin1597.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/547646/ft2_4FGL_J1337.6-1257_daily_bin1597.fits
.....................!
real 13.03
user 12.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/547646/ft1_filtered_4FGL_J1337.6-1257_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/547646/ft2_4FGL_J1337.6-1257_daily_bin1597.fits sctable="SC_DATA" expcube=/scratch/kocevski/547646/ltcube_653270401_653529601_4FGL_J1337.6-1257_daily_bin1597.fits outfile=/scratch/kocevski/547646/expmap_653270401_653529601_4FGL_J1337.6-1257_daily_bin1597.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/547646/ltcube_653270401_653529601_4FGL_J1337.6-1257_daily_bin1597.fits
.....................!
real 193.30
user 187.95
sys 4.83

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/547646/ft1_filtered_4FGL_J1337.6-1257_daily_bin1597.fits scfile=/scratch/kocevski/547646/ft2_4FGL_J1337.6-1257_daily_bin1597.fits outfile=/scratch/kocevski/547646/cmap_653270401_653529601_4FGL_J1337.6-1257_daily_bin1597.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/547646/ft1_filtered_4FGL_J1337.6-1257_daily_bin1597.fits scfile=/scratch/kocevski/547646/ft2_4FGL_J1337.6-1257_daily_bin1597.fits outfile=/scratch/kocevski/547646/cmap_HighResolution_653270401_653529601_4FGL_J1337.6-1257_daily_bin1597.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.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/547646/ft1_filtered_4FGL_J1337.6-1257_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/547646/ft2_4FGL_J1337.6-1257_daily_bin1597.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/547646/Model_4FGL_J1337.6-1257_daily_bin1597.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/547646/ft1_filtered_4FGL_J1337.6-1257_daily_bin1597.fits.....................!
real 70.42
user 69.07
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4656       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    19.515       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1844       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.6612       1.0000         .10000E-03   10000.    
     8 'norm      '    .80780       1.0000         .10000E-03   10000.    
     9 'norm      '    .13343E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.7205       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.434       1.0000         .10000E-03   10000.    
    15 'norm      '    9.2330       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.695       1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.021       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.4700       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3000       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0650       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=   9187.574     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2524 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4655        6.7311        .17718E-06   -.83959E-04
   2  norm          .10000E-03    1.1368        .96644E-08** at limit **
   3  norm          19.515        15.786        .12109E-06    .19969E-05
   4  norm          .10000E-03    4.9200        .48146E-06** at limit **
   5  Prefactor     .10000E-03    2.2341       -.16125E-07** at limit **
   6  Prefactor     6.1852        6.2165        .79444E-06   -.73954E-03
   7  Prefactor     7.6845        13.049        .15101E-05    .30116E-03
   8  norm          .80810        1.8763        .22237E-06   -.51312E-03
   9  norm          .10000E-03    2.1826       -.38289E-06** at limit **
  10  norm          2.7231        5.3061       -.17196E-06   -.81925E-05
  11  Prefactor     .10000E-03    7.4441        .16694E-05** at limit **
  12  Prefactor     .10000E-03    19.592        .24249E-06** at limit **
  13  norm          .10000E-03    25.523        .31026E-06** at limit **
  14  Prefactor     17.433        10.601        .10120E-06   -.72832E-04
  15  norm          9.2330        5.0580        .44685E-07   -.26028E-04
  16  Prefactor     13.696        5.8918        .17744E-07    .18744E-03
  17  Prefactor     41.019        37.804       -.14816E-05   -.27716E-04
  18  norm          .10000E-03    6.2795       -.13055E-05** at limit **
  19  norm          6.4701        2.6962        .24630E-07    .85665E-05
  20  norm          .10000E-03    3.8938        .14049E-06** at limit **
  21  Prefactor     .10000E-03    9.3123       -.82996E-06** at limit **
  22  Normalizat    1.3000        .24064       -.59463E-06    .66495E-04
  23  Prefactor     1.0650        .11819        .63190E-09    .72904E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.46551
  norm       = 0.0001
  norm       = 19.5155
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.18523
  Prefactor  = 7.68447
  norm       = 0.808096
  norm       = 0.000100001
  norm       = 2.72313
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.4334
  norm       = 9.23301
  Prefactor  = 13.6963
  Prefactor  = 41.0186
  norm       = 0.0001
  norm       = 6.47008
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.29998
  Prefactor  = 1.06504
 **********
 **   18 **HESSE 
 **********

 FCN=   9187.574     FROM HESSE     STATUS=OK           374 CALLS     2898 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4655        6.7556        .21723E-03   -1.5336    
   2  norm          .10000E-03    1.1637        .99768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          19.515        15.785        .90666E-04   -1.4824    
   4  norm          .10000E-03    4.9339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.2358        .13992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.1852        7.7393        .80714E-03   -1.5211    
   7  Prefactor     7.6845        13.036        .14488E-03   -1.5153    
   8  norm          .80810        1.9444        .18920E-03   -1.5528    
   9  norm          .10000E-03    4.1706        .24935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.7231        5.2402        .24691E-03   -1.5378    
  11  Prefactor     .10000E-03    7.3555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    25.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.433        10.600        .95923E-04   -1.4873    
  15  norm          9.2330        5.0579        .13190E-03   -1.5100    
  16  Prefactor     13.696        5.8955        .10823E-03   -1.4968    
  17  Prefactor     41.019        37.704        .62587E-04   -1.4426    
  18  norm          .10000E-03    6.2889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.4701        2.7010        .97570E-04   -1.5199    
  20  norm          .10000E-03    3.9399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.3062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3000        .28148        .36480E-03   -.83567    
  23  Prefactor     1.0650        .13830        .20504E-03   -.90592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1662e-09
Minuit parameter uncertainties:
  1  6.75712
  2  3.61927e-07
  3  15.7879
  4  7.6614e-06
  5  8.50497e-07
  6  7.74051
  7  13.0412
  8  1.94454
  9  0.000121753
  10  5.24105
  11  3.49294e-05
  12  1.00228e-05
  13  1.37345e-05
  14  10.6011
  15  5.05815
  16  5.89579
  17  37.7255
  18  1.40491e-05
  19  2.70102
  20  3.30758e-06
  21  1.76123e-05
  22  0.281808
  23  0.138344
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.723e+00  5.241e+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.065e+00  1.383e-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.300e+00  2.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/547646/likelihoodResults_653270401_653529601_4FGL_J1337.6-1257_daily_bin1597.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) = 9187.49360603
delta logL = 0.0799979277726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9187.49091975
delta logL = 0.0826842117458

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4599       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7496       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2903       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0674       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=   9187.491     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      213 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4591        161.68        .65191E-02    .83092E-03
   2  alpha         2.7498        2.5013        .41414        .51055E-04
   3  Normalizat    1.2904        .74590E-01    .82649E-01    .24628E-04
   4  Prefactor     1.0674        .38060E-01    .38983E-01    .45960E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.4591
  alpha      = 2.7498
  Normalizat = 1.2904
  Prefactor  = 1.06736
 **********
 **   18 **HESSE 
 **********

 FCN=   9187.491     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4591        4.7947        .22539E-03   -1.5394    
   2  alpha         2.7498        1.1470        .29510E-01    .10009    
   3  Normalizat    1.2904        .26433        .36590E-03   -.83853    
   4  Prefactor     1.0674        .13629        .20481E-03   -.90517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70268e-11
Minuit parameter uncertainties:
  1  4.79548
  2  1.19209
  3  0.264611
  4  0.136334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/547646': 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) = 9187.49091966
delta logL = 0.0826843003233

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.459e+00  4.795e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.750e+00  1.192e+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.067e+00  1.363e-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.290e+00  2.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.37
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/547646/cmap_HighResolution_653270401_653529601_4FGL_J1337.6-1257_daily_bin1597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.48e-05', job_status='DONE', photon_flux_upper_limit='9.65e-08', time_completed='2021-09-17 01:18:56.347255', job_id='547646', GAL2='1.07', fit_tolerance='1e-08', EG2='1.29', EG='1.30', time_epoch_completed='1631866736.35', return_code2='0', ts='0.37', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='8.27e-02', ts2='0.54', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1597' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 01:18:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 547646: <4FGL_J1337.6-1257_daily_bin1597> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1597> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Sep 17 01:05:22 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 01:05:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 01:05:23 2021
Terminated at Fri Sep 17 01:18:57 2021
Results reported at Fri Sep 17 01:18:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1597 204.424 -12.9517 653270401 653529601 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 :                                   777.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             354.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            815 sec.

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

