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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin975
RA = 349.557, Dec = 19.256
tmin = 492048001, tmax = 492307201
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='746828', job_status='RUN', time_executed='2021-09-29 11:19:03.718894', time_epoch_executed='1632939543.72' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='975'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/746828

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/746828/ft1_4FGL_J2318.2+1915_daily_bin975.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/746828/ft2_4FGL_J2318.2+1915_daily_bin975.fits


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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/746828/ft1_filtered_4FGL_J2318.2+1915_daily_bin975.fits evtable="EVENTS" scfile=/scratch/kocevski/746828/ft2_4FGL_J2318.2+1915_daily_bin975.fits sctable="SC_DATA" expcube=/scratch/kocevski/746828/ltcube_492048001_492307201_4FGL_J2318.2+1915_daily_bin975.fits outfile=/scratch/kocevski/746828/expmap_492048001_492307201_4FGL_J2318.2+1915_daily_bin975.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/746828/ltcube_492048001_492307201_4FGL_J2318.2+1915_daily_bin975.fits
.....................!
real 189.54
user 184.47
sys 4.76

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/746828/ft1_filtered_4FGL_J2318.2+1915_daily_bin975.fits scfile=/scratch/kocevski/746828/ft2_4FGL_J2318.2+1915_daily_bin975.fits outfile=/scratch/kocevski/746828/cmap_492048001_492307201_4FGL_J2318.2+1915_daily_bin975.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/746828/ft1_filtered_4FGL_J2318.2+1915_daily_bin975.fits scfile=/scratch/kocevski/746828/ft2_4FGL_J2318.2+1915_daily_bin975.fits outfile=/scratch/kocevski/746828/cmap_HighResolution_492048001_492307201_4FGL_J2318.2+1915_daily_bin975.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.1516       1.0000         .10000E-03   10000.    
     3 'Prefactor '    103.43       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4251       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.947       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.655       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10549E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.956       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7602       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0141       1.0000         .10000E-03   10000.    
    15 'norm      '    22.955       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.873       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .28664       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0283       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=   3065.665     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2156 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1230        .41997E-06** at limit **
   2  norm          4.1518        5.6558       -.26599E-07    .40694E-04
   3  Prefactor     103.41        121.95       -.17593E-05    .27743E-04
   4  Prefactor     .10000E-03    43.725       -.90769E-07** at limit **
   5  Prefactor     .10000E-03    173.70        .36143E-05** at limit **
   6  Prefactor     5.4253        .81421        .95765E-07    .10585E-02
   7  Prefactor     .10000E-03    35.429       -.24797E-06** at limit **
   8  Prefactor     .10000E-03    11.897        .10986E-06** at limit **
   9  Prefactor     28.959        26.536        .12742E-05    .15643E-03
  10  Prefactor     28.591        185.81       -.64717E-05    .41809E-04
  11  Prefactor     .10000E-03    189.22       -.49401E-05** at limit **
  12  Prefactor     30.951        27.222        .17311E-05    .28774E-03
  13  Prefactor     1.7627        32.890        .99435E-06    .50044E-05
  14  Prefactor     3.9516        304.60       -.17130E-08    .12683E-04
  15  norm          22.955        13.281        .68715E-07    .33193E-03
  16  Prefactor     .10000E-03    3.2520        .15942E-06** at limit **
  17  norm          .10000E-03    8.5550        .59762E-07** at limit **
  18  Prefactor     24.873        13.541        .84620E-06    .16270E-03
  19  Normalizat    .28662        .43551       -.35234E-04    .45309E-04
  20  Prefactor     1.0283        .25412        .96830E-05    .10940E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 4.15179
  Prefactor  = 103.406
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.42526
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.9593
  Prefactor  = 28.5913
  Prefactor  = 0.000100004
  Prefactor  = 30.9512
  Prefactor  = 1.76267
  Prefactor  = 3.95163
  norm       = 22.9548
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.8733
  Normalizat = 0.286621
  Prefactor  = 1.02829
 **********
 **   18 **HESSE 
 **********

 FCN=   3065.665     FROM HESSE     STATUS=OK           279 CALLS     2435 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1743        .95634E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1518        5.6407        .14915E-03   -1.5300    
   3  Prefactor     103.41        122.61        .39537E-04   -1.3671    
   4  Prefactor     .10000E-03    43.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    175.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.4253        .82160        .17490E-04   -1.5242    
   7  Prefactor     .10000E-03    35.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.959        26.655        .74465E-04   -1.4631    
  10  Prefactor     28.591        183.78        .74843E-04   -1.4638    
  11  Prefactor     .10000E-03    188.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     30.951        27.365        .72014E-04   -1.4595    
  13  Prefactor     1.7627        31.764        .31583E-03   -1.5442    
  14  Prefactor     3.9516        308.19        .20128E-03   -1.5310    
  15  norm          22.955        12.914        .83603E-04   -1.4749    
  16  Prefactor     .10000E-03    3.2600        .97519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.5593        .15818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.873        13.564        .80321E-04   -1.4710    
  19  Normalizat    .28662        .43652        .66959E-03   -1.2364    
  20  Prefactor     1.0283        .25523        .21691E-03   -.91792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.17611e-10
