aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 6 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1640.4+3945_daily_bin1713
RA = 250.119, Dec = 39.7626
tmin = 683337601, tmax = 683596801
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='171485', job_status='RUN', time_executed='2022-09-16 19:40:59.371929', time_epoch_executed='1663382459.37' WHERE source_name='4FGL J1640.4+3945' and cadence='daily' and bin_id='1713'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171485

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171485/ft1_4FGL_J1640.4+3945_daily_bin1713.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171485/ft2_4FGL_J1640.4+3945_daily_bin1713.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171485/ft1_4FGL_J1640.4+3945_daily_bin1713.fits outfile=/scratch/kocevski/171485/ft1_filteredMKT_4FGL_J1640.4+3945_daily_bin1713.fits ra=250.119 dec=39.7626 rad=12.0 tmin=683337601.0 tmax=683596801.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.00
user 3.30
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/171485/ft2_4FGL_J1640.4+3945_daily_bin1713.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/171485/ft2_4FGL_J1640.4+3945_daily_bin1713.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/171485/ft1_filteredMKT_4FGL_J1640.4+3945_daily_bin1713.fits evtable="EVENTS" outfile="/scratch/kocevski/171485/ft1_filtered_4FGL_J1640.4+3945_daily_bin1713.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.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 730

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/171485/ft1_filtered_4FGL_J1640.4+3945_daily_bin1713.fits" evtable="EVENTS" scfile=/scratch/kocevski/171485/ft2_4FGL_J1640.4+3945_daily_bin1713.fits sctable="SC_DATA" outfile=/scratch/kocevski/171485/ltcube_683337601_683596801_4FGL_J1640.4+3945_daily_bin1713.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/171485/ft2_4FGL_J1640.4+3945_daily_bin1713.fits
.....................!
real 15.18
user 14.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171485/ft1_filtered_4FGL_J1640.4+3945_daily_bin1713.fits evtable="EVENTS" scfile=/scratch/kocevski/171485/ft2_4FGL_J1640.4+3945_daily_bin1713.fits sctable="SC_DATA" expcube=/scratch/kocevski/171485/ltcube_683337601_683596801_4FGL_J1640.4+3945_daily_bin1713.fits outfile=/scratch/kocevski/171485/expmap_683337601_683596801_4FGL_J1640.4+3945_daily_bin1713.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/171485/ltcube_683337601_683596801_4FGL_J1640.4+3945_daily_bin1713.fits
.....................!
real 190.72
user 185.39
sys 4.95

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

Setting source of interest to:
4FGL J1640.4+3945 @ 250.119 39.7626

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/171485/ft1_filtered_4FGL_J1640.4+3945_daily_bin1713.fits scfile=/scratch/kocevski/171485/ft2_4FGL_J1640.4+3945_daily_bin1713.fits outfile=/scratch/kocevski/171485/cmap_683337601_683596801_4FGL_J1640.4+3945_daily_bin1713.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.119 yref=39.7626 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.61
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/171485/ft1_filtered_4FGL_J1640.4+3945_daily_bin1713.fits scfile=/scratch/kocevski/171485/ft2_4FGL_J1640.4+3945_daily_bin1713.fits outfile=/scratch/kocevski/171485/cmap_HighResolution_683337601_683596801_4FGL_J1640.4+3945_daily_bin1713.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.119 yref=39.7626 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/171485/ft1_filtered_4FGL_J1640.4+3945_daily_bin1713.fits evtable="EVENTS" scfile=/scratch/kocevski/171485/ft2_4FGL_J1640.4+3945_daily_bin1713.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/171485/Model_4FGL_J1640.4+3945_daily_bin1713.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/171485/ft1_filtered_4FGL_J1640.4+3945_daily_bin1713.fits.....................!
real 59.75
user 58.38
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/171485/ft1_filtered_4FGL_J1640.4+3945_daily_bin1713.fits', '/scratch/kocevski/171485/ft2_4FGL_J1640.4+3945_daily_bin1713.fits', expMap='/scratch/kocevski/171485/expmap_683337601_683596801_4FGL_J1640.4+3945_daily_bin1713.fits', expCube='/scratch/kocevski/171485/ltcube_683337601_683596801_4FGL_J1640.4+3945_daily_bin1713.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/171485/Model_4FGL_J1640.4+3945_daily_bin1713.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1640.4+3945'

4FGL J1640.4+3945
   Spectrum: PowerLaw
