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


Performing analysis on: 4FGL_J2315.6-5018_daily_bin1661
RA = 348.914, Dec = -50.3127
tmin = 669859201, tmax = 670118401
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='85348', job_status='RUN', time_executed='2022-03-28 00:41:23.838820', time_epoch_executed='1648453283.84' WHERE source_name='4FGL J2315.6-5018' and cadence='daily' and bin_id='1661'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/85348

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/85348/ft1_4FGL_J2315.6-5018_daily_bin1661.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/85348/ft2_4FGL_J2315.6-5018_daily_bin1661.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/85348/ft1_4FGL_J2315.6-5018_daily_bin1661.fits outfile=/scratch/kocevski/85348/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin1661.fits ra=348.914 dec=-50.3127 rad=12.0 tmin=669859201.0 tmax=670118401.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.83
user 3.44
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/85348/ft2_4FGL_J2315.6-5018_daily_bin1661.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/85348/ft1_filteredMKT_4FGL_J2315.6-5018_daily_bin1661.fits evtable="EVENTS" outfile="/scratch/kocevski/85348/ft1_filtered_4FGL_J2315.6-5018_daily_bin1661.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.66
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 537

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/85348/ft1_filtered_4FGL_J2315.6-5018_daily_bin1661.fits" evtable="EVENTS" scfile=/scratch/kocevski/85348/ft2_4FGL_J2315.6-5018_daily_bin1661.fits sctable="SC_DATA" outfile=/scratch/kocevski/85348/ltcube_669859201_670118401_4FGL_J2315.6-5018_daily_bin1661.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/85348/ft2_4FGL_J2315.6-5018_daily_bin1661.fits
.....................!
real 12.40
user 11.92
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/85348/ft1_filtered_4FGL_J2315.6-5018_daily_bin1661.fits evtable="EVENTS" scfile=/scratch/kocevski/85348/ft2_4FGL_J2315.6-5018_daily_bin1661.fits sctable="SC_DATA" expcube=/scratch/kocevski/85348/ltcube_669859201_670118401_4FGL_J2315.6-5018_daily_bin1661.fits outfile=/scratch/kocevski/85348/expmap_669859201_670118401_4FGL_J2315.6-5018_daily_bin1661.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/85348/ltcube_669859201_670118401_4FGL_J2315.6-5018_daily_bin1661.fits
.....................!
real 192.90
user 187.12
sys 5.38

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/85348/ft1_filtered_4FGL_J2315.6-5018_daily_bin1661.fits scfile=/scratch/kocevski/85348/ft2_4FGL_J2315.6-5018_daily_bin1661.fits outfile=/scratch/kocevski/85348/cmap_669859201_670118401_4FGL_J2315.6-5018_daily_bin1661.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/85348/ft1_filtered_4FGL_J2315.6-5018_daily_bin1661.fits scfile=/scratch/kocevski/85348/ft2_4FGL_J2315.6-5018_daily_bin1661.fits outfile=/scratch/kocevski/85348/cmap_HighResolution_669859201_670118401_4FGL_J2315.6-5018_daily_bin1661.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/85348/ft1_filtered_4FGL_J2315.6-5018_daily_bin1661.fits evtable="EVENTS" scfile=/scratch/kocevski/85348/ft2_4FGL_J2315.6-5018_daily_bin1661.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/85348/Model_4FGL_J2315.6-5018_daily_bin1661.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/85348/ft1_filtered_4FGL_J2315.6-5018_daily_bin1661.fits.....................!
real 44.01
user 42.79
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/85348/ft1_filtered_4FGL_J2315.6-5018_daily_bin1661.fits', '/scratch/kocevski/85348/ft2_4FGL_J2315.6-5018_daily_bin1661.fits', expMap='/scratch/kocevski/85348/expmap_669859201_670118401_4FGL_J2315.6-5018_daily_bin1661.fits', expCube='/scratch/kocevski/85348/ltcube_669859201_670118401_4FGL_J2315.6-5018_daily_bin1661.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/85348/Model_4FGL_J2315.6-5018_daily_bin1661.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/85348/ft1_filtered_4FGL_J2315.6-5018_daily_bin1661.fits
Spacecraft file(s): /scratch/kocevski/85348/ft2_4FGL_J2315.6-5018_daily_bin1661.fits
Exposure map: /scratch/kocevski/85348/expmap_669859201_670118401_4FGL_J2315.6-5018_daily_bin1661.fits
Exposure cube: /scratch/kocevski/85348/ltcube_669859201_670118401_4FGL_J2315.6-5018_daily_bin1661.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/85348/Model_4FGL_J2315.6-5018_daily_bin1661.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5786.27370888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.959       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6458       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.8964       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0663       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.4998       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .25275E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.8336       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.0071       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.415       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.8433       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.2776       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9317       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.5374       1.0000         .10000E-03   10000.    
    24 'norm      '    .10617E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.923       1.0000         .10000E-03   10000.    
    26 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .78911       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10980E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    24.971       1.0000         .10000E-03   10000.    
    31 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    7.0146       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.3507       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .66810       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=   5786.229     FROM MIGRAD    STATUS=CONVERGED    971 CALLS     4369 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.950        30.203        .56841E-06   -.13144E-03
   2  Prefactor     .10000E-03    15.860       -.21029E-06** at limit **
   3  Prefactor     2.6464        7.2970        .39816E-05   -.14968E-03
   4  Prefactor     7.8952        7.1911        .50960E-08   -.31994E-04
   5  Prefactor     .10000E-03    4.5314       -.12449E-07** at limit **
   6  Prefactor     7.0661        8.6442        .54629E-06   -.44457E-04
   7  Prefactor     .10000E-03    4.1179       -.33417E-07** at limit **
   8  Prefactor     .10000E-03    48.390       -.10343E-05** at limit **
   9  norm          6.5006        6.3008        .28617E-07   -.47724E-05
  10  Prefactor     .10000E-03    2.3341        .13259E-06** at limit **
  11  Prefactor     .10000E-03    32.664        .13892E-05** at limit **
  12  Prefactor     4.8299        6.9479        .14211E-05   -.18526E-03
  13  Prefactor     7.9814        34.212        .29869E-05   -.54094E-04
  14  Prefactor     24.418        17.062       -.60114E-06   -.11640E-04
  15  Prefactor     .10000E-03    45.897       -.13571E-05** at limit **
  16  Prefactor     4.8418        5.6322        .69846E-06   -.94556E-04
  17  Prefactor     7.2828        61.363       -.20310E-05    .31697E-05
  18  Prefactor     3.9287        12.994        .14163E-06   -.33478E-04
  19  norm          .10000E-03    3.4116       -.16605E-06** at limit **
  20  norm          .10000E-03    1.7845        .26446E-07** at limit **
  21  norm          .10000E-03    1.6293       -.12862E-06** at limit **
  22  Prefactor     .10000E-03    2.9662       -.93650E-07** at limit **
  23  Prefactor     6.4945        45.194        .11103E-04   -.23252E-04
  24  norm          .10000E-03    2.7072       -.86821E-06** at limit **
  25  Prefactor     11.918        11.838        .69326E-07   -.47245E-04
  26  norm          .10000E-03    .38826        .84367E-07** at limit **
  27  norm          .78268        4.3287       -.20980E-05   -.32485E-03
  28  Prefactor     .10000E-03    6.7860       -.34661E-08** at limit **
  29  Prefactor     .10000E-03    1.9509        .10830E-05** at limit **
  30  Prefactor     25.001        23.880       -.21592E-05   -.19335E-03
  31  norm          .10000E-03    9.6013        .57504E-07** at limit **
  32  Prefactor     7.0143        5.1494       -.84964E-07   -.26991E-03
  33  Prefactor     .10000E-03    1.5923       -.61793E-07** at limit **
  34  Normalizat    1.3515        .20071        .12651E-05   -.14510E-03
  35  Prefactor     .66740        .19503       -.33262E-05   -.10162E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.9499
  Prefactor  = 0.0001
  Prefactor  = 2.64638
  Prefactor  = 7.8952
  Prefactor  = 0.0001
  Prefactor  = 7.0661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.50062
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.82992
  Prefactor  = 7.98138
  Prefactor  = 24.4184
  Prefactor  = 0.0001
  Prefactor  = 4.84177
  Prefactor  = 7.28276
  Prefactor  = 3.92869
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.49455
  norm       = 0.0001
  Prefactor  = 11.9177
  norm       = 0.0001
  norm       = 0.782678
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.0012
  norm       = 0.0001
  Prefactor  = 7.0143
  Prefactor  = 0.0001
  Normalizat = 1.35149
  Prefactor  = 0.667398
 **********
 **   18 **HESSE 
 **********

 FCN=   5786.229     FROM HESSE     STATUS=OK           772 CALLS     5141 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.950        30.206        .46072E-04   -1.3963    
   2  Prefactor     .10000E-03    15.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6464        7.3271        .12532E-02   -1.5383    
   4  Prefactor     7.8952        7.1937        .14269E-03   -1.5146    
   5  Prefactor     .10000E-03    4.5539        .15813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.0661        8.6443        .75455E-03   -1.5176    
   7  Prefactor     .10000E-03    4.1901        .15055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    48.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.5006        6.3031        .15742E-03   -1.5198    
  10  Prefactor     .10000E-03    6.5056        .22493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    32.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.8299        7.0012        .91488E-03   -1.5268    
  13  Prefactor     7.9814        33.562        .14169E-03   -1.5143    
  14  Prefactor     24.418        16.949        .81068E-04   -1.4719    
  15  Prefactor     .10000E-03    45.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.8418        5.6338        .91395E-03   -1.5268    
  17  Prefactor     7.2828        61.051        .14868E-03   -1.5168    
  18  Prefactor     3.9287        12.958        .20345E-03   -1.5312    
  19  norm          .10000E-03    3.4124        .13721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.7849        .99236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.6302        .94830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.9783        .12746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.4945        45.213        .15696E-03   -1.5198    
  24  norm          .10000E-03    2.7358        .12203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     11.918        11.792        .11601E-03   -1.5017    
  26  norm          .10000E-03    .76392        .91658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .78268        4.3174        .28535E-03   -1.5531    
  28  Prefactor     .10000E-03    6.8004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    3.2171        .19695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     25.001        23.376        .80162E-04   -1.4708    
  31  norm          .10000E-03    9.6059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     7.0143        5.1486        .14053E-03   -1.5178    
  33  Prefactor     .10000E-03    1.6009        .93675E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.3515        .24625        .21907E-03   -.82042    
  35  Prefactor     .66740        .23215        .30302E-03   -1.0482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75195e-10
