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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin1131
RA = 349.557, Dec = 19.256
tmin = 532483201, tmax = 532742401
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='748036', job_status='RUN', time_executed='2021-09-29 11:20:29.380166', time_epoch_executed='1632939629.38' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='1131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/748036

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/748036/ft1_4FGL_J2318.2+1915_daily_bin1131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/748036/ft2_4FGL_J2318.2+1915_daily_bin1131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/748036/ft1_4FGL_J2318.2+1915_daily_bin1131.fits outfile=/scratch/kocevski/748036/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin1131.fits ra=349.557 dec=19.256 rad=12.0 tmin=532483201.0 tmax=532742401.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.59
user 3.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/748036/ft1_filtered_4FGL_J2318.2+1915_daily_bin1131.fits" evtable="EVENTS" scfile=/scratch/kocevski/748036/ft2_4FGL_J2318.2+1915_daily_bin1131.fits sctable="SC_DATA" outfile=/scratch/kocevski/748036/ltcube_532483201_532742401_4FGL_J2318.2+1915_daily_bin1131.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/748036/ft2_4FGL_J2318.2+1915_daily_bin1131.fits
.....................!
real 12.10
user 11.75
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/748036/ft1_filtered_4FGL_J2318.2+1915_daily_bin1131.fits evtable="EVENTS" scfile=/scratch/kocevski/748036/ft2_4FGL_J2318.2+1915_daily_bin1131.fits sctable="SC_DATA" expcube=/scratch/kocevski/748036/ltcube_532483201_532742401_4FGL_J2318.2+1915_daily_bin1131.fits outfile=/scratch/kocevski/748036/expmap_532483201_532742401_4FGL_J2318.2+1915_daily_bin1131.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/748036/ltcube_532483201_532742401_4FGL_J2318.2+1915_daily_bin1131.fits
.....................!
real 191.23
user 185.74
sys 5.00

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/748036/ft1_filtered_4FGL_J2318.2+1915_daily_bin1131.fits scfile=/scratch/kocevski/748036/ft2_4FGL_J2318.2+1915_daily_bin1131.fits outfile=/scratch/kocevski/748036/cmap_532483201_532742401_4FGL_J2318.2+1915_daily_bin1131.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/748036/ft1_filtered_4FGL_J2318.2+1915_daily_bin1131.fits scfile=/scratch/kocevski/748036/ft2_4FGL_J2318.2+1915_daily_bin1131.fits outfile=/scratch/kocevski/748036/cmap_HighResolution_532483201_532742401_4FGL_J2318.2+1915_daily_bin1131.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/748036/ft1_filtered_4FGL_J2318.2+1915_daily_bin1131.fits evtable="EVENTS" scfile=/scratch/kocevski/748036/ft2_4FGL_J2318.2+1915_daily_bin1131.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/748036/Model_4FGL_J2318.2+1915_daily_bin1131.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/748036/ft1_filtered_4FGL_J2318.2+1915_daily_bin1131.fits.....................!
real 99.00
user 97.63
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5777       1.0000         .10000E-03   10000.    
     2 'norm      '    .47436       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.738       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8722       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9037       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5732       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.671       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.4082       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.6512       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.372       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .89855       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0801       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=   8807.030     FROM MIGRAD    STATUS=CONVERGED     74 CALLS     1677 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5778        3.4013       -.22910E-05   -.20599E-04
   2  norm          .47494        1.4699        .62605E-06   -.13405E-03
   3  Prefactor     .10000E-03    14.229        .25732E-04** at limit **
   4  Prefactor     17.736        1.0144       -.40488E-07    .79879E-05
   5  Prefactor     .10000E-03    30.760       -.12376E-04** at limit **
   6  Prefactor     2.8722        .28294       -.36878E-07   -.59494E-03
   7  Prefactor     .10000E-03    10.984       -.21733E-04** at limit **
   8  Prefactor     7.9033        1.0029        .23476E-07   -.24812E-05
   9  Prefactor     3.5728        1.0115       -.33215E-08    .28592E-05
  10  Prefactor     27.671        1.0011        .37702E-07   -.13262E-03
  11  Prefactor     7.4069        1.0153       -.22834E-06    .18697E-03
  12  Prefactor     .10000E-03    4.7460       -.18401E-05** at limit **
  13  Prefactor     .10000E-03    3.8826        .10202E-05** at limit **
  14  Prefactor     .10000E-03    7.0477        .71781E-05** at limit **
  15  norm          8.6504        1.0039        .37484E-07   -.96914E-05
  16  Prefactor     .10000E-03    2.7741       -.61008E-06** at limit **
  17  norm          10.372        1.0013        .13656E-07   -.83495E-05
  18  Prefactor     .10000E-03    1.7243       -.12023E-05** at limit **
  19  Normalizat    .89847        .23884        .47165E-05   -.32083E-04
  20  Prefactor     1.0802        .14136       -.14629E-05   -.56876E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.57781
  norm       = 0.474939
  Prefactor  = 0.0001
  Prefactor  = 17.7356
  Prefactor  = 0.0001
  Prefactor  = 2.87218
  Prefactor  = 0.0001
  Prefactor  = 7.90335
  Prefactor  = 3.57277
  Prefactor  = 27.6708
  Prefactor  = 7.40692
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.6504
  Prefactor  = 0.0001
  norm       = 10.3715
  Prefactor  = 0.0001
  Normalizat = 0.898474
  Prefactor  = 1.08015
 **********
 **   18 **HESSE 
 **********

 FCN=   8807.030     FROM HESSE     STATUS=OK           333 CALLS     2010 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5778        3.4093        .42527E-02   -1.5236    
   2  norm          .47494        1.5564        .11166E-01   -1.5570    
   3  Prefactor     .10000E-03    14.219        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.736        12.507        .23774E-02   -1.4865    
   5  Prefactor     .10000E-03    30.492        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.8722        .28482        .33721E-02   -1.5369    
   7  Prefactor     .10000E-03    10.843        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.9033        7.7895        .35656E-02   -1.5146    
   9  Prefactor     3.5728        11.891        .53448E-02   -1.5330    
  10  Prefactor     27.671        22.806        .19040E-02   -1.4655    
  11  Prefactor     7.4069        14.596        .36839E-02   -1.5164    
  12  Prefactor     .10000E-03    4.6693        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.8798        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.0338        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.6504        6.9600        .34071E-02   -1.5120    
  16  Prefactor     .10000E-03    2.7615        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.372        9.6960        .31103E-02   -1.5064    
  18  Prefactor     .10000E-03    1.7222        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .89847        .21329        .85016E-01   -.96514    
  20  Prefactor     1.0802        .12421        .38396E-01   -.90103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3336e-08
