/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 3 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 = 7397
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2315.6-5018_daily_bin322
RA = 348.914, Dec = -50.3127
tmin = 322790401, tmax = 323049601
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='718840', job_status='RUN', time_executed='2021-09-29 09:45:31.625912', time_epoch_executed='1632933931.63' WHERE source_name='4FGL J2315.6-5018' and cadence='daily' and bin_id='322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/718840

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/718840/ft1_4FGL_J2315.6-5018_daily_bin322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/718840/ft2_4FGL_J2315.6-5018_daily_bin322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/718840/ft1_4FGL_J2315.6-5018_daily_bin322.fits outfile=/scratch/kocevski/718840/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin322.fits ra=348.914 dec=-50.3127 rad=12.0 tmin=322790401.0 tmax=323049601.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 12.03
user 11.71
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/718840/ft2_4FGL_J2315.6-5018_daily_bin322.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/718840/ft2_4FGL_J2315.6-5018_daily_bin322.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/718840/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin322.fits evtable="EVENTS" outfile="/scratch/kocevski/718840/ft1_filtered_4FGL_J2315.6-5018_daily_bin322.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/718840/ft1_filtered_4FGL_J2315.6-5018_daily_bin322.fits" evtable="EVENTS" scfile=/scratch/kocevski/718840/ft2_4FGL_J2315.6-5018_daily_bin322.fits sctable="SC_DATA" outfile=/scratch/kocevski/718840/ltcube_322790401_323049601_4FGL_J2315.6-5018_daily_bin322.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/718840/ft2_4FGL_J2315.6-5018_daily_bin322.fits
.....................!
real 11.01
user 10.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/718840/ft1_filtered_4FGL_J2315.6-5018_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/718840/ft2_4FGL_J2315.6-5018_daily_bin322.fits sctable="SC_DATA" expcube=/scratch/kocevski/718840/ltcube_322790401_323049601_4FGL_J2315.6-5018_daily_bin322.fits outfile=/scratch/kocevski/718840/expmap_322790401_323049601_4FGL_J2315.6-5018_daily_bin322.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/718840/ltcube_322790401_323049601_4FGL_J2315.6-5018_daily_bin322.fits
.....................!
real 189.98
user 184.73
sys 4.95

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 186 point sources and 0 extended sources

