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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1547
RA = 204.424, Dec = -12.9517
tmin = 640310401, tmax = 640569601
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='805416', job_status='RUN', time_executed='2021-09-08 04:58:40.550517', time_epoch_executed='1631102320.55' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1547'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805416

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805416/ft1_4FGL_J1337.6-1257_daily_bin1547.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805416/ft2_4FGL_J1337.6-1257_daily_bin1547.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805416/ft1_4FGL_J1337.6-1257_daily_bin1547.fits outfile=/scratch/kocevski/805416/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1547.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=640310401.0 tmax=640569601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.07
user 4.73
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/805416/ft2_4FGL_J1337.6-1257_daily_bin1547.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/805416/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1547.fits evtable="EVENTS" outfile="/scratch/kocevski/805416/ft1_filtered_4FGL_J1337.6-1257_daily_bin1547.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.65
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805416/ft1_filtered_4FGL_J1337.6-1257_daily_bin1547.fits" evtable="EVENTS" scfile=/scratch/kocevski/805416/ft2_4FGL_J1337.6-1257_daily_bin1547.fits sctable="SC_DATA" outfile=/scratch/kocevski/805416/ltcube_640310401_640569601_4FGL_J1337.6-1257_daily_bin1547.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/805416/ft2_4FGL_J1337.6-1257_daily_bin1547.fits
.....................!
real 14.24
user 13.79
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805416/ft1_filtered_4FGL_J1337.6-1257_daily_bin1547.fits evtable="EVENTS" scfile=/scratch/kocevski/805416/ft2_4FGL_J1337.6-1257_daily_bin1547.fits sctable="SC_DATA" expcube=/scratch/kocevski/805416/ltcube_640310401_640569601_4FGL_J1337.6-1257_daily_bin1547.fits outfile=/scratch/kocevski/805416/expmap_640310401_640569601_4FGL_J1337.6-1257_daily_bin1547.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/805416/ltcube_640310401_640569601_4FGL_J1337.6-1257_daily_bin1547.fits
.....................!
real 192.60
user 186.96
sys 4.61

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/805416/ft1_filtered_4FGL_J1337.6-1257_daily_bin1547.fits scfile=/scratch/kocevski/805416/ft2_4FGL_J1337.6-1257_daily_bin1547.fits outfile=/scratch/kocevski/805416/cmap_640310401_640569601_4FGL_J1337.6-1257_daily_bin1547.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805416/ft1_filtered_4FGL_J1337.6-1257_daily_bin1547.fits scfile=/scratch/kocevski/805416/ft2_4FGL_J1337.6-1257_daily_bin1547.fits outfile=/scratch/kocevski/805416/cmap_HighResolution_640310401_640569601_4FGL_J1337.6-1257_daily_bin1547.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=204.424 yref=-12.9517 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4756       1.0000         .10000E-03   10000.    
     3 'norm      '    10.018       1.0000         .10000E-03   10000.    
     4 'norm      '    13.322       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3211       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.525       1.0000         .10000E-03   10000.    
     8 'norm      '    2.1807       1.0000         .10000E-03   10000.    
     9 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    46.544       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.408       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    18.137       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.1387       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5729       1.0000         .10000E-03   10000.    
    18 'norm      '    1.4409       1.0000         .10000E-03   10000.    
    19 'norm      '    12.973       1.0000         .10000E-03   10000.    
    20 'norm      '    .29372       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .30546E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .80165       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0033       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=   6964.736     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2226 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1898        .15194E-06** at limit **
   2  norm          1.4757        1.4480        .67567E-07    .27532E-04
   3  norm          10.017        9.4967        .30246E-06    .11007E-04
   4  norm          13.322        12.035        .13522E-06   -.34964E-05
   5  Prefactor     .10000E-03    6.0904        .23670E-06** at limit **
   6  Prefactor     4.3239        7.0331        .12548E-06   -.39571E-04
   7  Prefactor     23.524        23.827       -.57180E-06   -.17253E-03
   8  norm          2.1809        1.8035        .25300E-06    .18832E-04
   9  norm          .10000E-03    5.0591        .16727E-05** at limit **
  10  norm          46.547        13.083       -.16518E-06   -.25486E-03
  11  Prefactor     .10000E-03    5.6623        .66492E-06** at limit **
  12  Prefactor     35.400        24.373        .59037E-06    .14997E-05
  13  norm          .10000E-03    27.626        .19683E-06** at limit **
  14  Prefactor     .10000E-03    3.0711        .23193E-06** at limit **
  15  norm          18.137        6.6819       -.49932E-06   -.88130E-04
  16  Prefactor     6.1342        7.1606       -.63503E-06   -.42925E-04
  17  Prefactor     1.6343        276.55       -.36701E-05   -.13287E-04
  18  norm          1.4546        14.470        .26483E-05    .29123E-03
  19  norm          12.972        4.2242       -.29317E-07   -.73752E-03
  20  norm          .30341        8.5117        .30390E-05   -.60062E-03
  21  Prefactor     .10001E-03    23.006        .44567E-05** at limit **
  22  Normalizat    .80170        .25957       -.51010E-05   -.19869E-03
  23  Prefactor     1.0032        .12549        .20374E-06   -.59702E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.47567
  norm       = 10.0167
  norm       = 13.3217
  Prefactor  = 0.0001
  Prefactor  = 4.32392
  Prefactor  = 23.5237
  norm       = 2.1809
  norm       = 0.0001
  norm       = 46.5466
  Prefactor  = 0.0001
  Prefactor  = 35.4003
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 18.1371
  Prefactor  = 6.13423
  Prefactor  = 1.63432
  norm       = 1.45463
  norm       = 12.9722
  norm       = 0.303408
  Prefactor  = 0.000100014
  Normalizat = 0.8017
  Prefactor  = 1.00325
 **********
 **   18 **HESSE 
 **********

 FCN=   6964.736     FROM HESSE     STATUS=OK           378 CALLS     2604 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1943        .12064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4757        1.4683        .96982E-04   -1.5465    
   3  norm          10.017        9.4967        .12660E-03   -1.5075    
   4  norm          13.322        12.033        .10974E-03   -1.4978    
   5  Prefactor     .10000E-03    6.1869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.3239        7.0183        .19379E-03   -1.5292    
   7  Prefactor     23.524        23.768        .82586E-04   -1.4738    
   8  norm          2.1809        1.7976        .95661E-04   -1.5413    
   9  norm          .10000E-03    5.3063        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          46.547        13.075        .58771E-04   -1.4342    
  11  Prefactor     .10000E-03    5.7322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     35.400        24.377        .67348E-04   -1.4517    
  13  norm          .10000E-03    27.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.0857        .14290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.137        6.6448        .94045E-04   -1.4856    
  16  Prefactor     6.1342        7.5353        .16204E-03   -1.5213    
  17  Prefactor     1.6343        273.92        .33889E-03   -1.5452    
  18  norm          1.4546        18.979        .17969E-02   -1.5467    
  19  norm          12.972        4.2130        .89670E-04   -1.4987    
  20  norm          .30341        29.567        .37180E-02   -1.5598    
  21  Prefactor     .10001E-03    54.428        .58065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .80170        .28762        .39908E-03   -1.0001    
  23  Prefactor     1.0032        .14345        .19145E-03   -.92621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24591e-09
