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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin704
RA = 349.557, Dec = 19.256
tmin = 421804801, tmax = 422064001
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='745369', job_status='RUN', time_executed='2021-09-29 11:14:03.834430', time_epoch_executed='1632939243.83' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='704'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/745369

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/745369/ft1_4FGL_J2318.2+1915_daily_bin704.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/745369/ft2_4FGL_J2318.2+1915_daily_bin704.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/745369/ft1_4FGL_J2318.2+1915_daily_bin704.fits outfile=/scratch/kocevski/745369/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin704.fits ra=349.557 dec=19.256 rad=12.0 tmin=421804801.0 tmax=422064001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.59
user 3.36
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/745369/ft1_filtered_4FGL_J2318.2+1915_daily_bin704.fits" evtable="EVENTS" scfile=/scratch/kocevski/745369/ft2_4FGL_J2318.2+1915_daily_bin704.fits sctable="SC_DATA" outfile=/scratch/kocevski/745369/ltcube_421804801_422064001_4FGL_J2318.2+1915_daily_bin704.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/745369/ft2_4FGL_J2318.2+1915_daily_bin704.fits
.....................!
real 11.85
user 11.52
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/745369/ft1_filtered_4FGL_J2318.2+1915_daily_bin704.fits evtable="EVENTS" scfile=/scratch/kocevski/745369/ft2_4FGL_J2318.2+1915_daily_bin704.fits sctable="SC_DATA" expcube=/scratch/kocevski/745369/ltcube_421804801_422064001_4FGL_J2318.2+1915_daily_bin704.fits outfile=/scratch/kocevski/745369/expmap_421804801_422064001_4FGL_J2318.2+1915_daily_bin704.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/745369/ltcube_421804801_422064001_4FGL_J2318.2+1915_daily_bin704.fits
.....................!
real 191.40
user 185.88
sys 5.17

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/745369/ft1_filtered_4FGL_J2318.2+1915_daily_bin704.fits scfile=/scratch/kocevski/745369/ft2_4FGL_J2318.2+1915_daily_bin704.fits outfile=/scratch/kocevski/745369/cmap_421804801_422064001_4FGL_J2318.2+1915_daily_bin704.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.56
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.653       1.0000         .10000E-03   10000.    
     2 'norm      '    .97392       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.2124       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2544       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2961       1.0000         .10000E-03   10000.    
    10 'Prefactor '    44.702       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .57002E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.2235       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9774       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .65085       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1405       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=   9201.204     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2402 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.654        4.7951        .19387E-05    .13687E-03
   2  norm          .97622        1.4284       -.61707E-06   -.19071E-02
   3  Prefactor     .10000E-03    8.3180       -.56842E-07** at limit **
   4  Prefactor     8.2101        9.9626        .72635E-05    .88849E-04
   5  Prefactor     .10000E-03    26.409        .54926E-08** at limit **
   6  Prefactor     3.2545        .27988        .87821E-09    .38310E-03
   7  Prefactor     .10000E-03    3.9469       -.51471E-06** at limit **
   8  Prefactor     .10000E-03    2.4316       -.30380E-07** at limit **
   9  Prefactor     1.2988        2.3990        .63890E-06   -.12229E-02
  10  Prefactor     44.699        23.895        .18155E-05    .25158E-04
  11  Prefactor     .10067E-03    24.388       -.19774E-06** at limit **
  12  Prefactor     .10000E-03    3.0954        .12150E-06** at limit **
  13  Prefactor     4.2257        8.8537       -.88164E-06   -.86522E-05
  14  Prefactor     .10000E-03    4.5374       -.65001E-07** at limit **
  15  norm          .10000E-03    2.4313        .93925E-07** at limit **
  16  Prefactor     5.9761        6.1906       -.23240E-05   -.75771E-04
  17  norm          .10000E-03    4.1580        .41952E-06** at limit **
  18  Prefactor     .10000E-03    3.7999        .25606E-06** at limit **
  19  Normalizat    .65075        .21371       -.38299E-05    .59890E-05
  20  Prefactor     1.1405        .12233        .26342E-06   -.34571E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 21.6536
  norm       = 0.976222
  Prefactor  = 0.0001
  Prefactor  = 8.21006
  Prefactor  = 0.0001
  Prefactor  = 3.25448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.29875
  Prefactor  = 44.6986
  Prefactor  = 0.000100666
  Prefactor  = 0.0001
  Prefactor  = 4.22568
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.97606
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.650753
  Prefactor  = 1.1405
 **********
 **   18 **HESSE 
 **********

 FCN=   9201.204     FROM HESSE     STATUS=OK           303 CALLS     2705 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.654        4.7747        .86078E-04   -1.4777    
   2  norm          .97622        1.1655        .13387E-02   -1.5510    
   3  Prefactor     .10000E-03    8.3197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.2101        9.9567        .13990E-03   -1.5135    
   5  Prefactor     .10000E-03    27.426        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.2545        .27992        .14158E-04   -1.5347    
   7  Prefactor     .10000E-03    3.9597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.4559        .14606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.2988        17.899        .19426E-02   -1.5480    
  10  Prefactor     44.699        23.893        .59965E-04   -1.4370    
  11  Prefactor     .10067E-03    25.262        .12167       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.1395        .16472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.2257        8.8386        .19608E-03   -1.5297    
  14  Prefactor     .10000E-03    4.5410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.4362        .14601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.9761        6.1851        .16424E-03   -1.5219    
  17  norm          .10000E-03    4.1621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.8622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .65075        .23289        .43018E-03   -1.0587    
  20  Prefactor     1.1405        .13456        .19997E-03   -.88182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09336e-08
