/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 8 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 = 7474
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2318.2+1915_daily_bin54
RA = 349.557, Dec = 19.256
tmin = 253324801, tmax = 253584001
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='742352', job_status='RUN', time_executed='2021-09-29 11:01:21.598636', time_epoch_executed='1632938481.6' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/742352

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/742352/ft1_4FGL_J2318.2+1915_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/742352/ft2_4FGL_J2318.2+1915_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/742352/ft1_4FGL_J2318.2+1915_daily_bin54.fits outfile=/scratch/kocevski/742352/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin54.fits ra=349.557 dec=19.256 rad=12.0 tmin=253324801.0 tmax=253584001.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 1.43
user 1.24
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/742352/ft1_filtered_4FGL_J2318.2+1915_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/742352/ft2_4FGL_J2318.2+1915_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/742352/ltcube_253324801_253584001_4FGL_J2318.2+1915_daily_bin54.fits outfile=/scratch/kocevski/742352/expmap_253324801_253584001_4FGL_J2318.2+1915_daily_bin54.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/742352/ltcube_253324801_253584001_4FGL_J2318.2+1915_daily_bin54.fits
.....................!
real 190.82
user 185.45
sys 4.90

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/742352/ft1_filtered_4FGL_J2318.2+1915_daily_bin54.fits scfile=/scratch/kocevski/742352/ft2_4FGL_J2318.2+1915_daily_bin54.fits outfile=/scratch/kocevski/742352/cmap_253324801_253584001_4FGL_J2318.2+1915_daily_bin54.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=349.557 yref=19.256 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/742352/ft1_filtered_4FGL_J2318.2+1915_daily_bin54.fits scfile=/scratch/kocevski/742352/ft2_4FGL_J2318.2+1915_daily_bin54.fits outfile=/scratch/kocevski/742352/cmap_HighResolution_253324801_253584001_4FGL_J2318.2+1915_daily_bin54.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10168E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5033       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12848E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24091E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10858E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0595       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13158E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10547E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.7477       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.318       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.0441       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1944       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22520E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16983       1.0000         .10000E-03   10000.    
    15 'norm      '    .11709E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.893       1.0000         .10000E-03   10000.    
    17 'norm      '    .11911E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.8154       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .83101       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0519       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12015.77     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     1769 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6288       -.10310E-06** at limit **
   2  norm          1.5032        1.1845       -.50551E-07    .41106E-04
   3  Prefactor     .10493E-03    30.467       -.56314E-06** at limit **
   4  Prefactor     .10000E-03    3.7434        .42938E-06** at limit **
   5  Prefactor     .10000E-03    5.0620       -.13022E-07** at limit **
   6  Prefactor     2.0595        .20178       -.60401E-08    .17820E-02
   7  Prefactor     .10000E-03    3.3931        .17387E-06** at limit **
   8  Prefactor     .10000E-03    1.7258        .11692E-06** at limit **
   9  Prefactor     7.7232        10.284       -.10203E-06    .12365E-02
  10  Prefactor     21.261        14.482       -.17617E-05   -.11906E-01
  11  Prefactor     9.0504        1.4198        .62153E-07    .29214E-02
  12  Prefactor     1.2205        5.9386        .88966E-06   -.51504E-03
  13  Prefactor     .10000E-03    2.9211        .23423E-06** at limit **
  14  Prefactor     .18819E-03    6570.6       -.20220E-03** at limit **
  15  norm          .10000E-03    3.9493       -.64269E-06** at limit **
  16  Prefactor     10.939        5.4816       -.21128E-06   -.10976E-03
  17  norm          .10627E-03    30.475        .76252E-06** at limit **
  18  Prefactor     8.8215        1.3551        .16882E-07    .22895E-02
  19  Normalizat    .83076        .19754       -.36403E-07    .26176E-03
  20  Prefactor     1.0521        .11378        .61051E-06    .45554E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.50317
  Prefactor  = 0.000104931
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.0595
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.7232
  Prefactor  = 21.2605
  Prefactor  = 9.05035
  Prefactor  = 1.2205
  Prefactor  = 0.0001
  Prefactor  = 0.000188189
  norm       = 0.0001
  Prefactor  = 10.9387
  norm       = 0.000106265
  Prefactor  = 8.82151
  Normalizat = 0.830763
  Prefactor  = 1.05212
 **********
 **   18 **HESSE 
 **********

 FCN=   12015.77     FROM HESSE     STATUS=OK           345 CALLS     2114 TOTAL
                     EDM=   .49E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .81581        .36588E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5032        1.1779        .87285E-02   -1.5463    
   3  Prefactor     .10493E-03    39.235        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.7529        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.0622        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0595        .20200        .33277E-02   -1.5421    
   7  Prefactor     .10000E-03    3.3817        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.7167        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.7232        10.328        .36016E-02   -1.5152    
  10  Prefactor     21.261        19.872        .21688E-02   -1.4785    
  11  Prefactor     9.0504        13.075        .33318E-02   -1.5106    
  12  Prefactor     1.2205        6.9082        .10406E-01   -1.5487    
  13  Prefactor     .10000E-03    2.9181        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .18819E-03    6.7535        .14264       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.9431        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.939        5.5476        .30348E-02   -1.5046    
  17  norm          .10627E-03    6.7795        .90712E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.8215        5.0489        .33750E-02   -1.5114    
  19  Normalizat    .83076        .17529        .82990E-01   -.98938    
  20  Prefactor     1.0521        .99151E-01    .39798E-01   -.91012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.87737e-06
