/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 207 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 = 7393
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2318.2+1915_daily_bin231
RA = 349.557, Dec = 19.256
tmin = 299203201, tmax = 299462401
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='743622', job_status='RUN', time_executed='2021-09-29 11:08:58.422838', time_epoch_executed='1632938938.42' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='231'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/743622

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/743622/ft1_4FGL_J2318.2+1915_daily_bin231.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/743622/ft2_4FGL_J2318.2+1915_daily_bin231.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/743622/ft1_4FGL_J2318.2+1915_daily_bin231.fits outfile=/scratch/kocevski/743622/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin231.fits ra=349.557 dec=19.256 rad=12.0 tmin=299203201.0 tmax=299462401.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.41
user 3.20
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/743622/ft1_filtered_4FGL_J2318.2+1915_daily_bin231.fits evtable="EVENTS" scfile=/scratch/kocevski/743622/ft2_4FGL_J2318.2+1915_daily_bin231.fits sctable="SC_DATA" expcube=/scratch/kocevski/743622/ltcube_299203201_299462401_4FGL_J2318.2+1915_daily_bin231.fits outfile=/scratch/kocevski/743622/expmap_299203201_299462401_4FGL_J2318.2+1915_daily_bin231.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/743622/ltcube_299203201_299462401_4FGL_J2318.2+1915_daily_bin231.fits
.....................!
real 190.44
user 184.50
sys 5.63

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/743622/ft1_filtered_4FGL_J2318.2+1915_daily_bin231.fits scfile=/scratch/kocevski/743622/ft2_4FGL_J2318.2+1915_daily_bin231.fits outfile=/scratch/kocevski/743622/cmap_299203201_299462401_4FGL_J2318.2+1915_daily_bin231.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/743622/ft1_filtered_4FGL_J2318.2+1915_daily_bin231.fits scfile=/scratch/kocevski/743622/ft2_4FGL_J2318.2+1915_daily_bin231.fits outfile=/scratch/kocevski/743622/cmap_HighResolution_299203201_299462401_4FGL_J2318.2+1915_daily_bin231.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=349.557 yref=19.256 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4085       1.0000         .10000E-03   10000.    
     2 'norm      '    3.6218       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4953       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8929       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.663       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2135       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5748       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.058       1.0000         .10000E-03   10000.    
    15 'norm      '    12.019       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4855       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .79239       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=   9268.266     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     1989 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4090        4.5630        .13812E-06   -.40961E-04
   2  norm          3.6219        1.8266       -.13283E-06   -.36998E-04
   3  Prefactor     .10000E-03    9.3975       -.31376E-06** at limit **
   4  Prefactor     2.4940        8.2772        .65037E-06    .66752E-05
   5  Prefactor     .10000E-03    8.6543        .33179E-06** at limit **
   6  Prefactor     3.8929        .33339       -.15238E-07   -.10832E-02
   7  Prefactor     .10000E-03    3.4723       -.10270E-08** at limit **
   8  Prefactor     .10000E-03    6.6513        .48980E-06** at limit **
   9  Prefactor     .10000E-03    5.4205       -.68427E-06** at limit **
  10  Prefactor     13.663        15.029       -.31753E-07   -.11380E-04
  11  Prefactor     .10000E-03    13.243       -.13962E-06** at limit **
  12  Prefactor     3.2171        7.7450        .55743E-05   -.87612E-04
  13  Prefactor     5.5644        13.097        .29555E-05    .70896E-04
  14  Prefactor     14.046        21.381        .15355E-05    .63333E-04
  15  norm          12.024        9.1348       -.73973E-06   -.13673E-03
  16  Prefactor     .10000E-03    2.4148        .65944E-07** at limit **
  17  norm          .10000E-03    4.4286        .28948E-06** at limit **
  18  Prefactor     .10000E-03    2.1343       -.32918E-08** at limit **
  19  Normalizat    1.4854        .22779       -.91604E-06   -.30667E-05
  20  Prefactor     .79244        .12116       -.49939E-06   -.90003E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.40903
  norm       = 3.62186
  Prefactor  = 0.0001
  Prefactor  = 2.49403
  Prefactor  = 0.0001
  Prefactor  = 3.89288
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6634
  Prefactor  = 0.0001
  Prefactor  = 3.21708
  Prefactor  = 5.56442
  Prefactor  = 14.0464
  norm       = 12.0239
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.48542
  Prefactor  = 0.792441
 **********
 **   18 **HESSE 
 **********

 FCN=   9268.266     FROM HESSE     STATUS=OK           293 CALLS     2282 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4090        4.5973        .13825E-03   -1.5128    
   2  norm          3.6219        1.8263        .44452E-03   -1.5327    
   3  Prefactor     .10000E-03    9.3989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4940        8.2486        .25874E-03   -1.5392    
   5  Prefactor     .10000E-03    8.6639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.8929        .33434        .15495E-04   -1.5313    
   7  Prefactor     .10000E-03    3.4775        .17519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.7030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.4290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.663        15.034        .10836E-03   -1.4969    
  11  Prefactor     .10000E-03    13.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2171        7.7677        .11300E-02   -1.5349    
  13  Prefactor     5.5644        13.098        .17015E-03   -1.5236    
  14  Prefactor     14.046        21.402        .10683E-03   -1.4958    
  15  norm          12.024        9.1386        .11555E-03   -1.5014    
  16  Prefactor     .10000E-03    2.4226        .14605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.4302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.1378        .13734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4854        .27025        .33880E-03   -.78189    
  20  Prefactor     .79244        .14309        .24667E-03   -1.0001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.79121e-11
