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


Performing analysis on: 4FGL_J1640.4+3945_daily_bin1780
RA = 250.119, Dec = 39.7626
tmin = 700704001, tmax = 700963201
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='69574', job_status='RUN', time_executed='2023-03-20 01:15:55.647179', time_epoch_executed='1679300155.65' WHERE source_name='4FGL J1640.4+3945' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69574

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69574/ft1_4FGL_J1640.4+3945_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69574/ft2_4FGL_J1640.4+3945_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69574/ft1_4FGL_J1640.4+3945_daily_bin1780.fits outfile=/scratch/kocevski/69574/ft1_filteredMKT_4FGL_J1640.4+3945_daily_bin1780.fits ra=250.119 dec=39.7626 rad=12.0 tmin=700704001.0 tmax=700963201.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.07
user 3.85
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/69574/ft2_4FGL_J1640.4+3945_daily_bin1780.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/69574/ft1_filteredMKT_4FGL_J1640.4+3945_daily_bin1780.fits evtable="EVENTS" outfile="/scratch/kocevski/69574/ft1_filtered_4FGL_J1640.4+3945_daily_bin1780.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.48
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 925

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69574/ft1_filtered_4FGL_J1640.4+3945_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/69574/ft2_4FGL_J1640.4+3945_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/69574/ltcube_700704001_700963201_4FGL_J1640.4+3945_daily_bin1780.fits outfile=/scratch/kocevski/69574/expmap_700704001_700963201_4FGL_J1640.4+3945_daily_bin1780.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/69574/ltcube_700704001_700963201_4FGL_J1640.4+3945_daily_bin1780.fits
.....................!
real 189.92
user 185.22
sys 4.39

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/69574/ft1_filtered_4FGL_J1640.4+3945_daily_bin1780.fits scfile=/scratch/kocevski/69574/ft2_4FGL_J1640.4+3945_daily_bin1780.fits outfile=/scratch/kocevski/69574/cmap_700704001_700963201_4FGL_J1640.4+3945_daily_bin1780.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69574/ft1_filtered_4FGL_J1640.4+3945_daily_bin1780.fits scfile=/scratch/kocevski/69574/ft2_4FGL_J1640.4+3945_daily_bin1780.fits outfile=/scratch/kocevski/69574/cmap_HighResolution_700704001_700963201_4FGL_J1640.4+3945_daily_bin1780.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/69574/ft1_filtered_4FGL_J1640.4+3945_daily_bin1780.fits', '/scratch/kocevski/69574/ft2_4FGL_J1640.4+3945_daily_bin1780.fits', expMap='/scratch/kocevski/69574/expmap_700704001_700963201_4FGL_J1640.4+3945_daily_bin1780.fits', expCube='/scratch/kocevski/69574/ltcube_700704001_700963201_4FGL_J1640.4+3945_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/69574/Model_4FGL_J1640.4+3945_daily_bin1780.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/69574/ft1_filtered_4FGL_J1640.4+3945_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/69574/ft2_4FGL_J1640.4+3945_daily_bin1780.fits
Exposure map: /scratch/kocevski/69574/expmap_700704001_700963201_4FGL_J1640.4+3945_daily_bin1780.fits
Exposure cube: /scratch/kocevski/69574/ltcube_700704001_700963201_4FGL_J1640.4+3945_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/69574/Model_4FGL_J1640.4+3945_daily_bin1780.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) = 9963.34889668

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43380E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .63359       1.0000          .0000       .10000E+07
     3 'Prefactor '    .32559E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .68917E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    10.354       1.0000          .0000       .10000E+07
     6 'Prefactor '    .56885E-04   1.0000          .0000       .10000E+07
     7 'norm      '    .46578E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .29180E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .27272E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .39638E-04   1.0000          .0000       .10000E+07
    11 'norm      '    18.795       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.8669       1.0000          .0000       .10000E+07
    13 'Prefactor '    .44781E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.7815       1.0000          .0000       .10000E+07
    15 'Prefactor '    .50883E-05   1.0000          .0000       .10000E+07
    16 'norm      '    4.9687       1.0000          .0000       .10000E+07
    17 'norm      '    .10270E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    8.4386       1.0000          .0000       .10000E+07
    19 'norm      '    .11935E-06   1.0000          .0000       .10000E+07
    20 'norm      '    17.330       1.0000          .0000       .10000E+07
    21 'norm      '    2.3864       1.0000          .0000       .10000E+07
    22 'norm      '    18.457       1.0000          .0000       .10000E+07
    23 'Prefactor '    66.498       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.0242       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92177       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=   9963.348     FROM MIGRAD    STATUS=CONVERGED    190 CALLS     2315 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.5730        .52762E-06** at limit **
   2  Prefactor     .68279E-08    93.188        .92793E-05** at limit **
   3  Prefactor     .15633E-04    33.813       -.16547E-04** at limit **
   4  Prefactor      .0000        5.9767        .33188E-07** at limit **
   5  Prefactor     10.424        13.802       -.12927E-05   -.10358E-02
   6  Prefactor      .0000        .72594       -.58850E-07** at limit **
   7  norm          .47225E-02    .38569        .32279E-06** at limit **
   8  norm          .55511E-10    2.7814       -.82584E-06** at limit **
   9  Prefactor     .55511E-10    8.3893       -.48758E-06** at limit **
  10  Prefactor      .0000        .75632       -.40687E-07** at limit **
  11  norm          18.841        17.744        .70263E-05    .19271E-01
  12  Prefactor     2.8659        .96513       -.71239E-07    .86560E-02
  13  Prefactor     .55511E-10    .60535        .44034E-06** at limit **
  14  Prefactor     3.7822        1.8876        .34942E-07    .48518E-03
  15  Prefactor     .11102E-09    2.5919        .95124E-06** at limit **
  16  norm          4.9686        1.6106       -.10317E-06    .60820E-02
  17  norm           .0000        .32383        .29637E-06** at limit **
  18  Prefactor     8.3318        5.9979        .47004E-06   -.21962E-02
  19  norm           .0000        .35519        .17534E-06** at limit **
  20  norm          17.317        8.2860       -.77967E-06   -.11159E-02
  21  norm          2.3898        1.5187        .57377E-07   -.26450E-02
  22  norm          18.426        6.5038       -.48819E-06    .33033E-02
  23  Prefactor     66.918        72.500        .97662E-05   -.24501E-02
  24  Normalizat    1.0250        .18876        .35072E-05   -.31570E-03
  25  Prefactor     .92169        .15147       -.14193E-04   -.24172E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 6.82787e-09
  Prefactor  = 1.56333e-05
  Prefactor  = 0
  Prefactor  = 10.4244
  Prefactor  = 0
  norm       = 0.00472254
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 18.8409
  Prefactor  = 2.86587
  Prefactor  = 5.55112e-11
  Prefactor  = 3.78224
  Prefactor  = 1.11022e-10
  norm       = 4.96859
  norm       = 0
  Prefactor  = 8.3318
  norm       = 0
  norm       = 17.3171
  norm       = 2.3898
  norm       = 18.4263
  Prefactor  = 66.9178
  Normalizat = 1.02495
  Prefactor  = 0.921686
 **********
 **   18 **HESSE 
 **********

 FCN=   9963.348     FROM HESSE     STATUS=OK           493 CALLS     2808 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.5652        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .68279E-08    92.767        .66272E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .15633E-04    1.0205        .74351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        5.9631        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.424        13.786        .31114E-03   -1.5643    
   6  Prefactor      .0000        .72411        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .47225E-02    .36414E-01    .11116E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .55511E-10    2.7831        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    8.3787        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        .75516        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          18.841        18.840        .23075E-03   -1.5621    
  12  Prefactor     2.8659        .94811        .60010E-03   -1.5674    
  13  Prefactor     .55511E-10    .59895        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.7822        1.8874        .51888E-03   -1.5669    
  15  Prefactor     .11102E-09    2.5352        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.9686        1.6114        .45094E-03   -1.5663    
  17  norm           .0000        .31517        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.3318        6.0021        .34485E-03   -1.5650    
  19  norm           .0000        .34475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          17.317        8.2929        .24032E-03   -1.5625    
  21  norm          2.3898        1.5293        .66276E-03   -1.5677    
  22  norm          18.426        6.5084        .23285E-03   -1.5622    
  23  Prefactor     66.918        72.688        .12264E-03   -1.5544    
  24  Normalizat    1.0250        .15893        .42800E-01   -.92199    
  25  Prefactor     .92169        .12716        .45282E-01   -.95387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61314e-08