Minuit parameter uncertainties:
  1  30.2123
  2  2.05501e-05
  3  7.32963
  4  7.19445
  5  9.44768e-07
  6  8.64587
  7  3.05576e-06
  8  0.000148986
  9  6.30376
  10  4.5188e-05
  11  0.000179048
  12  7.00239
  13  32.7649
  14  16.9526
  15  0.000197126
  16  5.63439
  17  42.2302
  18  12.9673
  19  4.85747e-06
  20  6.16276e-07
  21  5.19267e-06
  22  1.00866e-06
  23  34.3085
  24  4.751e-05
  25  11.7947
  26  1.25814e-07
  27  3.67666
  28  5.50874e-06
  29  5.02795e-06
  30  23.3848
  31  4.63859e-06
  32  5.14892
  33  1.67778e-06
  34  0.246465
  35  0.232489
Done.

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

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  3.929e+00  1.297e+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.674e-01  2.325e-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.351e+00  2.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 348.914 -50.313
Photon Flux Upper Limit: 8.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/85348/likelihoodResults_669859201_670118401_4FGL_J2315.6-5018_daily_bin1661.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) = 5785.95346774
delta logL = 0.275074092526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5785.95088977
delta logL = 0.277652065351

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64496E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.1971       1.0000          .0000       10.000    
     3 'Normalizat'    1.3025       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70399       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=   5785.951     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      360 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61844E-01    1.3684        .53726E-02    .66531E-02
   2  Index         5.2171        3.0288        .11236        .23341E-03
   3  Normalizat    1.3024        .33659E-01    .50317E-01    .14998E-03
   4  Prefactor     .70412        .34140E-01    .66841E-01    .10315E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0618445
  Index      = 5.21715
  Normalizat = 1.30242
  Prefactor  = 0.704124
 **********
 **   18 **HESSE 
 **********

 FCN=   5785.951     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      393 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61844E-01    5.1284        .24588E-03   -1.5658    
   2  Index         5.2171        7.6071        .68467E-02    .43443E-01
   3  Normalizat    1.3024        .13971        .22246E-03   -.83494    
   4  Prefactor     .70412        .13935        .29575E-03   -1.0337    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.50717e-10
