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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin323
RA = 349.557, Dec = 19.256
tmin = 323049601, tmax = 323308801
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='744997', job_status='RUN', time_executed='2021-09-29 11:13:44.514885', time_epoch_executed='1632939224.51' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/744997

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/744997/ft1_4FGL_J2318.2+1915_daily_bin323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/744997/ft2_4FGL_J2318.2+1915_daily_bin323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/744997/ft1_4FGL_J2318.2+1915_daily_bin323.fits outfile=/scratch/kocevski/744997/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin323.fits ra=349.557 dec=19.256 rad=12.0 tmin=323049601.0 tmax=323308801.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.33
user 3.10
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/744997/ft2_4FGL_J2318.2+1915_daily_bin323.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/744997/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin323.fits evtable="EVENTS" outfile="/scratch/kocevski/744997/ft1_filtered_4FGL_J2318.2+1915_daily_bin323.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/744997/ft1_filtered_4FGL_J2318.2+1915_daily_bin323.fits" evtable="EVENTS" scfile=/scratch/kocevski/744997/ft2_4FGL_J2318.2+1915_daily_bin323.fits sctable="SC_DATA" outfile=/scratch/kocevski/744997/ltcube_323049601_323308801_4FGL_J2318.2+1915_daily_bin323.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/744997/ft2_4FGL_J2318.2+1915_daily_bin323.fits
.....................!
real 11.84
user 11.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/744997/ft1_filtered_4FGL_J2318.2+1915_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/744997/ft2_4FGL_J2318.2+1915_daily_bin323.fits sctable="SC_DATA" expcube=/scratch/kocevski/744997/ltcube_323049601_323308801_4FGL_J2318.2+1915_daily_bin323.fits outfile=/scratch/kocevski/744997/expmap_323049601_323308801_4FGL_J2318.2+1915_daily_bin323.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/744997/ltcube_323049601_323308801_4FGL_J2318.2+1915_daily_bin323.fits
.....................!
real 190.51
user 185.47
sys 4.72

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/744997/ft1_filtered_4FGL_J2318.2+1915_daily_bin323.fits scfile=/scratch/kocevski/744997/ft2_4FGL_J2318.2+1915_daily_bin323.fits outfile=/scratch/kocevski/744997/cmap_323049601_323308801_4FGL_J2318.2+1915_daily_bin323.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.53
user 0.38
sys 0.15

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/744997/ft1_filtered_4FGL_J2318.2+1915_daily_bin323.fits', '/scratch/kocevski/744997/ft2_4FGL_J2318.2+1915_daily_bin323.fits', expMap='/scratch/kocevski/744997/expmap_323049601_323308801_4FGL_J2318.2+1915_daily_bin323.fits', expCube='/scratch/kocevski/744997/ltcube_323049601_323308801_4FGL_J2318.2+1915_daily_bin323.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/744997/Model_4FGL_J2318.2+1915_daily_bin323.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/744997/ft1_filtered_4FGL_J2318.2+1915_daily_bin323.fits
Spacecraft file(s): /scratch/kocevski/744997/ft2_4FGL_J2318.2+1915_daily_bin323.fits
Exposure map: /scratch/kocevski/744997/expmap_323049601_323308801_4FGL_J2318.2+1915_daily_bin323.fits
Exposure cube: /scratch/kocevski/744997/ltcube_323049601_323308801_4FGL_J2318.2+1915_daily_bin323.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/744997/Model_4FGL_J2318.2+1915_daily_bin323.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 9302.41466442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .76406       1.0000         .10000E-03   10000.    
     2 'norm      '    .52465       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3556       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.7633       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4387       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11539E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10489E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14148       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11056E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.1816       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    28.884       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.883       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .97114       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0750       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9301.758     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     1821 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .76908        2.9762        .12305E-01    .20768E-02
   2  norm          .51629        3.8007        .11371E-01    .25262E-02
   3  Prefactor     .10000E-03    29.570        .90712E-02** at limit **
   4  Prefactor     2.4023        49.359        .66762E-02    .33981E-03
   5  Prefactor     7.7514        16.290        .35979E-02    .15787E-02
   6  Prefactor     1.4388        .21985        .37198E-02   -.10264E-03
   7  Prefactor     .10000E-03    3.1041        .90712E-02** at limit **
   8  Prefactor     .10000E-03    2.5372        .90712E-02** at limit **
   9  Prefactor     .10000E-03    10.508        .90712E-02** at limit **
  10  Prefactor     .10000E-03    10.024        .90712E-02** at limit **
  11  Prefactor     .10000E-03    12.512        .12834    ** at limit **
  12  Prefactor     .10000E-03    7.6388        .90712E-02** at limit **
  13  Prefactor     .10000E-03    14.720        .90712E-02** at limit **
  14  Prefactor     .10000E-03    14.330        .90712E-02** at limit **
  15  norm          7.1868        8.0678        .37420E-02    .24511E-03
  16  Prefactor     .10000E-03    3.5214        .90712E-02** at limit **
  17  norm          28.886        15.053        .18637E-02    .90185E-04
  18  Prefactor     16.881        8.5895        .24369E-02    .14327E-03
  19  Normalizat    .97078        .21092        .82576E-01    .19994E-04
  20  Prefactor     1.0752        .11776        .38623E-01   -.38374E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.769076
  norm       = 0.516286
  Prefactor  = 0.0001
  Prefactor  = 2.40232
  Prefactor  = 7.75141
  Prefactor  = 1.43876
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.18678
  Prefactor  = 0.0001
  norm       = 28.8863
  Prefactor  = 16.8811
  Normalizat = 0.970783
  Prefactor  = 1.07522
 **********
 **   18 **HESSE 
 **********

 FCN=   9301.758     FROM HESSE     STATUS=OK           295 CALLS     2116 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .76908        2.9700        .30777E-03   -1.5533    
   2  norm          .51629        2.6205        .23419E-03   -1.5564    
   3  Prefactor     .10000E-03    29.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4023        33.244        .26705E-03   -1.5398    
   5  Prefactor     7.7514        16.302        .14392E-03   -1.5151    
   6  Prefactor     1.4388        .21990        .16454E-04   -1.5468    
   7  Prefactor     .10000E-03    3.1093        .16593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.5482        .15000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.106        .11507       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.8934        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.005        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.1868        8.0355        .14968E-03   -1.5172    
  16  Prefactor     .10000E-03    3.5419        .17640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          28.886        15.055        .74546E-04   -1.4633    
  18  Prefactor     16.881        8.5921        .97476E-04   -1.4886    
  19  Normalizat    .97078        .24232        .36555E-03   -.94016    
  20  Prefactor     1.0752        .13681        .20115E-03   -.90263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.86246e-09
