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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1573
RA = 204.424, Dec = -12.9517
tmin = 647049601, tmax = 647308801
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='806605', job_status='RUN', time_executed='2021-09-08 05:01:35.457912', time_epoch_executed='1631102495.46' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1573'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806605

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806605/ft1_4FGL_J1337.6-1257_daily_bin1573.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806605/ft2_4FGL_J1337.6-1257_daily_bin1573.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806605/ft1_4FGL_J1337.6-1257_daily_bin1573.fits outfile=/scratch/kocevski/806605/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1573.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=647049601.0 tmax=647308801.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.53
user 3.29
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/806605/ft2_4FGL_J1337.6-1257_daily_bin1573.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/806605/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1573.fits evtable="EVENTS" outfile="/scratch/kocevski/806605/ft1_filtered_4FGL_J1337.6-1257_daily_bin1573.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806605/ft1_filtered_4FGL_J1337.6-1257_daily_bin1573.fits" evtable="EVENTS" scfile=/scratch/kocevski/806605/ft2_4FGL_J1337.6-1257_daily_bin1573.fits sctable="SC_DATA" outfile=/scratch/kocevski/806605/ltcube_647049601_647308801_4FGL_J1337.6-1257_daily_bin1573.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/806605/ft2_4FGL_J1337.6-1257_daily_bin1573.fits
.....................!
real 13.06
user 12.61
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806605/ft1_filtered_4FGL_J1337.6-1257_daily_bin1573.fits evtable="EVENTS" scfile=/scratch/kocevski/806605/ft2_4FGL_J1337.6-1257_daily_bin1573.fits sctable="SC_DATA" expcube=/scratch/kocevski/806605/ltcube_647049601_647308801_4FGL_J1337.6-1257_daily_bin1573.fits outfile=/scratch/kocevski/806605/expmap_647049601_647308801_4FGL_J1337.6-1257_daily_bin1573.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/806605/ltcube_647049601_647308801_4FGL_J1337.6-1257_daily_bin1573.fits
.....................!
real 192.11
user 185.13
sys 6.09

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/806605/ft1_filtered_4FGL_J1337.6-1257_daily_bin1573.fits scfile=/scratch/kocevski/806605/ft2_4FGL_J1337.6-1257_daily_bin1573.fits outfile=/scratch/kocevski/806605/cmap_647049601_647308801_4FGL_J1337.6-1257_daily_bin1573.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.53
user 0.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/806605/ft1_filtered_4FGL_J1337.6-1257_daily_bin1573.fits evtable="EVENTS" scfile=/scratch/kocevski/806605/ft2_4FGL_J1337.6-1257_daily_bin1573.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/806605/Model_4FGL_J1337.6-1257_daily_bin1573.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/806605/ft1_filtered_4FGL_J1337.6-1257_daily_bin1573.fits.....................!
real 63.49
user 62.09
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.154       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    40.875       1.0000         .10000E-03   10000.    
     4 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.5893       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    23.511       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.635       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9361       1.0000         .10000E-03   10000.    
    15 'norm      '    7.0168       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.7179       1.0000         .10000E-03   10000.    
    18 'norm      '    4.0208       1.0000         .10000E-03   10000.    
    19 'norm      '    7.6994       1.0000         .10000E-03   10000.    
    20 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3153       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0480       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=   7963.569     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2109 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.152        10.766       -.22170E-05    .62806E-04
   2  norm          .10000E-03    1.0835       -.74759E-07** at limit **
   3  norm          40.874        16.979       -.17489E-05    .25040E-04
   4  norm          .10000E-03    13.903       -.31589E-05** at limit **
   5  Prefactor     .10000E-03    4.0700       -.14378E-05** at limit **
   6  Prefactor     .10000E-03    7.9353        .56023E-05** at limit **
   7  Prefactor     .10000E-03    4.4624        .21040E-05** at limit **
   8  norm          8.5890        2.5026       -.64293E-06    .53660E-04
   9  norm          .10000E-03    .92997        .33855E-07** at limit **
  10  norm          23.511        8.7377        .24202E-05    .40195E-03
  11  Prefactor     .10000E-03    11.348       -.55990E-05** at limit **
  12  Prefactor     20.633        17.822       -.16795E-05    .60910E-04
  13  norm          .10000E-03    23.849       -.33086E-05** at limit **
  14  Prefactor     1.9372        9.7359       -.34598E-05   -.23118E-03
  15  norm          7.0169        4.7106        .34537E-05    .79626E-03
  16  Prefactor     .10000E-03    1.8627        .67838E-06** at limit **
  17  Prefactor     9.5922        100.52       -.36925E-03    .79854E-04
  18  norm          4.0206        4.6857        .10290E-05    .28394E-03
  19  norm          7.6984        3.6977        .41646E-06    .89590E-04
  20  norm          .10000E-03    5.9391       -.40148E-05** at limit **
  21  Prefactor     .10000E-03    19.873        .10126E-04** at limit **
  22  Normalizat    1.3156        .25795        .77324E-05    .35150E-03
  23  Prefactor     1.0479        .13001        .84884E-05    .14859E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.1525
  norm       = 0.0001
  norm       = 40.8736
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 8.58896
  norm       = 0.0001
  norm       = 23.5112
  Prefactor  = 0.0001
  Prefactor  = 20.6334
  norm       = 0.0001
  Prefactor  = 1.93719
  norm       = 7.01691
  Prefactor  = 0.000100001
  Prefactor  = 9.59218
  norm       = 4.02064
  norm       = 7.69836
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.31559
  Prefactor  = 1.04794
 **********
 **   18 **HESSE 
 **********

 FCN=   7963.569     FROM HESSE     STATUS=OK           358 CALLS     2467 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.152        10.769        .96702E-04   -1.4879    
   2  norm          .10000E-03    1.0975        .90693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          40.874        16.998        .62698E-04   -1.4428    
   4  norm          .10000E-03    14.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.0895        .17582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.9911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.4650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.5890        2.5154        .71686E-04   -1.5122    
   9  norm          .10000E-03    .93179        .83999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          23.511        8.7386        .82610E-04   -1.4738    
  11  Prefactor     .10000E-03    11.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.633        17.816        .88173E-04   -1.4799    
  13  norm          .10000E-03    23.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.9372        9.6764        .29843E-03   -1.5430    
  15  norm          7.0169        4.7122        .15145E-03   -1.5178    
  16  Prefactor     .10000E-03    1.8685        .11891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.5922        101.45        .12855E-03   -1.5088    
  18  norm          4.0206        4.6833        .20111E-03   -1.5307    
  19  norm          7.6984        3.7030        .11337E-03   -1.5153    
  20  norm          .10000E-03    5.9894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3156        .29663        .37847E-03   -.83102    
  23  Prefactor     1.0479        .14944        .21631E-03   -.91148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92435e-09