Minuit parameter uncertainties:
  1  4.0359e-06
  2  5.64146
  3  122.914
  4  4.88958e-07
  5  0.000960431
  6  0.821602
  7  8.52308e-05
  8  2.59542e-05
  9  26.6655
  10  145.634
  11  0.00170081
  12  27.3766
  13  14.9741
  14  70.1722
  15  12.9155
  16  9.09418e-06
  17  1.88601e-05
  18  13.5655
  19  0.441848
  20  0.255536
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  3.095e+01  2.738e+01  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.028e+00  2.555e-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:  2.866e-01  4.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.74
Ra Dec: 349.557 19.256
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 2.25e-07 +/- 1.99e-07
Energy Flux (Fixed Index): 5.57e-05 +/- 4.93e-05

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

Saving results to:
/scratch/kocevski/746828/likelihoodResults_492048001_492307201_4FGL_J2318.2+1915_daily_bin975.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) = 3065.66474658
delta logL = 0.000369975149169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3065.66462991
delta logL = 0.000486643567456

Fit tolerance = 1e-08

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

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

 FCN=   3065.665     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      225 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.292        651.06        .17925E-02   -.53372E-05
   2  Index         2.6428        5.9710        .18274        .19926E-04
   3  Normalizat    .28972        .26491        .15055        .27689E-04
   4  Prefactor     1.0269        .14992        .41492E-01   -.32983E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.2917
  Index      = 2.64283
  Normalizat = 0.289715
  Prefactor  = 1.02693
 **********
 **   18 **HESSE 
 **********

 FCN=   3065.665     FROM HESSE     STATUS=OK            31 CALLS      256 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.292        26.222        .71698E-04   -1.4589    
   2  Index         2.6428        .76794        .67806E-02   -.49092    
   3  Normalizat    .28972        .42601        .66615E-03   -1.2346    
   4  Prefactor     1.0269        .25357        .21704E-03   -.91837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79467e-10
Minuit parameter uncertainties:
  1  26.2314
  2  0.771872
  3  0.430905
  4  0.253865
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/746828': 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) = 3065.66461933
delta logL = 0.000497220020861

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  3.129e+01  2.623e+01  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.643e+00  7.719e-01  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.027e+00  2.539e-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:  2.897e-01  4.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.71
Ra Dec: 349.557 19.256
Photon Index (Free Index): 2.64 +/- 0.77
Photon Flux (Free Index): 2.21e-07 +/- 2.07e-07
Energy Flux (Free Index): 5.58e-05 +/- 4.26e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/746828/cmap_HighResolution_492048001_492307201_4FGL_J2318.2+1915_daily_bin975.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.55e-02', comment='SUCCESS', photon_flux='2.25e-07', energy_flux2='5.58e-05', photon_flux_error='1.99e-07', dlogl='4.97e-04', energy_flux='5.57e-05', photon_flux2='2.21e-07', job_status='DONE', time_completed='2021-09-29 11:26:39.157378', photon_index_error2='0.77', photon_index2='2.64', ts='2.74', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='5.79e-07', energy_flux_error2='4.26e-05', EG='0.29', time_epoch_completed='1632939999.16', return_code='0', job_id='746828', GAL2='1.03', EG2='0.29', return_code2='0', energy_flux_error='4.93e-05', photon_flux_error2='2.07e-07', ts2='2.71', photon_index='2.67' WHERE bin_id='975' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:26:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 746828: <4FGL_J2318.2+1915_daily_bin975> in cluster <slac> Done

Job <4FGL_J2318.2+1915_daily_bin975> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 11:15:45 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:15:46 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:15:46 2021
Terminated at Wed Sep 29 11:26:39 2021
Results reported at Wed Sep 29 11:26:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin975 349.557 19.256 492048001 492307201 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 :                                   443.19 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             263.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   653 sec.
    Turnaround time :                            654 sec.

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

