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


Performing analysis on: 4FGL_J2315.6-5018_daily_bin1410
RA = 348.914, Dec = -50.3127
tmin = 604800001, tmax = 605059201
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='724568', job_status='RUN', time_executed='2021-09-29 10:06:46.911480', time_epoch_executed='1632935206.91' WHERE source_name='4FGL J2315.6-5018' and cadence='daily' and bin_id='1410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/724568

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/724568/ft1_4FGL_J2315.6-5018_daily_bin1410.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/724568/ft2_4FGL_J2315.6-5018_daily_bin1410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/724568/ft1_4FGL_J2315.6-5018_daily_bin1410.fits outfile=/scratch/kocevski/724568/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin1410.fits ra=348.914 dec=-50.3127 rad=12.0 tmin=604800001.0 tmax=605059201.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 5.10
user 4.84
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/724568/ft2_4FGL_J2315.6-5018_daily_bin1410.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/724568/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin1410.fits evtable="EVENTS" outfile="/scratch/kocevski/724568/ft1_filtered_4FGL_J2315.6-5018_daily_bin1410.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/724568/ft1_filtered_4FGL_J2315.6-5018_daily_bin1410.fits" evtable="EVENTS" scfile=/scratch/kocevski/724568/ft2_4FGL_J2315.6-5018_daily_bin1410.fits sctable="SC_DATA" outfile=/scratch/kocevski/724568/ltcube_604800001_605059201_4FGL_J2315.6-5018_daily_bin1410.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/724568/ft2_4FGL_J2315.6-5018_daily_bin1410.fits
.....................!
real 11.88
user 11.50
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/724568/ft1_filtered_4FGL_J2315.6-5018_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/724568/ft2_4FGL_J2315.6-5018_daily_bin1410.fits sctable="SC_DATA" expcube=/scratch/kocevski/724568/ltcube_604800001_605059201_4FGL_J2315.6-5018_daily_bin1410.fits outfile=/scratch/kocevski/724568/expmap_604800001_605059201_4FGL_J2315.6-5018_daily_bin1410.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/724568/ltcube_604800001_605059201_4FGL_J2315.6-5018_daily_bin1410.fits
.....................!
real 190.23
user 185.55
sys 4.37

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/724568/ft1_filtered_4FGL_J2315.6-5018_daily_bin1410.fits scfile=/scratch/kocevski/724568/ft2_4FGL_J2315.6-5018_daily_bin1410.fits outfile=/scratch/kocevski/724568/cmap_604800001_605059201_4FGL_J2315.6-5018_daily_bin1410.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/724568/ft1_filtered_4FGL_J2315.6-5018_daily_bin1410.fits scfile=/scratch/kocevski/724568/ft2_4FGL_J2315.6-5018_daily_bin1410.fits outfile=/scratch/kocevski/724568/cmap_HighResolution_604800001_605059201_4FGL_J2315.6-5018_daily_bin1410.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/724568/ft1_filtered_4FGL_J2315.6-5018_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/724568/ft2_4FGL_J2315.6-5018_daily_bin1410.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/724568/Model_4FGL_J2315.6-5018_daily_bin1410.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/724568/ft1_filtered_4FGL_J2315.6-5018_daily_bin1410.fits.....................!
real 36.56
user 35.22
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10423E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12333E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.6870       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.3193       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .29143E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.0354       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2069       1.0000         .10000E-03   10000.    
    11 'Prefactor '    54.461       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .61108E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0437       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.930       1.0000         .10000E-03   10000.    
    15 'Prefactor '    75.344       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.951       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.323       1.0000         .10000E-03   10000.    
    19 'norm      '    8.2444       1.0000         .10000E-03   10000.    
    20 'norm      '    .16905E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.228       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .93043       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    70.004       1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    10.833       1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.2228       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .72474       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=   4424.314     FROM MIGRAD    STATUS=CONVERGED    991 CALLS     5123 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.800       -.12186E-05** at limit **
   2  Prefactor     .10000E-03    149.42       -.12925E-05** at limit **
   3  Prefactor     .10015E-03    52.966        .89344E-05** at limit **
   4  Prefactor     9.6831        9.4718        .10093E-05    .43023E-04
   5  Prefactor     .10000E-03    12.800       -.62402E-06** at limit **
   6  Prefactor     7.2937        12.569        .20890E-06    .79302E-04
   7  Prefactor     .10000E-03    5.1321       -.21681E-06** at limit **
   8  Prefactor     .10000E-03    302.43       -.35890E-05** at limit **
   9  norm          7.0356        6.7043       -.64839E-07    .49572E-04
  10  Prefactor     4.2073        4.5863        .12536E-06    .56091E-04
  11  Prefactor     54.457        51.350       -.72117E-07   -.44021E-04
  12  Prefactor     .62961E-01    46.809        .14468E-04   -.52067E-03
  13  Prefactor     .80721        128.27       -.19047E-05   -.15426E-03
  14  Prefactor     12.991        17.991        .14019E-05   -.31664E-05
  15  Prefactor     75.342        126.33       -.65340E-06   -.15192E-04
  16  Prefactor     .10000E-03    6.5727        .21424E-06** at limit **
  17  Prefactor     18.961        38.327        .29836E-06    .10392E-03
  18  Prefactor     11.326        17.742        .65877E-06    .15092E-03
  19  norm          8.2446        11.869        .30080E-07   -.12611E-04
  20  norm          .10004E-03    34.895        .12586E-04** at limit **
  21  norm          .10000E-03    2.4026       -.13464E-08** at limit **
  22  Prefactor     15.236        9.1251        .82648E-06    .61843E-03
  23  Prefactor     .10000E-03    10.290        .19461E-06** at limit **
  24  norm          .10000E-03    1.3722       -.71549E-08** at limit **
  25  Prefactor     .10000E-03    24.252       -.19450E-07** at limit **
  26  norm          .93150        1.2898        .45349E-07    .68916E-03
  27  norm          .10000E-03    1.8052       -.12442E-07** at limit **
  28  Prefactor     .10000E-03    6.3822       -.26370E-06** at limit **
  29  Prefactor     .10000E-03    2.0374       -.51794E-06** at limit **
  30  Prefactor     69.981        35.477        .33728E-06    .40816E-04
  31  norm          .10000E-03    8.2398       -.18752E-06** at limit **
  32  Prefactor     .10000E-03    2.5640       -.26477E-06** at limit **
  33  Prefactor     10.833        6.5933        .67406E-07    .24538E-03
  34  Normalizat    1.2227        .22307       -.24352E-05    .15644E-03
  35  Prefactor     .72477        .21421        .34989E-05    .51887E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 0.000100153
  Prefactor  = 9.68306
  Prefactor  = 0.0001
  Prefactor  = 7.29374
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 7.0356
  Prefactor  = 4.20728
  Prefactor  = 54.4568
  Prefactor  = 0.0629614
  Prefactor  = 0.807214
  Prefactor  = 12.9908
  Prefactor  = 75.3421
  Prefactor  = 0.0001
  Prefactor  = 18.9614
  Prefactor  = 11.3263
  norm       = 8.2446
  norm       = 0.000100038
  norm       = 0.0001
  Prefactor  = 15.2357
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.931504
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.981
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8334
  Normalizat = 1.22274
  Prefactor  = 0.724773
 **********
 **   18 **HESSE 
 **********

 FCN=   4424.314     FROM HESSE     STATUS=OK           782 CALLS     5905 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    151.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10015E-03    8.0940        .63614E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.6831        9.4968        .64377E-03   -1.5086    
   5  Prefactor     .10000E-03    13.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.2937        12.566        .14825E-03   -1.5168    
   7  Prefactor     .10000E-03    5.2851        .29372E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    303.14        .21402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.0356        6.7078        .15124E-03   -1.5177    
  10  Prefactor     4.2073        4.5733        .14105E-03   -1.5298    
  11  Prefactor     54.457        51.344        .54353E-04   -1.4231    
  12  Prefactor     .62961E-01    8.6610        .42515E-01   -1.5658    
  13  Prefactor     .80721        358.31        .64233E-02   -1.5528    
  14  Prefactor     12.991        19.654        .11140E-03   -1.4987    
  15  Prefactor     75.342        126.22        .46258E-04   -1.3970    
  16  Prefactor     .10000E-03    6.6383        .16659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.961        38.424        .92005E-04   -1.4837    
  18  Prefactor     11.326        17.670        .11906E-03   -1.5035    
  19  norm          8.2446        11.863        .13963E-03   -1.5134    
  20  norm          .10004E-03    42.562        .35323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.4081        .10069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.236        8.9985        .10264E-03   -1.4927    
  23  Prefactor     .10000E-03    10.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.3739        .76094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    24.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .93150        1.2165        .81497E-03   -1.5515    
  27  norm          .10000E-03    1.8140        .87277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    6.3986        .16421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    2.0581        .92799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     69.981        35.556        .47977E-04   -1.4033    
  31  norm          .10000E-03    8.2475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    2.5827        .10408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     10.833        6.6127        .12173E-03   -1.5050    
  34  Normalizat    1.2227        .26857        .22601E-03   -.85903    
  35  Prefactor     .72477        .25708        .28682E-03   -1.0256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.48147e-09
