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


Performing analysis on: 4FGL_J2315.6-5018_daily_bin1276
RA = 348.914, Dec = -50.3127
tmin = 570067201, tmax = 570326401
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='723404', job_status='RUN', time_executed='2021-09-29 10:04:56.249903', time_epoch_executed='1632935096.25' WHERE source_name='4FGL J2315.6-5018' and cadence='daily' and bin_id='1276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/723404

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/723404/ft1_4FGL_J2315.6-5018_daily_bin1276.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/723404/ft2_4FGL_J2315.6-5018_daily_bin1276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/723404/ft1_4FGL_J2315.6-5018_daily_bin1276.fits outfile=/scratch/kocevski/723404/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin1276.fits ra=348.914 dec=-50.3127 rad=12.0 tmin=570067201.0 tmax=570326401.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.82
user 3.46
sys 0.51

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/723404/ft2_4FGL_J2315.6-5018_daily_bin1276.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/723404/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin1276.fits evtable="EVENTS" outfile="/scratch/kocevski/723404/ft1_filtered_4FGL_J2315.6-5018_daily_bin1276.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.51
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/723404/ft1_filtered_4FGL_J2315.6-5018_daily_bin1276.fits" evtable="EVENTS" scfile=/scratch/kocevski/723404/ft2_4FGL_J2315.6-5018_daily_bin1276.fits sctable="SC_DATA" outfile=/scratch/kocevski/723404/ltcube_570067201_570326401_4FGL_J2315.6-5018_daily_bin1276.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/723404/ft2_4FGL_J2315.6-5018_daily_bin1276.fits
.....................!
real 11.73
user 11.38
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/723404/ft1_filtered_4FGL_J2315.6-5018_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/723404/ft2_4FGL_J2315.6-5018_daily_bin1276.fits sctable="SC_DATA" expcube=/scratch/kocevski/723404/ltcube_570067201_570326401_4FGL_J2315.6-5018_daily_bin1276.fits outfile=/scratch/kocevski/723404/expmap_570067201_570326401_4FGL_J2315.6-5018_daily_bin1276.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/723404/ltcube_570067201_570326401_4FGL_J2315.6-5018_daily_bin1276.fits
.....................!
real 190.22
user 184.97
sys 4.86

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

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

