/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 11 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 = 7631
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1444
RA = 204.424, Dec = -12.9517
tmin = 613612801, tmax = 613872001
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='805298', job_status='RUN', time_executed='2021-09-08 04:57:53.158090', time_epoch_executed='1631102273.16' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1444'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805298

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805298/ft1_4FGL_J1337.6-1257_daily_bin1444.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805298/ft2_4FGL_J1337.6-1257_daily_bin1444.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805298/ft1_4FGL_J1337.6-1257_daily_bin1444.fits outfile=/scratch/kocevski/805298/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1444.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=613612801.0 tmax=613872001.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.97
user 2.32
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805298/ft1_filtered_4FGL_J1337.6-1257_daily_bin1444.fits" evtable="EVENTS" scfile=/scratch/kocevski/805298/ft2_4FGL_J1337.6-1257_daily_bin1444.fits sctable="SC_DATA" outfile=/scratch/kocevski/805298/ltcube_613612801_613872001_4FGL_J1337.6-1257_daily_bin1444.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/805298/ft2_4FGL_J1337.6-1257_daily_bin1444.fits
.....................!
real 15.20
user 14.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805298/ft1_filtered_4FGL_J1337.6-1257_daily_bin1444.fits evtable="EVENTS" scfile=/scratch/kocevski/805298/ft2_4FGL_J1337.6-1257_daily_bin1444.fits sctable="SC_DATA" expcube=/scratch/kocevski/805298/ltcube_613612801_613872001_4FGL_J1337.6-1257_daily_bin1444.fits outfile=/scratch/kocevski/805298/expmap_613612801_613872001_4FGL_J1337.6-1257_daily_bin1444.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/805298/ltcube_613612801_613872001_4FGL_J1337.6-1257_daily_bin1444.fits
.....................!
real 192.08
user 186.04
sys 5.47

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/805298/ft1_filtered_4FGL_J1337.6-1257_daily_bin1444.fits scfile=/scratch/kocevski/805298/ft2_4FGL_J1337.6-1257_daily_bin1444.fits outfile=/scratch/kocevski/805298/cmap_613612801_613872001_4FGL_J1337.6-1257_daily_bin1444.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/805298/ft1_filtered_4FGL_J1337.6-1257_daily_bin1444.fits scfile=/scratch/kocevski/805298/ft2_4FGL_J1337.6-1257_daily_bin1444.fits outfile=/scratch/kocevski/805298/cmap_HighResolution_613612801_613872001_4FGL_J1337.6-1257_daily_bin1444.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7337       1.0000         .10000E-03   10000.    
     2 'norm      '    .88173E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    14.962       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.623       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.946       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4682       1.0000         .10000E-03   10000.    
     9 'norm      '    .10609E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.9406       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.750       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2225       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    14.610       1.0000         .10000E-03   10000.    
    20 'norm      '    1.6680       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.7832       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .52376       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=   7223.208     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2552 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7346        7.4295        .12194E-06   -.73747E-03
   2  norm          .81062E-01    .96986        .15189E-06   -.53115E-03
   3  norm          14.959        9.6050       -.15217E-06   -.40017E-05
   4  norm          .10000E-03    2.9359       -.12732E-06** at limit **
   5  Prefactor     23.626        10.592        .78864E-07   -.33968E-04
   6  Prefactor     .10000E-03    6.3887       -.11482E-05** at limit **
   7  Prefactor     12.957        19.072       -.28060E-06   -.19320E-03
   8  norm          1.4683        1.3705        .13790E-06   -.38833E-04
   9  norm          .10000E-03    3.0032        .43616E-06** at limit **
  10  norm          4.9429        8.3174       -.22249E-05   -.30827E-03
  11  Prefactor     .10000E-03    14.987        .13619E-05** at limit **
  12  Prefactor     .10000E-03    23.733       -.17641E-04** at limit **
  13  norm          .10000E-03    61.547       -.61104E-05** at limit **
  14  Prefactor     10.747        10.907       -.40397E-06   -.16132E-06
  15  norm          .10000E-03    2.1862       -.71043E-07** at limit **
  16  Prefactor     1.2231        5.0005        .54560E-06   -.25292E-03
  17  Prefactor     .10000E-03    27.434        .20964E-04** at limit **
  18  norm          .10000E-03    6.1946        .91906E-06** at limit **
  19  norm          14.610        4.3800       -.20317E-06   -.73885E-04
  20  norm          1.6658        3.7584        .14601E-05   -.17637E-02
  21  Prefactor     .10000E-03    25.410        .57288E-06** at limit **
  22  Normalizat    1.7831        .22618        .71694E-06   -.66146E-04
  23  Prefactor     .52383        .10869        .13806E-06   -.16869E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.7346
  norm       = 0.0810619
  norm       = 14.9588
  norm       = 0.0001
  Prefactor  = 23.6259
  Prefactor  = 0.0001
  Prefactor  = 12.9565
  norm       = 1.46828
  norm       = 0.000100002
  norm       = 4.94289
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.7475
  norm       = 0.0001
  Prefactor  = 1.22308
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 14.6102
  norm       = 1.66581
  Prefactor  = 0.0001
  Normalizat = 1.78312
  Prefactor  = 0.523829
 **********
 **   18 **HESSE 
 **********

 FCN=   7223.208     FROM HESSE     STATUS=OK           374 CALLS     2926 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7346        7.5664        .77314E-03   -1.5189    
   2  norm          .81062E-01    6.4071        .16159E-02   -1.5651    
   3  norm          14.959        9.6193        .10355E-03   -1.4934    
   4  norm          .10000E-03    2.9402        .14222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.626        10.608        .82415E-04   -1.4735    
   6  Prefactor     .10000E-03    6.5218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.957        17.180        .11133E-03   -1.4988    
   8  norm          1.4683        1.3598        .91249E-04   -1.5466    
   9  norm          .10000E-03    5.0322        .24318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.9429        8.1224        .18094E-03   -1.5263    
  11  Prefactor     .10000E-03    15.274        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    63.597        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.747        10.888        .12220E-03   -1.5052    
  15  norm          .10000E-03    2.2077        .12268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.2231        4.9520        .34941E-03   -1.5487    
  17  Prefactor     .10000E-03    27.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.2860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.610        4.4397        .93278E-04   -1.4943    
  20  norm          1.6658        10.637        .16324E-02   -1.5450    
  21  Prefactor     .10000E-03    25.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.7831        .25977        .28069E-03   -.70105    
  23  Prefactor     .52383        .12448        .24188E-03   -1.1090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48395e-08
