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 19 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_bin1711
RA = 205.11, Dec = 69.4446
tmin = 682819201, tmax = 683078401
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='136552', job_status='RUN', time_executed='2022-09-16 17:48:41.956189', time_epoch_executed='1663375721.96' WHERE source_name='4FGL J1340.4+6926' and cadence='daily' and bin_id='1711'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/136552

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/136552/ft1_4FGL_J1340.4+6926_daily_bin1711.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/136552/ft2_4FGL_J1340.4+6926_daily_bin1711.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/136552/ft1_4FGL_J1340.4+6926_daily_bin1711.fits outfile=/scratch/kocevski/136552/ft1_filteredMKT_4FGL_J1340.4+6926_daily_bin1711.fits ra=205.11 dec=69.4446 rad=12.0 tmin=682819201.0 tmax=683078401.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.59
user 4.36
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/136552/ft2_4FGL_J1340.4+6926_daily_bin1711.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/136552/ft1_filteredMKT_4FGL_J1340.4+6926_daily_bin1711.fits evtable="EVENTS" outfile="/scratch/kocevski/136552/ft1_filtered_4FGL_J1340.4+6926_daily_bin1711.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.54
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 623

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/136552/ft1_filtered_4FGL_J1340.4+6926_daily_bin1711.fits" evtable="EVENTS" scfile=/scratch/kocevski/136552/ft2_4FGL_J1340.4+6926_daily_bin1711.fits sctable="SC_DATA" outfile=/scratch/kocevski/136552/ltcube_682819201_683078401_4FGL_J1340.4+6926_daily_bin1711.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/136552/ft2_4FGL_J1340.4+6926_daily_bin1711.fits
.....................!
real 14.27
user 13.85
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/136552/ft1_filtered_4FGL_J1340.4+6926_daily_bin1711.fits evtable="EVENTS" scfile=/scratch/kocevski/136552/ft2_4FGL_J1340.4+6926_daily_bin1711.fits sctable="SC_DATA" expcube=/scratch/kocevski/136552/ltcube_682819201_683078401_4FGL_J1340.4+6926_daily_bin1711.fits outfile=/scratch/kocevski/136552/expmap_682819201_683078401_4FGL_J1340.4+6926_daily_bin1711.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/136552/ltcube_682819201_683078401_4FGL_J1340.4+6926_daily_bin1711.fits
.....................!
real 191.96
user 186.39
sys 5.18

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/136552/ft1_filtered_4FGL_J1340.4+6926_daily_bin1711.fits scfile=/scratch/kocevski/136552/ft2_4FGL_J1340.4+6926_daily_bin1711.fits outfile=/scratch/kocevski/136552/cmap_682819201_683078401_4FGL_J1340.4+6926_daily_bin1711.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/136552/ft1_filtered_4FGL_J1340.4+6926_daily_bin1711.fits scfile=/scratch/kocevski/136552/ft2_4FGL_J1340.4+6926_daily_bin1711.fits outfile=/scratch/kocevski/136552/cmap_HighResolution_682819201_683078401_4FGL_J1340.4+6926_daily_bin1711.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.55
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/136552/ft1_filtered_4FGL_J1340.4+6926_daily_bin1711.fits', '/scratch/kocevski/136552/ft2_4FGL_J1340.4+6926_daily_bin1711.fits', expMap='/scratch/kocevski/136552/expmap_682819201_683078401_4FGL_J1340.4+6926_daily_bin1711.fits', expCube='/scratch/kocevski/136552/ltcube_682819201_683078401_4FGL_J1340.4+6926_daily_bin1711.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/136552/Model_4FGL_J1340.4+6926_daily_bin1711.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/136552/ft1_filtered_4FGL_J1340.4+6926_daily_bin1711.fits
Spacecraft file(s): /scratch/kocevski/136552/ft2_4FGL_J1340.4+6926_daily_bin1711.fits
Exposure map: /scratch/kocevski/136552/expmap_682819201_683078401_4FGL_J1340.4+6926_daily_bin1711.fits
Exposure cube: /scratch/kocevski/136552/ltcube_682819201_683078401_4FGL_J1340.4+6926_daily_bin1711.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/136552/Model_4FGL_J1340.4+6926_daily_bin1711.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) = 6798.86436818

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17837E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .93875E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .78935E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .86202E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .21150E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    8.1916       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.1095       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21851E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .50854E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.1925       1.0000          .0000       .10000E+07
    11 'Prefactor '    .15915E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .12864E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    8.0018       1.0000          .0000       .10000E+07
    14 'Prefactor '    .94382E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    13.469       1.0000          .0000       .10000E+07
    16 'Prefactor '    .33162E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    .10469E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .69847E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .24532E-01   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0238       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .80747       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=   6798.785     FROM MIGRAD    STATUS=CONVERGED    133 CALLS     1262 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    6.0344        .51102E-06** at limit **
   2  Prefactor     .55511E-10    1.4810       -.43299E-06** at limit **
   3  Prefactor     .21649E-08    29.260        .29450E-05** at limit **
   4  Prefactor     .19990E-05    5.0098        .60127E-06** at limit **
   5  norm           .0000        .99541       -.33041E-06** at limit **
   6  Prefactor     8.4220        1.4394       -.42004E-07   -.60928E-02
   7  Prefactor     7.8605        26.058       -.20876E-06   -.92105E-01
   8  Prefactor     .13274E-04    33.880        .11917E-05** at limit **
   9  Prefactor     .42022E-06    20.679        .10218E-05** at limit **
  10  Prefactor     2.1877        3.2923        .31706E-06   -.24340E-02
  11  Prefactor      .0000        5.2550        .31890E-06** at limit **
  12  Prefactor     .91605E-06    10.715        .93895E-06** at limit **
  13  Prefactor     7.9951        1.0936       -.37157E-08    .70110E-03
  14  Prefactor     .27506E-06    7.1469        .37930E-06** at limit **
  15  Prefactor     13.186        1.7323        .14757E-07    .96049E-02
  16  Prefactor     .51625E-08    6.5068        .38189E-06** at limit **
  17  Prefactor     .42744E-08    10.079       -.24246E-06** at limit **
  18  Prefactor     .25487E-04    43.069        .10986E-05** at limit **
  19  Prefactor      .0000        33.653        .86543E-07** at limit **
  20  Normalizat    1.0237        .15822        .12647E-04   -.23652E-03
  21  Prefactor     .80753        .16414       -.11593E-04   -.72318E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 2.16493e-09
  Prefactor  = 1.99901e-06
  norm       = 0
  Prefactor  = 8.422
  Prefactor  = 7.8605
  Prefactor  = 1.32738e-05
  Prefactor  = 4.20219e-07
  Prefactor  = 2.18774
  Prefactor  = 0
  Prefactor  = 9.16045e-07
  Prefactor  = 7.99513
  Prefactor  = 2.75058e-07
  Prefactor  = 13.1858
  Prefactor  = 5.16254e-09
  Prefactor  = 4.27436e-09
  Prefactor  = 2.54866e-05
  Prefactor  = 0
  Normalizat = 1.02372
  Prefactor  = 0.807526
 **********
 **   18 **HESSE 
 **********

 FCN=   6798.785     FROM HESSE     STATUS=OK           349 CALLS     1611 TOTAL
                     EDM=   .37E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    6.0477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    1.4815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .21649E-08    29.179        .14534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .19990E-05    14.011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .99578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.4220        29.053        .35005E-03   -1.5650    
   7  Prefactor     7.8605        77.067        .37598E-03   -1.5652    
   8  Prefactor     .13274E-04    38.739        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .42022E-06    21.659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1877        3.3192        .69475E-03   -1.5678    
  11  Prefactor      .0000        5.2511        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .91605E-06    12.935        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.9951        17.679        .35421E-03   -1.5651    
  14  Prefactor     .27506E-06    15.973        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.186        17.303        .27267E-03   -1.5635    
  16  Prefactor     .51625E-08    15.667        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .42744E-08    10.087        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .25487E-04    50.765        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        32.524        .16755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0237        .13530        .42845E-01   -.92240    
  21  Prefactor     .80753        .13952        .43814E-01   -.99452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7094e-06