308    Prefactor:  1.345e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
309        Index:  2.421e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  1.366e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/171485/ft1_filtered_4FGL_J1640.4+3945_daily_bin1713.fits
Spacecraft file(s): /scratch/kocevski/171485/ft2_4FGL_J1640.4+3945_daily_bin1713.fits
Exposure map: /scratch/kocevski/171485/expmap_683337601_683596801_4FGL_J1640.4+3945_daily_bin1713.fits
Exposure cube: /scratch/kocevski/171485/ltcube_683337601_683596801_4FGL_J1640.4+3945_daily_bin1713.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/171485/Model_4FGL_J1640.4+3945_daily_bin1713.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) = 7570.61963244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2115       1.0000          .0000       .10000E+07
     2 'Prefactor '    .54833E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.3713       1.0000          .0000       .10000E+07
     4 'Prefactor '    .16987E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.8725       1.0000          .0000       .10000E+07
     6 'Prefactor '    .57765E-06   1.0000          .0000       .10000E+07
     7 'norm      '    .35021       1.0000          .0000       .10000E+07
     8 'norm      '    .27205E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    42.050       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.2320       1.0000          .0000       .10000E+07
    11 'norm      '    .77784E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.5770       1.0000          .0000       .10000E+07
    13 'Prefactor '    4.1995       1.0000          .0000       .10000E+07
    14 'Prefactor '    .20506E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .76550E-07   1.0000          .0000       .10000E+07
    16 'norm      '    3.1384       1.0000          .0000       .10000E+07
    17 'norm      '    .76724       1.0000          .0000       .10000E+07
    18 'Prefactor '    .34096       1.0000          .0000       .10000E+07
    19 'norm      '    .10547E-07   1.0000          .0000       .10000E+07
    20 'norm      '    12.960       1.0000          .0000       .10000E+07
    21 'norm      '    2.5605       1.0000          .0000       .10000E+07
    22 'norm      '    8.5388       1.0000          .0000       .10000E+07
    23 'Prefactor '    .15745E-02   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.2279       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .77186       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7570.585     FROM MIGRAD    STATUS=CONVERGED    180 CALLS     2183 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2611        11.200        .61607E-06   -.25681E-03
   2  Prefactor      .0000        39.678        .21844E-06** at limit **
   3  Prefactor     1.3712        1.9715       -.13761E-06   -.54694E-03
   4  Prefactor      .0000        3.4075        .20798E-06** at limit **
   5  Prefactor     1.8002        25.953        .44464E-06    .23472E-03
   6  Prefactor      .0000        1.3357       -.10800E-06** at limit **
   7  norm          .35048        .15348       -.79775E-08   -.50540E-02
   8  norm           .0000        4.5969       -.11667E-06** at limit **
   9  Prefactor     41.899        22.444        .25428E-06    .29190E-04
  10  Prefactor     1.2382        3.0285        .65827E-07   -.15090E-03
  11  norm          .55511E-10    115.05        .37037E-06** at limit **
  12  Prefactor     2.5775        1.7512       -.11716E-07    .92478E-03
  13  Prefactor     4.1994        1.9106        .50820E-07    .17430E-02
  14  Prefactor      .0000        .72255       -.71174E-07** at limit **
  15  Prefactor      .0000        1.0094       -.23632E-07** at limit **
  16  norm          3.1385        1.7239       -.21009E-08    .30778E-03
  17  norm          .76725        .70885       -.17509E-07   -.23959E-02
  18  Prefactor     .31449        21.258        .15391E-05   -.50839E-03
  19  norm           .0000        .18242       -.18013E-07** at limit **
  20  norm          12.948        9.3351       -.31975E-06    .33807E-03
  21  norm          2.5608        1.5524        .43766E-07   -.67960E-03
  22  norm          8.5146        5.4767       -.26996E-06   -.18519E-02
  23  Prefactor     .55511E-10    32.791        .39580E-06** at limit **
  24  Normalizat    1.2284        .22349       -.17539E-05   -.25258E-04
  25  Prefactor     .77174        .17684        .17411E-05   -.18390E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.26113
  Prefactor  = 0
  Prefactor  = 1.37123
  Prefactor  = 0
  Prefactor  = 1.80018
  Prefactor  = 0
  norm       = 0.350484
  norm       = 0
  Prefactor  = 41.899
  Prefactor  = 1.23816
  norm       = 5.55112e-11
  Prefactor  = 2.57752
  Prefactor  = 4.19938
  Prefactor  = 0
  Prefactor  = 0
  norm       = 3.13849
  norm       = 0.76725
  Prefactor  = 0.314493
  norm       = 0
  norm       = 12.9476
  norm       = 2.56083
  norm       = 8.51462
  Prefactor  = 5.55112e-11
  Normalizat = 1.22836
  Prefactor  = 0.771743
 **********
 **   18 **HESSE 
 **********

 FCN=   7570.585     FROM HESSE     STATUS=OK           487 CALLS     2670 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2611        11.223        .49080E-03   -1.5667    
   2  Prefactor      .0000        39.740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3712        2.0072        .93054E-03   -1.5685    
   4  Prefactor      .0000        3.4496        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.8002        25.316        .76076E-03   -1.5681    
   6  Prefactor      .0000        1.3311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .35048        .15562        .45033E-03   -1.5696    
   8  norm           .0000        4.6023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     41.899        22.427        .15423E-03   -1.5579    
  10  Prefactor     1.2382        3.0643        .10124E-02   -1.5686    
  11  norm          .55511E-10    114.50        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5775        1.7300        .63551E-03   -1.5676    
  13  Prefactor     4.1994        1.8791        .49153E-03   -1.5667    
  14  Prefactor      .0000        .72691        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        1.0078        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.1385        1.7303        .57198E-03   -1.5673    
  17  norm          .76725        .72107        .55410E-03   -1.5690    
  18  Prefactor     .31449        2.7687        .77301E-02   -1.5697    
  19  norm           .0000        .18223        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          12.948        9.3686        .27799E-03   -1.5636    
  21  norm          2.5608        1.5635        .63773E-03   -1.5676    
  22  norm          8.5146        5.5230        .34281E-03   -1.5650    
  23  Prefactor     .55511E-10    33.061        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2284        .18569        .56861E-01   -.85731    
  25  Prefactor     .77174        .14710        .43350E-01   -1.0078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41272e-08
