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


Performing analysis on: 4FGL_J1340.4+6926_daily_bin1760
RA = 205.11, Dec = 69.4446
tmin = 695520001, tmax = 695779201
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='738839', job_status='RUN', time_executed='2023-01-19 01:02:37.869393', time_epoch_executed='1674118957.87' WHERE source_name='4FGL J1340.4+6926' and cadence='daily' and bin_id='1760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738839

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738839/ft1_4FGL_J1340.4+6926_daily_bin1760.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738839/ft2_4FGL_J1340.4+6926_daily_bin1760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738839/ft1_4FGL_J1340.4+6926_daily_bin1760.fits outfile=/scratch/kocevski/738839/ft1_filteredMKT_4FGL_J1340.4+6926_daily_bin1760.fits ra=205.11 dec=69.4446 rad=12.0 tmin=695520001.0 tmax=695779201.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.44
user 2.21
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/738839/ft2_4FGL_J1340.4+6926_daily_bin1760.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/738839/ft1_filteredMKT_4FGL_J1340.4+6926_daily_bin1760.fits evtable="EVENTS" outfile="/scratch/kocevski/738839/ft1_filtered_4FGL_J1340.4+6926_daily_bin1760.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.51
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 620

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738839/ft1_filtered_4FGL_J1340.4+6926_daily_bin1760.fits" evtable="EVENTS" scfile=/scratch/kocevski/738839/ft2_4FGL_J1340.4+6926_daily_bin1760.fits sctable="SC_DATA" outfile=/scratch/kocevski/738839/ltcube_695520001_695779201_4FGL_J1340.4+6926_daily_bin1760.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/738839/ft2_4FGL_J1340.4+6926_daily_bin1760.fits
.....................!
real 15.91
user 15.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738839/ft1_filtered_4FGL_J1340.4+6926_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/738839/ft2_4FGL_J1340.4+6926_daily_bin1760.fits sctable="SC_DATA" expcube=/scratch/kocevski/738839/ltcube_695520001_695779201_4FGL_J1340.4+6926_daily_bin1760.fits outfile=/scratch/kocevski/738839/expmap_695520001_695779201_4FGL_J1340.4+6926_daily_bin1760.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/738839/ltcube_695520001_695779201_4FGL_J1340.4+6926_daily_bin1760.fits
.....................!
real 194.40
user 188.65
sys 5.33

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/738839/ft1_filtered_4FGL_J1340.4+6926_daily_bin1760.fits scfile=/scratch/kocevski/738839/ft2_4FGL_J1340.4+6926_daily_bin1760.fits outfile=/scratch/kocevski/738839/cmap_695520001_695779201_4FGL_J1340.4+6926_daily_bin1760.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.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738839/ft1_filtered_4FGL_J1340.4+6926_daily_bin1760.fits scfile=/scratch/kocevski/738839/ft2_4FGL_J1340.4+6926_daily_bin1760.fits outfile=/scratch/kocevski/738839/cmap_HighResolution_695520001_695779201_4FGL_J1340.4+6926_daily_bin1760.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.58
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33453       1.0000          .0000       .10000E+07
     2 'Prefactor '    .40939E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    98.025       1.0000          .0000       .10000E+07
     4 'Prefactor '    .63055E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .32752E-08   1.0000          .0000       .10000E+07
     6 'Prefactor '    19.227       1.0000          .0000       .10000E+07
     7 'Prefactor '    57.192       1.0000          .0000       .10000E+07
     8 'Prefactor '    67.010       1.0000          .0000       .10000E+07
     9 'Prefactor '    .13882E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.4102       1.0000          .0000       .10000E+07
    11 'Prefactor '    .27091E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .86433E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .11328E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .32629       1.0000          .0000       .10000E+07
    15 'Prefactor '    7.2808       1.0000          .0000       .10000E+07
    16 'Prefactor '    23.521       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.2910       1.0000          .0000       .10000E+07
    18 'Prefactor '    .90432E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .17679E-02   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.1927       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .71489       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=   6820.517     FROM MIGRAD    STATUS=CONVERGED     95 CALLS     1633 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .56130E-05    6.3259        .17466E-06** at limit **
   2  Prefactor     .16875E-07    4.9458        .66965E-07** at limit **
   3  Prefactor     98.024        1.6127       -.32836E-09    .77263E-01
   4  Prefactor     .16653E-09    26.855        .40677E-06** at limit **
   5  norm          .55511E-10    1.7052        .18262E-06** at limit **
   6  Prefactor     19.233        1.0032        .32101E-09   -.23350E-03
   7  Prefactor     57.133        2.7815       -.16924E-09    .11867    
   8  Prefactor     67.036        1.0107       -.33095E-09   -.73371E-02
   9  Prefactor     .55511E-09    7.9491        .14900E-06** at limit **
  10  Prefactor     2.4060        4.3184       -.25692E-07   -.11060E-03
  11  Prefactor     .38247E-07    5.3901       -.91919E-08** at limit **
  12  Prefactor     .55511E-10    4.0979       -.18445E-07** at limit **
  13  Prefactor     .59674E-07    13.835        .25818E-06** at limit **
  14  Prefactor     .55511E-10    4.8558        .14949E-06** at limit **
  15  Prefactor     7.2936        9.5793       -.11117E-07    .33897E-01
  16  Prefactor     23.513        1.1925        .42890E-08   -.76059E-02
  17  Prefactor     1.2731        1.2479        .17929E-07   -.83087E-03
  18  Prefactor      .0000        40.746        .59280E-07** at limit **
  19  Prefactor     .27922E-07    5.0490       -.10152E-07** at limit **
  20  Normalizat    1.1929        .17100        .10525E-06    .12608E-03
  21  Prefactor     .71495        .16960        .19655E-05    .11599E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.61301e-06
  Prefactor  = 1.68754e-08
  Prefactor  = 98.024
  Prefactor  = 1.66533e-10
  norm       = 5.55112e-11
  Prefactor  = 19.2329
  Prefactor  = 57.1331
  Prefactor  = 67.0363
  Prefactor  = 5.55112e-10
  Prefactor  = 2.40602
  Prefactor  = 3.82472e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 5.96745e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 7.29364
  Prefactor  = 23.5128
  Prefactor  = 1.27314
  Prefactor  = 0
  Prefactor  = 2.79221e-08
  Normalizat = 1.19291
  Prefactor  = 0.714954
 **********
 **   18 **HESSE 
 **********

 FCN=   6820.517     FROM HESSE     STATUS=OK           351 CALLS     1984 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .56130E-05    99.239        .97501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .16875E-07    12.941        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     98.024        75.057        .10101E-03   -1.5510    
   4  Prefactor     .16653E-09    26.850        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .55511E-10    1.7041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.233        19.137        .22814E-03   -1.5620    
   7  Prefactor     57.133        58.020        .13224E-03   -1.5557    
   8  Prefactor     67.036        41.058        .12217E-03   -1.5544    
   9  Prefactor     .55511E-09    12.107        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4060        4.3665        .65916E-03   -1.5677    
  11  Prefactor     .38247E-07    7.8736        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .55511E-10    4.1256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .59674E-07    15.643        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-10    85.243        .98578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.2936        11.764        .37149E-03   -1.5654    
  16  Prefactor     23.513        20.384        .20624E-03   -1.5611    
  17  Prefactor     1.2731        117.64        .97415E-03   -1.5685    
  18  Prefactor      .0000        40.692        .14194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .27922E-07    7.9727        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1929        .15093        .35073E-01   -.86822    
  21  Prefactor     .71495        .15100        .42599E-01   -1.0294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42915e-06
