/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 210 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 = 7378
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2318.2+1915_daily_bin370
RA = 349.557, Dec = 19.256
tmin = 335232001, tmax = 335491201
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='743837', job_status='RUN', time_executed='2021-09-29 11:09:28.203998', time_epoch_executed='1632938968.2' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='370'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/743837

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/743837/ft1_4FGL_J2318.2+1915_daily_bin370.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/743837/ft2_4FGL_J2318.2+1915_daily_bin370.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/743837/ft1_4FGL_J2318.2+1915_daily_bin370.fits outfile=/scratch/kocevski/743837/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin370.fits ra=349.557 dec=19.256 rad=12.0 tmin=335232001.0 tmax=335491201.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.71
user 3.48
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/743837/ft2_4FGL_J2318.2+1915_daily_bin370.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/743837/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin370.fits evtable="EVENTS" outfile="/scratch/kocevski/743837/ft1_filtered_4FGL_J2318.2+1915_daily_bin370.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/743837/ft1_filtered_4FGL_J2318.2+1915_daily_bin370.fits" evtable="EVENTS" scfile=/scratch/kocevski/743837/ft2_4FGL_J2318.2+1915_daily_bin370.fits sctable="SC_DATA" outfile=/scratch/kocevski/743837/ltcube_335232001_335491201_4FGL_J2318.2+1915_daily_bin370.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/743837/ft2_4FGL_J2318.2+1915_daily_bin370.fits
.....................!
real 11.67
user 11.29
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/743837/ft1_filtered_4FGL_J2318.2+1915_daily_bin370.fits evtable="EVENTS" scfile=/scratch/kocevski/743837/ft2_4FGL_J2318.2+1915_daily_bin370.fits sctable="SC_DATA" expcube=/scratch/kocevski/743837/ltcube_335232001_335491201_4FGL_J2318.2+1915_daily_bin370.fits outfile=/scratch/kocevski/743837/expmap_335232001_335491201_4FGL_J2318.2+1915_daily_bin370.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/743837/ltcube_335232001_335491201_4FGL_J2318.2+1915_daily_bin370.fits
.....................!
real 189.72
user 185.04
sys 4.32

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/743837/ft1_filtered_4FGL_J2318.2+1915_daily_bin370.fits scfile=/scratch/kocevski/743837/ft2_4FGL_J2318.2+1915_daily_bin370.fits outfile=/scratch/kocevski/743837/cmap_335232001_335491201_4FGL_J2318.2+1915_daily_bin370.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/743837/ft1_filtered_4FGL_J2318.2+1915_daily_bin370.fits scfile=/scratch/kocevski/743837/ft2_4FGL_J2318.2+1915_daily_bin370.fits outfile=/scratch/kocevski/743837/cmap_HighResolution_335232001_335491201_4FGL_J2318.2+1915_daily_bin370.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.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/743837/ft1_filtered_4FGL_J2318.2+1915_daily_bin370.fits', '/scratch/kocevski/743837/ft2_4FGL_J2318.2+1915_daily_bin370.fits', expMap='/scratch/kocevski/743837/expmap_335232001_335491201_4FGL_J2318.2+1915_daily_bin370.fits', expCube='/scratch/kocevski/743837/ltcube_335232001_335491201_4FGL_J2318.2+1915_daily_bin370.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/743837/Model_4FGL_J2318.2+1915_daily_bin370.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/743837/ft1_filtered_4FGL_J2318.2+1915_daily_bin370.fits
Spacecraft file(s): /scratch/kocevski/743837/ft2_4FGL_J2318.2+1915_daily_bin370.fits
Exposure map: /scratch/kocevski/743837/expmap_335232001_335491201_4FGL_J2318.2+1915_daily_bin370.fits
Exposure cube: /scratch/kocevski/743837/ltcube_335232001_335491201_4FGL_J2318.2+1915_daily_bin370.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/743837/Model_4FGL_J2318.2+1915_daily_bin370.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) = 6483.93790001

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0857       1.0000         .10000E-03   10000.    
     2 'norm      '    1.7618       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3840       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7572       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11947       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12742E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.255       1.0000         .10000E-03   10000.    
    15 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.175       1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .77764       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0360       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=   6483.932     FROM MIGRAD    STATUS=CONVERGED    392 CALLS     1991 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0864        3.3521       -.68102E-06   -.77730E-04
   2  norm          1.7625        2.3902        .61745E-07   -.84803E-04
   3  Prefactor     .10000E-03    7.6805       -.37875E-05** at limit **
   4  Prefactor     3.3802        10.276       -.83330E-06   -.44698E-04
   5  Prefactor     1.7557        3.6090        .11021E-05   -.12292E-02
   6  Prefactor     .11947        .86984E-01   -.11179E-07   -.90666E-04
   7  Prefactor     .10000E-03    2.4664       -.27765E-06** at limit **
   8  Prefactor     .10000E-03    2.4507        .22150E-06** at limit **
   9  Prefactor     .10000E-03    3.0166        .15881E-06** at limit **
  10  Prefactor     .10000E-03    15.240       -.39813E-05** at limit **
  11  Prefactor     .10000E-03    10.857        .75029E-05** at limit **
  12  Prefactor     .10000E-03    5.7961        .21180E-05** at limit **
  13  Prefactor     .10000E-03    5.0514        .16968E-05** at limit **
  14  Prefactor     24.251        21.739       -.36713E-05   -.10952E-03
  15  norm          .10000E-03    5.9359        .18444E-05** at limit **
  16  Prefactor     12.181        9.3714        .30195E-06   -.10790E-03
  17  norm          .10000E-03    7.4305       -.36039E-05** at limit **
  18  Prefactor     .10000E-03    4.6383       -.22198E-05** at limit **
  19  Normalizat    .77730        .20400        .15131E-05   -.45048E-04
  20  Prefactor     1.0362        .11860       -.14824E-06    .14835E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.08643
  norm       = 1.76254
  Prefactor  = 0.0001
  Prefactor  = 3.38024
  Prefactor  = 1.75573
  Prefactor  = 0.119473
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.2506
  norm       = 0.0001
  Prefactor  = 12.1806
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.777302
  Prefactor  = 1.0362
 **********
 **   18 **HESSE 
 **********

 FCN=   6483.932     FROM HESSE     STATUS=OK           289 CALLS     2280 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0864        3.3527        .96972E-04   -1.5175    
   2  norm          1.7625        2.3396        .12635E-03   -1.5442    
   3  Prefactor     .10000E-03    7.6883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.3802        10.110        .21995E-03   -1.5340    
   5  Prefactor     1.7557        11.308        .15808E-02   -1.5443    
   6  Prefactor     .11947        .86611E-01    .19569E-04   -1.5639    
   7  Prefactor     .10000E-03    2.4691        .12350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.4658        .12309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.0190        .13658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.9476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.0606        .17662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.251        21.887        .81336E-04   -1.4723    
  15  norm          .10000E-03    5.9552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.181        9.4000        .11480E-03   -1.5010    
  17  norm          .10000E-03    7.4429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.6690        .16914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .77730        .23645        .32810E-03   -1.0092    
  20  Prefactor     1.0362        .13829        .17546E-03   -.91532    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.81847e-09
