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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin1113
RA = 349.557, Dec = 19.256
tmin = 527817601, tmax = 528076801
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='748010', job_status='RUN', time_executed='2021-09-29 11:20:28.690190', time_epoch_executed='1632939628.69' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='1113'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/748010

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/748010/ft1_4FGL_J2318.2+1915_daily_bin1113.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/748010/ft2_4FGL_J2318.2+1915_daily_bin1113.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/748010/ft1_4FGL_J2318.2+1915_daily_bin1113.fits outfile=/scratch/kocevski/748010/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin1113.fits ra=349.557 dec=19.256 rad=12.0 tmin=527817601.0 tmax=528076801.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.50
user 3.26
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/748010/ft2_4FGL_J2318.2+1915_daily_bin1113.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/748010/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin1113.fits evtable="EVENTS" outfile="/scratch/kocevski/748010/ft1_filtered_4FGL_J2318.2+1915_daily_bin1113.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/748010/ft1_filtered_4FGL_J2318.2+1915_daily_bin1113.fits" evtable="EVENTS" scfile=/scratch/kocevski/748010/ft2_4FGL_J2318.2+1915_daily_bin1113.fits sctable="SC_DATA" outfile=/scratch/kocevski/748010/ltcube_527817601_528076801_4FGL_J2318.2+1915_daily_bin1113.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/748010/ft2_4FGL_J2318.2+1915_daily_bin1113.fits
.....................!
real 12.06
user 11.71
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/748010/ft1_filtered_4FGL_J2318.2+1915_daily_bin1113.fits evtable="EVENTS" scfile=/scratch/kocevski/748010/ft2_4FGL_J2318.2+1915_daily_bin1113.fits sctable="SC_DATA" expcube=/scratch/kocevski/748010/ltcube_527817601_528076801_4FGL_J2318.2+1915_daily_bin1113.fits outfile=/scratch/kocevski/748010/expmap_527817601_528076801_4FGL_J2318.2+1915_daily_bin1113.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/748010/ltcube_527817601_528076801_4FGL_J2318.2+1915_daily_bin1113.fits
.....................!
real 190.50
user 185.30
sys 4.88

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/748010/ft1_filtered_4FGL_J2318.2+1915_daily_bin1113.fits scfile=/scratch/kocevski/748010/ft2_4FGL_J2318.2+1915_daily_bin1113.fits outfile=/scratch/kocevski/748010/cmap_527817601_528076801_4FGL_J2318.2+1915_daily_bin1113.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/748010/ft1_filtered_4FGL_J2318.2+1915_daily_bin1113.fits scfile=/scratch/kocevski/748010/ft2_4FGL_J2318.2+1915_daily_bin1113.fits outfile=/scratch/kocevski/748010/cmap_HighResolution_527817601_528076801_4FGL_J2318.2+1915_daily_bin1113.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8007       1.0000         .10000E-03   10000.    
     2 'norm      '    1.4154       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.5631       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0480       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9621       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0014       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.627       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .54225E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20650E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.8647       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .68902E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    19.493       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2672       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0824       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .87843       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=   7362.261     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2118 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8001        2.5176       -.26111E-07   -.23464E-04
   2  norm          1.4150        1.5715       -.93409E-07   -.46949E-04
   3  Prefactor     .10000E-03    15.615       -.61690E-07** at limit **
   4  Prefactor     5.5623        10.415        .10717E-05   -.62499E-04
   5  Prefactor     .10000E-03    9.4332       -.19104E-07** at limit **
   6  Prefactor     1.0480        .20332       -.96363E-08   -.21690E-03
   7  Prefactor     4.9617        5.6368        .12609E-05   -.18274E-03
   8  Prefactor     5.0007        7.0337        .21742E-06   -.20953E-03
   9  Prefactor     .10000E-03    4.4413        .41105E-07** at limit **
  10  Prefactor     .10000E-03    22.840       -.68054E-06** at limit **
  11  Prefactor     .10000E-03    4.9570       -.46010E-07** at limit **
  12  Prefactor     12.631        7.7353        .25257E-06   -.39205E-04
  13  Prefactor     .10000E-03    25.686        .48901E-05** at limit **
  14  Prefactor     .10000E-03    90.868       -.18080E-05** at limit **
  15  norm          8.9181        10.118       -.13382E-05   -.43562E-03
  16  Prefactor     .10035E-03    6.2879        .90318E-06** at limit **
  17  norm          19.497        14.822       -.16464E-05    .93035E-04
  18  Prefactor     2.2674        1.7807       -.51994E-07   -.49336E-03
  19  Normalizat    1.0824        .20586        .29515E-06   -.16091E-03
  20  Prefactor     .87852        .11724       -.11052E-06   -.15352E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.80015
  norm       = 1.415
  Prefactor  = 0.0001
  Prefactor  = 5.56226
  Prefactor  = 0.0001
  Prefactor  = 1.04796
  Prefactor  = 4.96172
  Prefactor  = 5.00074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6312
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.9181
  Prefactor  = 0.000100347
  norm       = 19.4973
  Prefactor  = 2.26741
  Normalizat = 1.0824
  Prefactor  = 0.87852
 **********
 **   18 **HESSE 
 **********

 FCN=   7362.261     FROM HESSE     STATUS=OK           305 CALLS     2423 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8001        2.5032        .15382E-03   -1.5440    
   2  norm          1.4150        1.5465        .10827E-03   -1.5470    
   3  Prefactor     .10000E-03    15.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.5623        10.371        .17033E-03   -1.5236    
   5  Prefactor     .10000E-03    9.4428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.0480        .20332        .16027E-04   -1.5503    
   7  Prefactor     4.9617        5.5679        .18054E-03   -1.5262    
   8  Prefactor     5.0007        7.4284        .89908E-03   -1.5261    
   9  Prefactor     .10000E-03    4.4476        .17659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.9589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.631        7.7285        .11272E-03   -1.4997    
  13  Prefactor     .10000E-03    26.679        .42233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    93.625        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.9181        10.974        .13462E-03   -1.5111    
  16  Prefactor     .10035E-03    8.9476        .53703E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          19.497        14.694        .90717E-04   -1.4825    
  18  Prefactor     2.2674        5.1722        .13639E-02   -1.5407    
  19  Normalizat    1.0824        .24301        .30946E-03   -.90319    
  20  Prefactor     .87852        .13792        .20090E-03   -.96896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.36799e-10
