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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin378
RA = 204.424, Dec = -12.9517
tmin = 337305601, tmax = 337564801
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='799114', job_status='RUN', time_executed='2021-09-08 04:42:23.941296', time_epoch_executed='1631101343.94' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='378'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799114

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799114/ft1_4FGL_J1337.6-1257_daily_bin378.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799114/ft2_4FGL_J1337.6-1257_daily_bin378.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799114/ft1_4FGL_J1337.6-1257_daily_bin378.fits outfile=/scratch/kocevski/799114/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin378.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=337305601.0 tmax=337564801.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 7.60
user 7.23
sys 0.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799114/ft1_filtered_4FGL_J1337.6-1257_daily_bin378.fits" evtable="EVENTS" scfile=/scratch/kocevski/799114/ft2_4FGL_J1337.6-1257_daily_bin378.fits sctable="SC_DATA" outfile=/scratch/kocevski/799114/ltcube_337305601_337564801_4FGL_J1337.6-1257_daily_bin378.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/799114/ft2_4FGL_J1337.6-1257_daily_bin378.fits
.....................!
real 14.31
user 13.90
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799114/ft1_filtered_4FGL_J1337.6-1257_daily_bin378.fits evtable="EVENTS" scfile=/scratch/kocevski/799114/ft2_4FGL_J1337.6-1257_daily_bin378.fits sctable="SC_DATA" expcube=/scratch/kocevski/799114/ltcube_337305601_337564801_4FGL_J1337.6-1257_daily_bin378.fits outfile=/scratch/kocevski/799114/expmap_337305601_337564801_4FGL_J1337.6-1257_daily_bin378.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/799114/ltcube_337305601_337564801_4FGL_J1337.6-1257_daily_bin378.fits
.....................!
real 194.38
user 188.83
sys 5.02

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/799114/ft1_filtered_4FGL_J1337.6-1257_daily_bin378.fits scfile=/scratch/kocevski/799114/ft2_4FGL_J1337.6-1257_daily_bin378.fits outfile=/scratch/kocevski/799114/cmap_337305601_337564801_4FGL_J1337.6-1257_daily_bin378.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799114/ft1_filtered_4FGL_J1337.6-1257_daily_bin378.fits scfile=/scratch/kocevski/799114/ft2_4FGL_J1337.6-1257_daily_bin378.fits outfile=/scratch/kocevski/799114/cmap_HighResolution_337305601_337564801_4FGL_J1337.6-1257_daily_bin378.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.4695       1.0000         .10000E-03   10000.    
     2 'norm      '    3.1892       1.0000         .10000E-03   10000.    
     3 'norm      '    .10262E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16612E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3257       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.0154       1.0000         .10000E-03   10000.    
    10 'norm      '    6.2520       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14387E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.750       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.720       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2070       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11220       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .57007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.0153       1.0000         .10000E-03   10000.    
    20 'norm      '    17.145       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.849       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6042       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80837       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=   9085.638     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2209 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.4723        9.5095        .51325E-06   -.11922E-04
   2  norm          3.1894        2.0054        .44659E-07   -.39244E-04
   3  norm          .10000E-03    2.4226        .37838E-07** at limit **
   4  norm          .10000E-03    2.4503        .72096E-08** at limit **
   5  Prefactor     .10015E-03    6.3951        .28393E-05** at limit **
   6  Prefactor     8.3320        7.5347        .25359E-06   -.38377E-03
   7  Prefactor     .10000E-03    14.852       -.65835E-06** at limit **
   8  norm          .10000E-03    .36708        .19013E-07** at limit **
   9  norm          1.0184        2.5890        .15905E-05    .49671E-03
  10  norm          6.2478        6.9068       -.97781E-06   -.48250E-03
  11  Prefactor     .10006E-03    8.9267        .22770E-05** at limit **
  12  Prefactor     11.751        22.117        .40452E-06   -.30506E-04
  13  norm          .10000E-03    10.147        .28089E-07** at limit **
  14  Prefactor     14.712        11.846        .45944E-07   -.46579E-03
  15  norm          2.2052        2.6775       -.17916E-06   -.35563E-03
  16  Prefactor     .10995        1.9794        .12608E-06    .21338E-04
  17  Prefactor     .10004E-03    130.32       -.90176E-05** at limit **
  18  norm          .10000E-03    2.8527       -.73999E-08** at limit **
  19  norm          3.0152        2.4267        .18247E-06    .93546E-04
  20  norm          17.146        8.7939        .36561E-07   -.35438E-04
  21  Prefactor     10.848        17.722        .24984E-06   -.18164E-04
  22  Normalizat    1.6042        .20904       -.72236E-06   -.82838E-03
  23  Prefactor     .80827        .10916       -.72886E-06   -.11077E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 7.47225
  norm       = 3.18935
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100153
  Prefactor  = 8.33205
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 1.01844
  norm       = 6.24776
  Prefactor  = 0.000100058
  Prefactor  = 11.7511
  norm       = 0.0001
  Prefactor  = 14.712
  norm       = 2.20521
  Prefactor  = 0.10995
  Prefactor  = 0.000100038
  norm       = 0.0001
  norm       = 3.01517
  norm       = 17.1457
  Prefactor  = 10.8479
  Normalizat = 1.60424
  Prefactor  = 0.808271
 **********
 **   18 **HESSE 
 **********

 FCN=   9085.638     FROM HESSE     STATUS=OK           378 CALLS     2587 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.4723        9.5282        .14674E-03   -1.5161    
   2  norm          3.1894        2.0056        .10411E-03   -1.5351    
   3  norm          .10000E-03    5.2872        .28946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.4521        .14572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10015E-03    21.560        .37363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.3320        7.4733        .13894E-03   -1.5131    
   7  Prefactor     .10000E-03    15.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .37506        .56357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.0184        2.5871        .21385E-03   -1.5506    
  10  norm          6.2478        6.8741        .16054E-03   -1.5208    
  11  Prefactor     .10006E-03    35.078        .48706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.751        22.124        .11687E-03   -1.5022    
  13  norm          .10000E-03    10.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.712        11.330        .10440E-03   -1.4941    
  15  norm          2.2052        2.6682        .16655E-03   -1.5411    
  16  Prefactor     .10995        42.938        .25286E-02   -1.5642    
  17  Prefactor     .10004E-03    134.21        .42182E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.8676        .15702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.0152        2.4224        .12650E-03   -1.5361    
  20  norm          17.146        8.7843        .96727E-04   -1.4880    
  21  Prefactor     10.848        17.719        .12163E-03   -1.5049    
  22  Normalizat    1.6042        .24666        .30607E-03   -.74890    
  23  Prefactor     .80827        .12764        .21713E-03   -.99424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04336e-08