Minuit parameter uncertainties:
  1  3.3528
  2  2.33976
  3  2.81268e-05
  4  10.1153
  5  8.91368
  6  0.0866112
  7  1.64657e-06
  8  2.87154e-07
  9  6.70549e-07
  10  4.79836e-05
  11  5.2055e-05
  12  6.35046e-05
  13  2.49785e-06
  14  21.8943
  15  1.07002e-05
  16  9.40109
  17  2.39697e-05
  18  4.92615e-06
  19  0.236762
  20  0.138337
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  6.350e-05  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.036e+00  1.383e-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:  7.773e-01  2.368e-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: 9.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/743837/likelihoodResults_335232001_335491201_4FGL_J2318.2+1915_daily_bin370.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) = 6483.93301937
delta logL = -0.000801627186775

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6483.93221772
delta logL = 2.30784280575e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6908       1.0000          .0000       10.000    
     3 'Normalizat'    .77729       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0362       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.

 FCN=   6483.932     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    7.0198        .36285E-03** at limit **
   2  Index         2.7164        6.3565        .50000       -.39909E-04
   3  Normalizat    .77730        .22062        .32810E-03    .11455E-03
   4  Prefactor     1.0362        .13562        .17546E-03    .14879E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 2.71639
  Normalizat = 0.777304
  Prefactor  = 1.0362
 **********
 **   18 **HESSE 
 **********

 FCN=   6483.932     FROM HESSE     STATUS=OK            29 CALLS      271 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    6.2870        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7164        6.3471        .50000       -.47431    
   3  Normalizat    .77730        .22078        .13124E-04   -1.0092    
   4  Prefactor     1.0362        .13571        .35092E-04   -.91532    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0555e-09
Minuit parameter uncertainties:
  1  0.000510375
  2  4.45865
  3  0.22103
  4  0.135759
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/743837': 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) = 6483.93221731
delta logL = 4.29459760198e-07

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  5.104e-04  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.716e+00  4.459e+00  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.036e+00  1.358e-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:  7.773e-01  2.210e-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/743837/cmap_HighResolution_335232001_335491201_4FGL_J2318.2+1915_daily_bin370.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.56e-03', job_status='DONE', photon_flux_upper_limit='9.62e-08', time_completed='2021-09-29 11:19:31.797653', job_id='743837', GAL2='1.04', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1632939571.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='4.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='370' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:19:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 743837: <4FGL_J2318.2+1915_daily_bin370> in cluster <slac> Done

Job <4FGL_J2318.2+1915_daily_bin370> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 11:05:41 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:05: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:05:43 2021
Terminated at Wed Sep 29 11:19:34 2021
Results reported at Wed Sep 29 11:19:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin370 349.557 19.256 335232001 335491201 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 :                                   601.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            833 sec.

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