Minuit parameter uncertainties:
  1  3.47132e-05
  2  1.76712e-05
  3  0.0004996
  4  0.0105845
  5  1.00961e-05
  6  29.0539
  7  49.2262
  8  0.0453529
  9  0.00603374
  10  3.31918
  11  1.88612e-05
  12  0.00688466
  13  17.6796
  14  0.00419227
  15  17.3032
  16  0.000568295
  17  0.000415108
  18  0.0719401
  19  1.79338e-05
  20  0.135342
  21  0.139581
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  0.000e+00  1.886e-05  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.075e-01  1.396e-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.024e+00  1.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 205.110 69.445
Photon Flux Upper Limit: 4.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/136552/likelihoodResults_682819201_683078401_4FGL_J1340.4+6926_daily_bin1711.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) = 6798.78587235
delta logL = -0.000492373088491

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6798.78538026
delta logL = -2.78425432043e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10997E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.2544       1.0000          .0000       10.000    
     3 'Normalizat'    1.0238       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80744       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6798.785     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      241 TOTAL
                     EDM=   .13E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.9310        .42118E-03** at limit **
   2  Index         2.6020        1.4406        .31453E-05     .0000    
   3  Normalizat    1.0237        1.2533        .60652E-05    .16295E-04
   4  Prefactor     .80753        1.1559       -.64833E-05    .36423E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.60195
  Normalizat = 1.02372
  Prefactor  = 0.807525
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6798.785     FROM HESSE     STATUS=FAILED         9 CALLS      250 TOTAL
                     EDM=   .13E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.9310        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .76528        1.9696        .31453E-05   -.50021    
   3  Normalizat    1.0237        1.2533        .60652E-05   -.92240    
   4  Prefactor     .80753        1.1559       -.64833E-05   -.99452    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.34692e-12
Minuit parameter uncertainties:
  1  1.54396e-06
  2  1.46785
  3  1.29243
  4  1.19373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/136552': 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): 101
logL (Free Index) = 6798.78537998
delta logL = 3.63797880709e-11

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  0.000e+00  1.544e-06  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  2.602e+00  1.468e+00  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:  8.075e-01  1.194e+00  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.024e+00  1.292e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 205.110 69.445

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/136552/cmap_HighResolution_682819201_683078401_4FGL_J1340.4+6926_daily_bin1711.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.39e-03', job_status='DONE', photon_flux_upper_limit='4.35e-08', time_completed='2022-09-16 18:00:03.695724', job_id='136552', GAL2='0.81', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1663376403.7', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='3.64e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1711' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 18:00:03 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 136552: <4FGL_J1340.4+6926_daily_bin1711> in cluster <slac> Done

Job <4FGL_J1340.4+6926_daily_bin1711> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 16 17:45:22 2022
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 17:48:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 17:48:14 2022
Terminated at Fri Sep 16 18:00:04 2022
Results reported at Fri Sep 16 18:00:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1340.4+6926_daily_bin1711 205.11 69.4446 682819201 683078401 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 :                                   684.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             339.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            882 sec.

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