Minuit parameter uncertainties:
  1  9.5301
  2  2.00569
  3  1.38104e-05
  4  5.32966e-07
  5  0.00363313
  6  7.47409
  7  0.000182441
  8  9.90245e-07
  9  2.58736
  10  6.87501
  11  0.00284789
  12  22.1398
  13  8.10114e-06
  14  11.3315
  15  2.66835
  16  4.34672
  17  0.00455211
  18  2.4085e-06
  19  2.42247
  20  8.78499
  21  17.7278
  22  0.246844
  23  0.12769
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  6.248e+00  6.875e+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:  8.083e-01  1.277e-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.604e+00  2.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.47
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 3.80e-08 +/- 4.18e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.51e-05

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

Saving results to:
/scratch/kocevski/799114/likelihoodResults_337305601_337564801_4FGL_J1337.6-1257_daily_bin378.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) = 9085.58937575
delta logL = 0.0482714664995

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9085.58063548
delta logL = 0.0570117390398

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4824       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6238       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5891       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81324       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=   9085.581     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      241 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4820        6.8564        .17160E-03    .28010E-03
   2  alpha         2.6238        1.0259        .20567E-01    .28213E-04
   3  Normalizat    1.5891        .24220        .30722E-03   -.18739E-03
   4  Prefactor     .81323        .12633        .21654E-03   -.35511E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.482
  alpha      = 2.62376
  Normalizat = 1.58913
  Prefactor  = 0.813231
 **********
 **   18 **HESSE 
 **********

 FCN=   9085.581     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4820        6.2923        .68642E-05   -1.5240    
   2  alpha         2.6238        .94498        .82268E-03    .49525E-01
   3  Normalizat    1.5891        .24179        .61444E-04   -.75304    
   4  Prefactor     .81323        .12612        .43307E-04   -.99242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35431e-10
Minuit parameter uncertainties:
  1  6.29304
  2  0.969132
  3  0.241967
  4  0.126167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799114': 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) = 9085.58063547
delta logL = 0.0570117440802

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  5.482e+00  6.293e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.624e+00  9.691e-01  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:  8.132e-01  1.262e-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.589e+00  2.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.61
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.62 +/- 0.97
Photon Flux (Free Index): 4.96e-08 +/- 5.37e-08
Energy Flux (Free Index): 1.35e-05 +/- 1.25e-05

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/799114/cmap_HighResolution_337305601_337564801_4FGL_J1337.6-1257_daily_bin378.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-05', comment='SUCCESS', photon_flux='3.80e-08', energy_flux2='1.35e-05', photon_flux_error='4.18e-08', dlogl='5.70e-02', energy_flux='1.37e-05', photon_flux2='4.96e-08', job_status='DONE', time_completed='2021-09-08 04:55:34.207889', photon_index_error2='0.97', photon_index2='2.62', ts='1.47', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.25e-05', EG='1.60', time_epoch_completed='1631102134.21', return_code='0', job_id='799114', GAL2='0.81', EG2='1.59', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='5.37e-08', ts2='1.61', photon_index='2.30' WHERE bin_id='378' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:55:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 799114: <4FGL_J1337.6-1257_daily_bin378> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin378> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 04:40:23 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:40:29 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:40:29 2021
Terminated at Wed Sep  8 04:55:34 2021
Results reported at Wed Sep  8 04:55:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin378 204.424 -12.9517 337305601 337564801 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 :                                   785.30 sec.
    Max Memory :                                 1239 MB
    Average Memory :                             328.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            911 sec.

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

