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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin919
RA = 349.557, Dec = 19.256
tmin = 477532801, tmax = 477792001
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='746750', job_status='RUN', time_executed='2021-09-29 11:15:48.642143', time_epoch_executed='1632939348.64' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='919'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/746750

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/746750/ft1_4FGL_J2318.2+1915_daily_bin919.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/746750/ft2_4FGL_J2318.2+1915_daily_bin919.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/746750/ft1_4FGL_J2318.2+1915_daily_bin919.fits outfile=/scratch/kocevski/746750/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin919.fits ra=349.557 dec=19.256 rad=12.0 tmin=477532801.0 tmax=477792001.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.65
user 3.35
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/746750/ft1_filtered_4FGL_J2318.2+1915_daily_bin919.fits" evtable="EVENTS" scfile=/scratch/kocevski/746750/ft2_4FGL_J2318.2+1915_daily_bin919.fits sctable="SC_DATA" outfile=/scratch/kocevski/746750/ltcube_477532801_477792001_4FGL_J2318.2+1915_daily_bin919.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/746750/ft2_4FGL_J2318.2+1915_daily_bin919.fits
.....................!
real 11.92
user 11.54
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/746750/ft1_filtered_4FGL_J2318.2+1915_daily_bin919.fits evtable="EVENTS" scfile=/scratch/kocevski/746750/ft2_4FGL_J2318.2+1915_daily_bin919.fits sctable="SC_DATA" expcube=/scratch/kocevski/746750/ltcube_477532801_477792001_4FGL_J2318.2+1915_daily_bin919.fits outfile=/scratch/kocevski/746750/expmap_477532801_477792001_4FGL_J2318.2+1915_daily_bin919.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/746750/ltcube_477532801_477792001_4FGL_J2318.2+1915_daily_bin919.fits
.....................!
real 191.31
user 185.84
sys 5.09

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/746750/ft1_filtered_4FGL_J2318.2+1915_daily_bin919.fits scfile=/scratch/kocevski/746750/ft2_4FGL_J2318.2+1915_daily_bin919.fits outfile=/scratch/kocevski/746750/cmap_477532801_477792001_4FGL_J2318.2+1915_daily_bin919.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/746750/ft1_filtered_4FGL_J2318.2+1915_daily_bin919.fits scfile=/scratch/kocevski/746750/ft2_4FGL_J2318.2+1915_daily_bin919.fits outfile=/scratch/kocevski/746750/cmap_HighResolution_477532801_477792001_4FGL_J2318.2+1915_daily_bin919.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.036       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.601       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17624       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0910       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .34029       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.075       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3310       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2087       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2471       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5908       1.0000         .10000E-03   10000.    
    15 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5728       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .89638       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=   10137.34     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2385 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.037        4.6560       -.19069E-06    .44397E-04
   2  norm          .10000E-03    .51391       -.15297E-07** at limit **
   3  Prefactor     34.612        65.276        .33455E-04    .81584E-04
   4  Prefactor     .10000E-03    4.4158       -.26209E-07** at limit **
   5  Prefactor     .10015E-03    34.943       -.37721E-05** at limit **
   6  Prefactor     4.0909        .38273       -.17723E-06    .10499E-01
   7  Prefactor     .36274        5.7525        .23393E-06   -.15245E-03
   8  Prefactor     .10000E-03    2.2073        .19912E-07** at limit **
   9  Prefactor     10.077        9.2649        .13517E-05    .69797E-04
  10  Prefactor     5.3318        8.7600       -.13604E-05   -.19148E-04
  11  Prefactor     .10000E-03    9.2575       -.14525E-06** at limit **
  12  Prefactor     3.2109        5.9635        .22287E-05   -.13945E-02
  13  Prefactor     1.2431        4.4631       -.82266E-06   -.17225E-02
  14  Prefactor     1.5965        38.982       -.31032E-04   -.39582E-04
  15  norm          .10000E-03    5.9107       -.19149E-06** at limit **
  16  Prefactor     .10000E-03    7.2824        .15285E-06** at limit **
  17  norm          .10000E-03    5.1117        .58456E-07** at limit **
  18  Prefactor     .10000E-03    1.6866        .23839E-07** at limit **
  19  Normalizat    1.5727        .22909        .47236E-06    .24932E-03
  20  Prefactor     .89628        .12704        .37699E-07    .34061E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 24.0373
  norm       = 0.0001
  Prefactor  = 34.6122
  Prefactor  = 0.0001
  Prefactor  = 0.000100154
  Prefactor  = 4.09093
  Prefactor  = 0.362744
  Prefactor  = 0.0001
  Prefactor  = 10.0768
  Prefactor  = 5.33185
  Prefactor  = 0.0001
  Prefactor  = 3.21094
  Prefactor  = 1.24306
  Prefactor  = 1.5965
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.57273
  Prefactor  = 0.896284
 **********
 **   18 **HESSE 
 **********

 FCN=   10137.34     FROM HESSE     STATUS=OK           297 CALLS     2682 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.037        4.6691        .81704E-04   -1.4727    
   2  norm          .10000E-03    .51700        .70482E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     34.612        65.353        .68126E-04   -1.4531    
   4  Prefactor     .10000E-03    4.4298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10015E-03    32.743        .14965       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.0909        .38518        .16463E-04   -1.5303    
   7  Prefactor     .36274        65.770        .46104E-02   -1.5588    
   8  Prefactor     .10000E-03    2.2136        .14608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.077        9.2686        .12624E-03   -1.5073    
  10  Prefactor     5.3318        8.7529        .17406E-03   -1.5246    
  11  Prefactor     .10000E-03    9.2778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2109        6.5059        .11309E-02   -1.5350    
  13  Prefactor     1.2431        18.098        .20041E-02   -1.5485    
  14  Prefactor     1.5965        38.966        .33643E-03   -1.5455    
  15  norm          .10000E-03    5.9580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.4336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.1153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.6900        .12769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.5727        .27058        .35576E-03   -.75755    
  20  Prefactor     .89628        .14979        .25772E-03   -.96271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52473e-08
