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


Performing analysis on: 4FGL_J1340.4+6926_daily_bin1758
RA = 205.11, Dec = 69.4446
tmin = 695001601, tmax = 695260801
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='367706', job_status='RUN', time_executed='2023-01-13 00:51:36.546960', time_epoch_executed='1673599896.55' WHERE source_name='4FGL J1340.4+6926' and cadence='daily' and bin_id='1758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/367706

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/367706/ft1_4FGL_J1340.4+6926_daily_bin1758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/367706/ft2_4FGL_J1340.4+6926_daily_bin1758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/367706/ft1_4FGL_J1340.4+6926_daily_bin1758.fits outfile=/scratch/kocevski/367706/ft1_filteredMKT_4FGL_J1340.4+6926_daily_bin1758.fits ra=205.11 dec=69.4446 rad=12.0 tmin=695001601.0 tmax=695260801.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 2.78
user 2.54
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/367706/ft2_4FGL_J1340.4+6926_daily_bin1758.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/367706/ft2_4FGL_J1340.4+6926_daily_bin1758.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/367706/ft1_filteredMKT_4FGL_J1340.4+6926_daily_bin1758.fits evtable="EVENTS" outfile="/scratch/kocevski/367706/ft1_filtered_4FGL_J1340.4+6926_daily_bin1758.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: 933

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/367706/ft1_filtered_4FGL_J1340.4+6926_daily_bin1758.fits" evtable="EVENTS" scfile=/scratch/kocevski/367706/ft2_4FGL_J1340.4+6926_daily_bin1758.fits sctable="SC_DATA" outfile=/scratch/kocevski/367706/ltcube_695001601_695260801_4FGL_J1340.4+6926_daily_bin1758.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/367706/ft2_4FGL_J1340.4+6926_daily_bin1758.fits
.....................!
real 16.04
user 15.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/367706/ft1_filtered_4FGL_J1340.4+6926_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/367706/ft2_4FGL_J1340.4+6926_daily_bin1758.fits sctable="SC_DATA" expcube=/scratch/kocevski/367706/ltcube_695001601_695260801_4FGL_J1340.4+6926_daily_bin1758.fits outfile=/scratch/kocevski/367706/expmap_695001601_695260801_4FGL_J1340.4+6926_daily_bin1758.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/367706/ltcube_695001601_695260801_4FGL_J1340.4+6926_daily_bin1758.fits
.....................!
real 191.76
user 186.33
sys 4.97

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

