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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin681
RA = 349.557, Dec = 19.256
tmin = 415843201, tmax = 416102401
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='745336', job_status='RUN', time_executed='2021-09-29 11:13:22.640246', time_epoch_executed='1632939202.64' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='681'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/745336

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/745336/ft1_4FGL_J2318.2+1915_daily_bin681.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/745336/ft2_4FGL_J2318.2+1915_daily_bin681.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/745336/ft1_4FGL_J2318.2+1915_daily_bin681.fits outfile=/scratch/kocevski/745336/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin681.fits ra=349.557 dec=19.256 rad=12.0 tmin=415843201.0 tmax=416102401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.85
user 5.57
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/745336/ft2_4FGL_J2318.2+1915_daily_bin681.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/745336/ft2_4FGL_J2318.2+1915_daily_bin681.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/745336/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin681.fits evtable="EVENTS" outfile="/scratch/kocevski/745336/ft1_filtered_4FGL_J2318.2+1915_daily_bin681.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/745336/ft1_filtered_4FGL_J2318.2+1915_daily_bin681.fits" evtable="EVENTS" scfile=/scratch/kocevski/745336/ft2_4FGL_J2318.2+1915_daily_bin681.fits sctable="SC_DATA" outfile=/scratch/kocevski/745336/ltcube_415843201_416102401_4FGL_J2318.2+1915_daily_bin681.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/745336/ft2_4FGL_J2318.2+1915_daily_bin681.fits
.....................!
real 12.10
user 11.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/745336/ft1_filtered_4FGL_J2318.2+1915_daily_bin681.fits evtable="EVENTS" scfile=/scratch/kocevski/745336/ft2_4FGL_J2318.2+1915_daily_bin681.fits sctable="SC_DATA" expcube=/scratch/kocevski/745336/ltcube_415843201_416102401_4FGL_J2318.2+1915_daily_bin681.fits outfile=/scratch/kocevski/745336/expmap_415843201_416102401_4FGL_J2318.2+1915_daily_bin681.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/745336/ltcube_415843201_416102401_4FGL_J2318.2+1915_daily_bin681.fits
.....................!
real 191.51
user 185.74
sys 5.42

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 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J2318.2+1915 @ 349.557 19.256

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/745336/ft1_filtered_4FGL_J2318.2+1915_daily_bin681.fits scfile=/scratch/kocevski/745336/ft2_4FGL_J2318.2+1915_daily_bin681.fits outfile=/scratch/kocevski/745336/cmap_415843201_416102401_4FGL_J2318.2+1915_daily_bin681.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=349.557 yref=19.256 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/745336/ft1_filtered_4FGL_J2318.2+1915_daily_bin681.fits scfile=/scratch/kocevski/745336/ft2_4FGL_J2318.2+1915_daily_bin681.fits outfile=/scratch/kocevski/745336/cmap_HighResolution_415843201_416102401_4FGL_J2318.2+1915_daily_bin681.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=349.557 yref=19.256 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/745336/ft1_filtered_4FGL_J2318.2+1915_daily_bin681.fits evtable="EVENTS" scfile=/scratch/kocevski/745336/ft2_4FGL_J2318.2+1915_daily_bin681.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/745336/Model_4FGL_J2318.2+1915_daily_bin681.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/745336/ft1_filtered_4FGL_J2318.2+1915_daily_bin681.fits.....................!
real 62.60
user 61.19
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/745336/ft1_filtered_4FGL_J2318.2+1915_daily_bin681.fits', '/scratch/kocevski/745336/ft2_4FGL_J2318.2+1915_daily_bin681.fits', expMap='/scratch/kocevski/745336/expmap_415843201_416102401_4FGL_J2318.2+1915_daily_bin681.fits', expCube='/scratch/kocevski/745336/ltcube_415843201_416102401_4FGL_J2318.2+1915_daily_bin681.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/745336/Model_4FGL_J2318.2+1915_daily_bin681.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2318.2+1915'

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  2.396e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.667e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  6.043e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/745336/ft1_filtered_4FGL_J2318.2+1915_daily_bin681.fits
Spacecraft file(s): /scratch/kocevski/745336/ft2_4FGL_J2318.2+1915_daily_bin681.fits
Exposure map: /scratch/kocevski/745336/expmap_415843201_416102401_4FGL_J2318.2+1915_daily_bin681.fits
Exposure cube: /scratch/kocevski/745336/ltcube_415843201_416102401_4FGL_J2318.2+1915_daily_bin681.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/745336/Model_4FGL_J2318.2+1915_daily_bin681.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) = 4649.96849575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4884       1.0000         .10000E-03   10000.    
     2 'norm      '    2.8318       1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.726       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8621       1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.693       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1528       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.376       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1854       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .14834E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7638       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11495E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3091       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0293       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4649.963     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     2014 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4888        5.5068       -.14693E-07   -.51625E-05
   2  norm          2.8317        2.9297       -.42924E-07   -.38193E-06
   3  Prefactor     36.721        43.034        .37048E-06    .26948E-04
   4  Prefactor     .10000E-03    23.982       -.51184E-06** at limit **
   5  Prefactor     .10000E-03    10.449       -.23373E-06** at limit **
   6  Prefactor     1.8621        .38997       -.12810E-07   -.31693E-03
   7  Prefactor     38.692        23.848       -.17784E-07    .28418E-05
   8  Prefactor     .10000E-03    6.8029       -.66130E-07** at limit **
   9  Prefactor     3.1571        44.742        .99097E-07   -.31915E-04
  10  Prefactor     15.375        22.483        .22301E-06    .75980E-05
  11  Prefactor     .10000E-03    15.456        .74809E-06** at limit **
  12  Prefactor     .10000E-03    5.0890        .86158E-08** at limit **
  13  Prefactor     1.1886        30.984        .64795E-05   -.19615E-04
  14  Prefactor     .10000E-03    21.787       -.59240E-06** at limit **
  15  norm          .10000E-03    31.695        .40351E-06** at limit **
  16  Prefactor     2.7487        17.380        .41232E-05    .70061E-05
  17  norm          .10000E-03    6.1811       -.99055E-07** at limit **
  18  Prefactor     .10000E-03    25.047       -.88494E-06** at limit **
  19  Normalizat    1.3091        .32982       -.47893E-06   -.10667E-04
  20  Prefactor     1.0294        .17645       -.45325E-06   -.76684E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.48877
  norm       = 2.83171
  Prefactor  = 36.7211
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.86214
  Prefactor  = 38.6924
  Prefactor  = 0.0001
  Prefactor  = 3.15708
  Prefactor  = 15.3749
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.18857
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 2.74868
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.30906
  Prefactor  = 1.02939
 **********
 **   18 **HESSE 
 **********

 FCN=   4649.963     FROM HESSE     STATUS=OK           291 CALLS     2305 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4888        5.5310        .11563E-03   -1.5092    
   2  norm          2.8317        2.9260        .57584E-03   -1.5371    
   3  Prefactor     36.721        43.142        .66132E-04   -1.4495    
   4  Prefactor     .10000E-03    24.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.8621        .39096        .18265E-04   -1.5435    
   7  Prefactor     38.692        23.848        .64435E-04   -1.4463    
   8  Prefactor     .10000E-03    6.8313        .17371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.1571        44.797        .22828E-03   -1.5353    
  10  Prefactor     15.375        22.485        .10214E-03   -1.4924    
  11  Prefactor     .10000E-03    15.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.1058        .15021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.1886        31.079        .20957E-02   -1.5490    
  14  Prefactor     .10000E-03    21.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    31.523        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.7487        17.580        .24483E-03   -1.5376    
  17  norm          .10000E-03    6.1847        .16562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.005        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3091        .38523        .35621E-03   -.83296    
  20  Prefactor     1.0294        .20636        .22697E-03   -.91756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15172e-09
