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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin368
RA = 349.557, Dec = 19.256
tmin = 334713601, tmax = 334972801
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='743834', job_status='RUN', time_executed='2021-09-29 11:08:36.785911', time_epoch_executed='1632938916.79' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='368'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/743834

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/743834/ft1_4FGL_J2318.2+1915_daily_bin368.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/743834/ft2_4FGL_J2318.2+1915_daily_bin368.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/743834/ft1_4FGL_J2318.2+1915_daily_bin368.fits outfile=/scratch/kocevski/743834/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin368.fits ra=349.557 dec=19.256 rad=12.0 tmin=334713601.0 tmax=334972801.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.49
user 3.28
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/743834/ft1_filtered_4FGL_J2318.2+1915_daily_bin368.fits evtable="EVENTS" scfile=/scratch/kocevski/743834/ft2_4FGL_J2318.2+1915_daily_bin368.fits sctable="SC_DATA" expcube=/scratch/kocevski/743834/ltcube_334713601_334972801_4FGL_J2318.2+1915_daily_bin368.fits outfile=/scratch/kocevski/743834/expmap_334713601_334972801_4FGL_J2318.2+1915_daily_bin368.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/743834/ltcube_334713601_334972801_4FGL_J2318.2+1915_daily_bin368.fits
.....................!
real 190.58
user 185.22
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/743834/ft1_filtered_4FGL_J2318.2+1915_daily_bin368.fits scfile=/scratch/kocevski/743834/ft2_4FGL_J2318.2+1915_daily_bin368.fits outfile=/scratch/kocevski/743834/cmap_334713601_334972801_4FGL_J2318.2+1915_daily_bin368.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/743834/ft1_filtered_4FGL_J2318.2+1915_daily_bin368.fits scfile=/scratch/kocevski/743834/ft2_4FGL_J2318.2+1915_daily_bin368.fits outfile=/scratch/kocevski/743834/cmap_HighResolution_334713601_334972801_4FGL_J2318.2+1915_daily_bin368.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4103       1.0000         .10000E-03   10000.    
     2 'norm      '    3.3200       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10444E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18881       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.836       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.6868       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .61651E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4490       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.396       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2211       1.0000         .10000E-03   10000.    
    15 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19489       1.0000         .10000E-03   10000.    
    17 'norm      '    .10403E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12043E-02   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1843       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .72191       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6054.400     FROM MIGRAD    STATUS=FAILED       730 CALLS     2098 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4111        2.7596        .11168E-03    .54870E-04
   2  norm          3.3200        1.7814        .73964E-04    .55334E-04
   3  Prefactor     .10000E-03    34.187        .18142E-02** at limit **
   4  Prefactor     .10000E-03    6.5281        .18142E-02** at limit **
   5  Prefactor     .10000E-03    4.4682        .16062E-02** at limit **
   6  Prefactor     .18879        .11479        .20140E-04   -.85518E-03
   7  Prefactor     11.837        7.7086        .11644E-03    .99587E-05
   8  Prefactor     9.6851        6.5101        .12875E-03    .61808E-04
   9  Prefactor     .10001E-03    46.746        .37613E-02** at limit **
  10  Prefactor     3.4514        12.808        .21778E-03    .10389E-04
  11  Prefactor     .10000E-03    5.3290        .17540E-02** at limit **
  12  Prefactor     .10000E-03    3.6935        .14503E-02** at limit **
  13  Prefactor     13.379        11.718        .10944E-03    .39476E-04
  14  Prefactor     2.2197        19.492        .27592E-03    .16110E-04
  15  norm          .10000E-03    4.3075        .15715E-02** at limit **
  16  Prefactor     .23785        55.137        .37378E-02    .14009E-02
  17  norm          .10000E-03    25.942        .18142E-02** at limit **
  18  Prefactor     .10002E-03    3.8466        .51786E-01** at limit **
  19  Normalizat    1.1839        .23865        .26181E-03    .30396E-05
  20  Prefactor     .72202        .13655        .19350E-03    .80728E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6054.400     FROM SIMPLEX   STATUS=UNCHANGED    905 CALLS     3003 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4111        2.7596        .16250E-06   -1.5339    
   2  norm          3.3200        1.7814        .16325E-06   -1.5344    
   3  Prefactor     .10000E-03    34.187        .54244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.5281        .40082E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.4682        .13882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .18879        .11479        .16321E-06   -1.5621    
   7  Prefactor     11.837        7.7086        .15692E-06   -1.5020    
   8  Prefactor     9.6851        6.5101        .15761E-06   -1.5085    
   9  Prefactor     .10001E-03    46.746        .22344E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.4514        12.808        .16131E-06   -1.5336    
  11  Prefactor     .10000E-03    5.3290        .37937E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.6935        .60208E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.379        11.718        .15651E-06   -1.4976    
  14  Prefactor     2.2197        19.492        .16057E-06   -1.5410    
  15  norm          .10000E-03    4.3075        .22626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .23785        55.137        .16325E-06   -1.5610    
  17  norm          .10000E-03    25.942        .36081E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    3.8466        .70261E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1839        .23865        .91004E-07   -.87103    
  20  Prefactor     .72202        .13655        .10726E-06   -1.0267    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6054.400     FROM MIGRAD    STATUS=CONVERGED    295 CALLS     3298 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4111        2.7586        .44671E-05   -.25959E-04
   2  norm          3.3200        1.7813        .29586E-05   -.46112E-05
   3  Prefactor     .10000E-03    34.197        .36285E-03** at limit **
   4  Prefactor     .10000E-03    6.5308        .36285E-03** at limit **
   5  Prefactor     .10000E-03    4.4683        .32123E-03** at limit **
   6  Prefactor     .18879        .11477        .80561E-06    .24420E-04
   7  Prefactor     11.837        7.7078        .46577E-05   -.97634E-06
   8  Prefactor     9.6851        6.5100        .51502E-05   -.14569E-04
   9  Prefactor     .10000E-03    47.647        .75225E-03** at limit **
  10  Prefactor     3.4514        12.805        .87110E-05   -.78305E-06
  11  Prefactor     .10000E-03    5.3291        .35079E-03** at limit **
  12  Prefactor     .10000E-03    3.6945        .29006E-03** at limit **
  13  Prefactor     13.379        11.681        .43775E-05   -.14544E-04
  14  Prefactor     2.2197        19.481        .11037E-04   -.22662E-05
  15  norm          .10000E-03    4.3078        .31430E-03** at limit **
  16  Prefactor     .23790        54.903        .74756E-03    .35586E-05
  17  norm          .10000E-03    25.960        .36285E-03** at limit **
  18  Prefactor     .10001E-03    3.8665        .51523E-01** at limit **
  19  Normalizat    1.1839        .23676        .10472E-04   -.41904E-04
  20  Prefactor     .72202        .13642        .77398E-05   -.50529E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.41109
  norm       = 3.31998
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.18879
  Prefactor  = 11.8372
  Prefactor  = 9.68508
  Prefactor  = 0.0001
  Prefactor  = 3.45144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3787
  Prefactor  = 2.21973
  norm       = 0.0001
  Prefactor  = 0.237903
  norm       = 0.0001
  Prefactor  = 0.000100014
  Normalizat = 1.18388
  Prefactor  = 0.722022
 **********
 **   18 **HESSE 
 **********

 FCN=   6054.400     FROM HESSE     STATUS=OK           283 CALLS     3581 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4111        2.7586        .89342E-06   -1.5339    
   2  norm          3.3200        1.7814        .59171E-06   -1.5344    
   3  Prefactor     .10000E-03    34.198        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.5309        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.4683        .64246E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .18879        .11476        .37244E-06   -1.5621    
   7  Prefactor     11.837        7.7061        .93153E-06   -1.5020    
   8  Prefactor     9.6851        6.5092        .10300E-05   -1.5085    
   9  Prefactor     .10000E-03    47.684        .15045E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.4514        12.819        .17422E-05   -1.5336    
  11  Prefactor     .10000E-03    5.3291        .70159E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.6946        .58011E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.379        11.669        .87550E-06   -1.4976    
  14  Prefactor     2.2197        19.512        .22073E-05   -1.5410    
  15  norm          .10000E-03    4.3078        .62861E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .23790        54.499        .29903E-04   -1.5610    
  17  norm          .10000E-03    25.960        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    3.8637        .51555E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1839        .23618        .20945E-05   -.87103    
  20  Prefactor     .72202        .13636        .15480E-05   -1.0267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40498e-11
