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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1581
RA = 204.424, Dec = -12.9517
tmin = 649123201, tmax = 649382401
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='806616', job_status='RUN', time_executed='2021-09-08 05:03:03.980753', time_epoch_executed='1631102583.98' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806616

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806616/ft1_4FGL_J1337.6-1257_daily_bin1581.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806616/ft2_4FGL_J1337.6-1257_daily_bin1581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806616/ft1_4FGL_J1337.6-1257_daily_bin1581.fits outfile=/scratch/kocevski/806616/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1581.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=649123201.0 tmax=649382401.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.02
user 2.80
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/806616/ft2_4FGL_J1337.6-1257_daily_bin1581.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/806616/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1581.fits evtable="EVENTS" outfile="/scratch/kocevski/806616/ft1_filtered_4FGL_J1337.6-1257_daily_bin1581.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/806616/ft1_filtered_4FGL_J1337.6-1257_daily_bin1581.fits" evtable="EVENTS" scfile=/scratch/kocevski/806616/ft2_4FGL_J1337.6-1257_daily_bin1581.fits sctable="SC_DATA" outfile=/scratch/kocevski/806616/ltcube_649123201_649382401_4FGL_J1337.6-1257_daily_bin1581.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/806616/ft2_4FGL_J1337.6-1257_daily_bin1581.fits
.....................!
real 17.43
user 16.90
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806616/ft1_filtered_4FGL_J1337.6-1257_daily_bin1581.fits evtable="EVENTS" scfile=/scratch/kocevski/806616/ft2_4FGL_J1337.6-1257_daily_bin1581.fits sctable="SC_DATA" expcube=/scratch/kocevski/806616/ltcube_649123201_649382401_4FGL_J1337.6-1257_daily_bin1581.fits outfile=/scratch/kocevski/806616/expmap_649123201_649382401_4FGL_J1337.6-1257_daily_bin1581.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/806616/ltcube_649123201_649382401_4FGL_J1337.6-1257_daily_bin1581.fits
.....................!
real 192.13
user 186.43
sys 5.11

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/806616/ft1_filtered_4FGL_J1337.6-1257_daily_bin1581.fits scfile=/scratch/kocevski/806616/ft2_4FGL_J1337.6-1257_daily_bin1581.fits outfile=/scratch/kocevski/806616/cmap_649123201_649382401_4FGL_J1337.6-1257_daily_bin1581.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806616/ft1_filtered_4FGL_J1337.6-1257_daily_bin1581.fits scfile=/scratch/kocevski/806616/ft2_4FGL_J1337.6-1257_daily_bin1581.fits outfile=/scratch/kocevski/806616/cmap_HighResolution_649123201_649382401_4FGL_J1337.6-1257_daily_bin1581.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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/806616/ft1_filtered_4FGL_J1337.6-1257_daily_bin1581.fits evtable="EVENTS" scfile=/scratch/kocevski/806616/ft2_4FGL_J1337.6-1257_daily_bin1581.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/806616/Model_4FGL_J1337.6-1257_daily_bin1581.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/806616/ft1_filtered_4FGL_J1337.6-1257_daily_bin1581.fits.....................!
real 87.44
user 86.01
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .53963       1.0000         .10000E-03   10000.    
     3 'norm      '    65.996       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9349       1.0000         .10000E-03   10000.    
     8 'norm      '    3.0334       1.0000         .10000E-03   10000.    
     9 'norm      '    .10682E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    22.462       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.3727       1.0000         .10000E-03   10000.    
    15 'norm      '    8.5822       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.7405       1.0000         .10000E-03   10000.    
    18 'norm      '    .10463E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.6037       1.0000         .10000E-03   10000.    
    20 'norm      '    3.3548       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1360       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0859       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=   11825.32     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2221 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6332       -.76603E-07** at limit **
   2  norm          .53956        1.4113        .37358E-07   -.49855E-03
   3  norm          65.996        15.186       -.75717E-07   -.48520E-04
   4  norm          .10000E-03    3.2064        .64742E-07** at limit **
   5  Prefactor     .10000E-03    4.7338        .14919E-06** at limit **
   6  Prefactor     .10000E-03    13.779        .37382E-05** at limit **
   7  Prefactor     1.9259        15.727        .39876E-05   -.12141E-04
   8  norm          3.0334        1.2263       -.24063E-08   -.16142E-03
   9  norm          .10000E-03    2.5515       -.22439E-06** at limit **
  10  norm          22.462        7.6770       -.54281E-06   -.19607E-03
  11  Prefactor     .10000E-03    6.3245        .55718E-06** at limit **
  12  Prefactor     .10000E-03    17.655        .29529E-05** at limit **
  13  norm          .10000E-03    15.838       -.65373E-05** at limit **
  14  Prefactor     8.3729        8.1099        .62406E-07   -.51780E-03
  15  norm          8.5834        4.6626       -.45302E-07   -.65901E-04
  16  Prefactor     .10000E-03    2.6922        .69362E-08** at limit **
  17  Prefactor     8.6955        32.928       -.27946E-05   -.11520E-04
  18  norm          .10000E-03    1.9904       -.13166E-06** at limit **
  19  norm          8.6034        2.6320        .16875E-08   -.15040E-04
  20  norm          3.3544        2.4136        .14511E-06   -.18024E-02
  21  Prefactor     .10000E-03    9.1435       -.52758E-06** at limit **
  22  Normalizat    1.1361        .19513       -.15835E-06   -.11300E-03
  23  Prefactor     1.0859        .10333        .80643E-07   -.15521E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.539561
  norm       = 65.9958
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.92592
  norm       = 3.03335
  norm       = 0.0001
  norm       = 22.4619
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.3729
  norm       = 8.58339
  Prefactor  = 0.0001
  Prefactor  = 8.69552
  norm       = 0.0001
  norm       = 8.60343
  norm       = 3.35437
  Prefactor  = 0.0001
  Normalizat = 1.1361
  Prefactor  = 1.0859
 **********
 **   18 **HESSE 
 **********

 FCN=   11825.32     FROM HESSE     STATUS=OK           372 CALLS     2593 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6737        .17231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .53956        1.4169        .20597E-03   -1.5561    
   3  norm          65.996        15.210        .49403E-04   -1.4081    
   4  norm          .10000E-03    3.2184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.8197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.065        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.9259        15.420        .29854E-03   -1.5430    
   8  norm          3.0334        1.2273        .73384E-04   -1.5360    
   9  norm          .10000E-03    2.6114        .33541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          22.462        7.6050        .84515E-04   -1.4760    
  11  Prefactor     .10000E-03    6.3513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    15.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.3729        8.4076        .69272E-03   -1.5129    
  15  norm          8.5834        4.6589        .13683E-03   -1.5122    
  16  Prefactor     .10000E-03    2.7658        .34772E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.6955        32.894        .13558E-03   -1.5118    
  18  norm          .10000E-03    5.7144        .29709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.6034        2.6397        .93440E-04   -1.5121    
  20  norm          3.3544        4.7412        .11048E-02   -1.5342    
  21  Prefactor     .10000E-03    9.1879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1361        .22379        .36550E-03   -.88601    
  23  Prefactor     1.0859        .11923        .20325E-03   -.89918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5424e-09
