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


Performing analysis on: 4FGL_J2315.6-5018_daily_bin1462
RA = 348.914, Dec = -50.3127
tmin = 618278401, tmax = 618537601
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='724645', job_status='RUN', time_executed='2021-09-29 10:06:23.248457', time_epoch_executed='1632935183.25' WHERE source_name='4FGL J2315.6-5018' and cadence='daily' and bin_id='1462'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/724645

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/724645/ft1_4FGL_J2315.6-5018_daily_bin1462.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/724645/ft2_4FGL_J2315.6-5018_daily_bin1462.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/724645/ft1_4FGL_J2315.6-5018_daily_bin1462.fits outfile=/scratch/kocevski/724645/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin1462.fits ra=348.914 dec=-50.3127 rad=12.0 tmin=618278401.0 tmax=618537601.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.77
user 3.50
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/724645/ft1_filtered_4FGL_J2315.6-5018_daily_bin1462.fits" evtable="EVENTS" scfile=/scratch/kocevski/724645/ft2_4FGL_J2315.6-5018_daily_bin1462.fits sctable="SC_DATA" outfile=/scratch/kocevski/724645/ltcube_618278401_618537601_4FGL_J2315.6-5018_daily_bin1462.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/724645/ft2_4FGL_J2315.6-5018_daily_bin1462.fits
.....................!
real 12.07
user 11.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/724645/ft1_filtered_4FGL_J2315.6-5018_daily_bin1462.fits evtable="EVENTS" scfile=/scratch/kocevski/724645/ft2_4FGL_J2315.6-5018_daily_bin1462.fits sctable="SC_DATA" expcube=/scratch/kocevski/724645/ltcube_618278401_618537601_4FGL_J2315.6-5018_daily_bin1462.fits outfile=/scratch/kocevski/724645/expmap_618278401_618537601_4FGL_J2315.6-5018_daily_bin1462.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/724645/ltcube_618278401_618537601_4FGL_J2315.6-5018_daily_bin1462.fits
.....................!
real 191.53
user 185.57
sys 4.63

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/724645/ft1_filtered_4FGL_J2315.6-5018_daily_bin1462.fits scfile=/scratch/kocevski/724645/ft2_4FGL_J2315.6-5018_daily_bin1462.fits outfile=/scratch/kocevski/724645/cmap_618278401_618537601_4FGL_J2315.6-5018_daily_bin1462.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/724645/ft1_filtered_4FGL_J2315.6-5018_daily_bin1462.fits scfile=/scratch/kocevski/724645/ft2_4FGL_J2315.6-5018_daily_bin1462.fits outfile=/scratch/kocevski/724645/cmap_HighResolution_618278401_618537601_4FGL_J2315.6-5018_daily_bin1462.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/724645/ft1_filtered_4FGL_J2315.6-5018_daily_bin1462.fits evtable="EVENTS" scfile=/scratch/kocevski/724645/ft2_4FGL_J2315.6-5018_daily_bin1462.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/724645/Model_4FGL_J2315.6-5018_daily_bin1462.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/724645/ft1_filtered_4FGL_J2315.6-5018_daily_bin1462.fits.....................!
real 39.84
user 38.31
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.463       1.0000         .10000E-03   10000.    
     2 'Prefactor '    92.374       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .35569E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .67143       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8101       1.0000         .10000E-03   10000.    
     8 'Prefactor '    54.261       1.0000         .10000E-03   10000.    
     9 'norm      '    .46112E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8885       1.0000         .10000E-03   10000.    
    11 'Prefactor '    83.844       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6602       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.9820       1.0000         .10000E-03   10000.    
    15 'Prefactor '    122.67       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10399E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    19.969       1.0000         .10000E-03   10000.    
    20 'norm      '    .10547E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.258       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.1332       1.0000         .10000E-03   10000.    
    24 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.950       1.0000         .10000E-03   10000.    
    26 'norm      '    .13397E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.2237       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .45818       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.2498       1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.3169       1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.0647       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .95770       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=   5111.999     FROM MIGRAD    STATUS=CONVERGED    975 CALLS     5251 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.458        21.670        .50902E-06    .17808E-04
   2  Prefactor     92.394        56.390       -.22250E-05   -.69009E-04
   3  Prefactor     .10000E-03    4.2616       -.10459E-06** at limit **
   4  Prefactor     .10001E-03    9.3712       -.26255E-05** at limit **
   5  Prefactor     .10000E-03    3.4546        .59913E-07** at limit **
   6  Prefactor     .68036        30.064       -.10355E-04    .24693E-04
   7  Prefactor     1.8107        3.2009        .15027E-07    .44360E-04
   8  Prefactor     54.346        141.11        .10710E-05   -.14651E-03
   9  norm          .10000E-03    6.8318       -.85808E-08** at limit **
  10  Prefactor     6.8847        6.0309       -.20844E-06    .82961E-03
  11  Prefactor     83.843        63.160        .34202E-06    .36547E-04
  12  Prefactor     3.6593        3.6274       -.14481E-06   -.51902E-04
  13  Prefactor     .10000E-03    28.505       -.10798E-05** at limit **
  14  Prefactor     7.9777        12.047        .26818E-07    .39838E-04
  15  Prefactor     122.66        96.535        .80882E-06    .19160E-04
  16  Prefactor     .10000E-03    12.025       -.12366E-05** at limit **
  17  Prefactor     .10000E-03    28.139        .29743E-06** at limit **
  18  Prefactor     .10000E-03    7.0848       -.16735E-06** at limit **
  19  norm          19.968        15.908       -.12019E-06    .27247E-05
  20  norm          .10000E-03    6.3374       -.33484E-05** at limit **
  21  norm          .10000E-03    2.6381       -.35730E-06** at limit **
  22  Prefactor     12.255        10.100        .19530E-07    .10975E-03
  23  Prefactor     5.0907        62.206        .91721E-05    .54347E-04
  24  norm          .10000E-03    1.9953       -.48418E-06** at limit **
  25  Prefactor     13.943        17.131       -.24487E-06    .34977E-04
  26  norm          .10000E-03    .75657        .47578E-06** at limit **
  27  norm          2.2229        4.4901       -.81258E-06   -.20368E-03
  28  Prefactor     .41308        14.869        .32049E-05   -.24430E-03
  29  Prefactor     2.2493        4.1571        .15075E-06    .11077E-03
  30  Prefactor     8.3099        23.405        .72559E-06    .32295E-04
  31  norm          .10000E-03    9.5799        .35343E-06** at limit **
  32  Prefactor     .10000E-03    3.9664        .17423E-06** at limit **
  33  Prefactor     .10000E-03    1.6399       -.61341E-07** at limit **
  34  Normalizat    1.0653        .21370        .12888E-05    .11475E-03
  35  Prefactor     .95726        .21427       -.65533E-06   -.27254E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4582
  Prefactor  = 92.3943
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.680363
  Prefactor  = 1.81074
  Prefactor  = 54.3459
  norm       = 0.000100001
  Prefactor  = 6.88471
  Prefactor  = 83.8429
  Prefactor  = 3.65933
  Prefactor  = 0.0001
  Prefactor  = 7.9777
  Prefactor  = 122.663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.9681
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 12.2546
  Prefactor  = 5.09066
  norm       = 0.000100001
  Prefactor  = 13.9433
  norm       = 0.0001
  norm       = 2.22291
  Prefactor  = 0.413084
  Prefactor  = 2.24931
  Prefactor  = 8.30993
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06529
  Prefactor  = 0.957256
 **********
 **   18 **HESSE 
 **********

 FCN=   5111.999     FROM HESSE     STATUS=OK           780 CALLS     6031 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.458        21.656        .12387E-03   -1.5061    
   2  Prefactor     92.394        55.788        .41813E-04   -1.3783    
   3  Prefactor     .10000E-03    4.2702        .14416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    33.746        .39264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.4562        .12979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .68036        47.191        .37013E-02   -1.5543    
   7  Prefactor     1.8107        3.1877        .16295E-03   -1.5439    
   8  Prefactor     54.346        161.77        .54452E-04   -1.4232    
   9  norm          .10000E-03    37.491        .36117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.8847        6.3175        .76432E-03   -1.5183    
  11  Prefactor     83.843        63.236        .43869E-04   -1.3874    
  12  Prefactor     3.6593        3.6329        .13150E-03   -1.5325    
  13  Prefactor     .10000E-03    28.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.9777        12.009        .14192E-03   -1.5143    
  15  Prefactor     122.66        96.476        .18170E-03   -1.3488    
  16  Prefactor     .10000E-03    12.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.1091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          19.968        15.907        .89631E-04   -1.4814    
  20  norm          .10000E-03    13.406        .31041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.6546        .11351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.255        9.9379        .11442E-03   -1.5008    
  23  Prefactor     5.0907        62.988        .17745E-03   -1.5257    
  24  norm          .10000E-03    2.0179        .98832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     13.943        17.102        .10724E-03   -1.4961    
  26  norm          .10000E-03    3.7854        .11159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.2229        4.4677        .20107E-03   -1.5410    
  28  Prefactor     .41308        162.13        .47965E-02   -1.5579    
  29  Prefactor     2.2493        4.0894        .17653E-03   -1.5408    
  30  Prefactor     8.3099        23.151        .13901E-03   -1.5131    
  31  norm          .10000E-03    9.5836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    3.9962        .13889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    1.6461        .89395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.0653        .25263        .24453E-03   -.90874    
  35  Prefactor     .95726        .25029        .26293E-03   -.94168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.58571e-09