Minuit parameter uncertainties:
  1  2.75867
  2  1.78138
  3  2.12623e-05
  4  3.65861e-07
  5  5.39223e-07
  6  0.114764
  7  7.7067
  8  6.50971
  9  7.79572e-05
  10  12.8289
  11  3.95017e-07
  12  1.60447e-06
  13  11.6707
  14  13.1676
  15  7.15322e-07
  16  7.20663
  17  8.21116e-06
  18  0.000462122
  19  0.236398
  20  0.136424
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  1.604e-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:  7.220e-01  1.364e-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.184e+00  2.364e-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: 8.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/743834/likelihoodResults_334713601_334972801_4FGL_J2318.2+1915_daily_bin368.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) = 6054.40145617
delta logL = -0.00129127877881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6054.40016566
delta logL = -7.71448867454e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6898       1.0000          .0000       10.000    
     3 'Normalizat'    1.1836       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72218       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=   6054.400     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    632.18        .14821E-02** at limit **
   2  Index         2.7138        5.7180        .50000       -.60417E-04
   3  Normalizat    1.1839        .87154E-01    .26181E-03    .12189E-03
   4  Prefactor     .72202        .51794E-01    .19350E-03    .10934E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Index      = 2.7138
  Normalizat = 1.18388
  Prefactor  = 0.722022
 **********
 **   18 **HESSE 
 **********

 FCN=   6054.400     FROM HESSE     STATUS=OK            29 CALLS      270 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    4.6551        .29642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7138        6.3569        .50000       -.47489    
   3  Normalizat    1.1839        .22461        .10472E-04   -.87102    
   4  Prefactor     .72202        .13369        .77398E-05   -1.0267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23418e-09
Minuit parameter uncertainties:
  1  0.000517747
  2  4.88063
  3  0.224792
  4  0.133745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/743834': 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) = 6054.40016428
delta logL = 6.12722942606e-07

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  5.177e-04  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.714e+00  4.881e+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.220e-01  1.337e-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.184e+00  2.248e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/743834/cmap_HighResolution_334713601_334972801_4FGL_J2318.2+1915_daily_bin368.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.54e-03', job_status='DONE', photon_flux_upper_limit='8.33e-08', time_completed='2021-09-29 11:19:31.217189', job_id='743834', GAL2='0.72', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1632939571.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='6.13e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='368' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:19:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 743834: <4FGL_J2318.2+1915_daily_bin368> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin368 349.557 19.256 334713601 334972801 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 :                                   653.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            831 sec.

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