Setting source of interest to:
4FGL J2315.6-5018 @ 348.914 -50.3127

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/718840/ft1_filtered_4FGL_J2315.6-5018_daily_bin322.fits scfile=/scratch/kocevski/718840/ft2_4FGL_J2315.6-5018_daily_bin322.fits outfile=/scratch/kocevski/718840/cmap_322790401_323049601_4FGL_J2315.6-5018_daily_bin322.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=348.914 yref=-50.3127 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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/718840/ft1_filtered_4FGL_J2315.6-5018_daily_bin322.fits scfile=/scratch/kocevski/718840/ft2_4FGL_J2315.6-5018_daily_bin322.fits outfile=/scratch/kocevski/718840/cmap_HighResolution_322790401_323049601_4FGL_J2315.6-5018_daily_bin322.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=348.914 yref=-50.3127 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.54
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/718840/ft1_filtered_4FGL_J2315.6-5018_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/718840/ft2_4FGL_J2315.6-5018_daily_bin322.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/718840/Model_4FGL_J2315.6-5018_daily_bin322.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/718840/ft1_filtered_4FGL_J2315.6-5018_daily_bin322.fits......................!
real 18.03
user 16.80
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/718840/ft1_filtered_4FGL_J2315.6-5018_daily_bin322.fits', '/scratch/kocevski/718840/ft2_4FGL_J2315.6-5018_daily_bin322.fits', expMap='/scratch/kocevski/718840/expmap_322790401_323049601_4FGL_J2315.6-5018_daily_bin322.fits', expCube='/scratch/kocevski/718840/ltcube_322790401_323049601_4FGL_J2315.6-5018_daily_bin322.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/718840/Model_4FGL_J2315.6-5018_daily_bin322.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2315.6-5018'

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  3.550e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
433        Index:  2.395e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
434        Scale:  1.098e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/718840/ft1_filtered_4FGL_J2315.6-5018_daily_bin322.fits
Spacecraft file(s): /scratch/kocevski/718840/ft2_4FGL_J2315.6-5018_daily_bin322.fits
Exposure map: /scratch/kocevski/718840/expmap_322790401_323049601_4FGL_J2315.6-5018_daily_bin322.fits
Exposure cube: /scratch/kocevski/718840/ltcube_322790401_323049601_4FGL_J2315.6-5018_daily_bin322.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/718840/Model_4FGL_J2315.6-5018_daily_bin322.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) = 927.991891136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15840E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .49315E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.179       1.0000         .10000E-03   10000.    
     4 'Prefactor '    44.540       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .80997E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.801       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10221E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .19189E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.523       1.0000         .10000E-03   10000.    
    11 'Prefactor '    66.004       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10706E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10619E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.741       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .30314E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .21319E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    73.701       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .22462E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .90762E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .19191E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    34.507       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .19820E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.2762       1.0000         .10000E-03   10000.    
    24 'norm      '    .27310E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    41.349       1.0000         .10000E-03   10000.    
    26 'norm      '    3.5648       1.0000         .10000E-03   10000.    
    27 'norm      '    .12430E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    27.633       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.0431       1.0000         .10000E-03   10000.    
    30 'Prefactor '    137.48       1.0000         .10000E-03   10000.    
    31 'norm      '    .84670E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .54281E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10867E-02   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.6634       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   927.8086     FROM MIGRAD    STATUS=CONVERGED   1116 CALLS     4516 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.207        .10678E-05** at limit **
   2  Prefactor     .10000E-03    80.165        .72097E-06** at limit **
   3  Prefactor     32.242        48.650        .84119E-05    .10442E-03
   4  Prefactor     44.601        36.571       -.46936E-05   -.80498E-05
   5  Prefactor     .10000E-03    14.109        .76452E-07** at limit **
   6  Prefactor     24.794        27.850        .13683E-05    .10179E-03
   7  Prefactor     .10000E-03    4.5473       -.94220E-08** at limit **
   8  Prefactor     .10000E-03    215.46       -.56202E-05** at limit **
   9  norm          .10000E-03    16.851       -.78599E-07** at limit **
  10  Prefactor     13.337        10.374        .72799E-06    .15060E-03
  11  Prefactor     66.570        88.783        .79693E-06    .23384E-04
  12  Prefactor     .10000E-03    6.4220        .19662E-07** at limit **
  13  Prefactor     .10000E-03    21.799        .12815E-07** at limit **
  14  Prefactor     13.718        24.364        .86483E-06    .53802E-04
  15  Prefactor     .10000E-03    131.58       -.65543E-05** at limit **
  16  Prefactor     .10000E-03    10.331       -.14225E-06** at limit **
  17  Prefactor     72.835        95.649        .48522E-05    .29990E-04
  18  Prefactor     .10000E-03    26.389        .11618E-07** at limit **
  19  norm          .10000E-03    15.339       -.53831E-07** at limit **
  20  norm          .10000E-03    11.904       -.12537E-06** at limit **
  21  norm          33.655        30.152        .38381E-05    .18732E-03
  22  Prefactor     .10000E-03    13.893       -.10418E-05** at limit **
  23  Prefactor     12.423        284.32       -.11889E-04    .43929E-04
  24  norm          .10000E-03    12.248       -.15625E-05** at limit **
  25  Prefactor     40.781        40.130       -.63493E-05   -.24695E-04
  26  norm          3.5476        3.7233       -.14601E-05   -.17657E-03
  27  norm          .10000E-03    17.487       -.18699E-05** at limit **
  28  Prefactor     31.328        67.356        .73892E-05    .80320E-04
  29  Prefactor     .96881        49.423        .16046E-04   -.94214E-04
  30  Prefactor     140.91        118.82       -.95662E-05   -.11179E-03
  31  norm          .10000E-03    57.569       -.46629E-06** at limit **
  32  Prefactor     .10000E-03    15.009        .37259E-06** at limit **
  33  Prefactor     .10000E-03    9.2795        .11675E-05** at limit **
  34  Normalizat    .10000E-01    .34927       -.54479E-04** at limit **
  35  Prefactor     1.6536        .29391        .90223E-05    .34323E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.2416
  Prefactor  = 44.6013
  Prefactor  = 0.0001
  Prefactor  = 24.7942
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.3366
  Prefactor  = 66.5699
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.718
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.8351
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 33.6553
  Prefactor  = 0.000100002
  Prefactor  = 12.4229
  norm       = 0.000100001
  Prefactor  = 40.7812
  norm       = 3.5476
  norm       = 0.000100001
  Prefactor  = 31.3283
  Prefactor  = 0.968812
  Prefactor  = 140.905
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.65362
 **********
 **   18 **HESSE 
 **********

 FCN=   927.8086     FROM HESSE     STATUS=OK           752 CALLS     5268 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.199        .19113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    80.124        .18533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.242        48.714        .68544E-04   -1.4572    
   4  Prefactor     44.601        36.618        .30037E-03   -1.4371    
   5  Prefactor     .10000E-03    14.109        .11179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.794        27.900        .82107E-04   -1.4712    
   7  Prefactor     .10000E-03    4.5486        .63451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    215.51        .20748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    16.859        .12217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.337        10.383        .84061E-04   -1.4977    
  11  Prefactor     66.570        88.823        .24700E-03   -1.4074    
  12  Prefactor     .10000E-03    6.4289        .75404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.800        .13897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.718        24.385        .11222E-03   -1.4967    
  15  Prefactor     .10000E-03    131.60        .18347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.340        .95643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     72.835        95.709        .23383E-03   -1.3999    
  18  Prefactor     .10000E-03    26.403        .15290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    15.339        .11656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    11.905        .10267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          33.655        30.117        .34109E-03   -1.4547    
  22  Prefactor     .10000E-03    13.911        .11071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.423        289.19        .17498E-03   -1.5003    
  24  norm          .10000E-03    12.260        .10391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     40.781        40.103        .31169E-03   -1.4430    
  26  norm          3.5476        3.7210        .56329E-04   -1.5331    
  27  norm          .10000E-03    17.584        .12422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     31.328        67.657        .76211E-04   -1.4588    
  29  Prefactor     .96881        77.396        .29849E-02   -1.5511    
  30  Prefactor     140.91        122.09        .17176E-03   -1.3328    
  31  norm          .10000E-03    57.583        .20868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    15.086        .11520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    9.3276        .90672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .10000E-01    1.1376        .93427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     1.6536        .30962        .20544E-03   -.73324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78517e-09
