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


Performing analysis on: 4FGL_J2315.6-5018_daily_bin1626
RA = 348.914, Dec = -50.3127
tmin = 660787201, tmax = 661046401
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='171971', job_status='RUN', time_executed='2021-12-13 00:37:26.306373', time_epoch_executed='1639384646.31' WHERE source_name='4FGL J2315.6-5018' and cadence='daily' and bin_id='1626'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171971

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171971/ft1_4FGL_J2315.6-5018_daily_bin1626.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171971/ft2_4FGL_J2315.6-5018_daily_bin1626.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171971/ft1_4FGL_J2315.6-5018_daily_bin1626.fits outfile=/scratch/kocevski/171971/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin1626.fits ra=348.914 dec=-50.3127 rad=12.0 tmin=660787201.0 tmax=661046401.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.73
user 2.54
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/171971/ft2_4FGL_J2315.6-5018_daily_bin1626.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/171971/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin1626.fits evtable="EVENTS" outfile="/scratch/kocevski/171971/ft1_filtered_4FGL_J2315.6-5018_daily_bin1626.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.44
user 0.27
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/171971/ft1_filtered_4FGL_J2315.6-5018_daily_bin1626.fits" evtable="EVENTS" scfile=/scratch/kocevski/171971/ft2_4FGL_J2315.6-5018_daily_bin1626.fits sctable="SC_DATA" outfile=/scratch/kocevski/171971/ltcube_660787201_661046401_4FGL_J2315.6-5018_daily_bin1626.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/171971/ft2_4FGL_J2315.6-5018_daily_bin1626.fits
.....................!
real 9.03
user 8.73
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171971/ft1_filtered_4FGL_J2315.6-5018_daily_bin1626.fits evtable="EVENTS" scfile=/scratch/kocevski/171971/ft2_4FGL_J2315.6-5018_daily_bin1626.fits sctable="SC_DATA" expcube=/scratch/kocevski/171971/ltcube_660787201_661046401_4FGL_J2315.6-5018_daily_bin1626.fits outfile=/scratch/kocevski/171971/expmap_660787201_661046401_4FGL_J2315.6-5018_daily_bin1626.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/171971/ltcube_660787201_661046401_4FGL_J2315.6-5018_daily_bin1626.fits
.....................!
real 144.78
user 141.25
sys 3.22

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/171971/ft1_filtered_4FGL_J2315.6-5018_daily_bin1626.fits scfile=/scratch/kocevski/171971/ft2_4FGL_J2315.6-5018_daily_bin1626.fits outfile=/scratch/kocevski/171971/cmap_660787201_661046401_4FGL_J2315.6-5018_daily_bin1626.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.45
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/171971/ft1_filtered_4FGL_J2315.6-5018_daily_bin1626.fits scfile=/scratch/kocevski/171971/ft2_4FGL_J2315.6-5018_daily_bin1626.fits outfile=/scratch/kocevski/171971/cmap_HighResolution_660787201_661046401_4FGL_J2315.6-5018_daily_bin1626.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.45
user 0.30
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/171971/ft1_filtered_4FGL_J2315.6-5018_daily_bin1626.fits evtable="EVENTS" scfile=/scratch/kocevski/171971/ft2_4FGL_J2315.6-5018_daily_bin1626.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/171971/Model_4FGL_J2315.6-5018_daily_bin1626.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/171971/ft1_filtered_4FGL_J2315.6-5018_daily_bin1626.fits.....................!
real 30.02
user 28.93
sys 0.99

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/171971/ft1_filtered_4FGL_J2315.6-5018_daily_bin1626.fits', '/scratch/kocevski/171971/ft2_4FGL_J2315.6-5018_daily_bin1626.fits', expMap='/scratch/kocevski/171971/expmap_660787201_661046401_4FGL_J2315.6-5018_daily_bin1626.fits', expCube='/scratch/kocevski/171971/ltcube_660787201_661046401_4FGL_J2315.6-5018_daily_bin1626.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/171971/Model_4FGL_J2315.6-5018_daily_bin1626.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/171971/ft1_filtered_4FGL_J2315.6-5018_daily_bin1626.fits
Spacecraft file(s): /scratch/kocevski/171971/ft2_4FGL_J2315.6-5018_daily_bin1626.fits
Exposure map: /scratch/kocevski/171971/expmap_660787201_661046401_4FGL_J2315.6-5018_daily_bin1626.fits
Exposure cube: /scratch/kocevski/171971/ltcube_660787201_661046401_4FGL_J2315.6-5018_daily_bin1626.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/171971/Model_4FGL_J2315.6-5018_daily_bin1626.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) = 5051.0512345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6395       1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.065       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .35021E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.675       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7820       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8794       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3408       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.8669       1.0000         .10000E-03   10000.    
    17 'Prefactor '    61.752       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.3493       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.3906       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.2378       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.1806       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    26.446       1.0000         .10000E-03   10000.    
    31 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .72089E-01   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .99582       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .87117       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=   5051.021     FROM MIGRAD    STATUS=CONVERGED    949 CALLS     4305 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6194        38.852       -.54331E-05   -.59064E-04
   2  Prefactor     31.067        28.641       -.26231E-06   -.53901E-04
   3  Prefactor     .10001E-03    30.699        .64621E-05** at limit **
   4  Prefactor     .10000E-03    2.0496        .38760E-06** at limit **
   5  Prefactor     .10000E-03    3.5419        .15917E-06** at limit **
   6  Prefactor     10.674        15.197       -.72761E-06   -.87036E-05
   7  Prefactor     .10000E-03    3.3651        .87079E-07** at limit **
   8  Prefactor     4.8010        1121.8        .60546E-05   -.25311E-05
   9  norm          .10000E-03    2.8777       -.20137E-06** at limit **
  10  Prefactor     2.8801        3.4516       -.33549E-07    .16450E-04
  11  Prefactor     .10000E-03    21.820        .16672E-05** at limit **
  12  Prefactor     .10000E-03    1.6333        .21467E-09** at limit **
  13  Prefactor     .10000E-03    8.5668        .54867E-06** at limit **
  14  Prefactor     7.3403        11.099       -.13234E-06    .27882E-05
  15  Prefactor     .10000E-03    54.273        .69766E-07** at limit **
  16  Prefactor     4.8676        8.1972       -.33710E-06    .18749E-04
  17  Prefactor     61.755        38.319       -.27951E-06   -.23040E-04
  18  Prefactor     .10000E-03    7.1470       -.45562E-07** at limit **
  19  norm          .10000E-03    11.089       -.12266E-06** at limit **
  20  norm          .10000E-03    2.6229        .98832E-07** at limit **
  21  norm          5.3494        5.0476        .86604E-07    .46466E-04
  22  Prefactor     5.3907        4.5247        .12923E-07   -.29512E-04
  23  Prefactor     5.2410        48.451       -.21914E-05   -.77353E-05
  24  norm          .10000E-03    1.9917       -.17427E-06** at limit **
  25  Prefactor     .10000E-03    3.2181        .13774E-06** at limit **
  26  norm          1.1806        .90023       -.16496E-07   -.42432E-04
  27  norm          .10000E-03    1.4711       -.52243E-07** at limit **
  28  Prefactor     .10000E-03    7.1879        .74814E-07** at limit **
  29  Prefactor     .10000E-03    1.2627        .62791E-07** at limit **
  30  Prefactor     26.447        20.747       -.41633E-06   -.10293E-03
  31  norm          .10000E-03    9.7341       -.42849E-06** at limit **
  32  Prefactor     .10000E-03    2.0720       -.27401E-06** at limit **
  33  Prefactor     .77845E-01    4.2202        .22079E-05   -.58985E-03
  34  Normalizat    .99578        .18449       -.52668E-06   -.17568E-03
  35  Prefactor     .87115        .18835        .14918E-06   -.15824E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.61942
  Prefactor  = 31.0673
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6742
  Prefactor  = 0.0001
  Prefactor  = 4.80104
  norm       = 0.0001
  Prefactor  = 2.88008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.34034
  Prefactor  = 0.0001
  Prefactor  = 4.86762
  Prefactor  = 61.7546
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.34942
  Prefactor  = 5.39073
  Prefactor  = 5.24099
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.18065
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.4472
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0778446
  Normalizat = 0.995782
  Prefactor  = 0.871152
 **********
 **   18 **HESSE 
 **********

 FCN=   5051.021     FROM HESSE     STATUS=OK           768 CALLS     5073 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6194        43.604        .25097E-03   -1.5384    
   2  Prefactor     31.067        28.640        .71888E-04   -1.4593    
   3  Prefactor     .10001E-03    31.056        .35722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.0549        .99432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.5574        .13068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.674        14.649        .12263E-03   -1.5054    
   7  Prefactor     .10000E-03    3.5090        .25451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.8010        1043.7        .18398E-03   -1.5270    
   9  norm          .10000E-03    2.8796        .11771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.8801        3.4441        .13924E-03   -1.5369    
  11  Prefactor     .10000E-03    21.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.6370        .88692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.5864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.3403        11.087        .14804E-03   -1.5166    
  15  Prefactor     .10000E-03    54.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.8676        8.1715        .18234E-03   -1.5267    
  17  Prefactor     61.755        38.319        .51061E-04   -1.4135    
  18  Prefactor     .10000E-03    7.1796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    11.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.6256        .11240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.3494        5.0411        .14746E-03   -1.5245    
  22  Prefactor     5.3907        4.5223        .13335E-03   -1.5244    
  23  Prefactor     5.2410        48.275        .17563E-03   -1.5250    
  24  norm          .10000E-03    1.9827        .97338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.2216        .12453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.1806        .90417        .56186E-04   -1.5491    
  27  norm          .10000E-03    1.4772        .84056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7.2141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.2761        .77949E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     26.447        20.729        .77899E-04   -1.4679    
  31  norm          .10000E-03    9.7357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    2.0833        .99648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .77845E-01    52.108        .19370E-02   -1.5652    
  34  Normalizat    .99578        .22679        .22115E-03   -.93172    
  35  Prefactor     .87115        .22935        .24631E-03   -.97157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0447e-09
