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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1521
RA = 204.424, Dec = -12.9517
tmin = 633571201, tmax = 633830401
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='805390', job_status='RUN', time_executed='2021-09-08 04:58:48.129632', time_epoch_executed='1631102328.13' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1521'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805390

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805390/ft1_4FGL_J1337.6-1257_daily_bin1521.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805390/ft2_4FGL_J1337.6-1257_daily_bin1521.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805390/ft1_4FGL_J1337.6-1257_daily_bin1521.fits outfile=/scratch/kocevski/805390/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1521.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=633571201.0 tmax=633830401.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.68
user 3.38
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805390/ft1_filtered_4FGL_J1337.6-1257_daily_bin1521.fits" evtable="EVENTS" scfile=/scratch/kocevski/805390/ft2_4FGL_J1337.6-1257_daily_bin1521.fits sctable="SC_DATA" outfile=/scratch/kocevski/805390/ltcube_633571201_633830401_4FGL_J1337.6-1257_daily_bin1521.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/805390/ft2_4FGL_J1337.6-1257_daily_bin1521.fits
.....................!
real 18.51
user 18.08
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805390/ft1_filtered_4FGL_J1337.6-1257_daily_bin1521.fits evtable="EVENTS" scfile=/scratch/kocevski/805390/ft2_4FGL_J1337.6-1257_daily_bin1521.fits sctable="SC_DATA" expcube=/scratch/kocevski/805390/ltcube_633571201_633830401_4FGL_J1337.6-1257_daily_bin1521.fits outfile=/scratch/kocevski/805390/expmap_633571201_633830401_4FGL_J1337.6-1257_daily_bin1521.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/805390/ltcube_633571201_633830401_4FGL_J1337.6-1257_daily_bin1521.fits
.....................!
real 194.53
user 188.84
sys 5.23

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/805390/ft1_filtered_4FGL_J1337.6-1257_daily_bin1521.fits scfile=/scratch/kocevski/805390/ft2_4FGL_J1337.6-1257_daily_bin1521.fits outfile=/scratch/kocevski/805390/cmap_633571201_633830401_4FGL_J1337.6-1257_daily_bin1521.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.58
user 0.42
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805390/ft1_filtered_4FGL_J1337.6-1257_daily_bin1521.fits scfile=/scratch/kocevski/805390/ft2_4FGL_J1337.6-1257_daily_bin1521.fits outfile=/scratch/kocevski/805390/cmap_HighResolution_633571201_633830401_4FGL_J1337.6-1257_daily_bin1521.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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805390/ft1_filtered_4FGL_J1337.6-1257_daily_bin1521.fits evtable="EVENTS" scfile=/scratch/kocevski/805390/ft2_4FGL_J1337.6-1257_daily_bin1521.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805390/Model_4FGL_J1337.6-1257_daily_bin1521.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/805390/ft1_filtered_4FGL_J1337.6-1257_daily_bin1521.fits.....................!
real 65.25
user 63.71
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .78829       1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1741       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10454E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3422       1.0000         .10000E-03   10000.    
     9 'norm      '    .82223E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    10.635       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.645       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.7547       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19719E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .93156       1.0000         .10000E-03   10000.    
    19 'norm      '    23.214       1.0000         .10000E-03   10000.    
    20 'norm      '    3.0437       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.1129       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3652       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .90231       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=   7747.524     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2545 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9521       -.33827E-06** at limit **
   2  norm          .78832        2.3509       -.23147E-06   -.14032E-03
   3  norm          .10000E-03    4.7740       -.12669E-06** at limit **
   4  norm          .10000E-03    3.5832       -.12444E-07** at limit **
   5  Prefactor     3.1727        9.4555        .26190E-06    .10370E-03
   6  Prefactor     .10000E-03    8.4418       -.12134E-05** at limit **
   7  Prefactor     .10000E-03    27.260       -.13417E-05** at limit **
   8  norm          1.3419        1.2922       -.61303E-07    .37196E-03
   9  norm          .97085E-01    6.7534        .79349E-05    .28835E-03
  10  norm          10.631        7.2496        .72347E-06    .75559E-04
  11  Prefactor     .10000E-03    3.1821       -.21789E-08** at limit **
  12  Prefactor     34.611        29.887        .97235E-06    .54720E-04
  13  norm          .10000E-03    8.7650        .21307E-06** at limit **
  14  Prefactor     .10000E-03    2.7321        .16631E-06** at limit **
  15  norm          3.7549        3.2622       -.31070E-07    .69086E-04
  16  Prefactor     .10011E-03    30.498       -.20412E-04** at limit **
  17  Prefactor     .10000E-03    33.270       -.15647E-05** at limit **
  18  norm          .93314        3.7389        .66734E-05    .32472E-03
  19  norm          23.214        4.5280       -.27095E-07    .10832E-03
  20  norm          3.0439        4.9067        .16145E-06    .32186E-04
  21  Prefactor     4.1115        20.253       -.27365E-06    .57977E-05
  22  Normalizat    1.3653        .22798        .12840E-06    .37534E-03
  23  Prefactor     .90226        .11629        .68881E-06    .10906E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.788323
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.1727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.34188
  norm       = 0.097085
  norm       = 10.6307
  Prefactor  = 0.0001
  Prefactor  = 34.6109
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.75488
  Prefactor  = 0.000100107
  Prefactor  = 0.0001
  norm       = 0.933142
  norm       = 23.2141
  norm       = 3.04386
  Prefactor  = 4.11152
  Normalizat = 1.36534
  Prefactor  = 0.902263
 **********
 **   18 **HESSE 
 **********

 FCN=   7747.524     FROM HESSE     STATUS=OK           372 CALLS     2917 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9787        .17090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .78832        2.3215        .22367E-03   -1.5530    
   3  norm          .10000E-03    4.7938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.5869        .16273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.1727        9.4360        .22747E-03   -1.5352    
   6  Prefactor     .10000E-03    8.5663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.873        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3419        1.2916        .93368E-04   -1.5476    
   9  norm          .97085E-01    24.851        .20547E-02   -1.5646    
  10  norm          10.631        7.6378        .12286E-03   -1.5056    
  11  Prefactor     .10000E-03    3.1863        .15332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     34.611        29.887        .68083E-04   -1.4531    
  13  norm          .10000E-03    8.7660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.7310        .14183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.7549        3.2606        .14393E-03   -1.5320    
  16  Prefactor     .10011E-03    62.356        .27431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    33.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .93314        10.225        .25843E-02   -1.5515    
  19  norm          23.214        4.5405        .79079E-04   -1.4744    
  20  norm          3.0439        4.9017        .11628E-02   -1.5359    
  21  Prefactor     4.1115        20.219        .19878E-03   -1.5302    
  22  Normalizat    1.3653        .26314        .32829E-03   -.81637    
  23  Prefactor     .90226        .13647        .20699E-03   -.96062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2956e-09
