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


Performing analysis on: 4FGL_J2315.6-5018_daily_bin682
RA = 348.914, Dec = -50.3127
tmin = 416102401, tmax = 416361601
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='721506', job_status='RUN', time_executed='2021-09-29 09:55:32.227143', time_epoch_executed='1632934532.23' WHERE source_name='4FGL J2315.6-5018' and cadence='daily' and bin_id='682'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/721506

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/721506/ft1_4FGL_J2315.6-5018_daily_bin682.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/721506/ft2_4FGL_J2315.6-5018_daily_bin682.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/721506/ft1_4FGL_J2315.6-5018_daily_bin682.fits outfile=/scratch/kocevski/721506/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin682.fits ra=348.914 dec=-50.3127 rad=12.0 tmin=416102401.0 tmax=416361601.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 6.48
user 6.17
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/721506/ft2_4FGL_J2315.6-5018_daily_bin682.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/721506/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin682.fits evtable="EVENTS" outfile="/scratch/kocevski/721506/ft1_filtered_4FGL_J2315.6-5018_daily_bin682.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/721506/ft1_filtered_4FGL_J2315.6-5018_daily_bin682.fits" evtable="EVENTS" scfile=/scratch/kocevski/721506/ft2_4FGL_J2315.6-5018_daily_bin682.fits sctable="SC_DATA" outfile=/scratch/kocevski/721506/ltcube_416102401_416361601_4FGL_J2315.6-5018_daily_bin682.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/721506/ft2_4FGL_J2315.6-5018_daily_bin682.fits
.....................!
real 12.17
user 11.82
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/721506/ft1_filtered_4FGL_J2315.6-5018_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/721506/ft2_4FGL_J2315.6-5018_daily_bin682.fits sctable="SC_DATA" expcube=/scratch/kocevski/721506/ltcube_416102401_416361601_4FGL_J2315.6-5018_daily_bin682.fits outfile=/scratch/kocevski/721506/expmap_416102401_416361601_4FGL_J2315.6-5018_daily_bin682.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/721506/ltcube_416102401_416361601_4FGL_J2315.6-5018_daily_bin682.fits
.....................!
real 192.38
user 187.42
sys 4.39

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/721506/ft1_filtered_4FGL_J2315.6-5018_daily_bin682.fits scfile=/scratch/kocevski/721506/ft2_4FGL_J2315.6-5018_daily_bin682.fits outfile=/scratch/kocevski/721506/cmap_416102401_416361601_4FGL_J2315.6-5018_daily_bin682.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=348.914 yref=-50.3127 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/721506/ft1_filtered_4FGL_J2315.6-5018_daily_bin682.fits scfile=/scratch/kocevski/721506/ft2_4FGL_J2315.6-5018_daily_bin682.fits outfile=/scratch/kocevski/721506/cmap_HighResolution_416102401_416361601_4FGL_J2315.6-5018_daily_bin682.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/721506/ft1_filtered_4FGL_J2315.6-5018_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/721506/ft2_4FGL_J2315.6-5018_daily_bin682.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/721506/Model_4FGL_J2315.6-5018_daily_bin682.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/721506/ft1_filtered_4FGL_J2315.6-5018_daily_bin682.fits.....................!
real 35.35
user 34.06
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.1433       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4341       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.849       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.7078       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.720       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.262       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.180       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.1026       1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.838       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.288       1.0000         .10000E-03   10000.    
    19 'norm      '    .82006E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.2804       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.571       1.0000         .10000E-03   10000.    
    24 'norm      '    1.4140       1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.348       1.0000         .10000E-03   10000.    
    26 'norm      '    9.8690       1.0000         .10000E-03   10000.    
    27 'norm      '    5.4825       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.0831       1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.7954       1.0000         .10000E-03   10000.    
    30 'Prefactor '    15.262       1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    2.1821       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .65412       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.1383       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=   4269.091     FROM MIGRAD    STATUS=CONVERGED    971 CALLS     5056 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.560       -.27713E-05** at limit **
   2  Prefactor     8.1413        28.607        .11185E-05    .24626E-04
   3  Prefactor     .10000E-03    5.1846       -.24629E-06** at limit **
   4  Prefactor     .10000E-03    4.9250        .19378E-06** at limit **
   5  Prefactor     4.4348        9.5878        .51309E-06    .25337E-04
   6  Prefactor     15.849        10.031       -.10649E-06   -.90316E-04
   7  Prefactor     7.7073        5.6726        .75786E-07   -.90479E-04
   8  Prefactor     .10000E-03    37.012        .40112E-05** at limit **
   9  norm          .10000E-03    6.8572        .43084E-07** at limit **
  10  Prefactor     .10000E-03    1.5244       -.54982E-08** at limit **
  11  Prefactor     26.695        56.077        .29294E-05   -.16332E-04
  12  Prefactor     14.261        6.9741       -.88392E-07   -.62488E-04
  13  Prefactor     16.180        23.148        .14680E-06   -.61212E-04
  14  Prefactor     .10000E-03    5.3577        .22293E-06** at limit **
  15  Prefactor     .10000E-03    35.653        .30149E-05** at limit **
  16  Prefactor     4.1027        7.7776       -.27893E-06   -.42131E-04
  17  Prefactor     35.834        38.589        .36970E-06   -.13009E-04
  18  Prefactor     12.296        26.676        .14882E-05    .41048E-05
  19  norm          .10223E-03    8.5440       -.85791E-06** at limit **
  20  norm          .10000E-03    2.7689        .19074E-08** at limit **
  21  norm          .10000E-03    2.1753       -.76278E-07** at limit **
  22  Prefactor     1.2761        10.629       -.18083E-05   -.32221E-03
  23  Prefactor     18.521        48.445       -.41111E-05   -.16649E-04
  24  norm          1.4204        4.7062        .82487E-05   -.15769E-03
  25  Prefactor     14.365        17.890        .22497E-05    .11488E-03
  26  norm          9.8693        2.5229       -.68469E-07    .55755E-03
  27  norm          5.4813        7.4502       -.14581E-05   -.73610E-04
  28  Prefactor     4.0836        18.715        .25036E-06    .15576E-05
  29  Prefactor     3.7954        3.5706        .29040E-07    .98706E-04
  30  Prefactor     15.263        17.106        .13868E-06    .50096E-04
  31  norm          .10000E-03    32.682       -.36421E-05** at limit **
  32  Prefactor     2.1827        5.1530        .11453E-05    .38923E-03
  33  Prefactor     .10000E-03    1.2712        .10888E-07** at limit **
  34  Normalizat    .65374        .22833        .28167E-05    .13442E-03
  35  Prefactor     1.1387        .22379       -.34205E-05    .53132E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 8.14131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.43475
  Prefactor  = 15.8487
  Prefactor  = 7.70731
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.695
  Prefactor  = 14.2614
  Prefactor  = 16.18
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.1027
  Prefactor  = 35.8339
  Prefactor  = 12.2956
  norm       = 0.000102232
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.27609
  Prefactor  = 18.521
  norm       = 1.42041
  Prefactor  = 14.3648
  norm       = 9.86927
  norm       = 5.48133
  Prefactor  = 4.0836
  Prefactor  = 3.79545
  Prefactor  = 15.2629
  norm       = 0.0001
  Prefactor  = 2.18269
  Prefactor  = 0.0001
  Normalizat = 0.653742
  Prefactor  = 1.13873
 **********
 **   18 **HESSE 
 **********

 FCN=   4269.091     FROM HESSE     STATUS=OK           784 CALLS     5840 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.1413        28.591        .14050E-03   -1.5137    
   3  Prefactor     .10000E-03    5.1945        .14526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.9551        .14161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.4348        9.5844        .19124E-03   -1.5287    
   6  Prefactor     15.849        10.030        .10060E-03   -1.4912    
   7  Prefactor     7.7073        5.6690        .12665E-03   -1.5153    
   8  Prefactor     .10000E-03    36.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.9230        .16708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.5345        .78757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.695        56.036        .77499E-04   -1.4674    
  12  Prefactor     14.261        6.9746        .10606E-03   -1.4953    
  13  Prefactor     16.180        23.157        .99571E-04   -1.4903    
  14  Prefactor     .10000E-03    5.3668        .14761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    35.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.1027        7.7786        .19903E-03   -1.5303    
  17  Prefactor     35.834        38.596        .66943E-04   -1.4510    
  18  Prefactor     12.296        26.787        .11427E-03   -1.5007    
  19  norm          .10223E-03    11.312        .70836E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.7695        .10618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.1768        .94118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.2761        10.253        .37623E-03   -1.5482    
  23  Prefactor     18.521        48.411        .92941E-04   -1.4847    
  24  norm          1.4204        4.7425        .11264E-02   -1.5470    
  25  Prefactor     14.365        17.680        .10574E-03   -1.4950    
  26  norm          9.8693        2.5204        .45997E-04   -1.5080    
  27  norm          5.4813        7.4132        .16830E-03   -1.5240    
  28  Prefactor     4.0836        18.749        .19952E-03   -1.5304    
  29  Prefactor     3.7954        3.5613        .11353E-03   -1.5318    
  30  Prefactor     15.263        17.103        .10252E-03   -1.4926    
  31  norm          .10000E-03    32.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     2.1827        5.1313        .21532E-03   -1.5412    
  33  Prefactor     .10000E-03    1.2732        .71935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .65374        .27596        .28668E-03   -1.0575    
  35  Prefactor     1.1387        .27165        .23698E-03   -.88238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.70789e-10
