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


Performing analysis on: 4FGL_J2217.5+6346_daily_bin688
RA = 334.394, Dec = 63.776
tmin = 417657601, tmax = 417916801
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='236421', job_status='RUN', time_executed='2021-09-28 07:53:27.794058', time_epoch_executed='1632840807.79' WHERE source_name='4FGL J2217.5+6346' and cadence='daily' and bin_id='688'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236421

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236421/ft1_4FGL_J2217.5+6346_daily_bin688.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236421/ft2_4FGL_J2217.5+6346_daily_bin688.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236421/ft1_4FGL_J2217.5+6346_daily_bin688.fits outfile=/scratch/kocevski/236421/ft1_filteredMKT_4FGL_J2217.5+6346_daily_bin688.fits ra=334.394 dec=63.776 rad=12.0 tmin=417657601.0 tmax=417916801.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 6.05
user 5.80
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/236421/ft2_4FGL_J2217.5+6346_daily_bin688.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/236421/ft2_4FGL_J2217.5+6346_daily_bin688.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/236421/ft1_filteredMKT_4FGL_J2217.5+6346_daily_bin688.fits evtable="EVENTS" outfile="/scratch/kocevski/236421/ft1_filtered_4FGL_J2217.5+6346_daily_bin688.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/236421/ft1_filtered_4FGL_J2217.5+6346_daily_bin688.fits" evtable="EVENTS" scfile=/scratch/kocevski/236421/ft2_4FGL_J2217.5+6346_daily_bin688.fits sctable="SC_DATA" outfile=/scratch/kocevski/236421/ltcube_417657601_417916801_4FGL_J2217.5+6346_daily_bin688.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/236421/ft2_4FGL_J2217.5+6346_daily_bin688.fits
.....................!
real 12.98
user 12.64
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236421/ft1_filtered_4FGL_J2217.5+6346_daily_bin688.fits evtable="EVENTS" scfile=/scratch/kocevski/236421/ft2_4FGL_J2217.5+6346_daily_bin688.fits sctable="SC_DATA" expcube=/scratch/kocevski/236421/ltcube_417657601_417916801_4FGL_J2217.5+6346_daily_bin688.fits outfile=/scratch/kocevski/236421/expmap_417657601_417916801_4FGL_J2217.5+6346_daily_bin688.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/236421/ltcube_417657601_417916801_4FGL_J2217.5+6346_daily_bin688.fits
.....................!
real 191.28
user 186.01
sys 4.73

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
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Added 191 point sources and 5 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2217.5+6346 @ 334.394 63.776

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/236421/ft1_filtered_4FGL_J2217.5+6346_daily_bin688.fits scfile=/scratch/kocevski/236421/ft2_4FGL_J2217.5+6346_daily_bin688.fits outfile=/scratch/kocevski/236421/cmap_417657601_417916801_4FGL_J2217.5+6346_daily_bin688.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=334.394 yref=63.776 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/236421/ft1_filtered_4FGL_J2217.5+6346_daily_bin688.fits scfile=/scratch/kocevski/236421/ft2_4FGL_J2217.5+6346_daily_bin688.fits outfile=/scratch/kocevski/236421/cmap_HighResolution_417657601_417916801_4FGL_J2217.5+6346_daily_bin688.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=334.394 yref=63.776 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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/236421/ft1_filtered_4FGL_J2217.5+6346_daily_bin688.fits evtable="EVENTS" scfile=/scratch/kocevski/236421/ft2_4FGL_J2217.5+6346_daily_bin688.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/236421/Model_4FGL_J2217.5+6346_daily_bin688.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 CTB 109
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 21
Working on...
/scratch/kocevski/236421/ft1_filtered_4FGL_J2217.5+6346_daily_bin688.fits.....................!
real 210.40
user 208.70
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/236421/ft1_filtered_4FGL_J2217.5+6346_daily_bin688.fits', '/scratch/kocevski/236421/ft2_4FGL_J2217.5+6346_daily_bin688.fits', expMap='/scratch/kocevski/236421/expmap_417657601_417916801_4FGL_J2217.5+6346_daily_bin688.fits', expCube='/scratch/kocevski/236421/ltcube_417657601_417916801_4FGL_J2217.5+6346_daily_bin688.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/236421/Model_4FGL_J2217.5+6346_daily_bin688.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2217.5+6346'

4FGL J2217.5+6346
   Spectrum: PowerLaw
