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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin896
RA = 349.557, Dec = 19.256
tmin = 471571201, tmax = 471830401
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='746713', job_status='RUN', time_executed='2021-09-29 11:15:56.111286', time_epoch_executed='1632939356.11' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='896'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/746713

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/746713/ft1_4FGL_J2318.2+1915_daily_bin896.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/746713/ft2_4FGL_J2318.2+1915_daily_bin896.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/746713/ft1_4FGL_J2318.2+1915_daily_bin896.fits outfile=/scratch/kocevski/746713/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin896.fits ra=349.557 dec=19.256 rad=12.0 tmin=471571201.0 tmax=471830401.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 5.13
user 4.90
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/746713/ft1_filtered_4FGL_J2318.2+1915_daily_bin896.fits" evtable="EVENTS" scfile=/scratch/kocevski/746713/ft2_4FGL_J2318.2+1915_daily_bin896.fits sctable="SC_DATA" outfile=/scratch/kocevski/746713/ltcube_471571201_471830401_4FGL_J2318.2+1915_daily_bin896.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/746713/ft2_4FGL_J2318.2+1915_daily_bin896.fits
.....................!
real 11.47
user 11.10
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/746713/ft1_filtered_4FGL_J2318.2+1915_daily_bin896.fits evtable="EVENTS" scfile=/scratch/kocevski/746713/ft2_4FGL_J2318.2+1915_daily_bin896.fits sctable="SC_DATA" expcube=/scratch/kocevski/746713/ltcube_471571201_471830401_4FGL_J2318.2+1915_daily_bin896.fits outfile=/scratch/kocevski/746713/expmap_471571201_471830401_4FGL_J2318.2+1915_daily_bin896.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/746713/ltcube_471571201_471830401_4FGL_J2318.2+1915_daily_bin896.fits
.....................!
real 190.64
user 184.96
sys 5.37

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/746713/ft1_filtered_4FGL_J2318.2+1915_daily_bin896.fits scfile=/scratch/kocevski/746713/ft2_4FGL_J2318.2+1915_daily_bin896.fits outfile=/scratch/kocevski/746713/cmap_471571201_471830401_4FGL_J2318.2+1915_daily_bin896.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/746713/ft1_filtered_4FGL_J2318.2+1915_daily_bin896.fits scfile=/scratch/kocevski/746713/ft2_4FGL_J2318.2+1915_daily_bin896.fits outfile=/scratch/kocevski/746713/cmap_HighResolution_471571201_471830401_4FGL_J2318.2+1915_daily_bin896.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1618       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.333       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4805       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.2744       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7350       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2295       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.9291       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .40372       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.3227       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.671       1.0000         .10000E-03   10000.    
    15 'norm      '    3.3935       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12907E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .78206       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6700       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1074       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8223.090     FROM MIGRAD    STATUS=FAILED       726 CALLS     2097 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1624        2.7166        .21394E-03   -.57285E-04
   2  norm          .10000E-03    .85716        .16162E-03** at limit **
   3  Prefactor     .10000E-03    14.038        .18142E-02** at limit **
   4  Prefactor     10.334        9.9847        .12465E-03   -.91208E-06
   5  Prefactor     .10000E-03    25.327        .18142E-02** at limit **
   6  Prefactor     3.4805        .35742        .16228E-04    .16996E-02
   7  Prefactor     8.2750        7.8373        .13937E-03    .40786E-05
   8  Prefactor     1.7344        13.299        .31862E-03    .17484E-04
   9  Prefactor     3.2320        20.820        .22541E-03    .43375E-05
  10  Prefactor     9.9287        15.008        .12717E-03   -.23601E-04
  11  Prefactor     .10000E-03    27.597        .18142E-02** at limit **
  12  Prefactor     .48199        50.124        .42398E-02    .17412E-02
  13  Prefactor     8.3236        17.806        .69482E-03    .13973E-04
  14  Prefactor     22.626        23.003        .84124E-04   -.34056E-04
  15  norm          3.3972        12.489        .10982E-02    .31203E-04
  16  Prefactor     .10000E-03    19.134        .36285E-03** at limit **
  17  norm          .76112        84.964        .59492E-02    .11581E-02
  18  Prefactor     2.6703        3.9024        .21124E-03    .11733E-04
  19  Normalizat    1.1073        .28105        .36923E-03   -.18659E-04
  20  Prefactor     1.0750        .15349        .21764E-03    .18466E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8223.090     FROM SIMPLEX   STATUS=UNCHANGED    976 CALLS     3073 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1624        2.7166        .26514E-06   -1.5492    
   2  norm          .10000E-03    .85716        .10657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.038        .61699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.334        9.9847        .22721E-06   -1.5065    
   5  Prefactor     .10000E-03    25.327        .58606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.4805        .35742        .23082E-06   -1.5335    
   7  Prefactor     8.2750        7.8373        .23979E-06   -1.5133    
   8  Prefactor     1.7344        13.299        .25042E-06   -1.5445    
   9  Prefactor     3.2320        20.820        .23638E-06   -1.5348    
  10  Prefactor     9.9287        15.008        .22577E-06   -1.5078    
  11  Prefactor     .10000E-03    27.597        .69377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .48199        50.124        .32453E-06   -1.5569    
  13  Prefactor     8.3236        17.806        .24186E-06   -1.5131    
  14  Prefactor     22.626        23.003        .22469E-06   -1.4756    
  15  norm          3.3972        12.489        .24925E-06   -1.5339    
  16  Prefactor     .10000E-03    19.134        .69368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .76112        84.964        .33762E-06   -1.5533    
  18  Prefactor     2.6703        3.9024        .23060E-06   -1.5381    
  19  Normalizat    1.1073        .28105        .16357E-06   -.89517    
  20  Prefactor     1.0750        .15349        .14054E-06   -.90269    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8223.090     FROM MIGRAD    STATUS=CONVERGED    280 CALLS     3353 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1624        2.7142        .85575E-05   -.53140E-06
   2  norm          .10000E-03    .85717        .32324E-04** at limit **
   3  Prefactor     .10000E-03    14.038        .36285E-03** at limit **
   4  Prefactor     10.334        9.9839        .49858E-05   -.91208E-06
   5  Prefactor     .10000E-03    25.331        .36285E-03** at limit **
   6  Prefactor     3.4805        .35732        .32456E-05   -.75660E-04
   7  Prefactor     8.2751        7.8368        .55748E-05   -.81572E-06
   8  Prefactor     1.7344        13.282        .12745E-04   -.21409E-05
   9  Prefactor     3.2320        20.789        .90163E-05   -.50436E-06
  10  Prefactor     9.9288        15.003        .50867E-05   -.89400E-06
  11  Prefactor     .10000E-03    27.604        .36285E-03** at limit **
  12  Prefactor     .48207        47.292        .84797E-03    .34322E-05
  13  Prefactor     8.3236        17.721        .27793E-04   -.16362E-06
  14  Prefactor     22.626        22.438        .33650E-05   -.14866E-04
  15  norm          3.3972        12.420        .43926E-04   -.15529E-05
  16  Prefactor     .10000E-03    19.135        .72569E-04** at limit **
  17  norm          .76116        86.160        .11898E-02    .19492E-05
  18  Prefactor     2.6703        3.9021        .84495E-05   -.53819E-06
  19  Normalizat    1.1073        .27997        .14769E-04   -.12008E-04
  20  Prefactor     1.0750        .15350        .43528E-04   -.16820E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.16243
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.334
  Prefactor  = 0.0001
  Prefactor  = 3.48051
  Prefactor  = 8.27505
  Prefactor  = 1.73442
  Prefactor  = 3.23199
  Prefactor  = 9.92877
  Prefactor  = 0.0001
  Prefactor  = 0.482068
  Prefactor  = 8.32357
  Prefactor  = 22.6262
  norm       = 3.39715
  Prefactor  = 0.0001
  norm       = 0.761158
  Prefactor  = 2.67027
  Normalizat = 1.10732
  Prefactor  = 1.07502
 **********
 **   18 **HESSE 
 **********

 FCN=   8223.090     FROM HESSE     STATUS=OK           275 CALLS     3628 TOTAL
                     EDM=   .87E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1624        2.7125        .17115E-05   -1.5492    
   2  norm          .10000E-03    .85714        .64649E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.038        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.334        9.9855        .99717E-06   -1.5065    
   5  Prefactor     .10000E-03    25.331        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.4805        .35731        .64912E-06   -1.5335    
   7  Prefactor     8.2751        7.8324        .11150E-05   -1.5133    
   8  Prefactor     1.7344        13.256        .25489E-05   -1.5445    
   9  Prefactor     3.2320        20.554        .18033E-05   -1.5348    
  10  Prefactor     9.9288        15.005        .10173E-05   -1.5078    
  11  Prefactor     .10000E-03    27.604        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .48207        46.455        .33919E-04   -1.5569    
  13  Prefactor     8.3236        17.707        .55585E-05   -1.5131    
  14  Prefactor     22.626        22.302        .67299E-06   -1.4756    
  15  norm          3.3972        12.396        .17570E-05   -1.5339    
  16  Prefactor     .10000E-03    19.133        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .76116        86.070        .47594E-04   -1.5533    
  18  Prefactor     2.6703        3.9022        .16899E-05   -1.5381    
  19  Normalizat    1.1073        .27908        .29538E-05   -.89517    
  20  Prefactor     1.0750        .15331        .87056E-05   -.90269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.70817e-13