Minuit parameter uncertainties:
  1  2.45548e-08
  2  1.17793
  3  0.0278377
  4  3.3777e-06
  5  3.83599e-06
  6  0.202003
  7  5.47724e-06
  8  2.7622e-06
  9  10.3307
  10  19.8786
  11  13.0788
  12  5.80816
  13  9.46979e-06
  14  0.0488148
  15  6.26501e-06
  16  5.54788
  17  0.0130358
  18  5.04919
  19  0.175413
  20  0.0991678
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.220e+00  5.808e+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.052e+00  9.917e-02  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.308e-01  1.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 349.557 19.256
Photon Flux Upper Limit: 9.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/742352/likelihoodResults_253324801_253584001_4FGL_J2318.2+1915_daily_bin54.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) = 12015.1917215
delta logL = 0.583053877417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12015.1696342
delta logL = 0.605141146476

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14994E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.7303       1.0000          .0000       10.000    
     3 'Normalizat'    .77756       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0738       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=   12015.17     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      349 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14770E-01    .16271        .28580E-02    .15982E-01
   2  Index         6.7396        2.6066        .21553        .17818E-03
   3  Normalizat    .77763        .28661E-01    .85492E-01    .91799E-04
   4  Prefactor     1.0739        .17173E-01    .38678E-01    .11843E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0147702
  Index      = 6.73959
  Normalizat = 0.777629
  Prefactor  = 1.07388
 **********
 **   18 **HESSE 
 **********

 FCN=   12015.17     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      382 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14770E-01    .70067        .13305E-03   -1.5684    
   2  Index         6.7396        8.3300        .97251E-02    .35535    
   3  Normalizat    .77763        .12629        .37862E-03   -1.0090    
   4  Prefactor     1.0739        .74647E-01    .19506E-03   -.90306    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.98595e-08
Minuit parameter uncertainties:
  1  0.202773
  2  8.19115
  3  0.126341
  4  0.0746539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/742352': 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) = 12015.1696323
delta logL = 0.605143029521

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.477e-02  2.028e-01  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  6.740e+00  8.191e+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.074e+00  7.465e-02  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:  7.776e-01  1.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.39
Ra Dec: 349.557 19.256
Photon Index (Free Index): 6.74 +/- 8.19
Photon Flux (Free Index): 4.80e-08 +/- 4.64e-08
Energy Flux (Free Index): 5.79e-06 +/- 6.50e-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/742352/cmap_HighResolution_253324801_253584001_4FGL_J2318.2+1915_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.52e-03', comment='SUCCESS', energy_flux2='5.79e-06', dlogl='6.05e-01', photon_flux2='4.80e-08', job_status='DONE', time_completed='2021-09-29 11:15:20.864228', photon_index_error2='8.19', photon_index2='6.74', ts='0.06', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='9.57e-08', energy_flux_error2='6.50e-06', EG='0.83', time_epoch_completed='1632939320.86', return_code='0', job_id='742352', GAL2='1.07', EG2='0.78', return_code2='102', photon_flux_error2='4.64e-08', ts2='1.39', photon_index='2.67' WHERE bin_id='54' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:15:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 742352: <4FGL_J2318.2+1915_daily_bin54> in cluster <slac> Done

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

Your job looked like:

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

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