Minuit parameter uncertainties:
  1  21.6727
  2  55.8198
  3  6.47142e-06
  4  0.00118714
  5  2.63645e-06
  6  11.3411
  7  3.18799
  8  163.102
  9  0.000404115
  10  6.31808
  11  63.2868
  12  3.63314
  13  9.95574e-05
  14  12.0128
  15  96.6002
  16  3.91577e-05
  17  9.59207e-06
  18  1.54718e-05
  19  15.91
  20  0.000167515
  21  5.60978e-05
  22  9.9392
  23  35.86
  24  6.61399e-05
  25  17.1082
  26  2.77846e-05
  27  4.4684
  28  16.4102
  29  4.08995
  30  23.1763
  31  1.05501e-05
  32  7.55206e-06
  33  4.42709e-06
  34  0.252912
  35  0.25059
Done.

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

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.000e-04  1.547e-05  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:  9.573e-01  2.506e-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.065e+00  2.529e-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: 6.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/724645/likelihoodResults_618278401_618537601_4FGL_J2315.6-5018_daily_bin1462.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) = 5111.99989203
delta logL = -0.000669401039886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5111.99922285
delta logL = -2.14661667997e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10594E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3692       1.0000          .0000       10.000    
     3 'Normalizat'    1.0653       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95724       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=   5111.999     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      237 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10273E-03    5.5703        .18142E-01** at limit **
   2  Index         2.2877        5.6688        .50000        .26191E-04
   3  Normalizat    1.0653        .40493E-02    .24452E-03    .10879E-04
   4  Prefactor     .95726        .41712E-02    .26294E-03    .43713E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102734
  Index      = 2.28772
  Normalizat = 1.06529
  Prefactor  = 0.957259
 **********
 **   18 **HESSE 
 **********

 FCN=   5111.999     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10273E-03    67.649        .19562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2877        8.7032        .50000       -.57336    
   3  Normalizat    1.0653        .14148E-01    .97810E-05   -.90874    
   4  Prefactor     .95726        .14574E-01    .10517E-04   -.94168    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.12509e-09
Minuit parameter uncertainties:
  1  0.0272317
  2  279.829
  3  0.0141481
  4  0.0145737
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/724645': 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) = 5111.99922206
delta logL = 5.70623342355e-07

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.027e-04  2.723e-02  1.000e-04  1.000e+04 ( 1.000e-13)
433        Index:  2.288e+00  2.798e+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:  9.573e-01  1.457e-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.065e+00  1.415e-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/724645/cmap_HighResolution_618278401_618537601_4FGL_J2315.6-5018_daily_bin1462.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-03', job_status='DONE', photon_flux_upper_limit='6.24e-08', time_completed='2021-09-29 10:22:08.985549', job_id='724645', GAL2='0.96', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1632936128.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='5.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1462' AND source_name='4FGL J2315.6-5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:22:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 724645: <4FGL_J2315.6-5018_daily_bin1462> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2315.6-5018_daily_bin1462 348.914 -50.3127 618278401 618537601 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 :                                   902.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   998 sec.
    Turnaround time :                            999 sec.

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

