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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin646
RA = 349.557, Dec = 19.256
tmin = 406771201, tmax = 407030401
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='745287', job_status='RUN', time_executed='2021-09-29 11:14:02.599725', time_epoch_executed='1632939242.6' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='646'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/745287

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/745287/ft1_4FGL_J2318.2+1915_daily_bin646.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/745287/ft2_4FGL_J2318.2+1915_daily_bin646.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/745287/ft1_4FGL_J2318.2+1915_daily_bin646.fits outfile=/scratch/kocevski/745287/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin646.fits ra=349.557 dec=19.256 rad=12.0 tmin=406771201.0 tmax=407030401.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.43
user 3.23
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/745287/ft2_4FGL_J2318.2+1915_daily_bin646.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/745287/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin646.fits evtable="EVENTS" outfile="/scratch/kocevski/745287/ft1_filtered_4FGL_J2318.2+1915_daily_bin646.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/745287/ft1_filtered_4FGL_J2318.2+1915_daily_bin646.fits" evtable="EVENTS" scfile=/scratch/kocevski/745287/ft2_4FGL_J2318.2+1915_daily_bin646.fits sctable="SC_DATA" outfile=/scratch/kocevski/745287/ltcube_406771201_407030401_4FGL_J2318.2+1915_daily_bin646.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/745287/ft2_4FGL_J2318.2+1915_daily_bin646.fits
.....................!
real 11.72
user 11.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/745287/ft1_filtered_4FGL_J2318.2+1915_daily_bin646.fits evtable="EVENTS" scfile=/scratch/kocevski/745287/ft2_4FGL_J2318.2+1915_daily_bin646.fits sctable="SC_DATA" expcube=/scratch/kocevski/745287/ltcube_406771201_407030401_4FGL_J2318.2+1915_daily_bin646.fits outfile=/scratch/kocevski/745287/expmap_406771201_407030401_4FGL_J2318.2+1915_daily_bin646.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/745287/ltcube_406771201_407030401_4FGL_J2318.2+1915_daily_bin646.fits
.....................!
real 190.02
user 185.14
sys 4.53

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/745287/ft1_filtered_4FGL_J2318.2+1915_daily_bin646.fits scfile=/scratch/kocevski/745287/ft2_4FGL_J2318.2+1915_daily_bin646.fits outfile=/scratch/kocevski/745287/cmap_406771201_407030401_4FGL_J2318.2+1915_daily_bin646.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/745287/ft1_filtered_4FGL_J2318.2+1915_daily_bin646.fits scfile=/scratch/kocevski/745287/ft2_4FGL_J2318.2+1915_daily_bin646.fits outfile=/scratch/kocevski/745287/cmap_HighResolution_406771201_407030401_4FGL_J2318.2+1915_daily_bin646.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10141E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.7896       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10864E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.437       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1222       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.6366       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.339       1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.698       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12248E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4193       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13053E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.5455       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .79453       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1320       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96712       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=   8128.162     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     2363 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.8169        .99697E-08** at limit **
   2  norm          2.7899        1.9447        .67018E-07   -.46076E-06
   3  Prefactor     .10000E-03    13.536        .72047E-07** at limit **
   4  Prefactor     13.440        11.413       -.78419E-06   -.25221E-03
   5  Prefactor     .10000E-03    8.3440       -.50429E-07** at limit **
   6  Prefactor     1.1223        .21085        .56966E-08   -.36147E-03
   7  Prefactor     8.6377        12.341       -.19827E-06   -.68498E-04
   8  Prefactor     .10000E-03    11.239        .10076E-05** at limit **
   9  Prefactor     .10000E-03    3.1689       -.38496E-08** at limit **
  10  Prefactor     23.338        26.363        .77890E-06    .64464E-04
  11  Prefactor     36.684        30.661       -.42559E-06   -.45140E-04
  12  Prefactor     .10000E-03    12.105       -.98198E-06** at limit **
  13  Prefactor     2.4263        9.3442       -.13478E-05   -.19235E-03
  14  Prefactor     .10000E-03    13.940        .45172E-07** at limit **
  15  norm          .10000E-03    5.4798       -.21770E-06** at limit **
  16  Prefactor     .10000E-03    1.9075       -.12392E-07** at limit **
  17  norm          7.5454        9.0563       -.21562E-07   -.91441E-05
  18  Prefactor     .79860        4.6607        .24615E-05   -.25878E-03
  19  Normalizat    1.1319        .21211       -.27191E-06   -.22514E-04
  20  Prefactor     .96702        .11941       -.30686E-07   -.43785E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.78994
  Prefactor  = 0.0001
  Prefactor  = 13.44
  Prefactor  = 0.0001
  Prefactor  = 1.12232
  Prefactor  = 8.63769
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.3383
  Prefactor  = 36.6836
  Prefactor  = 0.0001
  Prefactor  = 2.42629
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.54544
  Prefactor  = 0.798602
  Normalizat = 1.13187
  Prefactor  = 0.967017
 **********
 **   18 **HESSE 
 **********

 FCN=   8128.162     FROM HESSE     STATUS=OK           305 CALLS     2668 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.4902        .23376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.7899        1.9456        .10028E-03   -1.5374    
   3  Prefactor     .10000E-03    13.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.440        11.653        .10927E-03   -1.4975    
   5  Prefactor     .10000E-03    8.3554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1223        .21065        .17006E-04   -1.5496    
   7  Prefactor     8.6377        12.371        .13640E-03   -1.5120    
   8  Prefactor     .10000E-03    11.807        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1712        .15674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.338        26.478        .82915E-04   -1.4741    
  11  Prefactor     36.684        30.788        .66157E-04   -1.4496    
  12  Prefactor     .10000E-03    12.596        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.4263        10.023        .26315E-03   -1.5396    
  14  Prefactor     .10000E-03    16.981        .96675E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.5217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.9130        .12158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.5454        9.0554        .14600E-03   -1.5159    
  18  Prefactor     .79860        5.1802        .39804E-03   -1.5529    
  19  Normalizat    1.1319        .24751        .33603E-03   -.88735    
  20  Prefactor     .96702        .14071        .20641E-03   -.93837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09147e-10