Minuit parameter uncertainties:
  1  3.40938
  2  1.55651
  3  2.15998e-05
  4  12.5091
  5  4.72421e-05
  6  0.284818
  7  3.50912e-05
  8  7.7905
  9  11.8984
  10  22.8133
  11  14.6034
  12  1.34844e-05
  13  4.72637e-06
  14  2.88344e-05
  15  6.96068
  16  3.56269e-07
  17  9.69751
  18  3.56169e-06
  19  0.213489
  20  0.124242
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  1.348e-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:  1.080e+00  1.242e-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:  8.985e-01  2.135e-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: 9.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/748036/likelihoodResults_532483201_532742401_4FGL_J2318.2+1915_daily_bin1131.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) = 8807.03084861
delta logL = -0.00100403466786

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8807.02984452
delta logL = 4.77084540762e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6481       1.0000          .0000       10.000    
     3 'Normalizat'    .89842       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0802       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=   8807.030     FROM MIGRAD    STATUS=CONVERGED    114 CALLS      268 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.490        .61535E-01** at limit **
   2  Index         1.5423        9.2086        .50000       -.51077E-06
   3  Normalizat    .89847        .89353E-02    .37644E-03   -.12326E-02
   4  Prefactor     1.0802        .53891E-02    .20751E-03   -.21874E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.54231
  Normalizat = 0.898471
  Prefactor  = 1.08015
 **********
 **   18 **HESSE 
 **********

 FCN=   8807.030     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      299 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    923.71        .36315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5423        5.8562        .50000       -.76362    
   3  Normalizat    .89847        .54309E-01    .75287E-04   -.96514    
   4  Prefactor     1.0802        .32786E-01    .41502E-04   -.90103    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.54915e-08
Minuit parameter uncertainties:
  1  0.000828876
  2  574.626
  3  0.0543122
  4  0.032787
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/748036': 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) = 8807.02983856
delta logL = 6.01060128247e-06

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  8.289e-04  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  1.542e+00  5.746e+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:  1.080e+00  3.279e-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.985e-01  5.431e-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/748036/cmap_HighResolution_532483201_532742401_4FGL_J2318.2+1915_daily_bin1131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.07e-03', job_status='DONE', photon_flux_upper_limit='9.00e-08', time_completed='2021-09-29 11:32:03.737819', job_id='748036', GAL2='1.08', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1632940323.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='6.01e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1131' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:32:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 748036: <4FGL_J2318.2+1915_daily_bin1131> in cluster <slac> Done

Job <4FGL_J2318.2+1915_daily_bin1131> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 11:20:16 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:20:18 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:20:18 2021
Terminated at Wed Sep 29 11:32:04 2021
Results reported at Wed Sep 29 11:32:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin1131 349.557 19.256 532483201 532742401 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 :                                   690.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            708 sec.

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