Minuit parameter uncertainties:
  1  10.7698
  2  1.95248e-05
  3  16.9996
  4  0.000168514
  5  4.30869e-05
  6  0.000141177
  7  4.84107e-06
  8  2.51544
  9  1.62583e-07
  10  8.73905
  11  1.50113e-05
  12  17.8205
  13  8.66688e-05
  14  8.66112
  15  4.7125
  16  7.07987e-05
  17  62.5271
  18  4.68368
  19  3.70313
  20  7.74382e-05
  21  0.000170275
  22  0.297018
  23  0.149501
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.351e+01  8.739e+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.048e+00  1.495e-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.316e+00  2.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.70
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.43e-07 +/- 5.32e-08
Energy Flux (Fixed Index): 5.16e-05 +/- 1.92e-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) = 7962.99760431
delta logL = 0.571289504396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7962.97584114
delta logL = 0.593052683928

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.121       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8569       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3706       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0318       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=   7962.976     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      240 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.123        9.8692        .79924E-04   -.19371E-03
   2  alpha         1.8571        .39913        .12593E-01   -.24966E-04
   3  Normalizat    1.3706        .28485        .37206E-03   -.34901E-03
   4  Prefactor     1.0318        .14704        .21777E-03   -.54057E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 25.1231
  alpha      = 1.8571
  Normalizat = 1.37062
  Prefactor  = 1.03177
 **********
 **   18 **HESSE 
 **********

 FCN=   7962.976     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.123        9.9045        .15985E-04   -1.4705    
   2  alpha         1.8571        .40041        .50371E-03   -.26008    
   3  Normalizat    1.3706        .28500        .74412E-04   -.81482    
   4  Prefactor     1.0318        .14712        .43555E-04   -.91678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30718e-10
Minuit parameter uncertainties:
  1  9.9051
  2  0.402261
  3  0.285328
  4  0.14718
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806605': 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) = 7962.97584101
delta logL = 0.593052807265

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.512e+01  9.905e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.857e+00  4.023e-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.032e+00  1.472e-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.371e+00  2.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.87
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 1.86 +/- 0.40
Photon Flux (Free Index): 9.72e-08 +/- 5.44e-08
Energy Flux (Free Index): 6.34e-05 +/- 2.95e-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/806605/cmap_HighResolution_647049601_647308801_4FGL_J1337.6-1257_daily_bin1573.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.43e-07', energy_flux2='6.34e-05', photon_flux_error='5.32e-08', dlogl='5.93e-01', energy_flux='5.16e-05', photon_flux2='9.72e-08', job_status='DONE', time_completed='2021-09-08 05:11:46.756364', photon_index_error2='0.40', photon_index2='1.86', ts='17.70', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='2.95e-05', EG='1.32', time_epoch_completed='1631103106.76', return_code='0', job_id='806605', GAL2='1.03', EG2='1.37', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='5.44e-08', ts2='18.87', photon_index='2.30' WHERE bin_id='1573' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:11:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 806605: <4FGL_J1337.6-1257_daily_bin1573> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1573> 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) <bullet0115>, 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:11:47 2021
Results reported at Wed Sep  8 05:11:47 2021

Your job looked like:

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

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