This is gtbin version HEAD
real 0.56
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/723404/ft1_filtered_4FGL_J2315.6-5018_daily_bin1276.fits scfile=/scratch/kocevski/723404/ft2_4FGL_J2315.6-5018_daily_bin1276.fits outfile=/scratch/kocevski/723404/cmap_HighResolution_570067201_570326401_4FGL_J2315.6-5018_daily_bin1276.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/723404/ft1_filtered_4FGL_J2315.6-5018_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/723404/ft2_4FGL_J2315.6-5018_daily_bin1276.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/723404/Model_4FGL_J2315.6-5018_daily_bin1276.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/723404/ft1_filtered_4FGL_J2315.6-5018_daily_bin1276.fits.....................!
real 30.35
user 28.96
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.488       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10423E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.9435       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7907       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 '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.9409       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.732       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18154E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.871       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.106       1.0000         .10000E-03   10000.    
    19 'norm      '    30.148       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.0294       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.0558       1.0000         .10000E-03   10000.    
    24 'norm      '    .10177E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.1243       1.0000         .10000E-03   10000.    
    26 'norm      '    .69628       1.0000         .10000E-03   10000.    
    27 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    25.034       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10675E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    6.0194       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .29969E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .80786       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .69319       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=   3394.852     FROM MIGRAD    STATUS=CONVERGED    952 CALLS     5034 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7169       -.78717E-06** at limit **
   2  Prefactor     .10000E-03    12.858       -.47761E-05** at limit **
   3  Prefactor     11.488        9.2492       -.12102E-06   -.38151E-05
   4  Prefactor     .10000E-03    15.015        .73521E-05** at limit **
   5  Prefactor     6.9442        7.8159       -.14300E-05   -.13371E-02
   6  Prefactor     .10000E-03    4.8117        .10648E-05** at limit **
   7  Prefactor     3.7898        5.1263       -.62681E-06   -.21033E-03
   8  Prefactor     .10000E-03    29.627       -.43911E-05** at limit **
   9  norm          .10000E-03    2.8450       -.40863E-06** at limit **
  10  Prefactor     .10000E-03    2.8071        .17284E-06** at limit **
  11  Prefactor     .10000E-03    18.281       -.15896E-05** at limit **
  12  Prefactor     8.9374        7.3765       -.35821E-06    .59806E-04
  13  Prefactor     .10000E-03    28.029       -.10752E-04** at limit **
  14  Prefactor     21.728        14.419       -.87258E-07    .21436E-03
  15  Prefactor     .10000E-03    74.742       -.39208E-04** at limit **
  16  Prefactor     .10001E-03    6.2557        .19550E-06** at limit **
  17  Prefactor     39.862        50.031       -.10139E-04    .37847E-04
  18  Prefactor     15.101        17.035       -.54178E-06    .51640E-04
  19  norm          30.149        18.322        .37655E-06    .42863E-04
  20  norm          .10000E-03    2.6200        .88105E-08** at limit **
  21  norm          4.0291        4.0996       -.19748E-05    .40971E-03
  22  Prefactor     .10000E-03    6.7950        .83045E-06** at limit **
  23  Prefactor     2.0003        65.351       -.51665E-04   -.39280E-04
  24  norm          .10000E-03    1.4892        .63556E-06** at limit **
  25  Prefactor     9.1205        17.212       -.71705E-06    .21777E-04
  26  norm          .69601        1.0578       -.74865E-07   -.24116E-03
  27  norm          .10000E-03    1.0559        .15127E-07** at limit **
  28  Prefactor     25.026        21.896       -.38407E-05    .27234E-05
  29  Prefactor     .10000E-03    2.3723       -.71932E-06** at limit **
  30  Prefactor     .10000E-03    6.5705       -.14609E-06** at limit **
  31  norm          .10000E-03    54.186        .52113E-04** at limit **
  32  Prefactor     6.0078        6.2212       -.81238E-06   -.91700E-03
  33  Prefactor     .10000E-03    3.6261        .65099E-07** at limit **
  34  Normalizat    .80846        .20173        .56983E-05   -.33331E-04
  35  Prefactor     .69270        .19896       -.57571E-06    .14760E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4877
  Prefactor  = 0.000100001
  Prefactor  = 6.94419
  Prefactor  = 0.0001
  Prefactor  = 3.78981
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.93744
  Prefactor  = 0.0001
  Prefactor  = 21.7279
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 39.8621
  Prefactor  = 15.1008
  norm       = 30.1487
  norm       = 0.0001
  norm       = 4.0291
  Prefactor  = 0.0001
  Prefactor  = 2.00027
  norm       = 0.000100001
  Prefactor  = 9.12046
  norm       = 0.696006
  norm       = 0.0001
  Prefactor  = 25.0263
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 6.00778
  Prefactor  = 0.000100003
  Normalizat = 0.80846
  Prefactor  = 0.692702
 **********
 **   18 **HESSE 
 **********

 FCN=   3394.852     FROM HESSE     STATUS=OK           772 CALLS     5806 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7180        .13606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.488        9.2476        .11820E-03   -1.5030    
   4  Prefactor     .10000E-03    15.454        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.9442        7.8721        .76125E-03   -1.5181    
   6  Prefactor     .10000E-03    4.8326        .12480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.7898        5.1194        .14612E-03   -1.5319    
   8  Prefactor     .10000E-03    29.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.8454        .95984E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.8546        .95248E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.9374        7.3743        .13404E-03   -1.5110    
  13  Prefactor     .10000E-03    28.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.728        14.402        .85921E-04   -1.4775    
  15  Prefactor     .10000E-03    74.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    17.427        .28189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     39.862        49.983        .63480E-04   -1.4444    
  18  Prefactor     15.101        16.987        .10305E-03   -1.4931    
  19  norm          30.149        18.328        .72970E-04   -1.4609    
  20  norm          .10000E-03    2.6204        .92104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.0291        4.0869        .11474E-03   -1.5306    
  22  Prefactor     .10000E-03    6.8259        .14752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.0003        66.569        .28826E-03   -1.5425    
  24  norm          .10000E-03    1.4969        .69432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     9.1205        16.994        .13268E-03   -1.5104    
  26  norm          .69601        .98305        .67285E-03   -1.5541    
  27  norm          .10000E-03    1.0567        .58463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     25.026        21.893        .80063E-04   -1.4707    
  29  Prefactor     .10000E-03    4.7991        .17137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    6.5724        .14586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    54.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     6.0078        6.1605        .13658E-03   -1.5218    
  33  Prefactor     .10000E-03    7.4369        .21219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .80846        .23797        .21155E-03   -.99756    
  35  Prefactor     .69270        .23624        .23891E-03   -1.0381    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98616e-09
