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


Performing analysis on: 4FGL_J1340.4+6926_daily_bin1715
RA = 205.11, Dec = 69.4446
tmin = 683856001, tmax = 684115201
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='136558', job_status='RUN', time_executed='2022-09-16 17:48:51.496381', time_epoch_executed='1663375731.5' WHERE source_name='4FGL J1340.4+6926' and cadence='daily' and bin_id='1715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/136558

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/136558/ft1_4FGL_J1340.4+6926_daily_bin1715.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/136558/ft2_4FGL_J1340.4+6926_daily_bin1715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/136558/ft1_4FGL_J1340.4+6926_daily_bin1715.fits outfile=/scratch/kocevski/136558/ft1_filteredMKT_4FGL_J1340.4+6926_daily_bin1715.fits ra=205.11 dec=69.4446 rad=12.0 tmin=683856001.0 tmax=684115201.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 3.53
user 3.29
sys 0.21

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

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

Number of photons that the gtmktime cut: 575

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/136558/ft1_filtered_4FGL_J1340.4+6926_daily_bin1715.fits" evtable="EVENTS" scfile=/scratch/kocevski/136558/ft2_4FGL_J1340.4+6926_daily_bin1715.fits sctable="SC_DATA" outfile=/scratch/kocevski/136558/ltcube_683856001_684115201_4FGL_J1340.4+6926_daily_bin1715.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/136558/ft2_4FGL_J1340.4+6926_daily_bin1715.fits
.....................!
real 15.97
user 15.52
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/136558/ft1_filtered_4FGL_J1340.4+6926_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/136558/ft2_4FGL_J1340.4+6926_daily_bin1715.fits sctable="SC_DATA" expcube=/scratch/kocevski/136558/ltcube_683856001_684115201_4FGL_J1340.4+6926_daily_bin1715.fits outfile=/scratch/kocevski/136558/expmap_683856001_684115201_4FGL_J1340.4+6926_daily_bin1715.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/136558/ltcube_683856001_684115201_4FGL_J1340.4+6926_daily_bin1715.fits
.....................!
real 192.73
user 186.66
sys 5.26

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/136558/ft1_filtered_4FGL_J1340.4+6926_daily_bin1715.fits scfile=/scratch/kocevski/136558/ft2_4FGL_J1340.4+6926_daily_bin1715.fits outfile=/scratch/kocevski/136558/cmap_683856001_684115201_4FGL_J1340.4+6926_daily_bin1715.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/136558/ft1_filtered_4FGL_J1340.4+6926_daily_bin1715.fits scfile=/scratch/kocevski/136558/ft2_4FGL_J1340.4+6926_daily_bin1715.fits outfile=/scratch/kocevski/136558/cmap_HighResolution_683856001_684115201_4FGL_J1340.4+6926_daily_bin1715.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.57
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .98354E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.3809       1.0000          .0000       .10000E+07
     3 'Prefactor '    .73389E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    15.791       1.0000          .0000       .10000E+07
     5 'norm      '    .12339E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    17.106       1.0000          .0000       .10000E+07
     7 'Prefactor '    6.8653       1.0000          .0000       .10000E+07
     8 'Prefactor '    32.875       1.0000          .0000       .10000E+07
     9 'Prefactor '    .12817E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .23284E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .96511E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .79162E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .27748E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    26.559       1.0000          .0000       .10000E+07
    15 'Prefactor '    .13343E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .11163E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    2.6733       1.0000          .0000       .10000E+07
    18 'Prefactor '    .11905E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .24567E-03   1.0000          .0000       .10000E+07
    20 'Normalizat'    .69140       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2304       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=   6257.978     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1595 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10381E-06    109.82        .12916E-05** at limit **
   2  Prefactor     4.3819        3.3309       -.26988E-07    .44167E-05
   3  Prefactor      .0000        33.031       -.51665E-07** at limit **
   4  Prefactor     15.766        9.2052        .59290E-07   -.28727E-01
   5  norm           .0000        2.0611        .70381E-07** at limit **
   6  Prefactor     17.269        1.5795        .55028E-08   -.74566E-02
   7  Prefactor     6.7437        1.2186       -.64192E-08    .33808E-02
   8  Prefactor     33.152        2.6941       -.26827E-07    .15805E-01
   9  Prefactor     .25535E-08    6.3169        .64563E-07** at limit **
  10  Prefactor      .0000        2.5048        .16590E-07** at limit **
  11  Prefactor     .64282E-07    10.769       -.99310E-07** at limit **
  12  Prefactor     .26090E-07    10.660        .22393E-07** at limit **
  13  Prefactor      .0000        8.7180        .12226E-06** at limit **
  14  Prefactor     26.310        9.3919        .88926E-07    .23752E-01
  15  Prefactor     .24980E-08    7.4230        .82048E-07** at limit **
  16  Prefactor     .44409E-09    23.896        .22579E-06** at limit **
  17  Prefactor     2.6724        1.4213        .13389E-07   -.11884E-02
  18  Prefactor     .78271E-08    57.406        .24027E-06** at limit **
  19  Prefactor     .77716E-09    10.450       -.12934E-07** at limit **
  20  Normalizat    .69144        .16461       -.74026E-06   -.43341E-05
  21  Prefactor     1.2303        .18161        .44416E-06   -.79499E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.03806e-07
  Prefactor  = 4.38194
  Prefactor  = 0
  Prefactor  = 15.766
  norm       = 0
  Prefactor  = 17.2688
  Prefactor  = 6.74369
  Prefactor  = 33.1523
  Prefactor  = 2.55351e-09
  Prefactor  = 0
  Prefactor  = 6.42819e-08
  Prefactor  = 2.60902e-08
  Prefactor  = 0
  Prefactor  = 26.3095
  Prefactor  = 2.498e-09
  Prefactor  = 4.44089e-10
  Prefactor  = 2.67244
  Prefactor  = 7.82707e-09
  Prefactor  = 7.77156e-10
  Normalizat = 0.691444
  Prefactor  = 1.23027
 **********
 **   18 **HESSE 
 **********

 FCN=   6257.978     FROM HESSE     STATUS=OK           353 CALLS     1948 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10381E-06    108.01        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.3819        3.3333        .48096E-03   -1.5666    
   3  Prefactor      .0000        32.921        .14708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.766        19.335        .25178E-03   -1.5629    
   5  norm           .0000        2.0564        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.269        25.094        .24189E-03   -1.5625    
   7  Prefactor     6.7437        34.437        .38268E-03   -1.5656    
   8  Prefactor     33.152        39.825        .17443E-03   -1.5593    
   9  Prefactor     .25535E-08    13.823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        2.4836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .64282E-07    12.679        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .26090E-07    11.370        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        8.7515        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     26.310        53.042        .19408E-03   -1.5605    
  15  Prefactor     .24980E-08    13.807        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .44409E-09    23.974        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.6724        33.625        .62302E-03   -1.5675    
  18  Prefactor     .78271E-08    57.671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .77716E-09    10.479        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .69144        .14666        .42176E-01   -1.0423    
  21  Prefactor     1.2303        .16115        .33950E-01   -.85405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02067e-07
