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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin650
RA = 349.557, Dec = 19.256
tmin = 407808001, tmax = 408067201
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='745293', job_status='RUN', time_executed='2021-09-29 11:14:16.839691', time_epoch_executed='1632939256.84' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/745293

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/745293/ft1_4FGL_J2318.2+1915_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/745293/ft2_4FGL_J2318.2+1915_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/745293/ft1_4FGL_J2318.2+1915_daily_bin650.fits outfile=/scratch/kocevski/745293/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin650.fits ra=349.557 dec=19.256 rad=12.0 tmin=407808001.0 tmax=408067201.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 4.11
user 3.88
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/745293/ft2_4FGL_J2318.2+1915_daily_bin650.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/745293/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin650.fits evtable="EVENTS" outfile="/scratch/kocevski/745293/ft1_filtered_4FGL_J2318.2+1915_daily_bin650.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/745293/ft1_filtered_4FGL_J2318.2+1915_daily_bin650.fits" evtable="EVENTS" scfile=/scratch/kocevski/745293/ft2_4FGL_J2318.2+1915_daily_bin650.fits sctable="SC_DATA" outfile=/scratch/kocevski/745293/ltcube_407808001_408067201_4FGL_J2318.2+1915_daily_bin650.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/745293/ft2_4FGL_J2318.2+1915_daily_bin650.fits
.....................!
real 11.99
user 11.66
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/745293/ft1_filtered_4FGL_J2318.2+1915_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/745293/ft2_4FGL_J2318.2+1915_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/745293/ltcube_407808001_408067201_4FGL_J2318.2+1915_daily_bin650.fits outfile=/scratch/kocevski/745293/expmap_407808001_408067201_4FGL_J2318.2+1915_daily_bin650.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/745293/ltcube_407808001_408067201_4FGL_J2318.2+1915_daily_bin650.fits
.....................!
real 190.47
user 185.72
sys 4.38

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/745293/ft1_filtered_4FGL_J2318.2+1915_daily_bin650.fits scfile=/scratch/kocevski/745293/ft2_4FGL_J2318.2+1915_daily_bin650.fits outfile=/scratch/kocevski/745293/cmap_407808001_408067201_4FGL_J2318.2+1915_daily_bin650.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/745293/ft1_filtered_4FGL_J2318.2+1915_daily_bin650.fits scfile=/scratch/kocevski/745293/ft2_4FGL_J2318.2+1915_daily_bin650.fits outfile=/scratch/kocevski/745293/cmap_HighResolution_407808001_408067201_4FGL_J2318.2+1915_daily_bin650.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11746E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .13657E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    49.798       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.280       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.4815       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7182       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.3349       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.989       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11123E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    28.281       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2682       1.0000         .10000E-03   10000.    
    17 'norm      '    .10196E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3191       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0359       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88902       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=   4653.378     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2128 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.8612        .43594E-07** at limit **
   2  norm          .15890E-03    1.5822        .12805E-06** at limit **
   3  Prefactor     49.892        43.724        .13160E-05    .41720E-04
   4  Prefactor     27.307        17.231       -.86546E-06   -.32066E-03
   5  Prefactor     5.4854        18.121        .28478E-05    .65411E-04
   6  Prefactor     1.7180        .31375       -.72900E-08   -.26633E-03
   7  Prefactor     8.3345        10.772        .61586E-07   -.27564E-04
   8  Prefactor     .10000E-03    5.4838       -.51766E-07** at limit **
   9  Prefactor     13.965        22.106       -.24477E-05   -.12994E-03
  10  Prefactor     .10000E-03    6.3297        .15792E-07** at limit **
  11  Prefactor     .10000E-03    23.193        .95962E-07** at limit **
  12  Prefactor     .10000E-03    1.7540        .16813E-07** at limit **
  13  Prefactor     .10000E-03    17.403        .26752E-06** at limit **
  14  Prefactor     .10000E-03    8.3466       -.27223E-08** at limit **
  15  norm          28.212        22.590       -.22416E-05   -.35027E-04
  16  Prefactor     1.2634        50.497        .10732E-04   -.72008E-04
  17  norm          .10000E-03    9.8072       -.70404E-08** at limit **
  18  Prefactor     1.3179        9.2454        .34798E-05   -.70995E-04
  19  Normalizat    1.0362        .28697       -.10439E-05   -.96448E-04
  20  Prefactor     .88884        .15719        .10808E-06   -.14033E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 0.000158895
  Prefactor  = 49.8919
  Prefactor  = 27.3071
  Prefactor  = 5.48544
  Prefactor  = 1.71801
  Prefactor  = 8.3345
  Prefactor  = 0.0001
  Prefactor  = 13.9647
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.2122
  Prefactor  = 1.2634
  norm       = 0.0001
  Prefactor  = 1.31787
  Normalizat = 1.03625
  Prefactor  = 0.888836
 **********
 **   18 **HESSE 
 **********

 FCN=   4653.378     FROM HESSE     STATUS=OK           297 CALLS     2425 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    18.649        .21927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .15890E-03    3.6865        .28958E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     49.892        43.851        .56828E-04   -1.4294    
   4  Prefactor     27.307        17.776        .76702E-04   -1.4662    
   5  Prefactor     5.4854        18.235        .17162E-03   -1.5240    
   6  Prefactor     1.7180        .31446        .15140E-04   -1.5446    
   7  Prefactor     8.3345        10.778        .13886E-03   -1.5130    
   8  Prefactor     .10000E-03    5.5069        .15597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.965        22.370        .10709E-03   -1.4960    
  10  Prefactor     .10000E-03    6.3320        .16762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    23.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.7559        .88230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.3542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          28.212        22.716        .75334E-04   -1.4645    
  16  Prefactor     1.2634        52.651        .39532E-03   -1.5483    
  17  norm          .10000E-03    9.8167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.3179        8.9036        .38324E-03   -1.5478    
  19  Normalizat    1.0362        .33482        .34262E-03   -.91826    
  20  Prefactor     .88884        .18648        .20977E-03   -.96532    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6824e-10