Minuit parameter uncertainties:
  1  3.86103e-06
  2  1.05425e-05
  3  9.24878
  4  0.000185808
  5  7.87328
  6  8.03414e-06
  7  5.11997
  8  6.58353e-06
  9  5.96717e-07
  10  1.99282e-05
  11  1.29682e-05
  12  7.37509
  13  4.24426e-05
  14  14.4042
  15  4.8465e-05
  16  0.000715387
  17  50.0357
  18  16.9927
  19  18.3318
  20  3.43257e-08
  21  4.08717
  22  9.57494e-07
  23  23.106
  24  6.56183e-05
  25  17.0032
  26  0.983078
  27  1.24769e-05
  28  21.9003
  29  0.000111188
  30  1.20088e-06
  31  0.000474373
  32  6.16112
  33  0.000275056
  34  0.23828
  35  0.236583
Done.

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

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  1.510e+01  1.699e+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:  6.927e-01  2.366e-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:  8.085e-01  2.383e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.33
Ra Dec: 348.914 -50.313
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 3.36e-08 +/- 3.78e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 1.25e-05

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

Saving results to:
/scratch/kocevski/723404/likelihoodResults_570067201_570326401_4FGL_J2315.6-5018_daily_bin1276.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) = 3394.3988396
delta logL = 0.453493896334

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3394.04373699
delta logL = 0.808596504316

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.3631       1.0000          .0000       10.000    
     3 'Normalizat'    .73929       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75810       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=   3394.044     FROM MIGRAD    STATUS=CONVERGED    335 CALLS      789 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .51184E-02    .27385E-03** at limit **
   2  Index         8.3631        2.8534        .11128        .14016E-03
   3  Normalizat    .73916        .57093E-01    .42813E-01    .61756E-04
   4  Prefactor     .75834        .59944E-01    .43169E-01    .10333E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.36306
  Normalizat = 0.739161
  Prefactor  = 0.758342
 **********
 **   18 **HESSE 
 **********

 FCN=   3394.044     FROM HESSE     STATUS=OK            35 CALLS      824 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .12593E-02    .76643E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.3631        .33670        .47146E-02    .73773    
   3  Normalizat    .73916        .22712        .21984E-03   -1.0237    
   4  Prefactor     .75834        .23814        .22957E-03   -1.0128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3117e-10
Minuit parameter uncertainties:
  1  1.38041e-08
  2  0.337168
  3  0.227414
  4  0.238458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/723404': 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) = 3394.04373455
delta logL = 0.808598948588

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  7.583e-01  2.385e-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:  7.392e-01  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.10
Ra Dec: 348.914 -50.313
Photon Index (Free Index): 8.36 +/- 0.34
Photon Flux (Free Index): 6.97e-08 +/- 5.20e-08
Energy Flux (Free Index): 8.03e-06 +/- 5.96e-06

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/723404/cmap_HighResolution_570067201_570326401_4FGL_J2315.6-5018_daily_bin1276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.50e-03', comment='SUCCESS', photon_flux='3.36e-08', energy_flux2='8.03e-06', photon_flux_error='3.78e-08', dlogl='8.09e-01', energy_flux='1.11e-05', photon_flux2='6.97e-08', job_status='DONE', time_completed='2021-09-29 10:17:00.759979', photon_index_error2='0.34', photon_index2='8.36', ts='1.33', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='5.96e-06', EG='0.81', time_epoch_completed='1632935820.76', return_code='0', job_id='723404', GAL2='0.76', EG2='0.74', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='5.20e-08', ts2='3.10', photon_index='2.40' WHERE bin_id='1276' AND source_name='4FGL J2315.6-5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:17:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 723404: <4FGL_J2315.6-5018_daily_bin1276> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2315.6-5018_daily_bin1276 348.914 -50.3127 570067201 570326401 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 :                                   719.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             262.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            970 sec.

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