Minuit parameter uncertainties:
  1  2.71275
  2  3.80458e-09
  3  2.14411e-07
  4  9.98713
  5  1.00025e-06
  6  0.357306
  7  7.83341
  8  9.59251
  9  16.3089
  10  15.0107
  11  1.40045e-06
  12  9.47117
  13  17.718
  14  22.3103
  15  12.4049
  16  9.85905e-08
  17  16.2109
  18  3.90256
  19  0.27945
  20  0.153373
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  4.821e-01  9.471e+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:  1.075e+00  1.534e-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.107e+00  2.794e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/746713/likelihoodResults_471571201_471830401_4FGL_J2318.2+1915_daily_bin896.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) = 8222.67878789
delta logL = 0.411256225019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8222.55443859
delta logL = 0.535605523501

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.8221       1.0000          .0000       10.000    
     3 'Normalizat'    1.0437       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1004       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=   8222.554     FROM MIGRAD    STATUS=CONVERGED    315 CALLS      668 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .54305E-04    .38993E-03** at limit **
   2  Index         9.8353        1.3877        .50000       -.17691E-03
   3  Normalizat    1.0436        .22864        .85495E-01   -.77159E-04
   4  Prefactor     1.1005        .13234        .37570E-01   -.34745E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.8353
  Normalizat = 1.04357
  Prefactor  = 1.10048
 **********
 **   18 **HESSE 
 **********

 FCN=   8222.554     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      707 TOTAL
                     EDM=   .27E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .22441E-01    .21089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.8353        5.3022        .68140E-01    1.3134    
   3  Normalizat    1.0436        .11554        .37856E-03   -.91585    
   4  Prefactor     1.1005        .67075E-01    .21540E-03   -.89451    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.71005e-05
