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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1572
RA = 204.424, Dec = -12.9517
tmin = 646790401, tmax = 647049601
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='806603', job_status='RUN', time_executed='2021-09-08 05:01:41.958988', time_epoch_executed='1631102501.96' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1572'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806603

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806603/ft1_4FGL_J1337.6-1257_daily_bin1572.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806603/ft2_4FGL_J1337.6-1257_daily_bin1572.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806603/ft1_4FGL_J1337.6-1257_daily_bin1572.fits outfile=/scratch/kocevski/806603/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1572.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=646790401.0 tmax=647049601.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.62
user 3.41
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806603/ft1_filtered_4FGL_J1337.6-1257_daily_bin1572.fits" evtable="EVENTS" scfile=/scratch/kocevski/806603/ft2_4FGL_J1337.6-1257_daily_bin1572.fits sctable="SC_DATA" outfile=/scratch/kocevski/806603/ltcube_646790401_647049601_4FGL_J1337.6-1257_daily_bin1572.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/806603/ft2_4FGL_J1337.6-1257_daily_bin1572.fits
.....................!
real 15.49
user 14.95
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806603/ft1_filtered_4FGL_J1337.6-1257_daily_bin1572.fits evtable="EVENTS" scfile=/scratch/kocevski/806603/ft2_4FGL_J1337.6-1257_daily_bin1572.fits sctable="SC_DATA" expcube=/scratch/kocevski/806603/ltcube_646790401_647049601_4FGL_J1337.6-1257_daily_bin1572.fits outfile=/scratch/kocevski/806603/expmap_646790401_647049601_4FGL_J1337.6-1257_daily_bin1572.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/806603/ltcube_646790401_647049601_4FGL_J1337.6-1257_daily_bin1572.fits
.....................!
real 191.46
user 186.03
sys 4.62

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/806603/ft1_filtered_4FGL_J1337.6-1257_daily_bin1572.fits scfile=/scratch/kocevski/806603/ft2_4FGL_J1337.6-1257_daily_bin1572.fits outfile=/scratch/kocevski/806603/cmap_646790401_647049601_4FGL_J1337.6-1257_daily_bin1572.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806603/ft1_filtered_4FGL_J1337.6-1257_daily_bin1572.fits scfile=/scratch/kocevski/806603/ft2_4FGL_J1337.6-1257_daily_bin1572.fits outfile=/scratch/kocevski/806603/cmap_HighResolution_646790401_647049601_4FGL_J1337.6-1257_daily_bin1572.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/806603/ft1_filtered_4FGL_J1337.6-1257_daily_bin1572.fits evtable="EVENTS" scfile=/scratch/kocevski/806603/ft2_4FGL_J1337.6-1257_daily_bin1572.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/806603/Model_4FGL_J1337.6-1257_daily_bin1572.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/806603/ft1_filtered_4FGL_J1337.6-1257_daily_bin1572.fits.....................!
real 71.87
user 70.25
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.8546       1.0000         .10000E-03   10000.    
     3 'norm      '    53.007       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .30668       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.305       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    14.873       1.0000         .10000E-03   10000.    
     9 'norm      '    12.973       1.0000         .10000E-03   10000.    
    10 'norm      '    29.230       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.3698       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.035       1.0000         .10000E-03   10000.    
    13 'norm      '    33.722       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10316E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .26432E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22736E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.8496       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .86141       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1889       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=   9183.467     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2561 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.8906       -.49768E-05** at limit **
   2  norm          1.8545        1.3379        .56782E-07    .16025E-03
   3  norm          53.005        17.690       -.48977E-06    .97157E-05
   4  norm          .10000E-03    7.7837        .52172E-07** at limit **
   5  Prefactor     .30190        5.8659       -.83990E-06    .10744E-03
   6  Prefactor     14.304        10.823        .10942E-06    .65029E-04
   7  Prefactor     .10000E-03    12.713       -.36148E-05** at limit **
   8  norm          14.873        2.7541       -.27766E-07   -.33975E-04
   9  norm          12.973        6.0433        .34178E-06    .59761E-05
  10  norm          29.239        12.916       -.22943E-05   -.13251E-03
  11  Prefactor     9.3627        15.559        .26842E-05   -.24398E-03
  12  Prefactor     18.014        30.748       -.25101E-04   -.27577E-04
  13  norm          33.720        34.325       -.24164E-05    .73132E-06
  14  Prefactor     .10000E-03    9.7444        .13899E-05** at limit **
  15  norm          .10164E-03    2.7926        .12375E-05** at limit **
  16  Prefactor     .10001E-03    4.5945        .41129E-06** at limit **
  17  Prefactor     .10000E-03    62.046       -.22641E-05** at limit **
  18  norm          .10000E-03    5.0429        .30764E-06** at limit **
  19  norm          4.8502        2.9340       -.29724E-06   -.38627E-03
  20  norm          .10000E-03    1.7345       -.34950E-06** at limit **
  21  Prefactor     .10000E-03    10.795        .47008E-05** at limit **
  22  Normalizat    .86139        .26056       -.82815E-06   -.90299E-04
  23  Prefactor     1.1890        .12991        .15171E-05   -.42927E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.85448
  norm       = 53.0053
  norm       = 0.0001
  Prefactor  = 0.301903
  Prefactor  = 14.3042
  Prefactor  = 0.0001
  norm       = 14.8735
  norm       = 12.9733
  norm       = 29.2394
  Prefactor  = 9.36272
  Prefactor  = 18.0139
  norm       = 33.7202
  Prefactor  = 0.0001
  norm       = 0.000101636
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.85024
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.861385
  Prefactor  = 1.18897
 **********
 **   18 **HESSE 
 **********

 FCN=   9183.467     FROM HESSE     STATUS=OK           378 CALLS     2939 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.1112        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8545        1.3349        .91878E-04   -1.5436    
   3  norm          53.005        17.672        .55089E-04   -1.4251    
   4  norm          .10000E-03    7.8736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .30190        83.707        .43152E-02   -1.5598    
   6  Prefactor     14.304        10.817        .10590E-03   -1.4951    
   7  Prefactor     .10000E-03    12.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.873        2.7565        .64461E-04   -1.4936    
   9  norm          12.973        6.0448        .11121E-03   -1.4987    
  10  norm          29.239        12.769        .74104E-04   -1.4626    
  11  Prefactor     9.3627        15.170        .13092E-03   -1.5096    
  12  Prefactor     18.014        30.766        .94310E-04   -1.4859    
  13  norm          33.720        34.329        .69005E-04   -1.4546    
  14  Prefactor     .10000E-03    9.8082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10164E-03    45.753        .29685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    19.885        .37768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    62.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.0847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.8502        2.9335        .12205E-03   -1.5267    
  20  norm          .10000E-03    1.7352        .12325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .86139        .28201        .44671E-03   -.97831    
  23  Prefactor     1.1890        .14444        .20576E-03   -.86671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44507e-08