Minuit parameter uncertainties:
  1  0.000218729
  2  0.0294714
  3  43.8798
  4  17.7797
  5  18.2539
  6  0.314458
  7  10.7802
  8  1.12606e-05
  9  22.3836
  10  1.26945e-06
  11  8.052e-06
  12  5.85904e-07
  13  1.80094e-05
  14  9.76988e-07
  15  22.7232
  16  16.3266
  17  3.09279e-06
  18  6.85214
  19  0.3355
  20  0.186614
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  5.859e-07  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.888e-01  1.866e-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.036e+00  3.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/745293/likelihoodResults_407808001_408067201_4FGL_J2318.2+1915_daily_bin650.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) = 4653.3803274
delta logL = -0.00255222739725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4653.37777472
delta logL = 4.50920197181e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6478       1.0000          .0000       10.000    
     3 'Normalizat'    1.0363       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88883       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=   4653.378     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      253 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.212        .89704E-02** at limit **
   2  Index         1.9665        8.3534        .50000       -.57753E-07
   3  Normalizat    1.0362        .20627E-01    .34262E-03   -.50961E-03
   4  Prefactor     .88883        .11866E-01    .20977E-03   -.83564E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.96653
  Normalizat = 1.03625
  Prefactor  = 0.888835
 **********
 **   18 **HESSE 
 **********

 FCN=   4653.378     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    161.32        .10442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9665        5.8452        .50000       -.65190    
   3  Normalizat    1.0362        .61171E-01    .68524E-04   -.91826    
   4  Prefactor     .88883        .35192E-01    .41954E-04   -.96532    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.97464e-10
Minuit parameter uncertainties:
  1  5.94108e-05
  2  726.56
  3  0.0611754
  4  0.0351932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/745293': 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) = 4653.37776704
delta logL = 8.13280257717e-06

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  5.941e-05  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  1.967e+00  7.266e+02  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:  8.888e-01  3.519e-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:  1.036e+00  6.118e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 349.557 19.256

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/745293/cmap_HighResolution_407808001_408067201_4FGL_J2318.2+1915_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.61e-03', job_status='DONE', photon_flux_upper_limit='7.14e-08', time_completed='2021-09-29 11:23:06.359007', job_id='745293', GAL2='0.89', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1632939786.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='8.13e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='650' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:23:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 745293: <4FGL_J2318.2+1915_daily_bin650> in cluster <slac> Done

Job <4FGL_J2318.2+1915_daily_bin650> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 11:10:38 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:10:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 11:10:40 2021
Terminated at Wed Sep 29 11:23:07 2021
Results reported at Wed Sep 29 11:23:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin650 349.557 19.256 407808001 408067201 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 :                                   528.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             258.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            749 sec.

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