Minuit parameter uncertainties:
  1  5.53125
  2  2.92617
  3  43.1785
  4  9.605e-05
  5  3.51191e-05
  6  0.390962
  7  23.8536
  8  6.22403e-06
  9  23.8059
  10  22.4975
  11  0.000137464
  12  1.97358e-06
  13  12.1621
  14  0.000129504
  15  0.000642007
  16  13.9087
  17  1.50522e-05
  18  2.25082e-05
  19  0.386075
  20  0.206521
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  1.974e-06  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.667e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  6.043e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.029e+00  2.065e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.309e+00  3.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 349.557 19.256
Photon Flux Upper Limit: 1.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/745336/likelihoodResults_415843201_416102401_4FGL_J2318.2+1915_daily_bin681.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) = 4649.96390706
delta logL = -0.00093056886908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4649.96297647
delta logL = 2.49929144047e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6559       1.0000          .0000       10.000    
     3 'Normalizat'    1.3091       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0294       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4649.963     FROM MIGRAD    STATUS=FAILED        90 CALLS      242 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10139E-03    187.70        .15092E-02** at limit **
   2  Index         2.5620        5.8855        .50000        .13665E-04
   3  Normalizat    1.3091        .49654E-01    .35621E-03    .20426E-05
   4  Prefactor     1.0294        .28655E-01    .22697E-03    .52092E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4649.963     FROM SIMPLEX   STATUS=UNCHANGED    135 CALLS      377 TOTAL
                     EDM=   .97E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10139E-03    187.70        .35603E-03** at limit **
   2  Index         2.5620        5.8855        .70491E-04    .13665E-04
   3  Normalizat    1.3091        .49654E-01    .16027E-05    .20426E-05
   4  Prefactor     1.0294        .28655E-01    .11390E-05    .52092E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4649.963     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      418 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1006.8        .30185E-03** at limit **
   2  Index         2.3287        6.1295        .50000       -.26739E-07
   3  Normalizat    1.3091        .16261        .14248E-04   -.94152E-05
   4  Prefactor     1.0294        .93850E-01    .90788E-05   -.10018E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.32867
  Normalizat = 1.30906
  Prefactor  = 1.02939
 **********
 **   18 **HESSE 
 **********

 FCN=   4649.963     FROM HESSE     STATUS=OK            29 CALLS      447 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.2174        .60370E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3287        7.8968        .50000       -.56364    
   3  Normalizat    1.3091        .34793        .28497E-05   -.83296    
   4  Prefactor     1.0294        .20103        .18158E-05   -.91756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21311e-12
Minuit parameter uncertainties:
  1  6.02625e-07
  2  154.105
  3  0.348555
  4  0.201179
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/745336': 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) = 4649.96297574
delta logL = 7.58024725656e-07

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  6.026e-07  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.329e+00  1.541e+02  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  6.043e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.029e+00  2.012e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.309e+00  3.486e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 349.557 19.256

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/745336/cmap_HighResolution_415843201_416102401_4FGL_J2318.2+1915_daily_bin681.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', job_status='DONE', photon_flux_upper_limit='1.52e-07', time_completed='2021-09-29 11:22:22.297443', job_id='745336', GAL2='1.03', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1632939742.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='7.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='681' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:22:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 745336: <4FGL_J2318.2+1915_daily_bin681> in cluster <slac> Done

Job <4FGL_J2318.2+1915_daily_bin681> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 11:10:42 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:10:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 11:10:43 2021
Terminated at Wed Sep 29 11:22:23 2021
Results reported at Wed Sep 29 11:22:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin681 349.557 19.256 415843201 416102401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2318.2+1915 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   534.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            701 sec.

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

