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


Performing analysis on: 4FGL_J1643.5-0646_daily_bin589
RA = 250.883, Dec = -6.7749
tmin = 391996801, tmax = 392256001
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='870603', job_status='RUN', time_executed='2021-09-15 08:33:14.338487', time_epoch_executed='1631719994.34' WHERE source_name='4FGL J1643.5-0646' and cadence='daily' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/870603

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/870603/ft1_4FGL_J1643.5-0646_daily_bin589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/870603/ft2_4FGL_J1643.5-0646_daily_bin589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/870603/ft1_4FGL_J1643.5-0646_daily_bin589.fits outfile=/scratch/kocevski/870603/ft1_filteredMKT_4FGL_J1643.5-0646_daily_bin589.fits ra=250.883 dec=-6.7749 rad=12.0 tmin=391996801.0 tmax=392256001.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.48
user 5.19
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/870603/ft2_4FGL_J1643.5-0646_daily_bin589.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/870603/ft2_4FGL_J1643.5-0646_daily_bin589.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/870603/ft1_filteredMKT_4FGL_J1643.5-0646_daily_bin589.fits evtable="EVENTS" outfile="/scratch/kocevski/870603/ft1_filtered_4FGL_J1643.5-0646_daily_bin589.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/870603/ft1_filtered_4FGL_J1643.5-0646_daily_bin589.fits" evtable="EVENTS" scfile=/scratch/kocevski/870603/ft2_4FGL_J1643.5-0646_daily_bin589.fits sctable="SC_DATA" outfile=/scratch/kocevski/870603/ltcube_391996801_392256001_4FGL_J1643.5-0646_daily_bin589.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/870603/ft2_4FGL_J1643.5-0646_daily_bin589.fits
.....................!
real 12.84
user 12.45
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/870603/ft1_filtered_4FGL_J1643.5-0646_daily_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/870603/ft2_4FGL_J1643.5-0646_daily_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/870603/ltcube_391996801_392256001_4FGL_J1643.5-0646_daily_bin589.fits outfile=/scratch/kocevski/870603/expmap_391996801_392256001_4FGL_J1643.5-0646_daily_bin589.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/870603/ltcube_391996801_392256001_4FGL_J1643.5-0646_daily_bin589.fits
.....................!
real 194.00
user 188.47
sys 4.59

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 J1723.5-0501 in ROI with RadialGaussian spatial model.
Extended source FHES J1626.9-2431 in ROI with RadialGaussian spatial model.
Added 205 point sources and 2 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 J1643.5-0646 @ 250.883 -6.7749

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/870603/ft1_filtered_4FGL_J1643.5-0646_daily_bin589.fits scfile=/scratch/kocevski/870603/ft2_4FGL_J1643.5-0646_daily_bin589.fits outfile=/scratch/kocevski/870603/cmap_391996801_392256001_4FGL_J1643.5-0646_daily_bin589.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=250.883 yref=-6.7749 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/870603/ft1_filtered_4FGL_J1643.5-0646_daily_bin589.fits scfile=/scratch/kocevski/870603/ft2_4FGL_J1643.5-0646_daily_bin589.fits outfile=/scratch/kocevski/870603/cmap_HighResolution_391996801_392256001_4FGL_J1643.5-0646_daily_bin589.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=250.883 yref=-6.7749 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/870603/ft1_filtered_4FGL_J1643.5-0646_daily_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/870603/ft2_4FGL_J1643.5-0646_daily_bin589.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/870603/Model_4FGL_J1643.5-0646_daily_bin589.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 FHES J1626.9-2431
adding source FHES J1723.5-0501
adding source GAL_V02
Working on...
/scratch/kocevski/870603/ft1_filtered_4FGL_J1643.5-0646_daily_bin589.fits.....................!
real 141.90
user 140.11
sys 1.43

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/870603/ft1_filtered_4FGL_J1643.5-0646_daily_bin589.fits', '/scratch/kocevski/870603/ft2_4FGL_J1643.5-0646_daily_bin589.fits', expMap='/scratch/kocevski/870603/expmap_391996801_392256001_4FGL_J1643.5-0646_daily_bin589.fits', expCube='/scratch/kocevski/870603/ltcube_391996801_392256001_4FGL_J1643.5-0646_daily_bin589.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/870603/Model_4FGL_J1643.5-0646_daily_bin589.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1643.5-0646'

4FGL J1643.5-0646
   Spectrum: PowerLaw