Minuit parameter uncertainties:
  1  1.0669e-05
  2  2.32178
  3  6.18366e-06
  4  6.83995e-06
  5  9.44041
  6  0.000108929
  7  0.00012347
  8  1.29164
  9  3.10626
  10  7.63846
  11  4.38847e-05
  12  29.8997
  13  1.1205e-05
  14  8.86398e-05
  15  3.26076
  16  0.00516126
  17  6.04018e-06
  18  6.17883
  19  4.54053
  20  4.90239
  21  18.2447
  22  0.263405
  23  0.136521
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.063e+01  7.638e+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:  9.023e-01  1.365e-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.365e+00  2.634e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.37
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 6.47e-08 +/- 4.65e-08
Energy Flux (Fixed Index): 2.33e-05 +/- 1.68e-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) = 7746.59686211
delta logL = 0.927027309658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7746.34121549
delta logL = 1.18267392786

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2714       1.0000         .10000E-03   10000.    
     2 'alpha     '    .90270       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3967       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90620       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=   7746.341     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      219 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2690        3.0873        .55971E-02    .41577E-03
   2  alpha         .90223        .42197        .38013       -.86315E-04
   3  Normalizat    1.3968        .21650        .73448E-01    .84463E-04
   4  Prefactor     .90620        .11459        .45084E-01   -.75107E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.26899
  alpha      = 0.90223
  Normalizat = 1.3968
  Prefactor  = 0.906196
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2690        7.7048        .12855E-03   -1.5346    
   2  alpha         .90223        1.0156        .16670E-02   -.69334    
   3  Normalizat    1.3968        .25264        .32501E-03   -.80721    
   4  Prefactor     .90620        .13438        .20677E-03   -.95925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53706e-10
Minuit parameter uncertainties:
  1  7.70709
  2  1.07001
  3  0.252869
  4  0.134427
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805390': 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) = 7746.3412152
delta logL = 1.18267421688

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  9.062e-01  1.344e-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.397e+00  2.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.59
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 0.90 +/- 1.07
Photon Flux (Free Index): 1.06e-08 +/- 1.78e-08
Energy Flux (Free Index): 5.35e-05 +/- 6.92e-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/805390/cmap_HighResolution_633571201_633830401_4FGL_J1337.6-1257_daily_bin1521.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.47e-08', energy_flux2='5.35e-05', photon_flux_error='4.65e-08', dlogl='1.18e+00', energy_flux='2.33e-05', photon_flux2='1.06e-08', job_status='DONE', time_completed='2021-09-08 05:10:39.913168', photon_index_error2='1.07', photon_index2='0.90', ts='4.37', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='6.92e-05', EG='1.37', time_epoch_completed='1631103039.91', return_code='0', job_id='805390', GAL2='0.91', EG2='1.40', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='1.78e-08', ts2='6.59', photon_index='2.30' WHERE bin_id='1521' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:10:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 805390: <4FGL_J1337.6-1257_daily_bin1521> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1521> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 04:55:53 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:57:36 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:36 2021
Terminated at Wed Sep  8 05:10:40 2021
Results reported at Wed Sep  8 05:10:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1521 204.424 -12.9517 633571201 633830401 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 :                                   660.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            887 sec.

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