Minuit parameter uncertainties:
  1  0.000619281
  2  0.000835209
  3  0.00222351
  4  9.49832
  5  0.000148958
  6  12.5705
  7  7.20781e-05
  8  0.00227937
  9  6.70854
  10  4.57371
  11  51.3858
  12  1.47595
  13  34.2193
  14  19.6634
  15  126.676
  16  6.57582e-05
  17  38.4746
  18  17.6782
  19  11.8665
  20  0.00256165
  21  3.31344e-07
  22  8.99932
  23  0.000105114
  24  3.89312e-07
  25  9.19136e-05
  26  1.21654
  27  1.23144e-06
  28  7.46193e-05
  29  1.34046e-05
  30  35.5666
  31  6.82181e-05
  32  1.8151e-05
  33  6.6131
  34  0.268878
  35  0.257503
Done.

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

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.133e+01  1.768e+01  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:  7.248e-01  2.575e-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.223e+00  2.689e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.54
Ra Dec: 348.914 -50.313
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/724568/likelihoodResults_604800001_605059201_4FGL_J2315.6-5018_daily_bin1410.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4424.28732315
delta logL = 0.0262434901197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4424.27750191
delta logL = 0.0360647295993

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8282       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6616       1.0000          .0000       10.000    
     3 'Normalizat'    1.2150       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72976       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=   4424.278     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      255 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8207        19.310        .13490E-03    .12998E-02
   2  Index         2.6621        1.1352        .85938E-02    .39047E-03
   3  Normalizat    1.2151        .25425        .22659E-03   -.14930E-02
   4  Prefactor     .72971        .25310        .28592E-03   -.11559E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.82066
  Index      = 2.66211
  Normalizat = 1.21512
  Prefactor  = 0.729714
 **********
 **   18 **HESSE 
 **********

 FCN=   4424.278     FROM HESSE     STATUS=OK            23 CALLS      278 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8207        17.306        .26980E-04   -1.5114    
   2  Index         2.6621        1.0188        .34375E-03   -.48655    
   3  Normalizat    1.2151        .25444        .45318E-04   -.86137    
   4  Prefactor     .72971        .25320        .57184E-04   -1.0237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.85932e-09
Minuit parameter uncertainties:
  1  17.3161
  2  1.02806
  3  0.254697
  4  0.253601
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/724568': 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) = 4424.27750148
delta logL = 0.0360651640112

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  8.821e+00  1.732e+01  1.000e-04  1.000e+04 ( 1.000e-13)
433        Index:  2.662e+00  1.028e+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:  7.297e-01  2.536e-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.215e+00  2.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.54
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/724568/cmap_HighResolution_604800001_605059201_4FGL_J2315.6-5018_daily_bin1410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.21e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-29 10:21:25.903993', job_id='724568', GAL2='0.73', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1632936085.9', return_code2='0', ts='0.54', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='3.61e-02', ts2='0.62', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1410' AND source_name='4FGL J2315.6-5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:21:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 724568: <4FGL_J2315.6-5018_daily_bin1410> in cluster <slac> Done

Job <4FGL_J2315.6-5018_daily_bin1410> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 10:05:25 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:05:26 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:05:26 2021
Terminated at Wed Sep 29 10:21:26 2021
Results reported at Wed Sep 29 10:21:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2315.6-5018_daily_bin1410 348.914 -50.3127 604800001 605059201 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 :                                   823.17 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             307.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            961 sec.

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