Minuit parameter uncertainties:
  1  1.89617e-05
  2  1.33494
  3  17.6733
  4  5.90263e-06
  5  10.0667
  6  10.8184
  7  5.34103e-05
  8  2.75653
  9  6.04504
  10  12.7701
  11  15.1762
  12  30.7931
  13  34.3492
  14  6.07884e-05
  15  0.0173157
  16  0.00064859
  17  8.51863e-05
  18  1.44687e-06
  19  2.93363
  20  7.3088e-08
  21  9.83962e-06
  22  0.282489
  23  0.144487
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.924e+01  1.277e+01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.305e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  1.384e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  7.541e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  1.189e+00  1.445e-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:  8.614e-01  2.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.34
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.78e-07 +/- 7.77e-08
Energy Flux (Fixed Index): 6.42e-05 +/- 2.80e-05

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) = 9183.36336231
delta logL = 0.104116290004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9183.35393776
delta logL = 0.113540838676

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.773       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4935       1.0000          .0000       5.0000    
     3 'Normalizat'    .82974       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1996       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=   9183.354     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      273 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.773        12.306        .77423E-04   -.15301E-03
   2  alpha         2.4935        .41134        .10258E-01   -.16578E-04
   3  Normalizat    .82976        .27466        .45414E-03    .14119E-04
   4  Prefactor     1.1996        .14367        .20494E-03    .56582E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 26.7732
  alpha      = 2.49347
  Normalizat = 0.829761
  Prefactor  = 1.19961
 **********
 **   18 **HESSE 
 **********

 FCN=   9183.354     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.773        11.941        .30969E-05   -1.4673    
   2  alpha         2.4935        .39864        .41031E-03   -.26117E-02
   3  Normalizat    .82976        .27438        .18166E-04   -.98974    
   4  Prefactor     1.1996        .14356        .81977E-05   -.86343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85287e-11
Minuit parameter uncertainties:
  1  11.9424
  2  0.400354
  3  0.274839
  4  0.143609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806603': 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) = 9183.35393776
delta logL = 0.113540841938

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.677e+01  1.194e+01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.493e+00  4.004e-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:  1.200e+00  1.436e-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:  8.298e-01  2.748e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.91
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.49 +/- 0.40
Photon Flux (Free Index): 2.05e-07 +/- 9.20e-08
Energy Flux (Free Index): 6.19e-05 +/- 2.35e-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/806603/cmap_HighResolution_646790401_647049601_4FGL_J1337.6-1257_daily_bin1572.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.78e-07', energy_flux2='6.19e-05', photon_flux_error='7.77e-08', dlogl='1.14e-01', energy_flux='6.42e-05', photon_flux2='2.05e-07', job_status='DONE', time_completed='2021-09-08 05:13:34.418011', photon_index_error2='0.40', photon_index2='2.49', ts='11.34', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='2.35e-05', EG='0.86', time_epoch_completed='1631103214.42', return_code='0', job_id='806603', GAL2='1.20', EG2='0.83', return_code2='0', energy_flux_error='2.80e-05', photon_flux_error2='9.20e-08', ts2='11.91', photon_index='2.30' WHERE bin_id='1572' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:13:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 806603: <4FGL_J1337.6-1257_daily_bin1572> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1572> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 05:00:24 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 05:00:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 05:00:27 2021
Terminated at Wed Sep  8 05:13:35 2021
Results reported at Wed Sep  8 05:13:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1572 204.424 -12.9517 646790401 647049601 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 :                                   706.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             306.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            791 sec.

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