Minuit parameter uncertainties:
  1  2.50337
  2  1.54651
  3  1.56903e-06
  4  10.3748
  5  1.52308e-07
  6  0.203323
  7  5.56845
  8  7.42975
  9  2.49987e-07
  10  1.17318e-05
  11  4.64458e-07
  12  7.72911
  13  0.000127586
  14  2.74122e-05
  15  10.9765
  16  0.00352288
  17  14.6971
  18  5.17324
  19  0.243258
  20  0.137976
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.263e+01  7.729e+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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  8.785e-01  1.380e-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.082e+00  2.433e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.72
Ra Dec: 349.557 19.256
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 9.19e-08 +/- 5.62e-08
Energy Flux (Fixed Index): 2.27e-05 +/- 1.39e-05

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

Saving results to:
/scratch/kocevski/748010/likelihoodResults_527817601_528076801_4FGL_J2318.2+1915_daily_bin1113.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) = 7362.00011246
delta logL = 0.260854300053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7361.99731119
delta logL = 0.263655570906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.613       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2493       1.0000          .0000       10.000    
     3 'Normalizat'    1.1173       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86123       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=   7361.997     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      279 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.612        10.373        .98265E-04    .19166E-02
   2  Index         2.2491        .52136        .83123E-02    .46072E-03
   3  Normalizat    1.1173        .23620        .30524E-03   -.14407E-03
   4  Prefactor     .86122        .13842        .20260E-03   -.36160E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.6118
  Index      = 2.24915
  Normalizat = 1.11732
  Prefactor  = 0.861223
 **********
 **   18 **HESSE 
 **********

 FCN=   7361.997     FROM HESSE     STATUS=OK            23 CALLS      302 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.612        10.282        .19653E-04   -1.4893    
   2  Index         2.2491        .51644        .33249E-03   -.58257    
   3  Normalizat    1.1173        .23628        .12209E-04   -.89198    
   4  Prefactor     .86122        .13844        .40520E-04   -.97510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78517e-09
Minuit parameter uncertainties:
  1  10.2835
  2  0.517762
  3  0.236507
  4  0.138493
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/748010': 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) = 7361.99731114
delta logL = 0.26365562033

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.661e+01  1.028e+01  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.249e+00  5.178e-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:  8.612e-01  1.385e-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.117e+00  2.365e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.20
Ra Dec: 349.557 19.256
Photon Index (Free Index): 2.25 +/- 0.52
Photon Flux (Free Index): 7.61e-08 +/- 5.56e-08
Energy Flux (Free Index): 3.13e-05 +/- 2.43e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/748010/cmap_HighResolution_527817601_528076801_4FGL_J2318.2+1915_daily_bin1113.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.56e-02', comment='SUCCESS', photon_flux='9.19e-08', energy_flux2='3.13e-05', photon_flux_error='5.62e-08', dlogl='2.64e-01', energy_flux='2.27e-05', photon_flux2='7.61e-08', job_status='DONE', time_completed='2021-09-29 11:31:32.854437', photon_index_error2='0.52', photon_index2='2.25', ts='3.72', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.99e-07', energy_flux_error2='2.43e-05', EG='1.08', time_epoch_completed='1632940292.85', return_code='0', job_id='748010', GAL2='0.86', EG2='1.12', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='5.56e-08', ts2='4.20', photon_index='2.67' WHERE bin_id='1113' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:31:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 748010: <4FGL_J2318.2+1915_daily_bin1113> in cluster <slac> Done

Job <4FGL_J2318.2+1915_daily_bin1113> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 11:20:14 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:20:16 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:20:16 2021
Terminated at Wed Sep 29 11:31:33 2021
Results reported at Wed Sep 29 11:31:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin1113 349.557 19.256 527817601 528076801 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 :                                   661.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   677 sec.
    Turnaround time :                            679 sec.

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