Minuit parameter uncertainties:
  1  0.000441625
  2  28.6388
  3  1.97182e-05
  4  7.3303e-06
  5  9.5877
  6  10.031
  7  5.66944
  8  0.000110621
  9  1.43526e-05
  10  7.90643e-07
  11  56.147
  12  6.97496
  13  23.1695
  14  1.31823e-05
  15  0.00010221
  16  7.78048
  17  38.6232
  18  26.813
  19  0.010052
  20  4.00938e-07
  21  9.94876e-06
  22  7.23567
  23  48.5134
  24  4.74371
  25  17.686
  26  2.52047
  27  7.41443
  28  17.5091
  29  3.5615
  30  17.1089
  31  8.60246e-05
  32  5.1323
  33  4.66658e-07
  34  0.276543
  35  0.271981
Done.

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

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.230e+01  2.681e+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:  1.139e+00  2.720e-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:  6.537e-01  2.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/721506/likelihoodResults_416102401_416361601_4FGL_J2315.6-5018_daily_bin682.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) = 4266.57152342
delta logL = 2.51945572502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4266.51414405
delta logL = 2.57683509846

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66478       1.0000         .10000E-03   10000.    
     2 'Index     '    4.7041       1.0000          .0000       10.000    
     3 'Normalizat'    .51157       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2401       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=   4266.514     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      275 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .66365        5.5014        .59124E-02    .24546E-03
   2  Index         4.7052        2.3722        .66671E-01    .11141E-03
   3  Normalizat    .51197        .69171E-01    .72137E-01    .28398E-04
   4  Prefactor     1.2397        .73821E-01    .51510E-01    .26579E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.663653
  Index      = 4.70517
  Normalizat = 0.511973
  Prefactor  = 1.23974
 **********
 **   18 **HESSE 
 **********

 FCN=   4266.514     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      308 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .66365        8.8436        .26421E-04   -1.5545    
   2  Index         4.7052        3.1140        .27874E-02   -.59000E-01
   3  Normalizat    .51197        .23382        .31936E-03   -1.1186    
   4  Prefactor     1.2397        .24749        .22772E-03   -.85117    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.3263e-07