Minuit parameter uncertainties:
  1  0.0472037
  2  0.00093512
  3  75.0574
  4  0.000124214
  5  1.6107e-05
  6  19.1372
  7  58.0208
  8  41.0577
  9  0.000160378
  10  4.36653
  11  0.00109787
  12  2.17783e-05
  13  0.00193248
  14  0.000136651
  15  11.7636
  16  20.3836
  17  24.4767
  18  9.50412e-07
  19  0.000943445
  20  0.150985
  21  0.151088
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.825e-08  1.098e-03  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:  7.150e-01  1.511e-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.193e+00  1.510e-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: 5.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/738839/likelihoodResults_695520001_695779201_4FGL_J1340.4+6926_daily_bin1760.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) = 6820.51949947
delta logL = -0.00288726757299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6820.51661717
delta logL = -4.96533721162e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50602E-04   1.0000          .0000       .10000E+07
     2 'Index     '    3.3649       1.0000          .0000       10.000    
     3 'Normalizat'    1.1932       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71487       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.

 FCN=   6820.327     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      305 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60698E-02    .86710        .23725E-03** at limit **
   2  Index         6.5028        7.9977        .21386        .39991E-04
   3  Normalizat    1.1620        .31268        .35061E-01   -.53556E-04
   4  Prefactor     .73536        .14056        .42599E-01    .15790E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00606983
  Index      = 6.5028
  Normalizat = 1.16203
  Prefactor  = 0.735359
 **********
 **   18 **HESSE 
 **********

 FCN=   6820.327     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      338 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60698E-02    .89636        .10501E-05   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.5028        7.9155        .77738E-02    .30528    
   3  Normalizat    1.1620        .13944        .20871E-03   -.87784    
   4  Prefactor     .73536        .13871        .25911E-03   -1.0216    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.77334e-10
Minuit parameter uncertainties:
  1  0.147523
  2  11.4473
  3  0.139485
  4  0.138777
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738839': 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): 102
logL (Free Index) = 6820.32681817
delta logL = 0.189794034151

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  6.070e-03  1.475e-01  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  6.503e+00  1.145e+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.354e-01  1.388e-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.162e+00  1.395e-01  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/738839/cmap_HighResolution_695520001_695779201_4FGL_J1340.4+6926_daily_bin1760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-03', job_status='DONE', photon_flux_upper_limit='5.73e-08', time_completed='2023-01-19 01:14:23.437523', job_id='738839', GAL2='0.74', fit_tolerance='1e-08', EG2='1.16', EG='1.19', time_epoch_completed='1674119663.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='1.90e-01', ts2='0.40', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1760' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 19 01:14:23 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 738839: <4FGL_J1340.4+6926_daily_bin1760> in cluster <slac> Done

Job <4FGL_J1340.4+6926_daily_bin1760> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Jan 19 01:00:16 2023
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 19 01:00:43 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 19 01:00:43 2023
Terminated at Thu Jan 19 01:14:24 2023
Results reported at Thu Jan 19 01:14:24 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1340.4+6926_daily_bin1760 205.11 69.4446 695520001 695779201 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 :                                   707.53 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             299.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            848 sec.

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

