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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin575
RA = 349.557, Dec = 19.256
tmin = 388368001, tmax = 388627201
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='745183', job_status='RUN', time_executed='2021-09-29 11:13:01.085163', time_epoch_executed='1632939181.09' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='575'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/745183

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/745183/ft1_4FGL_J2318.2+1915_daily_bin575.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/745183/ft2_4FGL_J2318.2+1915_daily_bin575.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/745183/ft1_4FGL_J2318.2+1915_daily_bin575.fits outfile=/scratch/kocevski/745183/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin575.fits ra=349.557 dec=19.256 rad=12.0 tmin=388368001.0 tmax=388627201.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 4.49
user 4.23
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/745183/ft1_filtered_4FGL_J2318.2+1915_daily_bin575.fits" evtable="EVENTS" scfile=/scratch/kocevski/745183/ft2_4FGL_J2318.2+1915_daily_bin575.fits sctable="SC_DATA" outfile=/scratch/kocevski/745183/ltcube_388368001_388627201_4FGL_J2318.2+1915_daily_bin575.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/745183/ft2_4FGL_J2318.2+1915_daily_bin575.fits
.....................!
real 11.72
user 11.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/745183/ft1_filtered_4FGL_J2318.2+1915_daily_bin575.fits evtable="EVENTS" scfile=/scratch/kocevski/745183/ft2_4FGL_J2318.2+1915_daily_bin575.fits sctable="SC_DATA" expcube=/scratch/kocevski/745183/ltcube_388368001_388627201_4FGL_J2318.2+1915_daily_bin575.fits outfile=/scratch/kocevski/745183/expmap_388368001_388627201_4FGL_J2318.2+1915_daily_bin575.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/745183/ltcube_388368001_388627201_4FGL_J2318.2+1915_daily_bin575.fits
.....................!
real 189.61
user 184.87
sys 4.42

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/745183/ft1_filtered_4FGL_J2318.2+1915_daily_bin575.fits scfile=/scratch/kocevski/745183/ft2_4FGL_J2318.2+1915_daily_bin575.fits outfile=/scratch/kocevski/745183/cmap_388368001_388627201_4FGL_J2318.2+1915_daily_bin575.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=349.557 yref=19.256 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/745183/ft1_filtered_4FGL_J2318.2+1915_daily_bin575.fits scfile=/scratch/kocevski/745183/ft2_4FGL_J2318.2+1915_daily_bin575.fits outfile=/scratch/kocevski/745183/cmap_HighResolution_388368001_388627201_4FGL_J2318.2+1915_daily_bin575.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73801E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    2.2457       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19805E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .80990       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.0391       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.7759       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5496       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6858       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3779       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5623       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.207       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.5647       1.0000         .10000E-03   10000.    
    15 'norm      '    .10631E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10690E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    33.223       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0889       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .90760       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=   8581.128     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     1802 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .84905E-01    1.2999        .26280E-06   -.36875E-03
   2  norm          2.2445        1.5357        .31499E-07   -.40487E-06
   3  Prefactor     .10000E-03    6.7398       -.43851E-07** at limit **
   4  Prefactor     .10000E-03    18.180       -.15084E-07** at limit **
   5  Prefactor     .10000E-03    9.8624        .29823E-07** at limit **
   6  Prefactor     .80990        .16567       -.17459E-07   -.14011E-02
   7  Prefactor     8.0370        8.7070        .21337E-06    .40440E-04
   8  Prefactor     8.7755        7.3483        .16243E-05   -.52144E-03
   9  Prefactor     1.5530        14.049        .11356E-05   -.78909E-04
  10  Prefactor     4.6728        18.229        .37811E-05    .19663E-03
  11  Prefactor     4.2718        28.990       -.37240E-06   -.44789E-04
  12  Prefactor     6.5647        6.3559        .22518E-06    .16807E-04
  13  Prefactor     15.187        11.921       -.99330E-08   -.60168E-04
  14  Prefactor     7.5677        14.455       -.36096E-06   -.98575E-04
  15  norm          .10000E-03    5.5527       -.86566E-07** at limit **
  16  Prefactor     .10000E-03    3.7417       -.88800E-10** at limit **
  17  norm          33.225        16.751       -.34723E-06   -.24579E-03
  18  Prefactor     .10000E-03    3.1457        .10309E-06** at limit **
  19  Normalizat    1.0885        .19501       -.91397E-06   -.89612E-04
  20  Prefactor     .90778        .10989       -.27065E-07   -.15682E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0849054
  norm       = 2.24449
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.8099
  Prefactor  = 8.037
  Prefactor  = 8.7755
  Prefactor  = 1.55296
  Prefactor  = 4.6728
  Prefactor  = 4.27183
  Prefactor  = 6.56466
  Prefactor  = 15.1873
  Prefactor  = 7.56769
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 33.2254
  Prefactor  = 0.0001
  Normalizat = 1.08847
  Prefactor  = 0.907779
 **********
 **   18 **HESSE 
 **********

 FCN=   8581.128     FROM HESSE     STATUS=OK           297 CALLS     2099 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .84905E-01    28.969        .19838E-02   -1.5650    
   2  norm          2.2445        1.5303        .92039E-04   -1.5408    
   3  Prefactor     .10000E-03    6.7444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.979        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.9693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .80990        .16586        .16216E-04   -1.5528    
   7  Prefactor     8.0370        8.7068        .14141E-03   -1.5141    
   8  Prefactor     8.7755        7.5746        .67653E-03   -1.5115    
   9  Prefactor     1.5530        14.098        .34220E-03   -1.5459    
  10  Prefactor     4.6728        19.976        .18590E-03   -1.5276    
  11  Prefactor     4.2718        29.509        .19249E-03   -1.5295    
  12  Prefactor     6.5647        6.3546        .15666E-03   -1.5195    
  13  Prefactor     15.187        11.926        .10271E-03   -1.4928    
  14  Prefactor     7.5677        14.492        .14581E-03   -1.5158    
  15  norm          .10000E-03    5.6150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.7815        .17492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          33.225        16.896        .69521E-04   -1.4554    
  18  Prefactor     .10000E-03    3.1727        .16053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0885        .22959        .31970E-03   -.90123    
  20  Prefactor     .90778        .12901        .20151E-03   -.95870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73478e-09
