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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin389
RA = 349.557, Dec = 19.256
tmin = 340156801, tmax = 340416001
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='743871', job_status='RUN', time_executed='2021-09-29 11:08:19.305295', time_epoch_executed='1632938899.31' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='389'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/743871

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/743871/ft1_4FGL_J2318.2+1915_daily_bin389.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/743871/ft2_4FGL_J2318.2+1915_daily_bin389.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/743871/ft1_4FGL_J2318.2+1915_daily_bin389.fits outfile=/scratch/kocevski/743871/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin389.fits ra=349.557 dec=19.256 rad=12.0 tmin=340156801.0 tmax=340416001.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.30
user 3.10
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/743871/ft1_filtered_4FGL_J2318.2+1915_daily_bin389.fits evtable="EVENTS" scfile=/scratch/kocevski/743871/ft2_4FGL_J2318.2+1915_daily_bin389.fits sctable="SC_DATA" expcube=/scratch/kocevski/743871/ltcube_340156801_340416001_4FGL_J2318.2+1915_daily_bin389.fits outfile=/scratch/kocevski/743871/expmap_340156801_340416001_4FGL_J2318.2+1915_daily_bin389.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/743871/ltcube_340156801_340416001_4FGL_J2318.2+1915_daily_bin389.fits
.....................!
real 190.51
user 184.90
sys 5.27

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/743871/ft1_filtered_4FGL_J2318.2+1915_daily_bin389.fits scfile=/scratch/kocevski/743871/ft2_4FGL_J2318.2+1915_daily_bin389.fits outfile=/scratch/kocevski/743871/cmap_340156801_340416001_4FGL_J2318.2+1915_daily_bin389.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/743871/ft1_filtered_4FGL_J2318.2+1915_daily_bin389.fits scfile=/scratch/kocevski/743871/ft2_4FGL_J2318.2+1915_daily_bin389.fits outfile=/scratch/kocevski/743871/cmap_HighResolution_340156801_340416001_4FGL_J2318.2+1915_daily_bin389.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/743871/ft1_filtered_4FGL_J2318.2+1915_daily_bin389.fits evtable="EVENTS" scfile=/scratch/kocevski/743871/ft2_4FGL_J2318.2+1915_daily_bin389.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/743871/Model_4FGL_J2318.2+1915_daily_bin389.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/743871/ft1_filtered_4FGL_J2318.2+1915_daily_bin389.fits.....................!
real 76.58
user 75.04
sys 1.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7062       1.0000         .10000E-03   10000.    
     2 'norm      '    .89640       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.360       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4910       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16517       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2173       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .22119E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.733       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15009E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0483       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.6426       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4671       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .64340       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1367       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=   6866.866     FROM MIGRAD    STATUS=CONVERGED    755 CALLS     2693 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7058        2.9615        .12163E-03   -.49724E-04
   2  norm          .89625        .93975        .77319E-03   -.38250E-03
   3  Prefactor     14.356        18.973        .10570E-03    .65074E-04
   4  Prefactor     1.4916        19.820        .35107E-03   -.12001E-03
   5  Prefactor     .10000E-03    13.338        .18142E-02** at limit **
   6  Prefactor     .16524        .11174        .22178E-04    .34156E-02
   7  Prefactor     4.2150        10.639        .19623E-03    .69755E-04
   8  Prefactor     .10000E-03    1.6047        .10244E-02** at limit **
   9  Prefactor     .10019E-03    7.8917        .69713E-01** at limit **
  10  Prefactor     29.733        25.320        .73476E-04    .47810E-04
  11  Prefactor     .10000E-03    22.630        .10460    ** at limit **
  12  Prefactor     6.0487        6.5916        .16326E-03   -.25473E-03
  13  Prefactor     .10000E-03    4.5175        .17177E-02** at limit **
  14  Prefactor     .10000E-03    13.081        .18142E-02** at limit **
  15  norm          4.6466        7.2279        .18679E-03    .35484E-03
  16  Prefactor     .10000E-03    2.1042        .11714E-02** at limit **
  17  norm          .10000E-03    12.758        .18142E-02** at limit **
  18  Prefactor     1.4673        6.1373        .17747E-02    .86283E-04
  19  Normalizat    .64345        .23767        .36490E-03    .11378E-03
  20  Prefactor     1.1366        .13866        .17210E-03    .52781E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.70583
  norm       = 0.896248
  Prefactor  = 14.3555
  Prefactor  = 1.4916
  Prefactor  = 0.0001
  Prefactor  = 0.165244
  Prefactor  = 4.21497
  Prefactor  = 0.0001
  Prefactor  = 0.000100193
  Prefactor  = 29.7325
  Prefactor  = 0.000100001
  Prefactor  = 6.04868
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 4.64665
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.4673
  Normalizat = 0.643446
  Prefactor  = 1.13665
 **********
 **   18 **HESSE 
 **********

 FCN=   6866.866     FROM HESSE     STATUS=OK           295 CALLS     2988 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7058        2.9613        .48654E-05   -1.5323    
   2  norm          .89625        .93955        .30928E-04   -1.5519    
   3  Prefactor     14.356        18.971        .42278E-05   -1.4950    
   4  Prefactor     1.4916        19.785        .14043E-04   -1.5464    
   5  Prefactor     .10000E-03    13.339        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .16524        .11173        .88711E-06   -1.5627    
   7  Prefactor     4.2150        10.636        .78491E-05   -1.5297    
   8  Prefactor     .10000E-03    1.6047        .20487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10019E-03    7.4830        .72923E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.733        25.314        .29390E-05   -1.4617    
  11  Prefactor     .10000E-03    21.274        .10934       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.0487        6.5906        .65304E-05   -1.5216    
  13  Prefactor     .10000E-03    4.5177        .34353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.084        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.6466        7.2270        .74715E-05   -1.5277    
  16  Prefactor     .10000E-03    2.1043        .23428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.765        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.4673        6.1251        .70988E-04   -1.5466    
  19  Normalizat    .64345        .23766        .14596E-04   -1.0617    
  20  Prefactor     1.1366        .13872        .34420E-04   -.88304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.803e-10
