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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin573
RA = 349.557, Dec = 19.256
tmin = 387849601, tmax = 388108801
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='745179', job_status='RUN', time_executed='2021-09-29 11:13:22.449794', time_epoch_executed='1632939202.45' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='573'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/745179

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/745179/ft1_4FGL_J2318.2+1915_daily_bin573.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/745179/ft2_4FGL_J2318.2+1915_daily_bin573.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/745179/ft1_4FGL_J2318.2+1915_daily_bin573.fits outfile=/scratch/kocevski/745179/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin573.fits ra=349.557 dec=19.256 rad=12.0 tmin=387849601.0 tmax=388108801.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 4.89
user 4.25
sys 0.62

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/745179/ft1_filtered_4FGL_J2318.2+1915_daily_bin573.fits" evtable="EVENTS" scfile=/scratch/kocevski/745179/ft2_4FGL_J2318.2+1915_daily_bin573.fits sctable="SC_DATA" outfile=/scratch/kocevski/745179/ltcube_387849601_388108801_4FGL_J2318.2+1915_daily_bin573.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/745179/ft2_4FGL_J2318.2+1915_daily_bin573.fits
.....................!
real 11.83
user 11.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/745179/ft1_filtered_4FGL_J2318.2+1915_daily_bin573.fits evtable="EVENTS" scfile=/scratch/kocevski/745179/ft2_4FGL_J2318.2+1915_daily_bin573.fits sctable="SC_DATA" expcube=/scratch/kocevski/745179/ltcube_387849601_388108801_4FGL_J2318.2+1915_daily_bin573.fits outfile=/scratch/kocevski/745179/expmap_387849601_388108801_4FGL_J2318.2+1915_daily_bin573.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/745179/ltcube_387849601_388108801_4FGL_J2318.2+1915_daily_bin573.fits
.....................!
real 191.20
user 185.57
sys 5.26

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/745179/ft1_filtered_4FGL_J2318.2+1915_daily_bin573.fits scfile=/scratch/kocevski/745179/ft2_4FGL_J2318.2+1915_daily_bin573.fits outfile=/scratch/kocevski/745179/cmap_387849601_388108801_4FGL_J2318.2+1915_daily_bin573.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/745179/ft1_filtered_4FGL_J2318.2+1915_daily_bin573.fits scfile=/scratch/kocevski/745179/ft2_4FGL_J2318.2+1915_daily_bin573.fits outfile=/scratch/kocevski/745179/cmap_HighResolution_387849601_388108801_4FGL_J2318.2+1915_daily_bin573.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0099       1.0000         .10000E-03   10000.    
     2 'norm      '    2.5621       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .78844       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3767       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .99333       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8553       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.3116       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3476       1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.535       1.0000         .10000E-03   10000.    
    11 'Prefactor '    56.056       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6387       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .55211E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .25415E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3718       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .69047       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=   8618.694     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2228 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0119        2.9514        .36096E-06    .12591E-03
   2  norm          2.5625        1.6221        .54159E-07    .80158E-04
   3  Prefactor     .91386        17.880        .30875E-05   -.23332E-03
   4  Prefactor     3.3775        7.7931       -.65189E-06    .15754E-05
   5  Prefactor     .10000E-03    5.5666        .45654E-07** at limit **
   6  Prefactor     .99334        .18507        .12676E-08   -.80585E-03
   7  Prefactor     2.8568        7.2685       -.22289E-06    .28184E-04
   8  Prefactor     9.3133        7.1361       -.34618E-06    .24696E-05
   9  Prefactor     3.3476        9.7689        .51744E-05    .19668E-03
  10  Prefactor     35.549        24.367       -.15739E-05    .10393E-04
  11  Prefactor     56.069        31.311       -.15826E-05    .42299E-05
  12  Prefactor     4.6419        4.7217        .33125E-06    .62510E-04
  13  Prefactor     .10000E-03    7.6148       -.18344E-06** at limit **
  14  Prefactor     .10000E-03    21.105       -.24371E-06** at limit **
  15  norm          .15372        4.3068        .16032E-07   -.10092E-03
  16  Prefactor     .10000E-03    3.4013       -.19537E-06** at limit **
  17  norm          .10000E-03    4.5134       -.31349E-07** at limit **
  18  Prefactor     .10080E-03    5.4901       -.13302E-05** at limit **
  19  Normalizat    1.3713        .19544        .15664E-06    .22544E-03
  20  Prefactor     .69055        .10632        .11080E-06    .24676E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.01194
  norm       = 2.56254
  Prefactor  = 0.913862
  Prefactor  = 3.37755
  Prefactor  = 0.0001
  Prefactor  = 0.993336
  Prefactor  = 2.85682
  Prefactor  = 9.31327
  Prefactor  = 3.34755
  Prefactor  = 35.5495
  Prefactor  = 56.0687
  Prefactor  = 4.64195
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.153719
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001008
  Normalizat = 1.37131
  Prefactor  = 0.690555
 **********
 **   18 **HESSE 
 **********

 FCN=   8618.694     FROM HESSE     STATUS=OK           309 CALLS     2537 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0119        2.9575        .25376E-03   -1.5507    
   2  norm          2.5625        1.6186        .89537E-04   -1.5388    
   3  Prefactor     .91386        80.195        .69166E-02   -1.5517    
   4  Prefactor     3.3775        7.7741        .22020E-03   -1.5340    
   5  Prefactor     .10000E-03    5.5693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .99334        .18405        .16015E-04   -1.5509    
   7  Prefactor     2.8568        7.2542        .24060E-03   -1.5370    
   8  Prefactor     9.3133        7.1389        .13133E-03   -1.5098    
   9  Prefactor     3.3476        9.8549        .11060E-02   -1.5342    
  10  Prefactor     35.549        24.415        .67228E-04   -1.4515    
  11  Prefactor     56.069        31.347        .53578E-04   -1.4209    
  12  Prefactor     4.6419        4.7158        .18687E-03   -1.5277    
  13  Prefactor     .10000E-03    7.7513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .15372        50.804        .36570E-02   -1.5630    
  16  Prefactor     .10000E-03    3.4310        .16691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.5193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10080E-03    5.9723        .60265E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3713        .22932        .28887E-03   -.81462    
  20  Prefactor     .69055        .12415        .22014E-03   -1.0390    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.08619e-08