Minuit parameter uncertainties:
  1  1.68418e-05
  2  0.0015941
  3  0.00798835
  4  1.49801e-06
  5  13.7863
  6  4.17444e-06
  7  0.0262271
  8  1.98811e-05
  9  4.07839e-05
  10  3.55099e-06
  11  18.8402
  12  0.948108
  13  8.61499e-06
  14  1.88745
  15  3.32796e-05
  16  1.61138
  17  4.51726e-06
  18  6.00209
  19  4.42234e-07
  20  8.2929
  21  1.52934
  22  6.50843
  23  72.6894
  24  0.159007
  25  0.127206
Done.

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

Extracting fit parameters...

4FGL J1640.4+3945
   Spectrum: PowerLaw
308    Prefactor:  2.866e+00  9.481e-01  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:  9.217e-01  1.272e-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.025e+00  1.590e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.32
Ra Dec: 250.119 39.763
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 1.13e-07 +/- 3.74e-08
Energy Flux (Fixed Index): 3.61e-05 +/- 1.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) = 9963.34096635
delta logL = 0.00681728791278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9963.32445524
delta logL = 0.0233284035276

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1269       1.0000          .0000       .10000E+07
     2 'Index     '    2.3532       1.0000          .0000       10.000    
     3 'Normalizat'    1.0317       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91758       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.

 FCN=   9963.324     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1274        12.348        .57309E-03    .15176E-02
   2  Index         2.3534        2.0814        .99317E-01    .20868E-03
   3  Normalizat    1.0315        .78179E-01    .41995E-01    .16787E-04
   4  Prefactor     .91779        .53100E-01    .45229E-01    .23526E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.12735
  Index      = 2.35336
  Normalizat = 1.0315
  Prefactor  = 0.917787
 **********
 **   18 **HESSE 
 **********

 FCN=   9963.324     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1274        1.6655        .54153E-05   -1.5673    
   2  Index         2.3534        .33100        .39549E-02   -.55781    
   3  Normalizat    1.0315        .18275        .26255E-03   -.91983    
   4  Prefactor     .91779        .15057        .23060E-03   -.95522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64816e-09