Minuit parameter uncertainties:
  1  7.56746
  2  1.44062
  3  9.62032
  4  1.30118e-06
  5  10.6086
  6  8.84663e-06
  7  17.1868
  8  1.35987
  9  0.000207478
  10  8.12419
  11  2.42802e-05
  12  0.000213691
  13  2.14831e-05
  14  10.8902
  15  1.15315e-06
  16  4.92259
  17  0.000326277
  18  6.02929e-06
  19  4.43982
  20  8.42062
  21  4.19329e-06
  22  0.259969
  23  0.124541
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  4.943e+00  8.124e+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:  5.238e-01  1.245e-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.783e+00  2.600e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.54
Ra Dec: 204.424 -12.952
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805298/likelihoodResults_613612801_613872001_4FGL_J1337.6-1257_daily_bin1444.txt

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) = 7222.86290167
delta logL = 0.344895914568

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7222.84892798
delta logL = 0.358869594942

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9604       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6288       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7215       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54444       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=   7222.849     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      252 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9502        32.555        .74068E-02    .66121E-03
   2  alpha         3.6319        4.3083        .48367        .49617E-04
   3  Normalizat    1.7215        .57211E-01    .64328E-01   -.43187E-04
   4  Prefactor     .54438        .28679E-01    .40291E-01    .23992E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.9502
  alpha      = 3.63193
  Normalizat = 1.72145
  Prefactor  = 0.544375
 **********
 **   18 **HESSE 
 **********

 FCN=   7222.849     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      283 TOTAL
                     EDM=   .85E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9502        83.248        .10678E-03   -1.5429    
   2  alpha         3.6319        2.8562        .18042E-01    .46987    
   3  Normalizat    1.7215        .27755        .28450E-03   -.71732    
   4  Prefactor     .54438        .14576        .23757E-03   -1.0998    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.47805e-07
Minuit parameter uncertainties:
  1  25.5207
  2  8.42599
  3  0.277801
  4  0.145865
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805298': 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): 102
logL (Free Index) = 7222.84892459
delta logL = 0.35887298546

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.950e+00  2.552e+01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  3.632e+00  8.426e+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:  5.444e-01  1.459e-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.721e+00  2.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.39
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 3.63 +/- 8.43
Photon Flux (Free Index): 7.78e-08 +/- 7.95e-08
Energy Flux (Free Index): 1.35e-05 +/- 2.91e-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/805298/cmap_HighResolution_613612801_613872001_4FGL_J1337.6-1257_daily_bin1444.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.61e-05', comment='SUCCESS', energy_flux2='1.35e-05', dlogl='3.59e-01', photon_flux2='7.78e-08', job_status='DONE', time_completed='2021-09-08 05:09:59.425879', photon_index_error2='8.43', photon_index2='3.63', ts='0.54', fit_tolerance='1e-08', GAL='0.52', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='2.91e-05', EG='1.78', time_epoch_completed='1631102999.43', return_code='0', job_id='805298', GAL2='0.54', EG2='1.72', return_code2='102', photon_flux_error2='7.95e-08', ts2='1.39', photon_index='2.30' WHERE bin_id='1444' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:09:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 805298: <4FGL_J1337.6-1257_daily_bin1444> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1444 204.424 -12.9517 613612801 613872001 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 :                                   695.33 sec.
    Max Memory :                                 1249 MB
    Average Memory :                             309.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            852 sec.

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

