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


Performing analysis on: 4FGL_J2315.6-5018_daily_bin1280
RA = 348.914, Dec = -50.3127
tmin = 571104001, tmax = 571363201
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='723410', job_status='RUN', time_executed='2021-09-29 10:03:52.575186', time_epoch_executed='1632935032.58' WHERE source_name='4FGL J2315.6-5018' and cadence='daily' and bin_id='1280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/723410

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/723410/ft1_4FGL_J2315.6-5018_daily_bin1280.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/723410/ft2_4FGL_J2315.6-5018_daily_bin1280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/723410/ft1_4FGL_J2315.6-5018_daily_bin1280.fits outfile=/scratch/kocevski/723410/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin1280.fits ra=348.914 dec=-50.3127 rad=12.0 tmin=571104001.0 tmax=571363201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.01
user 2.79
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/723410/ft1_filtered_4FGL_J2315.6-5018_daily_bin1280.fits" evtable="EVENTS" scfile=/scratch/kocevski/723410/ft2_4FGL_J2315.6-5018_daily_bin1280.fits sctable="SC_DATA" outfile=/scratch/kocevski/723410/ltcube_571104001_571363201_4FGL_J2315.6-5018_daily_bin1280.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/723410/ft2_4FGL_J2315.6-5018_daily_bin1280.fits
.....................!
real 12.40
user 12.02
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/723410/ft1_filtered_4FGL_J2315.6-5018_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/723410/ft2_4FGL_J2315.6-5018_daily_bin1280.fits sctable="SC_DATA" expcube=/scratch/kocevski/723410/ltcube_571104001_571363201_4FGL_J2315.6-5018_daily_bin1280.fits outfile=/scratch/kocevski/723410/expmap_571104001_571363201_4FGL_J2315.6-5018_daily_bin1280.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/723410/ltcube_571104001_571363201_4FGL_J2315.6-5018_daily_bin1280.fits
.....................!
real 192.37
user 187.13
sys 4.89

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/723410/ft1_filtered_4FGL_J2315.6-5018_daily_bin1280.fits scfile=/scratch/kocevski/723410/ft2_4FGL_J2315.6-5018_daily_bin1280.fits outfile=/scratch/kocevski/723410/cmap_571104001_571363201_4FGL_J2315.6-5018_daily_bin1280.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/723410/ft1_filtered_4FGL_J2315.6-5018_daily_bin1280.fits scfile=/scratch/kocevski/723410/ft2_4FGL_J2315.6-5018_daily_bin1280.fits outfile=/scratch/kocevski/723410/cmap_HighResolution_571104001_571363201_4FGL_J2315.6-5018_daily_bin1280.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/723410/ft1_filtered_4FGL_J2315.6-5018_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/723410/ft2_4FGL_J2315.6-5018_daily_bin1280.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/723410/Model_4FGL_J2315.6-5018_daily_bin1280.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/723410/ft1_filtered_4FGL_J2315.6-5018_daily_bin1280.fits.....................!
real 30.39
user 29.02
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5627       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.9683       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.637       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23486E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    13.402       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.389       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .23095E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.478       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.507       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10840E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .39809       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11765E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10233E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.4468       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    40.386       1.0000         .10000E-03   10000.    
    24 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10487E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    7.1521       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .28263       1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.1447       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .82757       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=   3255.863     FROM MIGRAD    STATUS=CONVERGED   1019 CALLS     5175 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.561        .34103E-05** at limit **
   2  Prefactor     5.5701        21.559        .25976E-05   -.32224E-04
   3  Prefactor     .10000E-03    3.7231       -.13899E-07** at limit **
   4  Prefactor     8.9685        7.0157       -.31905E-06   -.29260E-03
   5  Prefactor     .10000E-03    2.8590       -.13847E-07** at limit **
   6  Prefactor     10.609        99.141        .98390E-05    .56329E-04
   7  Prefactor     .10000E-03    11.226       -.11140E-05** at limit **
   8  Prefactor     .10000E-03    1172.3       -.17312E-03** at limit **
   9  norm          13.407        13.423        .10696E-04    .40237E-04
  10  Prefactor     13.387        11.166        .50661E-05   -.85079E-04
  11  Prefactor     .10001E-03    447.92        .11780E-03** at limit **
  12  Prefactor     .10000E-03    4.3079        .59386E-07** at limit **
  13  Prefactor     26.487        51.462       -.98819E-05    .45299E-04
  14  Prefactor     13.476        26.535       -.20673E-04    .11029E-04
  15  Prefactor     .10000E-03    84.421        .89484E-05** at limit **
  16  Prefactor     .38642        13.128       -.10657E-05   -.29923E-03
  17  Prefactor     .10003E-03    390.74       -.48656E-04** at limit **
  18  Prefactor     .10000E-03    27.845       -.80163E-08** at limit **
  19  norm          .10000E-03    12.544        .99866E-06** at limit **
  20  norm          9.4467        11.715       -.54930E-05   -.38112E-03
  21  norm          .10000E-03    3.1775       -.26854E-07** at limit **
  22  Prefactor     .10000E-03    2.8755        .11592E-06** at limit **
  23  Prefactor     40.380        55.169        .15459E-05    .53041E-04
  24  norm          .10000E-03    8.4469       -.41630E-06** at limit **
  25  Prefactor     .10000E-03    4.4472        .85621E-08** at limit **
  26  norm          .10000E-03    .75330        .71159E-06** at limit **
  27  norm          .10000E-03    5.1743       -.63575E-06** at limit **
  28  Prefactor     .10000E-03    9.0006        .10223E-05** at limit **
  29  Prefactor     .10000E-03    1.3470       -.50560E-08** at limit **
  30  Prefactor     .10000E-03    11.083       -.17166E-05** at limit **
  31  norm          .10000E-03    9.4791       -.17895E-05** at limit **
  32  Prefactor     7.1529        5.3030       -.12632E-06   -.10698E-03
  33  Prefactor     .29066        3.4106       -.23571E-07   -.46178E-03
  34  Normalizat    1.1447        .24925       -.34158E-06    .25193E-04
  35  Prefactor     .82751        .24996        .32398E-05   -.46311E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.57012
  Prefactor  = 0.0001
  Prefactor  = 8.9685
  Prefactor  = 0.0001
  Prefactor  = 10.6092
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 13.4072
  Prefactor  = 13.3874
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 26.4866
  Prefactor  = 13.4757
  Prefactor  = 0.000100001
  Prefactor  = 0.386421
  Prefactor  = 0.000100026
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 9.44668
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.3797
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.15289
  Prefactor  = 0.290662
  Normalizat = 1.14469
  Prefactor  = 0.827511
 **********
 **   18 **HESSE 
 **********

 FCN=   3255.863     FROM HESSE     STATUS=OK           768 CALLS     5943 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.567        .18107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.5701        21.534        .17034E-03   -1.5236    
   3  Prefactor     .10000E-03    3.7363        .10752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.9685        7.0165        .64738E-03   -1.5109    
   5  Prefactor     .10000E-03    2.8615        .94226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.609        99.245        .12285E-03   -1.5056    
   7  Prefactor     .10000E-03    11.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1172.8        .18280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          13.407        13.424        .10941E-03   -1.4975    
  10  Prefactor     13.387        11.147        .10947E-03   -1.4976    
  11  Prefactor     .10001E-03    448.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.3105        .11565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.487        51.352        .77853E-04   -1.4678    
  14  Prefactor     13.476        26.493        .10899E-03   -1.4974    
  15  Prefactor     .10000E-03    84.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .38642        70.368        .39780E-02   -1.5584    
  17  Prefactor     .10003E-03    397.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    12.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.4467        11.339        .13039E-03   -1.5093    
  21  norm          .10000E-03    3.1785        .99311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.8785        .94470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     40.380        53.515        .63075E-04   -1.4436    
  24  norm          .10000E-03    8.5608        .32105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.4486        .11752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.1886        .92357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    11.297        .24432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.0189        .16717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.3532        .64630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    11.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    9.4837        .17159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     7.1529        5.3224        .10747E-03   -1.5173    
  33  Prefactor     .29066        21.647        .19527E-02   -1.5600    
  34  Normalizat    1.1447        .29436        .21764E-03   -.88330    
  35  Prefactor     .82751        .29461        .26509E-03   -.98722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.35916e-09