Minuit parameter uncertainties:
  1  2.96142
  2  0.939567
  3  18.9789
  4  10.8688
  5  3.06384e-05
  6  0.111728
  7  10.6412
  8  9.59407e-06
  9  0.0024058
  10  25.3227
  11  0.000314464
  12  6.59143
  13  1.44653e-05
  14  0.000299926
  15  7.22833
  16  2.00013e-06
  17  2.53567e-06
  18  5.99662
  19  0.238041
  20  0.138761
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  6.049e+00  6.591e+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:  1.137e+00  1.388e-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:  6.434e-01  2.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.23
Ra Dec: 349.557 19.256
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 4.40e-08 +/- 4.79e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 1.19e-05

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

Saving results to:
/scratch/kocevski/743871/likelihoodResults_340156801_340416001_4FGL_J2318.2+1915_daily_bin389.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) = 6866.86433613
delta logL = 0.001341092644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6866.86350388
delta logL = 0.00217333710771

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3073       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5833       1.0000          .0000       10.000    
     3 'Normalizat'    .64733       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1351       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=   6866.864     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      239 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3082        8.1338        .15983E-03   -.46590E-03
   2  Index         2.5831        1.3019        .12487E-01   -.75927E-04
   3  Normalizat    .64736        .23368        .36386E-03    .30457E-03
   4  Prefactor     1.1351        .13992        .17220E-03    .80822E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.3082
  Index      = 2.58306
  Normalizat = 0.647362
  Prefactor  = 1.13506
 **********
 **   18 **HESSE 
 **********

 FCN=   6866.864     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3082        7.7314        .63932E-05   -1.5206    
   2  Index         2.5831        1.2356        .49948E-03   -.50452    
   3  Normalizat    .64736        .23299        .14554E-04   -1.0601    
   4  Prefactor     1.1351        .13965        .34440E-04   -.88354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.23818e-10
Minuit parameter uncertainties:
  1  7.73263
  2  1.2526
  3  0.233341
  4  0.139699
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/743871': 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) = 6866.86350386
delta logL = 0.00217335777597

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  6.308e+00  7.733e+00  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.583e+00  1.253e+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.135e+00  1.397e-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:  6.474e-01  2.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 349.557 19.256
Photon Index (Free Index): 2.58 +/- 1.25
Photon Flux (Free Index): 4.16e-08 +/- 5.93e-08
Energy Flux (Free Index): 1.11e-05 +/- 1.26e-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/743871/cmap_HighResolution_340156801_340416001_4FGL_J2318.2+1915_daily_bin389.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', photon_flux='4.40e-08', energy_flux2='1.11e-05', photon_flux_error='4.79e-08', dlogl='2.17e-03', energy_flux='1.09e-05', photon_flux2='4.16e-08', job_status='DONE', time_completed='2021-09-29 11:19:14.693169', photon_index_error2='1.25', photon_index2='2.58', ts='1.23', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='1.26e-05', EG='0.64', time_epoch_completed='1632939554.69', return_code='0', job_id='743871', GAL2='1.14', EG2='0.65', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='5.93e-08', ts2='1.23', photon_index='2.67' WHERE bin_id='389' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:19:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 743871: <4FGL_J2318.2+1915_daily_bin389> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin389 349.557 19.256 340156801 340416001 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 :                                   653.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            811 sec.

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

