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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin465
RA = 349.557, Dec = 19.256
tmin = 359856001, tmax = 360115201
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='745018', job_status='RUN', time_executed='2021-09-29 11:12:21.474885', time_epoch_executed='1632939141.47' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='465'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/745018

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/745018/ft1_4FGL_J2318.2+1915_daily_bin465.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/745018/ft2_4FGL_J2318.2+1915_daily_bin465.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/745018/ft1_4FGL_J2318.2+1915_daily_bin465.fits outfile=/scratch/kocevski/745018/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin465.fits ra=349.557 dec=19.256 rad=12.0 tmin=359856001.0 tmax=360115201.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.23
user 3.02
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/745018/ft1_filtered_4FGL_J2318.2+1915_daily_bin465.fits evtable="EVENTS" scfile=/scratch/kocevski/745018/ft2_4FGL_J2318.2+1915_daily_bin465.fits sctable="SC_DATA" expcube=/scratch/kocevski/745018/ltcube_359856001_360115201_4FGL_J2318.2+1915_daily_bin465.fits outfile=/scratch/kocevski/745018/expmap_359856001_360115201_4FGL_J2318.2+1915_daily_bin465.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/745018/ltcube_359856001_360115201_4FGL_J2318.2+1915_daily_bin465.fits
.....................!
real 190.70
user 185.13
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/745018/ft1_filtered_4FGL_J2318.2+1915_daily_bin465.fits scfile=/scratch/kocevski/745018/ft2_4FGL_J2318.2+1915_daily_bin465.fits outfile=/scratch/kocevski/745018/cmap_359856001_360115201_4FGL_J2318.2+1915_daily_bin465.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/745018/ft1_filtered_4FGL_J2318.2+1915_daily_bin465.fits scfile=/scratch/kocevski/745018/ft2_4FGL_J2318.2+1915_daily_bin465.fits outfile=/scratch/kocevski/745018/cmap_HighResolution_359856001_360115201_4FGL_J2318.2+1915_daily_bin465.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/745018/ft1_filtered_4FGL_J2318.2+1915_daily_bin465.fits evtable="EVENTS" scfile=/scratch/kocevski/745018/ft2_4FGL_J2318.2+1915_daily_bin465.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/745018/Model_4FGL_J2318.2+1915_daily_bin465.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/745018/ft1_filtered_4FGL_J2318.2+1915_daily_bin465.fits.....................!
real 96.44
user 94.99
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.8076       1.0000         .10000E-03   10000.    
     2 'norm      '    .59351       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.0312       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.633       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .75545E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.5084       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5287       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.846       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.920       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22842       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0089       1.0000         .10000E-03   10000.    
    17 'norm      '    14.081       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.8398       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .81742       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99026       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=   8815.536     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     2071 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.8062        3.6977       -.86832E-07   -.18625E-03
   2  norm          .59310        1.3215       -.22243E-06   -.18889E-02
   3  Prefactor     .10000E-03    13.371        .10678E-05** at limit **
   4  Prefactor     9.0291        10.634       -.46270E-06   -.62168E-04
   5  Prefactor     20.634        15.955       -.10198E-04   -.46064E-04
   6  Prefactor     .75445E-01    .80793E-01    .89490E-07    .11014E-02
   7  Prefactor     8.5064        7.9754       -.14068E-05   -.36666E-04
   8  Prefactor     3.5280        5.5957        .47738E-05   -.40919E-03
   9  Prefactor     .10000E-03    3.7305        .22236E-06** at limit **
  10  Prefactor     28.833        23.195        .10752E-04    .13111E-04
  11  Prefactor     .10000E-03    15.403       -.52662E-06** at limit **
  12  Prefactor     21.952        8.4107        .19575E-05    .78910E-03
  13  Prefactor     .10000E-03    2.4547        .18406E-06** at limit **
  14  Prefactor     .98658E-01    15.296       -.31277E-05    .50427E-04
  15  norm          .10000E-03    2.7836        .32369E-06** at limit **
  16  Prefactor     2.0057        4.8093       -.16122E-05   -.94315E-03
  17  norm          14.085        13.170       -.55852E-05    .57943E-04
  18  Prefactor     5.8404        6.2903        .13590E-05   -.75340E-04
  19  Normalizat    .81765        .19128       -.17451E-05    .22565E-03
  20  Prefactor     .99029        .10642       -.17251E-06    .30846E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.80621
  norm       = 0.593097
  Prefactor  = 0.0001
  Prefactor  = 9.02913
  Prefactor  = 20.634
  Prefactor  = 0.0754454
  Prefactor  = 8.50643
  Prefactor  = 3.52799
  Prefactor  = 0.0001
  Prefactor  = 28.8334
  Prefactor  = 0.0001
  Prefactor  = 21.9518
  Prefactor  = 0.0001
  Prefactor  = 0.0986576
  norm       = 0.0001
  Prefactor  = 2.00572
  norm       = 14.0853
  Prefactor  = 5.84044
  Normalizat = 0.817652
  Prefactor  = 0.990285
 **********
 **   18 **HESSE 
 **********

 FCN=   8815.536     FROM HESSE     STATUS=OK           311 CALLS     2382 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.8062        3.7078        .11035E-03   -1.5114    
   2  norm          .59310        1.1160        .14720E-02   -1.5554    
   3  Prefactor     .10000E-03    13.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.0291        10.314        .13337E-03   -1.5107    
   5  Prefactor     20.634        15.884        .88176E-04   -1.4799    
   6  Prefactor     .75445E-01    .73291E-01    .26152E-03   -1.5653    
   7  Prefactor     8.5064        7.9786        .13743E-03   -1.5125    
   8  Prefactor     3.5280        5.5150        .21519E-03   -1.5332    
   9  Prefactor     .10000E-03    3.7476        .17709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.833        23.023        .74595E-04   -1.4634    
  11  Prefactor     .10000E-03    15.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.952        8.4811        .85552E-04   -1.4771    
  13  Prefactor     .10000E-03    2.4593        .14366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .98658E-01    20.692        .96863E-01   -1.5645    
  15  norm          .10000E-03    2.8001        .15289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.0057        4.8324        .29211E-03   -1.5425    
  17  norm          14.085        13.138        .10674E-03   -1.4957    
  18  Prefactor     5.8404        6.2810        .16619E-03   -1.5225    
  19  Normalizat    .81765        .22059        .34648E-03   -.99417    
  20  Prefactor     .99029        .12403        .18718E-03   -.93054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3102e-09