468    Prefactor:  2.270e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
469        Index:  2.057e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
470        Scale:  5.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/236421/ft1_filtered_4FGL_J2217.5+6346_daily_bin688.fits
Spacecraft file(s): /scratch/kocevski/236421/ft2_4FGL_J2217.5+6346_daily_bin688.fits
Exposure map: /scratch/kocevski/236421/expmap_417657601_417916801_4FGL_J2217.5+6346_daily_bin688.fits
Exposure cube: /scratch/kocevski/236421/ltcube_417657601_417916801_4FGL_J2217.5+6346_daily_bin688.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/236421/Model_4FGL_J2217.5+6346_daily_bin688.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) = 13406.6112315

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.2755       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .14397E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.938       1.0000         .10000E-03   10000.    
     6 'Prefactor '    238.54       1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.576       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Normalizat'    .65809       1.0000         .10000E-01   10.000    
    10 'Prefactor '    1.0133       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13406.61     FROM MIGRAD    STATUS=CONVERGED    154 CALLS      749 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.2762        12.103       -.10424E-05   -.51226E-04
   2  Prefactor     .10000E-03    19.121       -.85225E-06** at limit **
   3  Prefactor     .10000E-03    1.5292        .19580E-07** at limit **
   4  norm          .10000E-03    59.835        .60606E-06** at limit **
   5  Prefactor     26.941        29.204        .27354E-05   -.69833E-05
   6  Prefactor     238.52        96.966       -.12645E-04   -.27213E-04
   7  Prefactor     37.501        76.222       -.11297E-03   -.14261E-04
   8  norm          .10000E-03    10.314       -.29639E-06** at limit **
   9  Normalizat    .65768        .57772        .73595E-05    .22300E-04
  10  Prefactor     1.0134        .57479E-01    .41458E-06   -.81923E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.27621
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.941
  Prefactor  = 238.523
  Prefactor  = 37.5011
  norm       = 0.0001
  Normalizat = 0.657685
  Prefactor  = 1.01336
 **********
 **   18 **HESSE 
 **********

 FCN=   13406.61     FROM HESSE     STATUS=OK            94 CALLS      843 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.2762        12.085        .14870E-03   -1.5168    
   2  Prefactor     .10000E-03    19.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.5305        .13982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    60.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.941        29.124        .77186E-04   -1.4669    
   6  Prefactor     238.52        96.361        .13107E-03   -1.2607    
   7  Prefactor     37.501        76.299        .32691E-03   -1.4482    
   8  norm          .10000E-03    10.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Normalizat    .65768        .47523        .13865E-02   -1.0559    
  10  Prefactor     1.0134        .47875E-01    .11339E-03   -.92285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89153e-10
Minuit parameter uncertainties:
  1  12.0889
  2  2.0065e-05
  3  3.77576e-07
  4  0.000174152
  5  29.1393
  6  96.4251
  7  76.4988
  8  5.72919e-06
  9  0.478241
  10  0.0478767
Done.

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

Extracting fit parameters...

4FGL J2217.5+6346
   Spectrum: PowerLaw
468    Prefactor:  2.385e+02  9.643e+01  1.000e-04  1.000e+04 ( 1.000e-14)
469        Index:  2.057e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
470        Scale:  5.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
664    Prefactor:  1.013e+00  4.788e-02  0.000e+00  1.000e+01 ( 1.000e+00)
665        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
666        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
652   Normalization:  6.577e-01  4.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.99
Ra Dec: 334.394 63.776
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 7.08e-07 +/- 2.86e-07
Energy Flux (Fixed Index): 4.27e-04 +/- 1.73e-04

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) = 13401.2043314
delta logL = 5.40453284649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13401.1827896
delta logL = 5.42607469748

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9048       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2777       1.0000          .0000       10.000    
     3 'Normalizat'    .30129       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0272       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+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=   13401.18     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      313 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9021        37.449        .94436E-04   -.54655E-02
   2  Index         3.2778        1.1116        .17714E-02   -.30763E-02
   3  Normalizat    .30111        .50298        .18859E-01   -.20143E-03
   4  Prefactor     1.0272        .49535E-01    .11242E-03   -.40188E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.90208
  Index      = 3.27777
  Normalizat = 0.301112
  Prefactor  = 1.02722
 **********
 **   18 **HESSE 
 **********

 FCN=   13401.18     FROM HESSE     STATUS=OK            25 CALLS      338 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9021        17.100        .37775E-05   -1.5079    
   2  Index         3.2778        .51004        .70857E-04   -.35165    
   3  Normalizat    .30111        .47930        .75438E-03   -1.2277    
   4  Prefactor     1.0272        .48052E-01    .22484E-04   -.91828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.58135e-09
Minuit parameter uncertainties:
  1  17.1087
  2  0.511046
  3  0.486045
  4  0.0480542
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236421': 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) = 13401.1827894
delta logL = 5.42607485257

Extracting fit parameters...

4FGL J2217.5+6346
   Spectrum: PowerLaw
468    Prefactor:  9.902e+00  1.711e+01  1.000e-04  1.000e+04 ( 1.000e-14)
469        Index:  3.278e+00  5.110e-01  0.000e+00  1.000e+01 (-1.000e+00)
470        Scale:  5.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
664    Prefactor:  1.027e+00  4.805e-02  0.000e+00  1.000e+01 ( 1.000e+00)
665        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
666        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
652   Normalization:  3.011e-01  4.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.74
Ra Dec: 334.394 63.776
Photon Index (Free Index): 3.28 +/- 0.51
Photon Flux (Free Index): 1.63e-06 +/- 4.64e-07
Energy Flux (Free Index): 2.89e-04 +/- 8.57e-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/236421/cmap_HighResolution_417657601_417916801_4FGL_J2217.5+6346_daily_bin688.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.08e-07', energy_flux2='2.89e-04', photon_flux_error='2.86e-07', dlogl='5.43e+00', energy_flux='4.27e-04', photon_flux2='1.63e-06', job_status='DONE', time_completed='2021-09-28 08:06:20.754361', photon_index_error2='0.51', photon_index2='3.28', ts='9.99', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='8.57e-05', EG='0.66', time_epoch_completed='1632841580.75', return_code='0', job_id='236421', GAL2='1.03', EG2='0.30', return_code2='0', energy_flux_error='1.73e-04', photon_flux_error2='4.64e-07', ts2='21.74', photon_index='2.06' WHERE bin_id='688' AND source_name='4FGL J2217.5+6346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 08:06:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 236421: <4FGL_J2217.5+6346_daily_bin688> in cluster <slac> Done

Job <4FGL_J2217.5+6346_daily_bin688> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 07:50:48 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 07:50:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 07:50:50 2021
Terminated at Tue Sep 28 08:06:21 2021
Results reported at Tue Sep 28 08:06:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2217.5+6346_daily_bin688 334.394 63.776 417657601 417916801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2217.5+6346 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   769.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             342.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

