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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1565
RA = 204.424, Dec = -12.9517
tmin = 644976001, tmax = 645235201
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='806594', job_status='RUN', time_executed='2021-09-08 05:02:26.231587', time_epoch_executed='1631102546.23' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1565'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806594

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806594/ft1_4FGL_J1337.6-1257_daily_bin1565.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806594/ft2_4FGL_J1337.6-1257_daily_bin1565.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806594/ft1_4FGL_J1337.6-1257_daily_bin1565.fits outfile=/scratch/kocevski/806594/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1565.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=644976001.0 tmax=645235201.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 2.98
user 2.79
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806594/ft1_filtered_4FGL_J1337.6-1257_daily_bin1565.fits" evtable="EVENTS" scfile=/scratch/kocevski/806594/ft2_4FGL_J1337.6-1257_daily_bin1565.fits sctable="SC_DATA" outfile=/scratch/kocevski/806594/ltcube_644976001_645235201_4FGL_J1337.6-1257_daily_bin1565.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/806594/ft2_4FGL_J1337.6-1257_daily_bin1565.fits
.....................!
real 16.75
user 16.34
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806594/ft1_filtered_4FGL_J1337.6-1257_daily_bin1565.fits evtable="EVENTS" scfile=/scratch/kocevski/806594/ft2_4FGL_J1337.6-1257_daily_bin1565.fits sctable="SC_DATA" expcube=/scratch/kocevski/806594/ltcube_644976001_645235201_4FGL_J1337.6-1257_daily_bin1565.fits outfile=/scratch/kocevski/806594/expmap_644976001_645235201_4FGL_J1337.6-1257_daily_bin1565.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/806594/ltcube_644976001_645235201_4FGL_J1337.6-1257_daily_bin1565.fits
.....................!
real 191.13
user 186.01
sys 4.57

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/806594/ft1_filtered_4FGL_J1337.6-1257_daily_bin1565.fits scfile=/scratch/kocevski/806594/ft2_4FGL_J1337.6-1257_daily_bin1565.fits outfile=/scratch/kocevski/806594/cmap_644976001_645235201_4FGL_J1337.6-1257_daily_bin1565.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/806594/ft1_filtered_4FGL_J1337.6-1257_daily_bin1565.fits scfile=/scratch/kocevski/806594/ft2_4FGL_J1337.6-1257_daily_bin1565.fits outfile=/scratch/kocevski/806594/cmap_HighResolution_644976001_645235201_4FGL_J1337.6-1257_daily_bin1565.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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/806594/ft1_filtered_4FGL_J1337.6-1257_daily_bin1565.fits evtable="EVENTS" scfile=/scratch/kocevski/806594/ft2_4FGL_J1337.6-1257_daily_bin1565.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/806594/Model_4FGL_J1337.6-1257_daily_bin1565.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/806594/ft1_filtered_4FGL_J1337.6-1257_daily_bin1565.fits.....................!
real 44.26
user 42.85
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3734       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    25.763       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.4645       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.088       1.0000         .10000E-03   10000.    
     8 'norm      '    2.9391       1.0000         .10000E-03   10000.    
     9 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    20.303       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10574E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    40.669       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.3026       1.0000         .10000E-03   10000.    
    15 'norm      '    3.2406       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.782       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    63.640       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1984       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75877       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=   4651.681     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2560 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3731        5.4494        .92965E-02    .58711E-03
   2  norm          .10000E-03    .87213        .90712E-02** at limit **
   3  norm          25.764        13.415        .19731E-02   -.95031E-04
   4  norm          .10000E-03    3.1876        .90712E-02** at limit **
   5  Prefactor     7.4641        10.615        .36698E-02   -.41446E-03
   6  Prefactor     .10000E-03    5.9260        .90712E-02** at limit **
   7  Prefactor     16.090        21.743        .24963E-02   -.78665E-03
   8  norm          2.9392        1.8528        .59230E-02    .14678E-03
   9  norm          .10000E-03    4.1161        .90712E-02** at limit **
  10  norm          20.302        10.921        .22223E-02   -.25609E-02
  11  Prefactor     .10000E-03    8.5399        .90712E-02** at limit **
  12  Prefactor     .10000E-03    70.394        .90712E-02** at limit **
  13  norm          40.670        44.041        .15714E-02   -.82889E-04
  14  Prefactor     8.2986        13.984        .34783E-02    .36854E-03
  15  norm          3.2403        4.5960        .56251E-02    .13509E-03
  16  Prefactor     .10000E-03    2.7234        .90712E-02** at limit **
  17  Prefactor     .10000E-03    41.659        .90712E-02** at limit **
  18  norm          .10000E-03    3.6507        .90712E-02** at limit **
  19  norm          10.782        5.6654        .30504E-02   -.15113E-03
  20  norm          .10000E-03    9.1071        .90712E-02** at limit **
  21  Prefactor     63.640        61.241        .12576E-02   -.22039E-03
  22  Normalizat    1.1984        .28010        .73842E-01    .12861E-04
  23  Prefactor     .75876        .14054        .43178E-01    .14907E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.37315
  norm       = 0.0001
  norm       = 25.7637
  norm       = 0.0001
  Prefactor  = 7.46411
  Prefactor  = 0.0001
  Prefactor  = 16.0902
  norm       = 2.93918
  norm       = 0.0001
  norm       = 20.302
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 40.6696
  Prefactor  = 8.29864
  norm       = 3.2403
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 10.7819
  norm       = 0.0001
  Prefactor  = 63.6403
  Normalizat = 1.19842
  Prefactor  = 0.758756
 **********
 **   18 **HESSE 
 **********

 FCN=   4651.681     FROM HESSE     STATUS=OK           362 CALLS     2922 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3731        5.4069        .30638E-03   -1.5474    
   2  norm          .10000E-03    .87545        .62198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          25.764        13.434        .78923E-04   -1.4692    
   4  norm          .10000E-03    3.1884        .11893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.4641        10.613        .14679E-03   -1.5161    
   6  Prefactor     .10000E-03    5.9731        .16209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.090        21.580        .99854E-04   -1.4905    
   8  norm          2.9392        1.8571        .69745E-04   -1.5365    
   9  norm          .10000E-03    4.1345        .26708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          20.302        10.912        .88891E-04   -1.4807    
  11  Prefactor     .10000E-03    8.5457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    70.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          40.670        44.054        .62856E-04   -1.4432    
  14  Prefactor     8.2986        13.973        .13913E-03   -1.5132    
  15  norm          3.2403        4.5844        .16843E-03   -1.5348    
  16  Prefactor     .10000E-03    2.7294        .10989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    41.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.6597        .12726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.782        5.6755        .11200E-03   -1.5051    
  20  norm          .10000E-03    9.1276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     63.640        61.265        .50303E-04   -1.4111    
  22  Normalizat    1.1984        .32521        .32679E-03   -.86652    
  23  Prefactor     .75876        .16289        .20881E-03   -1.0127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98705e-09