Minuit parameter uncertainties:
  1  1.24171e-05
  2  1.94565
  3  8.09526e-06
  4  11.655
  5  5.19122e-06
  6  0.210649
  7  12.3748
  8  7.48337e-05
  9  3.55344e-07
  10  26.4918
  11  30.8017
  12  8.33012e-05
  13  9.86535
  14  0.000528155
  15  2.04816e-05
  16  2.12035e-06
  17  9.057
  18  4.06815
  19  0.247769
  20  0.140761
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  9.670e-01  1.408e-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.132e+00  2.478e-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: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/745287/likelihoodResults_406771201_407030401_4FGL_J2318.2+1915_daily_bin646.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) = 8128.16259988
delta logL = -0.00037907081969

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8128.16222118
delta logL = -3.6705750972e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11535E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6237       1.0000          .0000       10.000    
     3 'Normalizat'    1.1320       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96699       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=   8128.162     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      252 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10498E-03    79.486        .36285E-02** at limit **
   2  Index         2.5164        8.6211        .50000        .20817E-04
   3  Normalizat    1.1319        .11992E-01    .33603E-03   -.21470E-03
   4  Prefactor     .96702        .69112E-02    .20641E-03   -.35834E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104979
  Index      = 2.51635
  Normalizat = 1.13187
  Prefactor  = 0.967016
 **********
 **   18 **HESSE 
 **********

 FCN=   8128.162     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10498E-03    358.36        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5164        5.2198        .50000       -.51983    
   3  Normalizat    1.1319        .25969E-01    .13441E-04   -.88735    
   4  Prefactor     .96702        .14966E-01    .41282E-04   -.93837    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.05268e-08
Minuit parameter uncertainties:
  1  0.0849938
  2  499.456
  3  0.0259696
  4  0.0149665
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/745287': 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) = 8128.16222007
delta logL = 7.39260030969e-07

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.050e-04  8.499e-02  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.516e+00  4.995e+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:  9.670e-01  1.497e-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.132e+00  2.597e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/745287/cmap_HighResolution_406771201_407030401_4FGL_J2318.2+1915_daily_bin646.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.02e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-29 11:25:29.542560', job_id='745287', GAL2='0.97', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1632939929.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='7.39e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='646' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:25:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 745287: <4FGL_J2318.2+1915_daily_bin646> in cluster <slac> Done

Job <4FGL_J2318.2+1915_daily_bin646> 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) <bullet0223>, 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:25:30 2021
Results reported at Wed Sep 29 11:25:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin646 349.557 19.256 406771201 407030401 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 :                                   686.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             246.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            892 sec.

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