Minuit parameter uncertainties:
  1  3.70791
  2  1.11605
  3  5.60581e-05
  4  10.3156
  5  15.8874
  6  0.0732914
  7  7.97961
  8  5.51578
  9  2.94986e-06
  10  23.0299
  11  0.000105721
  12  8.48153
  13  4.21247e-06
  14  2.85711
  15  1.69166e-05
  16  4.83338
  17  13.1403
  18  6.2817
  19  0.220828
  20  0.124067
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  2.195e+01  8.482e+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:  9.903e-01  1.241e-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:  8.177e-01  2.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.73
Ra Dec: 349.557 19.256
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 1.60e-07 +/- 6.17e-08
Energy Flux (Fixed Index): 3.95e-05 +/- 1.53e-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) = 8815.07488765
delta logL = 0.460689700722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8815.07484106
delta logL = 0.460736293451

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.772       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3259       1.0000          .0000       10.000    
     3 'Normalizat'    .85983       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97373       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=   8815.075     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      274 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.755        168.75        .19727E-02    .23512E-04
   2  Index         2.3252        3.4408        .15898        .52960E-04
   3  Normalizat    .85995        .23440        .76528E-01    .32938E-04
   4  Prefactor     .97372        .12009        .45938E-01    .53877E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.7548
  Index      = 2.32522
  Normalizat = 0.859954
  Prefactor  = 0.973723
 **********
 **   18 **HESSE 
 **********

 FCN=   8815.075     FROM HESSE     STATUS=OK            33 CALLS      307 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.755        9.9352        .78910E-04   -1.4693    
   2  Index         2.3252        .34339        .61580E-02   -.56446    
   3  Normalizat    .85995        .21218        .33872E-03   -.97882    
   4  Prefactor     .97372        .12303        .18856E-03   -.93611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32599e-12
Minuit parameter uncertainties:
  1  9.93579
  2  0.343766
  3  0.212387
  4  0.123067
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/745018': 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) = 8815.07483684
delta logL = 0.460740512988

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  2.575e+01  9.936e+00  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.325e+00  3.438e-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:  9.737e-01  1.231e-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:  8.600e-01  2.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.48
Ra Dec: 349.557 19.256
Photon Index (Free Index): 2.33 +/- 0.34
Photon Flux (Free Index): 1.27e-07 +/- 6.08e-08
Energy Flux (Free Index): 4.64e-05 +/- 2.05e-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/745018/cmap_HighResolution_359856001_360115201_4FGL_J2318.2+1915_daily_bin465.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.60e-07', energy_flux2='4.64e-05', photon_flux_error='6.17e-08', dlogl='4.61e-01', energy_flux='3.95e-05', photon_flux2='1.27e-07', job_status='DONE', time_completed='2021-09-29 11:23:00.500084', photon_index_error2='0.34', photon_index2='2.33', ts='14.73', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.05e-05', EG='0.82', time_epoch_completed='1632939780.5', return_code='0', job_id='745018', GAL2='0.97', EG2='0.86', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='6.08e-08', ts2='15.48', photon_index='2.67' WHERE bin_id='465' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:23:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 745018: <4FGL_J2318.2+1915_daily_bin465> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin465 349.557 19.256 359856001 360115201 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 :                                   634.50 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             308.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            765 sec.

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