Minuit parameter uncertainties:
  1  5.40881
  2  1.18901e-06
  3  13.4359
  4  5.14694e-06
  5  10.6159
  6  2.11258e-06
  7  21.5908
  8  1.85716
  9  7.45545e-06
  10  10.913
  11  1.33246e-05
  12  0.000122053
  13  44.0888
  14  13.9782
  15  4.58493
  16  4.54792e-06
  17  0.000361243
  18  7.83004e-07
  19  5.67579
  20  3.46637e-05
  21  61.3255
  22  0.325756
  23  0.162996
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.030e+01  1.091e+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:  7.588e-01  1.630e-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.198e+00  3.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.50
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.24e-07 +/- 6.64e-08
Energy Flux (Fixed Index): 4.45e-05 +/- 2.39e-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) = 4651.61909334
delta logL = 0.0617269285049

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4651.61665707
delta logL = 0.0641632014449

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.515       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4963       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1785       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76511       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=   4651.617     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      255 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.545        199.54        .23270E-02    .55929E-03
   2  alpha         2.4979        3.4931        .26721        .17875E-04
   3  Normalizat    1.1790        .25075        .74351E-01    .46871E-04
   4  Prefactor     .76471        .88400E-01    .43261E-01    .50037E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.5453
  alpha      = 2.49793
  Normalizat = 1.179
  Prefactor  = 0.764714
 **********
 **   18 **HESSE 
 **********

 FCN=   4651.617     FROM HESSE     STATUS=OK            33 CALLS      288 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.545        11.324        .46540E-03   -1.4846    
   2  alpha         2.4979        .55920        .10826E-01   -.82635E-03
   3  Normalizat    1.1790        .31291        .32905E-03   -.87254    
   4  Prefactor     .76471        .16150        .20806E-03   -1.0104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26595e-12
Minuit parameter uncertainties:
  1  11.3256
  2  0.563974
  3  0.313411
  4  0.161601
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806594': 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) = 4651.61663479
delta logL = 0.0641854842252

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.855e+01  1.133e+01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.498e+00  5.640e-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:  7.647e-01  1.616e-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.179e+00  3.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.64
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.50 +/- 0.56
Photon Flux (Free Index): 1.43e-07 +/- 8.76e-08
Energy Flux (Free Index): 4.29e-05 +/- 2.20e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/806594/cmap_HighResolution_644976001_645235201_4FGL_J1337.6-1257_daily_bin1565.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.24e-07', energy_flux2='4.29e-05', photon_flux_error='6.64e-08', dlogl='6.42e-02', energy_flux='4.45e-05', photon_flux2='1.43e-07', job_status='DONE', time_completed='2021-09-08 05:11:04.812402', photon_index_error2='0.56', photon_index2='2.50', ts='7.50', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='2.20e-05', EG='1.20', time_epoch_completed='1631103064.81', return_code='0', job_id='806594', GAL2='0.76', EG2='1.18', return_code2='0', energy_flux_error='2.39e-05', photon_flux_error2='8.76e-08', ts2='7.64', photon_index='2.30' WHERE bin_id='1565' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:11:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 806594: <4FGL_J1337.6-1257_daily_bin1565> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1565 204.424 -12.9517 644976001 645235201 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 :                                   515.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   640 sec.
    Turnaround time :                            641 sec.

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