Minuit parameter uncertainties:
  1  4.59748
  2  1.8263
  3  3.44474e-06
  4  8.25238
  5  9.96701e-06
  6  0.334339
  7  2.67499e-06
  8  1.57075e-06
  9  8.7988e-06
  10  15.0377
  11  1.14112e-05
  12  7.77012
  13  13.1051
  14  21.4139
  15  9.13968
  16  4.00581e-06
  17  1.59738e-06
  18  3.40019e-07
  19  0.270516
  20  0.143156
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  3.217e+00  7.770e+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:  7.924e-01  1.432e-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.485e+00  2.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 349.557 19.256
Photon Flux Upper Limit: 1.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/743622/likelihoodResults_299203201_299462401_4FGL_J2318.2+1915_daily_bin231.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) = 9268.24905711
delta logL = 0.0168883706301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9268.23907178
delta logL = 0.026873696992

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0677       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3128       1.0000          .0000       10.000    
     3 'Normalizat'    1.4707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79853       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9268.239     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      278 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0637        388.10        .13153E-02   -.45247E-03
   2  Index         3.3147        8.2551        .70792E-02   -.49244E-04
   3  Normalizat    1.4707        .31196        .34014E-03   -.80884E-04
   4  Prefactor     .79854        .18552        .24582E-03   -.43011E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.06374
  Index      = 3.31468
  Normalizat = 1.47072
  Prefactor  = 0.79854
 **********
 **   18 **HESSE 
 **********

 FCN=   9268.239     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0637        8.3842        .52612E-04   -1.5421    
   2  Index         3.3147        2.9546        .28317E-03   -.34380    
   3  Normalizat    1.4707        .26703        .13606E-04   -.78604    
   4  Prefactor     .79854        .14500        .98327E-05   -.99782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85498e-10
Minuit parameter uncertainties:
  1  8.32116
  2  3.1941
  3  0.267281
  4  0.145067
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/743622': 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): 0
logL (Free Index) = 9268.23907159
delta logL = 0.0268738876384

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  2.064e+00  8.321e+00  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  3.315e+00  3.194e+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:  7.985e-01  1.451e-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.471e+00  2.673e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.23
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/743622/cmap_HighResolution_299203201_299462401_4FGL_J2318.2+1915_daily_bin231.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', job_status='DONE', photon_flux_upper_limit='1.50e-07', time_completed='2021-09-29 11:21:03.236668', job_id='743622', GAL2='0.80', fit_tolerance='1e-08', EG2='1.47', EG='1.49', time_epoch_completed='1632939663.24', return_code2='0', ts='0.23', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.69e-02', ts2='0.30', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='231' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:21:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 743622: <4FGL_J2318.2+1915_daily_bin231> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin231 349.557 19.256 299203201 299462401 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 :                                   722.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            941 sec.

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