Minuit parameter uncertainties:
  1  1.12553
  2  8.23273
  3  0.13975
  4  0.13942
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/85348': 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) = 5785.95088548
delta logL = 0.277656357299

Extracting fit parameters...

4FGL J2315.6-5018
   Spectrum: PowerLaw
432    Prefactor:  6.184e-02  1.126e+00  1.000e-04  1.000e+04 ( 1.000e-13)
433        Index:  5.217e+00  8.233e+00  0.000e+00  1.000e+01 (-1.000e+00)
434        Scale:  1.098e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  7.041e-01  1.394e-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.302e+00  1.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
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/85348/cmap_HighResolution_669859201_670118401_4FGL_J2315.6-5018_daily_bin1661.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.56e-03', job_status='DONE', photon_flux_upper_limit='8.50e-08', time_completed='2022-03-28 00:56:47.157378', job_id='85348', GAL2='0.70', fit_tolerance='1e-08', EG2='1.30', EG='1.35', time_epoch_completed='1648454207.16', return_code2='102', ts='0.11', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='2.78e-01', ts2='0.71', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1661' AND source_name='4FGL J2315.6-5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 28 00:56:47 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 85348: <4FGL_J2315.6-5018_daily_bin1661> in cluster <slac> Done

Job <4FGL_J2315.6-5018_daily_bin1661> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Mar 28 00:40:41 2022
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 28 00:40:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 28 00:40:43 2022
Terminated at Mon Mar 28 00:56:47 2022
Results reported at Mon Mar 28 00:56:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2315.6-5018_daily_bin1661 348.914 -50.3127 669859201 670118401 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 :                                   923.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            966 sec.

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