Setting source of interest to:
4FGL J1340.4+6926 @ 205.11 69.4446

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/367706/ft1_filtered_4FGL_J1340.4+6926_daily_bin1758.fits scfile=/scratch/kocevski/367706/ft2_4FGL_J1340.4+6926_daily_bin1758.fits outfile=/scratch/kocevski/367706/cmap_695001601_695260801_4FGL_J1340.4+6926_daily_bin1758.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=205.11 yref=69.4446 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.56
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/367706/ft1_filtered_4FGL_J1340.4+6926_daily_bin1758.fits scfile=/scratch/kocevski/367706/ft2_4FGL_J1340.4+6926_daily_bin1758.fits outfile=/scratch/kocevski/367706/cmap_HighResolution_695001601_695260801_4FGL_J1340.4+6926_daily_bin1758.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=205.11 yref=69.4446 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.56
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/367706/ft1_filtered_4FGL_J1340.4+6926_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/367706/ft2_4FGL_J1340.4+6926_daily_bin1758.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/367706/Model_4FGL_J1340.4+6926_daily_bin1758.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/367706/ft1_filtered_4FGL_J1340.4+6926_daily_bin1758.fits.....................!
real 93.85
user 92.43
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/367706/ft1_filtered_4FGL_J1340.4+6926_daily_bin1758.fits', '/scratch/kocevski/367706/ft2_4FGL_J1340.4+6926_daily_bin1758.fits', expMap='/scratch/kocevski/367706/expmap_695001601_695260801_4FGL_J1340.4+6926_daily_bin1758.fits', expCube='/scratch/kocevski/367706/ltcube_695001601_695260801_4FGL_J1340.4+6926_daily_bin1758.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/367706/Model_4FGL_J1340.4+6926_daily_bin1758.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1340.4+6926'

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  1.968e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  2.535e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
379        Scale:  9.421e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/367706/ft1_filtered_4FGL_J1340.4+6926_daily_bin1758.fits
Spacecraft file(s): /scratch/kocevski/367706/ft2_4FGL_J1340.4+6926_daily_bin1758.fits
Exposure map: /scratch/kocevski/367706/expmap_695001601_695260801_4FGL_J1340.4+6926_daily_bin1758.fits
Exposure cube: /scratch/kocevski/367706/ltcube_695001601_695260801_4FGL_J1340.4+6926_daily_bin1758.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/367706/Model_4FGL_J1340.4+6926_daily_bin1758.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) = 10147.3113354

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17569E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .14505E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .15223E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    6.9425       1.0000          .0000       .10000E+07
     5 'norm      '    .18496E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    19.717       1.0000          .0000       .10000E+07
     7 'Prefactor '    .29522E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    4.5980       1.0000          .0000       .10000E+07
     9 'Prefactor '    .76369E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .22382E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    16.912       1.0000          .0000       .10000E+07
    12 'Prefactor '    .59623E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .30314E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .96082E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    .34378E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .46313E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    22.349       1.0000          .0000       .10000E+07
    18 'Prefactor '    .35525E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .51995       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.2205       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .80385       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10147.30     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     1617 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24480E-07    8.8064       -.31204E-06** at limit **
   2  Prefactor      .0000        .77285       -.24716E-06** at limit **
   3  Prefactor     .10592E-06    10.437       -.30838E-06** at limit **
   4  Prefactor     6.9214        8.0741       -.35087E-06   -.67830E-01
   5  norm           .0000        2.3507        .16323E-06** at limit **
   6  Prefactor     19.797        3.5618       -.30005E-06   -.44167E-02
   7  Prefactor     .65808E-06    12.883       -.10940E-05** at limit **
   8  Prefactor     4.5460        2.6693       -.19819E-06    .47217E-02
   9  Prefactor     .11485E-06    9.1910       -.13939E-06** at limit **
  10  Prefactor     .11102E-09    1.0997       -.57161E-06** at limit **
  11  Prefactor     16.802        11.651       -.12549E-06   -.85487E-02
  12  Prefactor     .44426E-06    26.939        .46151E-06** at limit **
  13  Prefactor     .37748E-06    7.8689        .12333E-06** at limit **
  14  Prefactor     .22204E-09    41.696       -.62809E-06** at limit **
  15  Prefactor     .11102E-09    3.4487       -.44694E-06** at limit **
  16  Prefactor     .16653E-06    35.629        .16911E-05** at limit **
  17  Prefactor     22.398        1.8420       -.74922E-07    .95188E-02
  18  Prefactor     .11158E-07    12.452        .50574E-06** at limit **
  19  Prefactor     .27830        404.39       -.16065E-04    .36746E-02
  20  Normalizat    1.2206        .14214       -.37716E-05   -.90241E-04
  21  Prefactor     .80397        .14637        .50846E-05    .88406E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.44804e-08
  Prefactor  = 0
  Prefactor  = 1.05915e-07
  Prefactor  = 6.92136
  norm       = 0
  Prefactor  = 19.7969
  Prefactor  = 6.58085e-07
  Prefactor  = 4.546
  Prefactor  = 1.14853e-07
  Prefactor  = 1.11022e-10
  Prefactor  = 16.8024
  Prefactor  = 4.44256e-07
  Prefactor  = 3.77476e-07
  Prefactor  = 2.22045e-10
  Prefactor  = 1.11022e-10
  Prefactor  = 1.66533e-07
  Prefactor  = 22.3985
  Prefactor  = 1.11577e-08
  Prefactor  = 0.278297
  Normalizat = 1.22058
  Prefactor  = 0.803966
 **********
 **   18 **HESSE 
 **********

 FCN=   10147.30     FROM HESSE     STATUS=OK           355 CALLS     1972 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24480E-07    8.9385        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        .77388        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10592E-06    11.301        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.9214        13.587        .38052E-03   -1.5655    
   5  norm           .0000        2.3397        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.797        37.285        .22528E-03   -1.5619    
   7  Prefactor     .65808E-06    18.822        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.5460        50.934        .46917E-03   -1.5665    
   9  Prefactor     .11485E-06    9.9811        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .11102E-09    1.1050        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.802        11.677        .24327E-03   -1.5626    
  12  Prefactor     .44426E-06    29.297        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .37748E-06    17.016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .22204E-09    41.583        .14036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11102E-09    3.4561        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .16653E-06    36.904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.398        32.960        .21158E-03   -1.5613    
  18  Prefactor     .11158E-07    14.613        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .27830        19.766        .11824E-01   -1.5697    
  20  Normalizat    1.2206        .12495        .34407E-01   -.85969    
  21  Prefactor     .80397        .12932        .43767E-01   -.99582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31703e-07