Minuit parameter uncertainties:
  1  1.66546
  2  0.33134
  3  0.182861
  4  0.150643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69574': 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) = 9963.32445373
delta logL = 0.0233299096471

Extracting fit parameters...

4FGL J1640.4+3945
   Spectrum: PowerLaw
308    Prefactor:  3.127e+00  1.665e+00  0.000e+00  1.000e+06 ( 1.000e-12)
309        Index:  2.353e+00  3.313e-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:  9.178e-01  1.506e-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.031e+00  1.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.37
Ra Dec: 250.119 39.763
Photon Index (Free Index): 2.35 +/- 0.33
Photon Flux (Free Index): 1.09e-07 +/- 4.09e-08
Energy Flux (Free Index): 3.79e-05 +/- 1.61e-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/69574/cmap_HighResolution_700704001_700963201_4FGL_J1640.4+3945_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-07', energy_flux2='3.79e-05', photon_flux_error='3.74e-08', dlogl='2.33e-02', energy_flux='3.61e-05', photon_flux2='1.09e-07', job_status='DONE', time_completed='2023-03-20 01:29:42.630068', photon_index_error2='0.33', photon_index2='2.35', ts='23.32', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.61e-05', EG='1.02', time_epoch_completed='1679300982.63', return_code='0', job_id='69574', GAL2='0.92', EG2='1.03', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='4.09e-08', ts2='23.37', photon_index='2.42' WHERE bin_id='1780' AND source_name='4FGL J1640.4+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 01:29:42 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 69574: <4FGL_J1640.4+3945_daily_bin1780> in cluster <slac> Done

Job <4FGL_J1640.4+3945_daily_bin1780> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Mar 20 01:15:47 2023
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 01:15:47 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 01:15:47 2023
Terminated at Mon Mar 20 01:29:42 2023
Results reported at Mon Mar 20 01:29:42 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1640.4+3945_daily_bin1780 250.119 39.7626 700704001 700963201 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 :                                   828.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             337.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            835 sec.

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

