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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin355
RA = 349.557, Dec = 19.256
tmin = 331344001, tmax = 331603201
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='743814', job_status='RUN', time_executed='2021-09-29 11:07:48.205692', time_epoch_executed='1632938868.21' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='355'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/743814

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/743814/ft1_4FGL_J2318.2+1915_daily_bin355.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/743814/ft2_4FGL_J2318.2+1915_daily_bin355.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/743814/ft1_4FGL_J2318.2+1915_daily_bin355.fits outfile=/scratch/kocevski/743814/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin355.fits ra=349.557 dec=19.256 rad=12.0 tmin=331344001.0 tmax=331603201.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.28
user 3.06
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/743814/ft2_4FGL_J2318.2+1915_daily_bin355.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/743814/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin355.fits evtable="EVENTS" outfile="/scratch/kocevski/743814/ft1_filtered_4FGL_J2318.2+1915_daily_bin355.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/743814/ft1_filtered_4FGL_J2318.2+1915_daily_bin355.fits" evtable="EVENTS" scfile=/scratch/kocevski/743814/ft2_4FGL_J2318.2+1915_daily_bin355.fits sctable="SC_DATA" outfile=/scratch/kocevski/743814/ltcube_331344001_331603201_4FGL_J2318.2+1915_daily_bin355.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/743814/ft2_4FGL_J2318.2+1915_daily_bin355.fits
.....................!
real 11.95
user 11.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/743814/ft1_filtered_4FGL_J2318.2+1915_daily_bin355.fits evtable="EVENTS" scfile=/scratch/kocevski/743814/ft2_4FGL_J2318.2+1915_daily_bin355.fits sctable="SC_DATA" expcube=/scratch/kocevski/743814/ltcube_331344001_331603201_4FGL_J2318.2+1915_daily_bin355.fits outfile=/scratch/kocevski/743814/expmap_331344001_331603201_4FGL_J2318.2+1915_daily_bin355.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/743814/ltcube_331344001_331603201_4FGL_J2318.2+1915_daily_bin355.fits
.....................!
real 191.03
user 185.23
sys 5.43

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/743814/ft1_filtered_4FGL_J2318.2+1915_daily_bin355.fits scfile=/scratch/kocevski/743814/ft2_4FGL_J2318.2+1915_daily_bin355.fits outfile=/scratch/kocevski/743814/cmap_331344001_331603201_4FGL_J2318.2+1915_daily_bin355.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/743814/ft1_filtered_4FGL_J2318.2+1915_daily_bin355.fits scfile=/scratch/kocevski/743814/ft2_4FGL_J2318.2+1915_daily_bin355.fits outfile=/scratch/kocevski/743814/cmap_HighResolution_331344001_331603201_4FGL_J2318.2+1915_daily_bin355.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=349.557 yref=19.256 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8488       1.0000         .10000E-03   10000.    
     2 'norm      '    .82761       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    49.723       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .69688       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1223       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.5813       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.564       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.388       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .33847E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.3713       1.0000         .10000E-03   10000.    
    17 'norm      '    .69892       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .96564       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .84701       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=   8001.523     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     2063 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8490        3.0724       -.24693E-08   -.72775E-04
   2  norm          .82762        1.1443        .22972E-06   -.14823E-02
   3  Prefactor     .10000E-03    9.7272        .27657E-05** at limit **
   4  Prefactor     .10000E-03    3.8233        .54614E-07** at limit **
   5  Prefactor     49.713        27.203       -.29451E-05   -.48616E-03
   6  Prefactor     .69699        .18082        .59615E-07   -.56199E-03
   7  Prefactor     7.1224        8.4620        .30834E-06    .43611E-04
   8  Prefactor     .10000E-03    8.6412       -.17080E-05** at limit **
   9  Prefactor     .10000E-03    6.2380        .11725E-05** at limit **
  10  Prefactor     9.5744        21.158       -.30113E-05   -.18880E-03
  11  Prefactor     28.564        24.906        .76946E-06    .69644E-04
  12  Prefactor     14.388        7.3202       -.14418E-07    .18515E-03
  13  Prefactor     .10000E-03    3.3133       -.46703E-07** at limit **
  14  Prefactor     .10000E-03    8.9179       -.16188E-05** at limit **
  15  norm          .10001E-03    5.7043       -.25522E-05** at limit **
  16  Prefactor     7.3586        6.6539        .25001E-05   -.97874E-03
  17  norm          .75432        7.7024       -.86031E-06    .77766E-04
  18  Prefactor     .10000E-03    5.2259       -.46540E-06** at limit **
  19  Normalizat    .96579        .19081        .40088E-06    .35195E-03
  20  Prefactor     .84688        .10708       -.15608E-06    .54325E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.84903
  norm       = 0.82762
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 49.7131
  Prefactor  = 0.696993
  Prefactor  = 7.12243
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.57439
  Prefactor  = 28.5645
  Prefactor  = 14.3878
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100012
  Prefactor  = 7.35859
  norm       = 0.754319
  Prefactor  = 0.0001
  Normalizat = 0.965788
  Prefactor  = 0.846884
 **********
 **   18 **HESSE 
 **********

 FCN=   8001.523     FROM HESSE     STATUS=OK           297 CALLS     2360 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8490        3.0811        .11867E-03   -1.5268    
   2  norm          .82762        1.1586        .25085E-03   -1.5526    
   3  Prefactor     .10000E-03    9.9540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.8381        .17077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     49.713        28.177        .56870E-04   -1.4297    
   6  Prefactor     .69699        .18120        .17404E-04   -1.5541    
   7  Prefactor     7.1224        8.4532        .15031E-03   -1.5174    
   8  Prefactor     .10000E-03    9.0106        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.2943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.5744        21.690        .12946E-03   -1.5089    
  11  Prefactor     28.564        24.895        .74962E-04   -1.4639    
  12  Prefactor     14.388        7.3414        .10559E-03   -1.4949    
  13  Prefactor     .10000E-03    3.3182        .15899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.0155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    32.425        .37910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.3586        7.4781        .73863E-03   -1.5165    
  17  norm          .75432        47.414        .47378E-02   -1.5534    
  18  Prefactor     .10000E-03    5.3272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .96579        .22557        .31248E-03   -.94186    
  20  Prefactor     .84688        .12631        .19377E-03   -.98023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39698e-09