Minuit parameter uncertainties:
  1  2.9579
  2  1.61863
  3  17.1444
  4  7.77642
  5  4.25478e-06
  6  0.184046
  7  7.25639
  8  7.1396
  9  9.85968
  10  24.4215
  11  31.3566
  12  4.71621
  13  1.86317e-05
  14  0.000100206
  15  5.5921
  16  1.10411e-05
  17  5.18404e-06
  18  0.00437268
  19  0.229493
  20  0.1242
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  4.642e+00  4.716e+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:  6.906e-01  1.242e-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.371e+00  2.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.56
Ra Dec: 349.557 19.256
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 3.38e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 8.35e-06 +/- 8.49e-06

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

Saving results to:
/scratch/kocevski/745179/likelihoodResults_387849601_388108801_4FGL_J2318.2+1915_daily_bin573.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) = 8618.4673593
delta logL = 0.226572833604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8618.45075806
delta logL = 0.243174076626

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0584       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1565       1.0000          .0000       10.000    
     3 'Normalizat'    1.3843       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68452       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=   8618.451     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      238 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0561        289.54        .40780E-02    .12984E-03
   2  Index         2.1570        5.1061        .24960       -.22604E-04
   3  Normalizat    1.3843        .17847        .65047E-01   -.23360E-05
   4  Prefactor     .68457        .11144        .42195E-01    .42600E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.0561
  Index      = 2.15697
  Normalizat = 1.38427
  Prefactor  = 0.684571
 **********
 **   18 **HESSE 
 **********

 FCN=   8618.451     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0561        5.7530        .16312E-03   -1.5216    
   2  Index         2.1570        .65446        .11547E-01   -.60481    
   3  Normalizat    1.3843        .21721        .28772E-03   -.81085    
   4  Prefactor     .68457        .12232        .22097E-03   -1.0413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27907e-12
Minuit parameter uncertainties:
  1  5.75348
  2  0.657256
  3  0.217355
  4  0.122367
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/745179': 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) = 8618.45075758
delta logL = 0.24317455681

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  6.056e+00  5.753e+00  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.157e+00  6.573e-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:  6.846e-01  1.224e-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.384e+00  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 349.557 19.256
Photon Index (Free Index): 2.16 +/- 0.66
Photon Flux (Free Index): 2.54e-08 +/- 2.84e-08
Energy Flux (Free Index): 1.24e-05 +/- 1.47e-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/745179/cmap_HighResolution_387849601_388108801_4FGL_J2318.2+1915_daily_bin573.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.08e-03', comment='SUCCESS', photon_flux='3.38e-08', energy_flux2='1.24e-05', photon_flux_error='3.43e-08', dlogl='2.43e-01', energy_flux='8.35e-06', photon_flux2='2.54e-08', job_status='DONE', time_completed='2021-09-29 11:25:20.727232', photon_index_error2='0.66', photon_index2='2.16', ts='1.56', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='1.47e-05', EG='1.37', time_epoch_completed='1632939920.73', return_code='0', job_id='745179', GAL2='0.68', EG2='1.38', return_code2='0', energy_flux_error='8.49e-06', photon_flux_error2='2.84e-08', ts2='2.05', photon_index='2.67' WHERE bin_id='573' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:25:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 745179: <4FGL_J2318.2+1915_daily_bin573> in cluster <slac> Done

Job <4FGL_J2318.2+1915_daily_bin573> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 11:10:28 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:10:29 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:29 2021
Terminated at Wed Sep 29 11:25:21 2021
Results reported at Wed Sep 29 11:25:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin573 349.557 19.256 387849601 388108801 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 :                                   714.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            893 sec.

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