Minuit parameter uncertainties:
  1  1.22498e-05
  2  21.5636
  3  3.31962e-06
  4  7.01715
  5  2.11931e-06
  6  65.0397
  7  3.10482e-05
  8  0.00277612
  9  13.4269
  10  11.1487
  11  0.00457595
  12  1.14265e-05
  13  51.4383
  14  26.516
  15  0.000569273
  16  10.4402
  17  0.00649239
  18  0.000255689
  19  1.1385e-05
  20  11.3415
  21  4.37911e-06
  22  1.82655e-05
  23  53.5786
  24  6.16808e-05
  25  4.06767e-06
  26  7.54307e-05
  27  0.000102067
  28  8.48482e-06
  29  1.64311e-06
  30  9.21955e-06
  31  2.93385e-06
  32  5.32274
  33  5.01782
  34  0.294788
  35  0.295178
Done.

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

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.000e-04  2.557e-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:  8.275e-01  2.952e-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.145e+00  2.948e-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: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/723410/likelihoodResults_571104001_571363201_4FGL_J2315.6-5018_daily_bin1280.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) = 3255.86364766
delta logL = -0.000169743463175

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3255.86347812
delta logL = -1.98787802219e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3158       1.0000          .0000       10.000    
     3 'Normalizat'    1.1447       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82752       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=   3255.863     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      232 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    937.03        .90712E-02** at limit **
   2  Index         2.3413        5.3541        .50000       -.91888E-05
   3  Normalizat    1.1447        .35304E-01    .36416E-01    .79701E-05
   4  Prefactor     .82751        .37348E-01    .44074E-01    .31288E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.34133
  Normalizat = 1.14468
  Prefactor  = 0.827513
 **********
 **   18 **HESSE 
 **********

 FCN=   3255.863     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      265 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2238.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3413        8.1227        .50000       -.56065    
   3  Normalizat    1.1447        .60488E-01    .21764E-03   -.88330    
   4  Prefactor     .82751        .63976E-01    .26509E-03   -.98722    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.02927e-09
Minuit parameter uncertainties:
  1  0.000261759
  2  40.9234
  3  0.0604916
  4  0.0639817
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/723410': 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) = 3255.86347804
delta logL = -1.2265127225e-07

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.000e-04  2.618e-04  1.000e-04  1.000e+04 ( 1.000e-13)
433        Index:  2.341e+00  4.092e+01  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.275e-01  6.398e-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:  1.145e+00  6.049e-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/723410/cmap_HighResolution_571104001_571363201_4FGL_J2315.6-5018_daily_bin1280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.76e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-29 10:15:26.710820', job_id='723410', GAL2='0.83', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1632935726.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-1.23e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1280' AND source_name='4FGL J2315.6-5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:15:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 723410: <4FGL_J2315.6-5018_daily_bin1280> in cluster <slac> Done

Job <4FGL_J2315.6-5018_daily_bin1280> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 10:00:51 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:00:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 10:00:53 2021
Terminated at Wed Sep 29 10:15:29 2021
Results reported at Wed Sep 29 10:15:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2315.6-5018_daily_bin1280 348.914 -50.3127 571104001 571363201 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 :                                   691.25 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             259.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            878 sec.

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