Minuit parameter uncertainties:
  1  0.00669726
  2  3.33328
  3  3.61967e-06
  4  19.3349
  5  5.55818e-07
  6  25.0939
  7  30.4786
  8  39.8257
  9  0.00037646
  10  7.48419e-08
  11  0.00180533
  12  0.00108968
  13  2.74409e-05
  14  53.0432
  15  0.000373145
  16  0.000199835
  17  18.959
  18  0.00134445
  19  0.000178774
  20  0.146742
  21  0.161213
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  6.428e-08  1.805e-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:  1.230e+00  1.612e-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:  6.914e-01  1.467e-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.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/136558/likelihoodResults_683856001_684115201_4FGL_J1340.4+6926_daily_bin1715.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): 0
logL (Free Index) = 6258.01844684
delta logL = -0.0404417887494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6257.97800514
delta logL = -8.87530404725e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55400E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.0408       1.0000          .0000       10.000    
     3 'Normalizat'    .69150       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2302       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=   6257.978     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      201 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        13.005       -.84312E-05** at limit **
   2  Index         1.8491        2.9715       -.33705E-03     .0000    
   3  Normalizat    .69145        .16308       -.32884E-05   -.89354E-05
   4  Prefactor     1.2303        .18023        .31494E-05   -.19353E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.84909
  Normalizat = 0.691445
  Prefactor  = 1.23027
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6257.978     FROM HESSE     STATUS=FAILED        11 CALLS      212 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        12.968        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .35484        1.7489       -.33705E-03   -.68179    
   3  Normalizat    .69145        1.0310       -.32884E-05   -1.0423    
   4  Prefactor     1.2303        1.0939        .31494E-05   -.85405    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.81693e-11
Minuit parameter uncertainties:
  1  2.69243e-05
  2  1.57158
  3  1.06226
  4  1.11525
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/136558': 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) = 6257.97800504
delta logL = 2.47382558882e-09

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  0.000e+00  2.692e-05  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  1.849e+00  1.572e+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:  1.230e+00  1.115e+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:  6.914e-01  1.062e+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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/136558/cmap_HighResolution_683856001_684115201_4FGL_J1340.4+6926_daily_bin1715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-03', job_status='DONE', photon_flux_upper_limit='5.04e-08', time_completed='2022-09-16 18:00:14.998446', job_id='136558', GAL2='1.23', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1663376415.0', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='2.47e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1715' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 18:00:15 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 136558: <4FGL_J1340.4+6926_daily_bin1715> in cluster <slac> Done

Job <4FGL_J1340.4+6926_daily_bin1715> 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) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 17:48:28 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:28 2022
Terminated at Fri Sep 16 18:00:15 2022
Results reported at Fri Sep 16 18:00:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1340.4+6926_daily_bin1715 205.11 69.4446 683856001 684115201 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 :                             326.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            893 sec.

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