Minuit parameter uncertainties:
  1  3.08125
  2  1.15865
  3  0.000265573
  4  7.736e-07
  5  28.185
  6  0.181196
  7  8.45466
  8  0.000112074
  9  8.73432e-05
  10  21.7082
  11  24.9037
  12  7.34187
  13  2.4211e-06
  14  0.000148175
  15  0.00123263
  16  7.47904
  17  11.97
  18  4.06454e-05
  19  0.22579
  20  0.126354
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.439e+01  7.342e+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.469e-01  1.264e-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:  9.658e-01  2.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.93
Ra Dec: 349.557 19.256
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 5.34e-08
Energy Flux (Fixed Index): 2.59e-05 +/- 1.32e-05

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) = 8001.31043478
delta logL = 0.212973347817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8001.28634839
delta logL = 0.237059741177

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7930       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1200       1.0000          .0000       10.000    
     3 'Normalizat'    .92857       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86419       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=   8001.286     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      276 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7915        10.989        .12486E-03   -.24812E-03
   2  Index         3.1207        .88724        .56946E-02   -.62860E-04
   3  Normalizat    .92860        .22338        .31788E-03   -.92236E-04
   4  Prefactor     .86412        .12862        .19205E-03   -.41420E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.79147
  Index      = 3.12066
  Normalizat = 0.9286
  Prefactor  = 0.86412
 **********
 **   18 **HESSE 
 **********

 FCN=   8001.286     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7915        9.1785        .49944E-05   -1.5082    
   2  Index         3.1207        .74149        .22778E-03   -.38533    
   3  Normalizat    .92860        .22206        .12715E-04   -.95462    
   4  Prefactor     .86412        .12772        .38410E-04   -.97406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7564e-10
Minuit parameter uncertainties:
  1  9.17986
  2  0.744696
  3  0.222276
  4  0.127763
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/743814': 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) = 8001.28634691
delta logL = 0.237061224069

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  9.791e+00  9.180e+00  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  3.121e+00  7.447e-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.641e-01  1.278e-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:  9.286e-01  2.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.48
Ra Dec: 349.557 19.256
Photon Index (Free Index): 3.12 +/- 0.74
Photon Flux (Free Index): 1.27e-07 +/- 6.49e-08
Energy Flux (Free Index): 2.40e-05 +/- 1.19e-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/743814/cmap_HighResolution_331344001_331603201_4FGL_J2318.2+1915_daily_bin355.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='2.40e-05', photon_flux_error='5.34e-08', dlogl='2.37e-01', energy_flux='2.59e-05', photon_flux2='1.27e-07', job_status='DONE', time_completed='2021-09-29 11:18:06.779767', photon_index_error2='0.74', photon_index2='3.12', ts='5.93', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.19e-05', EG='0.97', time_epoch_completed='1632939486.78', return_code='0', job_id='743814', GAL2='0.86', EG2='0.93', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='6.49e-08', ts2='6.48', photon_index='2.67' WHERE bin_id='355' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:18:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 743814: <4FGL_J2318.2+1915_daily_bin355> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin355 349.557 19.256 331344001 331603201 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 :                                   612.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            747 sec.

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

