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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin319
RA = 349.557, Dec = 19.256
tmin = 322012801, tmax = 322272001
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='743760', job_status='RUN', time_executed='2021-09-29 11:07:43.611065', time_epoch_executed='1632938863.61' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/743760

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/743760/ft1_4FGL_J2318.2+1915_daily_bin319.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/743760/ft2_4FGL_J2318.2+1915_daily_bin319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/743760/ft1_4FGL_J2318.2+1915_daily_bin319.fits outfile=/scratch/kocevski/743760/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin319.fits ra=349.557 dec=19.256 rad=12.0 tmin=322012801.0 tmax=322272001.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.37
user 3.16
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/743760/ft1_filtered_4FGL_J2318.2+1915_daily_bin319.fits evtable="EVENTS" scfile=/scratch/kocevski/743760/ft2_4FGL_J2318.2+1915_daily_bin319.fits sctable="SC_DATA" expcube=/scratch/kocevski/743760/ltcube_322012801_322272001_4FGL_J2318.2+1915_daily_bin319.fits outfile=/scratch/kocevski/743760/expmap_322012801_322272001_4FGL_J2318.2+1915_daily_bin319.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/743760/ltcube_322012801_322272001_4FGL_J2318.2+1915_daily_bin319.fits
.....................!
real 190.25
user 184.98
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/743760/ft1_filtered_4FGL_J2318.2+1915_daily_bin319.fits scfile=/scratch/kocevski/743760/ft2_4FGL_J2318.2+1915_daily_bin319.fits outfile=/scratch/kocevski/743760/cmap_322012801_322272001_4FGL_J2318.2+1915_daily_bin319.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/743760/ft1_filtered_4FGL_J2318.2+1915_daily_bin319.fits scfile=/scratch/kocevski/743760/ft2_4FGL_J2318.2+1915_daily_bin319.fits outfile=/scratch/kocevski/743760/cmap_HighResolution_322012801_322272001_4FGL_J2318.2+1915_daily_bin319.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/743760/ft1_filtered_4FGL_J2318.2+1915_daily_bin319.fits evtable="EVENTS" scfile=/scratch/kocevski/743760/ft2_4FGL_J2318.2+1915_daily_bin319.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/743760/Model_4FGL_J2318.2+1915_daily_bin319.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/743760/ft1_filtered_4FGL_J2318.2+1915_daily_bin319.fits.....................!
real 118.67
user 117.21
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2367       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1043       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.221       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0013       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.977       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0270       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.8866       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.4957       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.284       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19341E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    12.745       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.6873       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0270       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96974       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=   10208.54     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     1806 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2448        3.5764        .16758E-05   -.26349E-02
   2  norm          2.1048        1.9650        .22681E-07   -.11515E-03
   3  Prefactor     .10001E-03    23.706       -.40740E-05** at limit **
   4  Prefactor     20.237        14.447        .66147E-06    .24608E-03
   5  Prefactor     .10001E-03    21.979        .38552E-05** at limit **
   6  Prefactor     7.0017        .43489       -.25879E-09    .21853E-02
   7  Prefactor     12.981        8.4667       -.13168E-06   -.87053E-04
   8  Prefactor     1.0390        6.5720       -.10032E-05    .26130E-03
   9  Prefactor     .10000E-03    13.928       -.18023E-06** at limit **
  10  Prefactor     7.9084        15.584        .28340E-05    .33798E-03
  11  Prefactor     .10000E-03    4.9007        .34812E-07** at limit **
  12  Prefactor     8.5068        7.9688        .18842E-07   -.32934E-04
  13  Prefactor     23.242        13.144       -.17837E-06   -.15433E-03
  14  Prefactor     .10000E-03    7.3490       -.19518E-06** at limit **
  15  norm          .10000E-03    7.6486        .93667E-07** at limit **
  16  Prefactor     .22814        4.7485        .41511E-06    .18569E-04
  17  norm          12.723        15.215       -.22332E-05   -.52504E-03
  18  Prefactor     6.6913        5.6202       -.95801E-06   -.72701E-03
  19  Normalizat    1.0253        .23663       -.13527E-05    .75556E-04
  20  Prefactor     .97014        .12577        .61696E-07    .65992E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.24482
  norm       = 2.10481
  Prefactor  = 0.000100007
  Prefactor  = 20.237
  Prefactor  = 0.000100006
  Prefactor  = 7.00172
  Prefactor  = 12.9812
  Prefactor  = 1.03902
  Prefactor  = 0.0001
  Prefactor  = 7.90843
  Prefactor  = 0.0001
  Prefactor  = 8.50685
  Prefactor  = 23.2421
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.22814
  norm       = 12.7234
  Prefactor  = 6.69129
  Normalizat = 1.02528
  Prefactor  = 0.970141
 **********
 **   18 **HESSE 
 **********

 FCN=   10208.54     FROM HESSE     STATUS=OK           295 CALLS     2101 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2448        3.9420        .73916E-03   -1.5208    
   2  norm          2.1048        1.9523        .12955E-03   -1.5418    
   3  Prefactor     .10001E-03    24.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.237        14.443        .89070E-04   -1.4808    
   5  Prefactor     .10001E-03    22.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.0017        .43371        .15422E-04   -1.5179    
   7  Prefactor     12.981        8.4751        .11120E-03   -1.4987    
   8  Prefactor     1.0390        22.006        .47380E-02   -1.5504    
   9  Prefactor     .10000E-03    14.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.9084        15.817        .14278E-03   -1.5145    
  11  Prefactor     .10000E-03    4.9024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.5068        7.9946        .13753E-03   -1.5125    
  13  Prefactor     23.242        13.187        .83012E-04   -1.4743    
  14  Prefactor     .10000E-03    7.3559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.7119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .22814        71.003        .40409E-02   -1.5612    
  17  norm          12.723        15.680        .11220E-03   -1.4994    
  18  Prefactor     6.6913        5.6832        .15517E-03   -1.5191    
  19  Normalizat    1.0253        .28107        .41326E-03   -.92188    
  20  Prefactor     .97014        .14808        .24146E-03   -.93732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.60998e-09