Minuit parameter uncertainties:
  1  21.3925
  2  28.6526
  3  0.000826285
  4  8.30592e-06
  5  3.30627e-06
  6  14.6541
  7  9.90138e-06
  8  144.195
  9  2.12016e-06
  10  3.44437
  11  0.000107231
  12  2.14023e-06
  13  2.80609e-05
  14  11.0897
  15  1.75115e-05
  16  8.17341
  17  38.3346
  18  5.79319e-06
  19  3.86579e-06
  20  2.72052e-06
  21  5.04155
  22  4.52255
  23  31.8461
  24  1.10456e-05
  25  5.32089e-06
  26  0.904184
  27  5.03678e-06
  28  8.84943e-06
  29  5.07711e-06
  30  20.7342
  31  1.25852e-05
  32  5.04952e-07
  33  4.029
  34  0.227009
  35  0.229607
Done.

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

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.000e-04  5.793e-06  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:  8.712e-01  2.296e-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:  9.958e-01  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 348.914 -50.313
Photon Flux Upper Limit: 5.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/171971/likelihoodResults_660787201_661046401_4FGL_J2315.6-5018_daily_bin1626.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) = 5051.02179856
delta logL = -0.000663463765704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5051.02113541
delta logL = -3.18043021252e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10575E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3703       1.0000          .0000       10.000    
     3 'Normalizat'    .99570       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87125       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5051.021     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      234 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10180E-03    68.296        .18142E-02** at limit **
   2  Index         2.3056        6.1328        .50000        .22818E-04
   3  Normalizat    .99578        .12671E-01    .22115E-03    .72895E-04
   4  Prefactor     .87115        .13358E-01    .24631E-03    .57048E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001018
  Index      = 2.30557
  Normalizat = 0.995783
  Prefactor  = 0.871152
 **********
 **   18 **HESSE 
 **********

 FCN=   5051.021     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10180E-03    289.38        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3056        5.3742        .50000       -.56911    
   3  Normalizat    .99578        .27042E-01    .88460E-05   -.93172    
   4  Prefactor     .87115        .28508E-01    .98525E-05   -.97157    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.47235e-08