Minuit parameter uncertainties:
  1  8.15235e-08
  2  8.38461
  3  0.115568
  4  0.0670805
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/746713': 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) = 8222.55440155
delta logL = 0.535642562752

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  8.152e-08  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  9.835e+00  8.385e+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.100e+00  6.708e-02  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.044e+00  1.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 349.557 19.256
Photon Index (Free Index): 9.84 +/- 8.38
Photon Flux (Free Index): 5.64e-08 +/- 7.73e-07
Energy Flux (Free Index): 6.32e-06 +/- 8.64e-05

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/746713/cmap_HighResolution_471571201_471830401_4FGL_J2318.2+1915_daily_bin896.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', energy_flux2='6.32e-06', dlogl='5.36e-01', photon_flux2='5.64e-08', job_status='DONE', time_completed='2021-09-29 11:30:16.685646', photon_index_error2='8.38', photon_index2='9.84', ts='0.00', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='8.64e-05', EG='1.11', time_epoch_completed='1632940216.69', return_code='0', job_id='746713', GAL2='1.10', EG2='1.04', return_code2='102', photon_flux_error2='7.73e-07', ts2='1.15', photon_index='2.67' WHERE bin_id='896' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:30:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 746713: <4FGL_J2318.2+1915_daily_bin896> in cluster <slac> Done

Job <4FGL_J2318.2+1915_daily_bin896> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 11:15:35 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:15:37 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:15:37 2021
Terminated at Wed Sep 29 11:30:17 2021
Results reported at Wed Sep 29 11:30:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin896 349.557 19.256 471571201 471830401 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 :                                   839.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             311.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            882 sec.

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