Minuit parameter uncertainties:
  1  4.84576
  2  3.36266
  3  0.234265
  4  0.247724
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/721506': 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) = 4266.51414087
delta logL = 2.57683827814

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  1.240e+00  2.477e-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:  5.120e-01  2.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.83
Ra Dec: 348.914 -50.313
Photon Index (Free Index): 4.71 +/- 3.36
Photon Flux (Free Index): 1.42e-07 +/- 7.56e-08
Energy Flux (Free Index): 1.93e-05 +/- 1.35e-05

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/721506/cmap_HighResolution_416102401_416361601_4FGL_J2315.6-5018_daily_bin682.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', comment='SUCCESS', energy_flux2='1.93e-05', dlogl='2.58e+00', photon_flux2='1.42e-07', job_status='DONE', time_completed='2021-09-29 10:09:26.808099', photon_index_error2='3.36', photon_index2='4.71', ts='0.27', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='1.35e-05', EG='0.65', time_epoch_completed='1632935366.81', return_code='0', job_id='721506', GAL2='1.24', EG2='0.51', return_code2='102', photon_flux_error2='7.56e-08', ts2='5.83', photon_index='2.40' WHERE bin_id='682' AND source_name='4FGL J2315.6-5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:09:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 721506: <4FGL_J2315.6-5018_daily_bin682> in cluster <slac> Done

Job <4FGL_J2315.6-5018_daily_bin682> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 09:55:12 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 09:55:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 09:55:13 2021
Terminated at Wed Sep 29 10:09:27 2021
Results reported at Wed Sep 29 10:09:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2315.6-5018_daily_bin682 348.914 -50.3127 416102401 416361601 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 :                                   831.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            855 sec.

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