Minuit parameter uncertainties:
  1  0.045874
  2  556.548
  3  0.0270424
  4  0.0285087
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171971': 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) = 5051.02113466
delta logL = 4.3602722144e-07

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.018e-04  4.587e-02  1.000e-04  1.000e+04 ( 1.000e-13)
433        Index:  2.306e+00  5.565e+02  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:  8.712e-01  2.851e-02  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:  9.958e-01  2.704e-02  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/171971/cmap_HighResolution_660787201_661046401_4FGL_J2315.6-5018_daily_bin1626.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.43e-03', job_status='DONE', photon_flux_upper_limit='5.74e-08', time_completed='2021-12-13 00:47:46.639699', job_id='171971', GAL2='0.87', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1639385266.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='4.36e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1626' AND source_name='4FGL J2315.6-5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 13 00:47:46 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 171971: <4FGL_J2315.6-5018_daily_bin1626> in cluster <slac> Done

Job <4FGL_J2315.6-5018_daily_bin1626> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Dec 13 00:36:03 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 13 00:36:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 13 00:36:04 2021
Terminated at Mon Dec 13 00:47:47 2021
Results reported at Mon Dec 13 00:47:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2315.6-5018_daily_bin1626 348.914 -50.3127 660787201 661046401 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 :                                   621.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            704 sec.

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