Minuit parameter uncertainties:
  1  3.13631
  2  1.53031
  3  3.81421e-06
  4  5.10355e-08
  5  1.1187e-05
  6  0.165859
  7  8.70814
  8  7.57545
  9  9.3607
  10  19.3337
  11  22.4708
  12  6.35526
  13  11.9281
  14  14.4987
  15  3.33118e-06
  16  1.02046e-05
  17  16.898
  18  1.2221e-05
  19  0.229805
  20  0.129055
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  6.565e+00  6.355e+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:  9.078e-01  1.291e-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.088e+00  2.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.62
Ra Dec: 349.557 19.256
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 4.78e-08 +/- 4.62e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.14e-05

TS (Fixed Index): 1.62
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/745183/likelihoodResults_388368001_388627201_4FGL_J2318.2+1915_daily_bin575.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8580.98050069
delta logL = 0.147362084817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8580.97535976
delta logL = 0.152503015244

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9201       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1447       1.0000          .0000       10.000    
     3 'Normalizat'    1.0668       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91584       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=   8580.975     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      294 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9204        6.7859        .16316E-03    .10410E-03
   2  Index         3.1449        1.0358        .86239E-02    .36651E-04
   3  Normalizat    1.0668        .22428        .32248E-03    .23952E-03
   4  Prefactor     .91583        .12857        .20070E-03    .38028E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.92042
  Index      = 3.14491
  Normalizat = 1.0668
  Prefactor  = 0.915835
 **********
 **   18 **HESSE 
 **********

 FCN=   8580.975     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9204        6.0354        .65262E-05   -1.5264    
   2  Index         3.1449        .92153        .34496E-03   -.38010    
   3  Normalizat    1.0668        .22420        .12899E-04   -.90825    
   4  Prefactor     .91583        .12846        .40139E-04   -.95590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.91306e-11
Minuit parameter uncertainties:
  1  6.03618
  2  0.927693
  3  0.224401
  4  0.128507
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/745183': 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) = 8580.97535958
delta logL = 0.152503188601

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  4.920e+00  6.036e+00  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  3.145e+00  9.277e-01  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:  9.158e-01  1.285e-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.067e+00  2.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.95
Ra Dec: 349.557 19.256
Photon Index (Free Index): 3.14 +/- 0.93
Photon Flux (Free Index): 6.58e-08 +/- 6.01e-08
Energy Flux (Free Index): 1.23e-05 +/- 1.04e-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/745183/cmap_HighResolution_388368001_388627201_4FGL_J2318.2+1915_daily_bin575.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', photon_flux='4.78e-08', energy_flux2='1.23e-05', photon_flux_error='4.62e-08', dlogl='1.53e-01', energy_flux='1.18e-05', photon_flux2='6.58e-08', job_status='DONE', time_completed='2021-09-29 11:24:12.611964', photon_index_error2='0.93', photon_index2='3.14', ts='1.62', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='1.04e-05', EG='1.09', time_epoch_completed='1632939852.61', return_code='0', job_id='745183', GAL2='0.92', EG2='1.07', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='6.01e-08', ts2='1.95', photon_index='2.67' WHERE bin_id='575' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:24:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 745183: <4FGL_J2318.2+1915_daily_bin575> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin575 349.557 19.256 388368001 388627201 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 :                                   670.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            823 sec.

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

