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


Performing analysis on: 4FGL_J1644.9+2620_daily_bin1639
RA = 251.232, Dec = 26.3465
tmin = 664156801, tmax = 664416001
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='196615', job_status='RUN', time_executed='2022-01-21 00:21:16.204700', time_epoch_executed='1642753276.2' WHERE source_name='4FGL J1644.9+2620' and cadence='daily' and bin_id='1639'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/196615

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/196615/ft1_4FGL_J1644.9+2620_daily_bin1639.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/196615/ft2_4FGL_J1644.9+2620_daily_bin1639.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/196615/ft1_4FGL_J1644.9+2620_daily_bin1639.fits outfile=/scratch/kocevski/196615/ft1_filteredMKT_4FGL_J1644.9+2620_daily_bin1639.fits ra=251.232 dec=26.3465 rad=12.0 tmin=664156801.0 tmax=664416001.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.01
user 3.77
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/196615/ft2_4FGL_J1644.9+2620_daily_bin1639.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/196615/ft2_4FGL_J1644.9+2620_daily_bin1639.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/196615/ft1_filteredMKT_4FGL_J1644.9+2620_daily_bin1639.fits evtable="EVENTS" outfile="/scratch/kocevski/196615/ft1_filtered_4FGL_J1644.9+2620_daily_bin1639.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/196615/ft1_filtered_4FGL_J1644.9+2620_daily_bin1639.fits" evtable="EVENTS" scfile=/scratch/kocevski/196615/ft2_4FGL_J1644.9+2620_daily_bin1639.fits sctable="SC_DATA" outfile=/scratch/kocevski/196615/ltcube_664156801_664416001_4FGL_J1644.9+2620_daily_bin1639.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/196615/ft2_4FGL_J1644.9+2620_daily_bin1639.fits
.....................!
real 13.84
user 13.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/196615/ft1_filtered_4FGL_J1644.9+2620_daily_bin1639.fits evtable="EVENTS" scfile=/scratch/kocevski/196615/ft2_4FGL_J1644.9+2620_daily_bin1639.fits sctable="SC_DATA" expcube=/scratch/kocevski/196615/ltcube_664156801_664416001_4FGL_J1644.9+2620_daily_bin1639.fits outfile=/scratch/kocevski/196615/expmap_664156801_664416001_4FGL_J1644.9+2620_daily_bin1639.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/196615/ltcube_664156801_664416001_4FGL_J1644.9+2620_daily_bin1639.fits
.....................!
real 190.52
user 185.89
sys 4.20

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 195 point sources and 0 extended sources

Setting source of interest to:
4FGL J1644.9+2620 @ 251.232 26.3465

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/196615/ft1_filtered_4FGL_J1644.9+2620_daily_bin1639.fits scfile=/scratch/kocevski/196615/ft2_4FGL_J1644.9+2620_daily_bin1639.fits outfile=/scratch/kocevski/196615/cmap_664156801_664416001_4FGL_J1644.9+2620_daily_bin1639.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=251.232 yref=26.3465 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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/196615/ft1_filtered_4FGL_J1644.9+2620_daily_bin1639.fits scfile=/scratch/kocevski/196615/ft2_4FGL_J1644.9+2620_daily_bin1639.fits outfile=/scratch/kocevski/196615/cmap_HighResolution_664156801_664416001_4FGL_J1644.9+2620_daily_bin1639.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=251.232 yref=26.3465 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.57
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/196615/ft1_filtered_4FGL_J1644.9+2620_daily_bin1639.fits evtable="EVENTS" scfile=/scratch/kocevski/196615/ft2_4FGL_J1644.9+2620_daily_bin1639.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/196615/Model_4FGL_J1644.9+2620_daily_bin1639.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/196615/ft1_filtered_4FGL_J1644.9+2620_daily_bin1639.fits.....................!
real 64.12
user 62.68
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/196615/ft1_filtered_4FGL_J1644.9+2620_daily_bin1639.fits', '/scratch/kocevski/196615/ft2_4FGL_J1644.9+2620_daily_bin1639.fits', expMap='/scratch/kocevski/196615/expmap_664156801_664416001_4FGL_J1644.9+2620_daily_bin1639.fits', expCube='/scratch/kocevski/196615/ltcube_664156801_664416001_4FGL_J1644.9+2620_daily_bin1639.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/196615/Model_4FGL_J1644.9+2620_daily_bin1639.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1644.9+2620'