Minuit parameter uncertainties:
  1  2.6947e-05
  2  3.96082e-05
  3  48.7744
  4  36.6361
  5  1.98918e-05
  6  27.9144
  7  9.35749e-07
  8  0.000301256
  9  2.56248e-06
  10  10.3847
  11  89.0005
  12  2.07233e-06
  13  2.81541e-06
  14  24.4023
  15  0.000200394
  16  2.61307e-05
  17  95.9118
  18  0.000104101
  19  1.24791e-05
  20  4.64431e-05
  21  30.1306
  22  0.000345155
  23  120.538
  24  0.000176685
  25  40.1299
  26  3.72126
  27  0.000315239
  28  67.8231
  29  17.3408
  30  122.307
  31  8.36722e-05
  32  0.000138341
  33  4.82253e-05
  34  0.000142492
  35  0.309977
Done.

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

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.000e-04  1.041e-04  1.000e-04  1.000e+04 ( 1.000e-13)
433        Index:  2.395e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
434        Scale:  1.098e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  1.654e+00  3.100e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.000e-02  1.425e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 348.914 -50.313
Photon Flux Upper Limit: 2.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.91e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/718840/likelihoodResults_322790401_323049601_4FGL_J2315.6-5018_daily_bin322.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): 102
logL (Free Index) = 927.808825555
delta logL = -0.000180285895908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 927.808646576
delta logL = -1.30677960897e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4769       1.0000          .0000       10.000    
     3 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6537       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   927.8086     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      255 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.591        .90712E-02** at limit **
   2  Index         2.4598        6.1503        .50000        .60972E-05
   3  Normalizat    .10000E-01    .40423        .27367    ** at limit **
   4  Prefactor     1.6536        .34536        .46485E-01   -.22817E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.45983
  Normalizat = 0.01
  Prefactor  = 1.65361
 **********
 **   18 **HESSE 
 **********

 FCN=   927.8086     FROM HESSE     STATUS=OK            33 CALLS      288 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.608        .14949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4598        6.2297        .50000       -.53290    
   3  Normalizat    .10000E-01    .78164        .93472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6536        .25603        .20544E-03   -.73324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96174e-11
Minuit parameter uncertainties:
  1  8.77092e-05
  2  4.52656
  3  9.45215e-07
  4  0.25623
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/718840': 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) = 927.808645354
delta logL = -8.4724433691e-08

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.000e-04  8.771e-05  1.000e-04  1.000e+04 ( 1.000e-13)
433        Index:  2.460e+00  4.527e+00  0.000e+00  1.000e+01 (-1.000e+00)
434        Scale:  1.098e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  1.654e+00  2.562e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.000e-02  9.452e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 348.914 -50.313

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/718840/cmap_HighResolution_322790401_323049601_4FGL_J2315.6-5018_daily_bin322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.91e-02', job_status='DONE', photon_flux_upper_limit='2.47e-07', time_completed='2021-09-29 09:53:14.391722', job_id='718840', GAL2='1.65', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632934394.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.65', dlogl='-8.47e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='322' AND source_name='4FGL J2315.6-5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 09:53:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 718840: <4FGL_J2315.6-5018_daily_bin322> in cluster <slac> Done

Job <4FGL_J2315.6-5018_daily_bin322> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 09:45:19 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 09:45:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 09:45:20 2021
Terminated at Wed Sep 29 09:53:14 2021
Results reported at Wed Sep 29 09:53:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2315.6-5018_daily_bin322 348.914 -50.3127 322790401 323049601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2315.6-5018 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   459.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   474 sec.
    Turnaround time :                            475 sec.

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