Minuit parameter uncertainties:
  1  4.57346e-06
  2  1.46833
  3  9.49814
  4  12.0356
  5  2.22724e-05
  6  7.01963
  7  23.7778
  8  1.79765
  9  8.19752e-05
  10  13.0762
  11  3.15112e-05
  12  24.3834
  13  1.4326e-05
  14  1.24753e-05
  15  6.64504
  16  7.53644
  17  42.5145
  18  10.5123
  19  4.21308
  20  5.99235
  21  0.00173026
  22  0.288166
  23  0.143508
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  4.655e+01  1.308e+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.003e+00  1.435e-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.017e-01  2.882e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 48.25
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 2.83e-07 +/- 7.96e-08
Energy Flux (Fixed Index): 1.02e-04 +/- 2.87e-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) = 6964.56019945
delta logL = 0.175880571366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6964.51778895
delta logL = 0.218291068468

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    50.128       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1140       1.0000          .0000       5.0000    
     3 'Normalizat'    .84539       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98852       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=   6964.518     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      219 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          50.146        32.515        .14160E-02   -.61258E-05
   2  alpha         2.1133        .65365        .19613        .28560E-04
   3  Normalizat    .84585        .25777        .88060E-01   -.37652E-05
   4  Prefactor     .98830        .12931        .46123E-01   -.75823E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 50.1458
  alpha      = 2.11334
  Normalizat = 0.845853
  Prefactor  = 0.9883
 **********
 **   18 **HESSE 
 **********

 FCN=   6964.518     FROM HESSE     STATUS=OK            31 CALLS      250 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          50.146        13.473        .56641E-04   -1.4291    
   2  alpha         2.1133        .28977        .80982E-02   -.15529    
   3  Normalizat    .84585        .27066        .38999E-03   -.98390    
   4  Prefactor     .98830        .14140        .19280E-03   -.93121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23056e-10
Minuit parameter uncertainties:
  1  13.4737
  2  0.290443
  3  0.271099
  4  0.141449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805416': 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) = 6964.51778535
delta logL = 0.218294669084

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  5.015e+01  1.347e+01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.113e+00  2.904e-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:  9.883e-01  1.414e-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.459e-01  2.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 49.04
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.11 +/- 0.29
Photon Flux (Free Index): 2.47e-07 +/- 8.39e-08
Energy Flux (Free Index): 1.11e-04 +/- 3.29e-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/805416/cmap_HighResolution_640310401_640569601_4FGL_J1337.6-1257_daily_bin1547.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.83e-07', energy_flux2='1.11e-04', photon_flux_error='7.96e-08', dlogl='2.18e-01', energy_flux='1.02e-04', photon_flux2='2.47e-07', job_status='DONE', time_completed='2021-09-08 05:09:17.253347', photon_index_error2='0.29', photon_index2='2.11', ts='48.25', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='3.29e-05', EG='0.80', time_epoch_completed='1631102957.25', return_code='0', job_id='805416', GAL2='0.99', EG2='0.85', return_code2='0', energy_flux_error='2.87e-05', photon_flux_error2='8.39e-08', ts2='49.04', photon_index='2.30' WHERE bin_id='1547' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:09:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 805416: <4FGL_J1337.6-1257_daily_bin1547> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1547> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 04:55:56 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:57:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 04:57:42 2021
Terminated at Wed Sep  8 05:09:18 2021
Results reported at Wed Sep  8 05:09:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1547 204.424 -12.9517 640310401 640569601 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 :                                   597.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             358.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            802 sec.

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