Minuit parameter uncertainties:
  1  11.2231
  2  3.78621e-05
  3  2.00719
  4  8.17366e-06
  5  13.5016
  6  1.45696e-06
  7  0.155618
  8  4.54079e-06
  9  22.4266
  10  3.06427
  11  0.000164345
  12  1.72998
  13  1.87909
  14  2.33445e-06
  15  9.54539e-07
  16  1.73034
  17  0.721073
  18  1.86626
  19  3.41567e-07
  20  9.3686
  21  1.56355
  22  5.52302
  23  9.18747e-05
  24  0.185786
  25  0.147176
Done.

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

Extracting fit parameters...

4FGL J1640.4+3945
   Spectrum: PowerLaw
308    Prefactor:  2.578e+00  1.730e+00  0.000e+00  1.000e+06 ( 1.000e-12)
309        Index:  2.421e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  1.366e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  7.717e-01  1.472e-01  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  1.228e+00  1.858e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.54
Ra Dec: 250.119 39.763
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 6.83e-08
Energy Flux (Fixed Index): 3.25e-05 +/- 2.18e-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) = 7570.58374345
delta logL = 0.00101367655589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7570.58252851
delta logL = 0.00222862192277

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4918       1.0000          .0000       .10000E+07
     2 'Index     '    2.4509       1.0000          .0000       10.000    
     3 'Normalizat'    1.2259       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77308       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+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=   7570.583     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      234 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4919        1.9343        .65269E-05    .10886E-02
   2  Index         2.4510        .48061        .45094E-02    .59347E-03
   3  Normalizat    1.2259        .21618        .25164E-03    .94831E-04
   4  Prefactor     .77310        .17565        .25487E-03    .11999E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.49188
  Index      = 2.45101
  Normalizat = 1.22586
  Prefactor  = 0.773095
 **********
 **   18 **HESSE 
 **********

 FCN=   7570.583     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4919        1.8189        .26108E-06   -1.5676    
   2  Index         2.4510        .45165        .90189E-03   -.53495    
   3  Normalizat    1.2259        .21612        .10065E-04   -.85807    
   4  Prefactor     .77310        .17571        .10195E-04   -1.0073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72413e-11
Minuit parameter uncertainties:
  1  1.81891
  2  0.45248
  3  0.216278
  4  0.175836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171485': 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) = 7570.58252846
delta logL = 0.00222867196862

Extracting fit parameters...

4FGL J1640.4+3945
   Spectrum: PowerLaw
308    Prefactor:  2.492e+00  1.819e+00  0.000e+00  1.000e+06 ( 1.000e-12)
309        Index:  2.451e+00  4.525e-01  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  1.366e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  7.731e-01  1.758e-01  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  1.226e+00  2.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.03
Ra Dec: 250.119 39.763
Photon Index (Free Index): 2.45 +/- 0.45
Photon Flux (Free Index): 1.04e-07 +/- 6.26e-08
Energy Flux (Free Index): 3.20e-05 +/- 1.73e-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/171485/cmap_HighResolution_683337601_683596801_4FGL_J1640.4+3945_daily_bin1713.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='3.20e-05', photon_flux_error='6.83e-08', dlogl='2.23e-03', energy_flux='3.25e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2022-09-16 19:52:54.986620', photon_index_error2='0.45', photon_index2='2.45', ts='6.54', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='1.73e-05', EG='1.23', time_epoch_completed='1663383174.99', return_code='0', job_id='171485', GAL2='0.77', EG2='1.23', return_code2='0', energy_flux_error='2.18e-05', photon_flux_error2='6.26e-08', ts2='7.03', photon_index='2.42' WHERE bin_id='1713' AND source_name='4FGL J1640.4+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 19:52:55 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 171485: <4FGL_J1640.4+3945_daily_bin1713> in cluster <slac> Done

Job <4FGL_J1640.4+3945_daily_bin1713> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 16 19:40:19 2022
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 19:40:44 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 19:40:44 2022
Terminated at Fri Sep 16 19:52:55 2022
Results reported at Fri Sep 16 19:52:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1640.4+3945_daily_bin1713 250.119 39.7626 683337601 683596801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1640.4+3945 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   717.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            756 sec.

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