Minuit parameter uncertainties:
  1  0.000935527
  2  7.84317e-06
  3  0.00218782
  4  13.5869
  5  8.97261e-06
  6  37.2851
  7  0.00703868
  8  30.4336
  9  0.00214117
  10  2.18633e-05
  11  11.6767
  12  0.00721561
  13  0.005069
  14  0.000192665
  15  3.44221e-05
  16  0.00495837
  17  32.9603
  18  0.000808075
  19  4.69083
  20  0.124985
  21  0.129367
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  1.680e+01  1.168e+01  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  2.535e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
379        Scale:  9.421e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
725    Prefactor:  8.040e-01  1.294e-01  0.000e+00  1.000e+01 ( 1.000e+00)
726        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
727        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
724   Normalization:  1.221e+00  1.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.96
Ra Dec: 205.110 69.445
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 3.23e-08 +/- 2.24e-08
Energy Flux (Fixed Index): 9.02e-06 +/- 6.27e-06

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) = 10146.2485875
delta logL = 1.05280342435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10146.119414
delta logL = 1.18197687552

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.103       1.0000          .0000       .10000E+07
     2 'Index     '    1.7943       1.0000          .0000       10.000    
     3 'Normalizat'    1.2420       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78900       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10146.12     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      215 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.102        14.166       -.24919E-06    .16917E-01
   2  Index         1.7942        .31089        .64146E-05    .66404E-03
   3  Normalizat    1.2420        .12388       -.27772E-06   -.32140E-03
   4  Prefactor     .78896        .12764        .28349E-06   -.16736E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.1017
  Index      = 1.79424
  Normalizat = 1.24203
  Prefactor  = 0.788959
 **********
 **   18 **HESSE 
 **********

 FCN=   10146.12     FROM HESSE     STATUS=OK            29 CALLS      244 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.102        17.749        .79853E-05   -1.5608    
   2  Index         1.7942        .44018        .87562E-02   -.69600    
   3  Normalizat    1.2420        .14147        .20590E-03   -.85314    
   4  Prefactor     .78896        .14561        .25911E-03   -1.0014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15613e-08
Minuit parameter uncertainties:
  1  17.7493
  2  0.441154
  3  0.141516
  4  0.145678
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/367706': 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) = 10146.1194139
delta logL = 1.18197696911

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  2.510e+01  1.775e+01  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  1.794e+00  4.412e-01  0.000e+00  1.000e+01 (-1.000e+00)
379        Scale:  9.421e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
725    Prefactor:  7.890e-01  1.457e-01  0.000e+00  1.000e+01 ( 1.000e+00)
726        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
727        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
724   Normalization:  1.242e+00  1.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.33
Ra Dec: 205.110 69.445
Photon Index (Free Index): 1.79 +/- 0.44
Photon Flux (Free Index): 1.76e-08 +/- 1.61e-08
Energy Flux (Free Index): 2.14e-05 +/- 2.16e-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/367706/cmap_HighResolution_695001601_695260801_4FGL_J1340.4+6926_daily_bin1758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.23e-08', energy_flux2='2.14e-05', photon_flux_error='2.24e-08', dlogl='1.18e+00', energy_flux='9.02e-06', photon_flux2='1.76e-08', job_status='DONE', time_completed='2023-01-13 01:04:41.980443', photon_index_error2='0.44', photon_index2='1.79', ts='4.96', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='2.16e-05', EG='1.22', time_epoch_completed='1673600681.98', return_code='0', job_id='367706', GAL2='0.79', EG2='1.24', return_code2='0', energy_flux_error='6.27e-06', photon_flux_error2='1.61e-08', ts2='7.33', photon_index='2.53' WHERE bin_id='1758' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 13 01:04:42 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 367706: <4FGL_J1340.4+6926_daily_bin1758> in cluster <slac> Done

Job <4FGL_J1340.4+6926_daily_bin1758> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Jan 13 00:50:14 2023
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 13 00:50:39 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 13 00:50:39 2023
Terminated at Fri Jan 13 01:04:42 2023
Results reported at Fri Jan 13 01:04:42 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1340.4+6926_daily_bin1758 205.11 69.4446 695001601 695260801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1340.4+6926 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   787.46 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             359.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            868 sec.

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