4FGL J1644.9+2620
   Spectrum: PowerLaw
305    Prefactor:  4.478e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  2.787e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
307        Scale:  4.233e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/196615/ft1_filtered_4FGL_J1644.9+2620_daily_bin1639.fits
Spacecraft file(s): /scratch/kocevski/196615/ft2_4FGL_J1644.9+2620_daily_bin1639.fits
Exposure map: /scratch/kocevski/196615/expmap_664156801_664416001_4FGL_J1644.9+2620_daily_bin1639.fits
Exposure cube: /scratch/kocevski/196615/ltcube_664156801_664416001_4FGL_J1644.9+2620_daily_bin1639.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/196615/Model_4FGL_J1644.9+2620_daily_bin1639.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) = 8256.48661073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15746E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6714       1.0000         .10000E-03   10000.    
     4 'norm      '    .83994E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.6250       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.2042       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.0206       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12498       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10378E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.545       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Normalizat'    1.2050       1.0000         .10000E-01   10.000    
    13 'Prefactor '    .83775       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8255.976     FROM MIGRAD    STATUS=CONVERGED     97 CALLS     1013 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3148        .16225E-05** at limit **
   2  Prefactor     .10000E-03    19.810       -.11951E-04** at limit **
   3  Prefactor     3.6691        7.6214        .64402E-06   -.82278E-04
   4  norm          .84062E-01    .21303       -.59900E-06   -.46960E-03
   5  Prefactor     5.6164        17.814        .49922E-05    .59834E-04
   6  Prefactor     6.2006        7.0963       -.99126E-05   -.69290E-03
   7  Prefactor     8.0167        6.4248        .40811E-05   -.23797E-04
   8  Prefactor     .10130E-03    7998.8       -.93717E-04** at limit **
   9  Prefactor     .10000E-03    31.166        .38281E-05** at limit **
  10  Prefactor     10.546        13.459       -.14748E-04    .63570E-03
  11  norm          .10000E-03    1.3533       -.61327E-06** at limit **
  12  Normalizat    1.2050        .21881        .52750E-05    .45775E-04
  13  Prefactor     .83771        .11610        .15156E-05   -.35640E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.66906
  norm       = 0.0840619
  Prefactor  = 5.61636
  Prefactor  = 6.20061
  Prefactor  = 8.0167
  Prefactor  = 0.000101299
  Prefactor  = 0.0001
  Prefactor  = 10.5455
  norm       = 0.0001
  Normalizat = 1.20501
  Prefactor  = 0.83771
 **********
 **   18 **HESSE 
 **********

 FCN=   8255.976     FROM HESSE     STATUS=OK           187 CALLS     1200 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3136        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.7820        .70227E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.6691        7.6822        .52700E-02   -1.5325    
   4  norm          .84062E-01    .24614        .94346E-02   -1.5650    
   5  Prefactor     5.6164        20.743        .42345E-02   -1.5234    
   6  Prefactor     6.2006        13.840        .40292E-02   -1.5210    
   7  Prefactor     8.0167        6.9499        .35393E-02   -1.5142    
   8  Prefactor     .10130E-03    31.215        .12379       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    30.973        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.546        15.307        .30845E-02   -1.5058    
  11  norm          .10000E-03    1.3360        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Normalizat    1.2050        .18875        .64716E-01   -.86448    
  13  Prefactor     .83771        .97758E-01    .44207E-01   -.98353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.59629e-08
Minuit parameter uncertainties:
  1  1.62741e-05
  2  9.93213e-05
  3  7.68428
  4  0.246146
  5  20.77
  6  13.8473
  7  6.95065
  8  0.0127426
  9  0.000206367
  10  15.3127
  11  1.79366e-06
  12  0.188859
  13  0.0977779
Done.

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

Extracting fit parameters...

4FGL J1644.9+2620
   Spectrum: PowerLaw