Minuit parameter uncertainties:
  1  5.1661e-07
  2  1.41703
  3  15.2104
  4  3.07813e-07
  5  6.95303e-06
  6  4.42027e-05
  7  10.9026
  8  1.22732
  9  2.45402e-05
  10  7.60536
  11  3.67769e-06
  12  2.92996e-05
  13  7.88957e-05
  14  8.4088
  15  4.65909
  16  5.81868e-06
  17  32.9626
  18  8.31468e-05
  19  2.63975
  20  4.74171
  21  3.49937e-06
  22  0.223982
  23  0.119263
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.246e+01  7.605e+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.086e+00  1.193e-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.136e+00  2.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.53
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.37e-07 +/- 4.63e-08
Energy Flux (Fixed Index): 4.93e-05 +/- 1.67e-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) = 11825.0822678
delta logL = 0.242479254901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11825.0649533
delta logL = 0.259793722504

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.912       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5980       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0930       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1011       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=   11825.06     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      273 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.911        8.8109        .92099E-04    .10512E-02
   2  alpha         2.5981        .43924        .10099E-01    .11591E-03
   3  Normalizat    1.0931        .22517        .37159E-03   -.91784E-04
   4  Prefactor     1.1011        .11994        .20201E-03   -.33366E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 18.9115
  alpha      = 2.59807
  Normalizat = 1.09306
  Prefactor  = 1.1011
 **********
 **   18 **HESSE 
 **********

 FCN=   11825.06     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.911        8.3140        .36840E-05   -1.4838    
   2  alpha         2.5981        .41412        .40397E-03    .39239E-01
   3  Normalizat    1.0931        .22451        .14864E-04   -.89975    
   4  Prefactor     1.1011        .11974        .40403E-04   -.89431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70935e-10
Minuit parameter uncertainties:
  1  8.31447
  2  0.416045
  3  0.22471
  4  0.11977
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806616': 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) = 11825.0649533
delta logL = 0.259793786867

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.891e+01  8.314e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.598e+00  4.160e-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.101e+00  1.198e-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.093e+00  2.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.05
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.60 +/- 0.42
Photon Flux (Free Index): 1.66e-07 +/- 6.24e-08
Energy Flux (Free Index): 4.60e-05 +/- 1.45e-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/806616/cmap_HighResolution_649123201_649382401_4FGL_J1337.6-1257_daily_bin1581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.37e-07', energy_flux2='4.60e-05', photon_flux_error='4.63e-08', dlogl='2.60e-01', energy_flux='4.93e-05', photon_flux2='1.66e-07', job_status='DONE', time_completed='2021-09-08 05:16:33.210525', photon_index_error2='0.42', photon_index2='2.60', ts='21.53', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.45e-05', EG='1.14', time_epoch_completed='1631103393.21', return_code='0', job_id='806616', GAL2='1.10', EG2='1.09', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='6.24e-08', ts2='22.05', photon_index='2.30' WHERE bin_id='1581' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:16:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 806616: <4FGL_J1337.6-1257_daily_bin1581> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1581> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 05:00:25 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 05:00:28 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:28 2021
Terminated at Wed Sep  8 05:16:34 2021
Results reported at Wed Sep  8 05:16:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1581 204.424 -12.9517 649123201 649382401 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 :                                   802.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            969 sec.

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