268    Prefactor:  3.411e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  2.138e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  3.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/870603/ft1_filtered_4FGL_J1643.5-0646_daily_bin589.fits
Spacecraft file(s): /scratch/kocevski/870603/ft2_4FGL_J1643.5-0646_daily_bin589.fits
Exposure map: /scratch/kocevski/870603/expmap_391996801_392256001_4FGL_J1643.5-0646_daily_bin589.fits
Exposure cube: /scratch/kocevski/870603/ltcube_391996801_392256001_4FGL_J1643.5-0646_daily_bin589.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/870603/Model_4FGL_J1643.5-0646_daily_bin589.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) = 13797.0642629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    174.73       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10602E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.8657       1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.433       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.576       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     9 'Normalizat'    .27881       1.0000         .10000E-01   10.000    
    10 'Prefactor '    1.1541       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+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=   13797.06     FROM MIGRAD    STATUS=CONVERGED    278 CALLS      999 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.341        .18142E-02** at limit **
   2  Prefactor     174.73        115.39        .30528E-04    .56605E-05
   3  Prefactor     .10000E-03    6.4600        .70293E-01** at limit **
   4  Prefactor     7.8644        25.488        .14297E-03   -.73156E-05
   5  Prefactor     43.432        41.075        .60831E-04   -.76251E-05
   6  Prefactor     14.578        8.2566        .10491E-03    .20156E-04
   7  Prefactor     .10000E-03    85.076        .18142E-02** at limit **
   8  Prefactor     .10000E-03    79.784        .18142E-02** at limit **
   9  Normalizat    .27876        .37802        .13070E-01    .28297E-04
  10  Prefactor     1.1541        .64433E-01    .12512E-03    .65419E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 174.73
  Prefactor  = 0.0001
  Prefactor  = 7.86443
  Prefactor  = 43.432
  Prefactor  = 14.5776
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.278759
  Prefactor  = 1.15409
 **********
 **   18 **HESSE 
 **********

 FCN=   13797.06     FROM HESSE     STATUS=OK            98 CALLS     1097 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.345        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     174.73        114.98        .61057E-05   -1.3056    
   3  Prefactor     .10000E-03    5.7247        .76047E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.8644        25.456        .57188E-05   -1.5147    
   5  Prefactor     43.432        41.062        .12166E-04   -1.4389    
   6  Prefactor     14.578        8.2255        .41963E-05   -1.4944    
   7  Prefactor     .10000E-03    85.091        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    79.784        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Normalizat    .27876        .36339        .52281E-03   -1.2413    
  10  Prefactor     1.1541        .62160E-01    .50049E-05   -.87756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12374e-12
Minuit parameter uncertainties:
  1  1.95083e-05
  2  115.13
  3  7.88808e-06
  4  25.4912
  5  41.0883
  6  8.22611
  7  7.12075e-06
  8  6.94372e-05
  9  0.366528
  10  0.0621642
Done.

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

Extracting fit parameters...

4FGL J1643.5-0646
   Spectrum: PowerLaw
268    Prefactor:  4.343e+01  4.109e+01  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  2.138e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  3.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  1.154e+00  6.216e-02  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  2.788e-01  3.665e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.91
Ra Dec: 250.883 -6.775
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 6.67e-08 +/- 6.30e-08
Energy Flux (Fixed Index): 3.38e-05 +/- 3.19e-05

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) = 13794.0720519
delta logL = 2.98989495146

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13792.884352
delta logL = 4.17759482812

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9127       1.0000         .10000E-03   10000.    
     2 'Index     '    .56675E-07   1.0000          .0000       10.000    
     3 'Normalizat'    .30613       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1568       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13792.88     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      250 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9167        4.5398        .50990E-02   -.44563E-03
   2  Index         .71504E-09    .34545        .50000    ** at limit **
   3  Normalizat    .30626        .52474        .29344        .27885E-03
   4  Prefactor     1.1568        .99772E-01    .35742E-01    .97453E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.91667
  Index      = 7.15042e-10
  Normalizat = 0.306255
  Prefactor  = 1.15678
 **********
 **   18 **HESSE 
 **********

 FCN=   13792.88     FROM HESSE     STATUS=OK            31 CALLS      281 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9167        3.9468        .20396E-03   -1.5312    
   2  Index         .71504E-09    .71655        .36917E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .30626        .34243        .12613E-01   -1.2247    
   4  Prefactor     1.1568        .62710E-01    .12500E-03   -.87672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27353e-09
Minuit parameter uncertainties:
  1  3.9471
  2  4.58297e-05
  3  0.344806
  4  0.0627143
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/870603': 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) = 13792.8843511
delta logL = 4.17759569682

Extracting fit parameters...

4FGL J1643.5-0646
   Spectrum: PowerLaw
268    Prefactor:  3.917e+00  3.947e+00  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  7.150e-10  4.583e-05  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  3.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  1.157e+00  6.271e-02  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  3.063e-01  3.448e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.26
Ra Dec: 250.883 -6.775
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 3.91e-09 +/- 3.94e-09
Energy Flux (Free Index): 1.96e-04 +/- 1.97e-04

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/870603/cmap_HighResolution_391996801_392256001_4FGL_J1643.5-0646_daily_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.67e-08', energy_flux2='1.96e-04', photon_flux_error='6.30e-08', dlogl='4.18e+00', energy_flux='3.38e-05', photon_flux2='3.91e-09', job_status='DONE', time_completed='2021-09-15 08:45:24.225403', photon_index_error2='0.00', photon_index2='0.00', ts='12.91', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='1.97e-04', EG='0.28', time_epoch_completed='1631720724.23', return_code='0', job_id='870603', GAL2='1.16', EG2='0.31', return_code2='0', energy_flux_error='3.19e-05', photon_flux_error2='3.94e-09', ts2='21.26', photon_index='2.14' WHERE bin_id='589' AND source_name='4FGL J1643.5-0646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 08:45:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 870603: <4FGL_J1643.5-0646_daily_bin589> in cluster <slac> Done

Job <4FGL_J1643.5-0646_daily_bin589> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep 15 08:30:13 2021
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 08:30:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 15 08:30:54 2021
Terminated at Wed Sep 15 08:45:25 2021
Results reported at Wed Sep 15 08:45:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1643.5-0646_daily_bin589 250.883 -6.7749 391996801 392256001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1643.5-0646 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   728.15 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             329.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            912 sec.

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