Minuit parameter uncertainties:
  1  2.97053
  2  2.32627
  3  9.64532e-06
  4  17.8848
  5  16.3113
  6  0.219902
  7  1.51224e-06
  8  3.75023e-06
  9  1.6086e-05
  10  2.61731e-06
  11  0.00022326
  12  7.57523e-06
  13  7.48442e-05
  14  9.49513e-05
  15  8.03673
  16  2.07012e-08
  17  15.0565
  18  8.59277
  19  0.242596
  20  0.136858
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  7.575e-06  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.075e+00  1.369e-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:  9.708e-01  2.426e-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.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/744997/likelihoodResults_323049601_323308801_4FGL_J2318.2+1915_daily_bin323.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) = 9301.75891901
delta logL = -0.000604762728472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9301.75831616
delta logL = -1.91681465367e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14270E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6215       1.0000          .0000       10.000    
     3 'Normalizat'    .97079       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0752       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9301.758     FROM MIGRAD    STATUS=FAILED       119 CALLS      276 TOTAL
                     EDM=   .16E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2195.3        .36285E-02** at limit **
   2  Index         2.2778        5.9760        .50000        .51412E-04
   3  Normalizat    .97078        .45677E-01    .36555E-03   -.67798E-05
   4  Prefactor     1.0752        .26521E-01    .20115E-03   -.94952E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9301.758     FROM SIMPLEX   STATUS=UNCHANGED    216 CALLS      492 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2195.3        .11662E-02** at limit **
   2  Index         2.2778        5.9760        .17121E-07    .51412E-04
   3  Normalizat    .97078        .45677E-01    .39564E-09   -.67798E-05
   4  Prefactor     1.0752        .26521E-01    .56107E-10   -.94952E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9301.747     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      573 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .73558        58.316        .14514E-02    .65963E-03
   2  Index         1.7689        1.8614        .50000       -.34772E-04
   3  Normalizat    .97242        .24036        .14622E-04   -.31100E-05
   4  Prefactor     1.0730        .14374        .80459E-05   -.20912E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.735582
  Index      = 1.76893
  Normalizat = 0.972424
  Prefactor  = 1.07301
 **********
 **   18 **HESSE 
 **********

 FCN=   9301.747     FROM HESSE     STATUS=OK            29 CALLS      602 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .73558        8.3891        .29028E-03   -1.5536    
   2  Index         1.7689        1.5840        .18111E-01   -.70261    
   3  Normalizat    .97242        .23265        .29244E-05   -.93960    
   4  Prefactor     1.0730        .13555        .16092E-05   -.90334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61369e-09
Minuit parameter uncertainties:
  1  4.96879
  2  1.63343
  3  0.23289
  4  0.135593
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/744997': 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) = 9301.74662552
delta logL = 0.011688723298

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.073e+00  1.356e-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:  9.724e-01  2.329e-01  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/744997/cmap_HighResolution_323049601_323308801_4FGL_J2318.2+1915_daily_bin323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.71e-03', job_status='DONE', photon_flux_upper_limit='9.82e-08', time_completed='2021-09-29 11:25:51.369344', job_id='744997', GAL2='1.07', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632939951.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.17e-02', ts2='0.02', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='323' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:25:51 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin323 349.557 19.256 323049601 323308801 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 :                                   724.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            938 sec.

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