Minuit parameter uncertainties:
  1  4.66913
  2  8.27306e-07
  3  65.4889
  4  3.45836e-06
  5  0.00449346
  6  0.385179
  7  9.77843
  8  2.36363e-06
  9  9.2699
  10  8.75497
  11  8.33852e-07
  12  6.50731
  13  9.48916
  14  15.7855
  15  6.59027e-06
  16  9.36773e-06
  17  5.17387e-06
  18  1.25271e-06
  19  0.270828
  20  0.14986
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  3.211e+00  6.507e+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.963e-01  1.499e-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.573e+00  2.708e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/746750/likelihoodResults_477532801_477792001_4FGL_J2318.2+1915_daily_bin919.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) = 10136.9530186
delta logL = 0.390367045722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10136.9403444
delta logL = 0.403041252699

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92813       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2731       1.0000          .0000       10.000    
     3 'Normalizat'    1.5199       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91594       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=   10136.94     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      303 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .92364        12.981        .12909E-01    .13459E-02
   2  Index         4.2766        3.1467        .20365        .11538E-03
   3  Normalizat    1.5196        .46470E-01    .81480E-01   -.65922E-04
   4  Prefactor     .91612        .26499E-01    .45208E-01    .63369E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.923644
  Index      = 4.27665
  Normalizat = 1.51956
  Prefactor  = 0.91612
 **********
 **   18 **HESSE 
 **********

 FCN=   10136.94     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      336 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .92364        47.322        .95602E-04   -1.5516    
   2  Index         4.2766        6.7908        .91425E-02   -.14518    
   3  Normalizat    1.5196        .23437        .36064E-03   -.77230    
   4  Prefactor     .91612        .13308        .25522E-03   -.95580    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.30553e-06
Minuit parameter uncertainties:
  1  13.2329
  2  9.69311
  3  0.234538
  4  0.133123
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/746750': 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) = 10136.9403425
delta logL = 0.403043108205

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  9.236e-01  1.323e+01  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  4.277e+00  9.693e+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:  9.161e-01  1.331e-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.520e+00  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.22
Ra Dec: 349.557 19.256
Photon Index (Free Index): 4.28 +/- 9.69
Photon Flux (Free Index): 6.21e-08 +/- 6.33e-08
Energy Flux (Free Index): 8.92e-06 +/- 1.33e-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/746750/cmap_HighResolution_477532801_477792001_4FGL_J2318.2+1915_daily_bin919.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.86e-03', comment='SUCCESS', energy_flux2='8.92e-06', dlogl='4.03e-01', photon_flux2='6.21e-08', job_status='DONE', time_completed='2021-09-29 11:29:55.569531', photon_index_error2='9.69', photon_index2='4.28', ts='0.31', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='1.33e-05', EG='1.57', time_epoch_completed='1632940195.57', return_code='0', job_id='746750', GAL2='0.92', EG2='1.52', return_code2='102', photon_flux_error2='6.33e-08', ts2='1.22', photon_index='2.67' WHERE bin_id='919' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:29:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 746750: <4FGL_J2318.2+1915_daily_bin919> in cluster <slac> Done

Job <4FGL_J2318.2+1915_daily_bin919> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 11:15:39 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:15:41 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:15:41 2021
Terminated at Wed Sep 29 11:29:56 2021
Results reported at Wed Sep 29 11:29:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin919 349.557 19.256 477532801 477792001 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 :                                   843.48 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            857 sec.

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