305    Prefactor:  6.201e+00  1.385e+01  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  2.787e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
307        Scale:  4.233e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
635    Prefactor:  8.377e-01  9.778e-02  0.000e+00  1.000e+01 ( 1.000e+00)
636        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
637        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
634   Normalization:  1.205e+00  1.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 251.232 26.346
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/196615/likelihoodResults_664156801_664416001_4FGL_J1644.9+2620_daily_bin1639.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) = 8255.61585263
delta logL = 0.359986420073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8255.14863611
delta logL = 0.82720294301

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32067E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9999       1.0000          .0000       10.000    
     3 'Normalizat'    1.1444       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86206       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8255.149     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      387 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32017E-02    .10023        .98775E-03    .20772E-01
   2  Index        10.0000        8.1640        .50000    ** at limit **
   3  Normalizat    1.1450        .84429E-01    .66106E-01    .12763E-04
   4  Prefactor     .86178        .44065E-01    .44520E-01   -.12994E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00320165
  Index      = 10
  Normalizat = 1.14495
  Prefactor  = 0.861778
 **********
 **   18 **HESSE 
 **********

 FCN=   8255.149     FROM HESSE     STATUS=OK            37 CALLS      424 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32017E-02    .31039E-02    .44090E-04   -1.5697    
   2  Index        10.0000        1.3611        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1450        .21997        .29245E-03   -.88321    
   4  Prefactor     .86178        .11685        .17933E-03   -.97490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10712e-09
Minuit parameter uncertainties:
  1  0.00310387
  2  2.74798e-05
  3  0.220152
  4  0.116879
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/196615': 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) = 8255.14862645
delta logL = 0.82721259422

Extracting fit parameters...

4FGL J1644.9+2620
   Spectrum: PowerLaw
305    Prefactor:  3.202e-03  3.104e-03  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  1.000e+01  2.748e-05  0.000e+00  1.000e+01 (-1.000e+00)
307        Scale:  4.233e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
635    Prefactor:  8.618e-01  1.169e-01  0.000e+00  1.000e+01 ( 1.000e+00)
636        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
637        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
634   Normalization:  1.145e+00  2.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.99
Ra Dec: 251.232 26.346
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 6.78e-08 +/- 6.37e-08
Energy Flux (Free Index): 7.58e-06 +/- 7.17e-06

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/196615/cmap_HighResolution_664156801_664416001_4FGL_J1644.9+2620_daily_bin1639.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.24e-03', comment='SUCCESS', energy_flux2='7.58e-06', dlogl='8.27e-01', photon_flux2='6.78e-08', job_status='DONE', time_completed='2022-01-21 00:31:12.171763', photon_index_error2='0.00', photon_index2='10.00', ts='0.23', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='7.17e-06', EG='1.21', time_epoch_completed='1642753872.17', return_code='0', job_id='196615', GAL2='0.86', EG2='1.14', return_code2='0', photon_flux_error2='6.37e-08', ts2='1.99', photon_index='2.79' WHERE bin_id='1639' AND source_name='4FGL J1644.9+2620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 21 00:31:12 PST 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0056>
Subject: Job 194118: <4FGL_J1644.9+2620_daily_bin1639> in cluster <slac> Done

Job <4FGL_J1644.9+2620_daily_bin1639> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Jan 21 00:07:58 2022
Job was executed on host(s) <bullet0056>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 21 00:16:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 21 00:16:47 2022
Terminated at Fri Jan 21 00:29:12 2022
Results reported at Fri Jan 21 00:29:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1644.9+2620_daily_bin1639 251.232 26.3465 664156801 664416001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1644.9+2620 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   596.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             259.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            1274 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 196615: <4FGL_J1644.9+2620_daily_bin1639> in cluster <slac> Done

Job <4FGL_J1644.9+2620_daily_bin1639> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Jan 21 00:18:52 2022
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 21 00:18:54 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 21 00:18:54 2022
Terminated at Fri Jan 21 00:31:13 2022
Results reported at Fri Jan 21 00:31:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1644.9+2620_daily_bin1639 251.232 26.3465 664156801 664416001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1644.9+2620 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   598.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            741 sec.

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