Minuit parameter uncertainties:
  1  3.94219
  2  1.95236
  3  0.000831055
  4  14.4453
  5  0.000764558
  6  0.43371
  7  8.47587
  8  9.56692
  9  6.29756e-06
  10  15.8254
  11  1.7744e-06
  12  7.9956
  13  13.1888
  14  1.38488e-05
  15  2.449e-05
  16  8.0574
  17  15.6854
  18  5.68363
  19  0.281476
  20  0.148143
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  8.507e+00  7.996e+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.701e-01  1.481e-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.025e+00  2.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.49
Ra Dec: 349.557 19.256
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 6.19e-08 +/- 5.81e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.44e-05

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

Saving results to:
/scratch/kocevski/743760/likelihoodResults_322012801_322272001_4FGL_J2318.2+1915_daily_bin319.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): 102
logL (Free Index) = 10207.4142541
delta logL = 1.12712760629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10207.3180561
delta logL = 1.22332562164

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18846E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    7.0447       1.0000          .0000       10.000    
     3 'Normalizat'    .95855       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0073       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=   10207.32     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      356 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17513E-01    .15300        .18864E-02    .71859E-02
   2  Index         7.0887        2.7074        .18273        .17248E-03
   3  Normalizat    .95950        .55733E-01    .95936E-01    .37885E-04
   4  Prefactor     1.0070        .31975E-01    .43747E-01    .36712E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0175131
  Index      = 7.08867
  Normalizat = 0.959499
  Prefactor  = 1.00697
 **********
 **   18 **HESSE 
 **********

 FCN=   10207.32     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      391 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17513E-01    .38179        .86502E-04   -1.5682    
   2  Index         7.0887        7.7997        .70598E-02    .43095    
   3  Normalizat    .95950        .19735        .42504E-03   -.94400    
   4  Prefactor     1.0070        .11189        .23758E-03   -.92498    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.49515e-10
Minuit parameter uncertainties:
  1  0.163073
  2  5.49383
  3  0.197501
  4  0.111913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/743760': 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): 102
logL (Free Index) = 10207.3180327
delta logL = 1.22334902818

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.751e-02  1.631e-01  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  7.089e+00  5.494e+00  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  6.043e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.007e+00  1.119e-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.595e-01  1.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.07
Ra Dec: 349.557 19.256
Photon Index (Free Index): 7.09 +/- 5.49
Photon Flux (Free Index): 1.01e-07 +/- 6.81e-08
Energy Flux (Free Index): 1.20e-05 +/- 9.29e-06

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/743760/cmap_HighResolution_322012801_322272001_4FGL_J2318.2+1915_daily_bin319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', comment='SUCCESS', photon_flux='6.19e-08', energy_flux2='1.20e-05', photon_flux_error='5.81e-08', dlogl='1.22e+00', energy_flux='1.53e-05', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-09-29 11:21:03.602497', photon_index_error2='5.49', photon_index2='7.09', ts='1.49', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.78e-07', energy_flux_error2='9.29e-06', EG='1.03', time_epoch_completed='1632939663.6', return_code='0', job_id='743760', GAL2='1.01', EG2='0.96', return_code2='102', energy_flux_error='1.44e-05', photon_flux_error2='6.81e-08', ts2='4.07', photon_index='2.67' WHERE bin_id='319' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:21:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 743760: <4FGL_J2318.2+1915_daily_bin319> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin319 349.557 19.256 322012801 322272001 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 :                                   793.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            929 sec.

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