Minuit parameter uncertainties:
  1  4.7748
  2  1.16556
  3  6.04568e-07
  4  9.95868
  5  3.3377e-05
  6  0.279917
  7  9.69533e-06
  8  4.81627e-06
  9  9.64591
  10  23.8983
  11  0.00820494
  12  7.47306e-06
  13  8.8413
  14  4.31978e-06
  15  2.25129e-05
  16  6.18575
  17  7.54325e-06
  18  7.19804e-06
  19  0.233242
  20  0.134595
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  7.473e-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.141e+00  1.346e-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:  6.508e-01  2.332e-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: 7.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/745369/likelihoodResults_421804801_422064001_4FGL_J2318.2+1915_daily_bin704.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) = 9201.20565339
delta logL = -0.00151732617269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9201.20413685
delta logL = -7.89625119069e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6828       1.0000          .0000       10.000    
     3 'Normalizat'    .65058       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1406       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=   9201.204     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      238 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    490.84        .16640E-02** at limit **
   2  Index         2.6993        5.2022        .50000       -.49927E-04
   3  Normalizat    .65075        .81581E-01    .43018E-03    .13261E-03
   4  Prefactor     1.1405        .49415E-01    .19997E-03    .21255E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 2.69933
  Normalizat = 0.650754
  Prefactor  = 1.1405
 **********
 **   18 **HESSE 
 **********

 FCN=   9201.204     FROM HESSE     STATUS=OK            29 CALLS      267 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    4.0430        .33279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6993        6.3485        .50000       -.47815    
   3  Normalizat    .65075        .21815        .17207E-04   -1.0587    
   4  Prefactor     1.1405        .13238        .39995E-04   -.88182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48453e-09
Minuit parameter uncertainties:
  1  0.000362105
  2  4.98417
  3  0.218437
  4  0.132417
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/745369': 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) = 9201.20413572
delta logL = 3.48105459125e-07

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  3.621e-04  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.699e+00  4.984e+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.141e+00  1.324e-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:  6.508e-01  2.184e-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/745369/cmap_HighResolution_421804801_422064001_4FGL_J2318.2+1915_daily_bin704.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.83e-03', job_status='DONE', photon_flux_upper_limit='7.42e-08', time_completed='2021-09-29 11:26:58.863917', job_id='745369', GAL2='1.14', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1632940018.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='3.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='704' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:26:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 745369: <4FGL_J2318.2+1915_daily_bin704> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin704 349.557 19.256 421804801 422064001 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 :                                   774.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            975 sec.

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

