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


Performing analysis on: 4FGL_J1340.4+6926_daily_bin1762
RA = 205.11, Dec = 69.4446
tmin = 696038401, tmax = 696297601
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='110578', job_status='RUN', time_executed='2023-01-25 01:01:44.680711', time_epoch_executed='1674637304.68' WHERE source_name='4FGL J1340.4+6926' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/110578

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/110578/ft1_4FGL_J1340.4+6926_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/110578/ft2_4FGL_J1340.4+6926_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/110578/ft1_4FGL_J1340.4+6926_daily_bin1762.fits outfile=/scratch/kocevski/110578/ft1_filteredMKT_4FGL_J1340.4+6926_daily_bin1762.fits ra=205.11 dec=69.4446 rad=12.0 tmin=696038401.0 tmax=696297601.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.76
user 3.46
sys 0.22

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

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

Number of photons that the gtmktime cut: 611

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/110578/ft1_filtered_4FGL_J1340.4+6926_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/110578/ft2_4FGL_J1340.4+6926_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/110578/ltcube_696038401_696297601_4FGL_J1340.4+6926_daily_bin1762.fits outfile=/scratch/kocevski/110578/expmap_696038401_696297601_4FGL_J1340.4+6926_daily_bin1762.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/110578/ltcube_696038401_696297601_4FGL_J1340.4+6926_daily_bin1762.fits
.....................!
real 194.51
user 186.77
sys 5.36

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/110578/ft1_filtered_4FGL_J1340.4+6926_daily_bin1762.fits scfile=/scratch/kocevski/110578/ft2_4FGL_J1340.4+6926_daily_bin1762.fits outfile=/scratch/kocevski/110578/cmap_696038401_696297601_4FGL_J1340.4+6926_daily_bin1762.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/110578/ft1_filtered_4FGL_J1340.4+6926_daily_bin1762.fits scfile=/scratch/kocevski/110578/ft2_4FGL_J1340.4+6926_daily_bin1762.fits outfile=/scratch/kocevski/110578/cmap_HighResolution_696038401_696297601_4FGL_J1340.4+6926_daily_bin1762.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.889       1.0000          .0000       .10000E+07
     2 'Prefactor '    .27756E-09   1.0000          .0000       .10000E+07
     3 'Prefactor '    20.084       1.0000          .0000       .10000E+07
     4 'Prefactor '    .28146E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .44881E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    35.147       1.0000          .0000       .10000E+07
     7 'Prefactor '    .42100       1.0000          .0000       .10000E+07
     8 'Prefactor '    .15969E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .60756E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.1672       1.0000          .0000       .10000E+07
    11 'Prefactor '    .21589E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .18307E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    24.235       1.0000          .0000       .10000E+07
    14 'Prefactor '    .42014       1.0000          .0000       .10000E+07
    15 'Prefactor '    .11665E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    2.5352       1.0000          .0000       .10000E+07
    17 'Prefactor '    30.035       1.0000          .0000       .10000E+07
    18 'Prefactor '    82.704       1.0000          .0000       .10000E+07
    19 'Prefactor '    .18414E-02   1.0000          .0000       .10000E+07
    20 'Normalizat'    .69778       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1550       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=   6795.463     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     1651 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.885        1.8904       -.12917E-05   -.44960E-01
   2  Prefactor      .0000        1.1817        .46063E-06** at limit **
   3  Prefactor     20.108        2.0375        .44616E-06   -.29716E-01
   4  Prefactor     .42666E-06    9.2891        .61385E-05** at limit **
   5  norm          .22204E-09    2.6770       -.53351E-06** at limit **
   6  Prefactor     35.485        24.186       -.18137E-05    .41223E-01
   7  Prefactor     .11267E-05    25.542       -.21289E-04** at limit **
   8  Prefactor     .31219E-06    12.729        .78171E-05** at limit **
   9  Prefactor     .74812E-06    9.9132        .27865E-05** at limit **
  10  Prefactor     2.1640        4.2197        .54779E-06   -.12765E-02
  11  Prefactor     .16172E-05    6.7271       -.93204E-05** at limit **
  12  Prefactor     .11102E-09    6.0807        .12866E-05** at limit **
  13  Prefactor     24.631        31.933       -.31867E-05    .71369E-02
  14  Prefactor     .56610E-06    21.217       -.18428E-04** at limit **
  15  Prefactor     .55511E-10    6.4441        .10428E-05** at limit **
  16  Prefactor     2.5498        5.7005       -.85436E-05    .14987E-01
  17  Prefactor     30.038        10.539       -.12669E-05   -.14007    
  18  Prefactor     83.946        81.492        .14355E-04   -.27646E-01
  19  Prefactor     .22204E-09    7.5524       -.99867E-06** at limit **
  20  Normalizat    .69782        .16374        .22951E-04   -.43819E-04
  21  Prefactor     1.1546        .17538       -.15916E-04    .74605E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.885
  Prefactor  = 0
  Prefactor  = 20.1083
  Prefactor  = 4.26659e-07
  norm       = 2.22045e-10
  Prefactor  = 35.4853
  Prefactor  = 1.12671e-06
  Prefactor  = 3.12195e-07
  Prefactor  = 7.48124e-07
  Prefactor  = 2.16401
  Prefactor  = 1.61715e-06
  Prefactor  = 1.11022e-10
  Prefactor  = 24.6315
  Prefactor  = 5.66103e-07
  Prefactor  = 5.55112e-11
  Prefactor  = 2.54976
  Prefactor  = 30.0375
  Prefactor  = 83.9463
  Prefactor  = 2.22045e-10
  Normalizat = 0.697823
  Prefactor  = 1.15463
 **********
 **   18 **HESSE 
 **********

 FCN=   6795.463     FROM HESSE     STATUS=OK           353 CALLS     2004 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.885        13.541        .27875E-03   -1.5636    
   2  Prefactor      .0000        1.1806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.108        25.018        .22321E-03   -1.5618    
   4  Prefactor     .42666E-06    10.437        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .22204E-09    2.6679        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     35.485        40.579        .16870E-03   -1.5589    
   7  Prefactor     .11267E-05    66.049        .87093E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .31219E-06    14.545        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .74812E-06    11.994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1640        4.2670        .69929E-03   -1.5679    
  11  Prefactor     .16172E-05    10.952        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11102E-09    6.0740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.631        40.378        .20318E-03   -1.5609    
  14  Prefactor     .56610E-06    65.638        .87190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-10    6.4422        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.5498        38.859        .64119E-03   -1.5676    
  17  Prefactor     30.038        30.371        .18250E-03   -1.5598    
  18  Prefactor     83.946        82.334        .10997E-03   -1.5525    
  19  Prefactor     .22204E-09    7.5515        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .69782        .14283        .42261E-01   -1.0398    
  21  Prefactor     1.1546        .15216        .35794E-01   -.87739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07991e-06
Minuit parameter uncertainties:
  1  13.5406
  2  8.60768e-06
  3  25.0183
  4  0.00422054
  5  4.84223e-05
  6  40.5793
  7  0.0172533
  8  0.00426172
  9  0.00599087
  10  4.26702
  11  0.00841708
  12  5.70638e-05
  13  40.3781
  14  0.0121914
  15  3.0851e-05
  16  19.908
  17  30.3716
  18  82.3353
  19  7.70195e-05
  20  0.142904
  21  0.152214
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  1.617e-06  8.417e-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.155e+00  1.522e-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.978e-01  1.429e-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.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/110578/likelihoodResults_696038401_696297601_4FGL_J1340.4+6926_daily_bin1762.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) = 6795.50773291
delta logL = -0.0449001579145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6795.46283862
delta logL = -5.86086207477e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13512E-03   1.0000          .0000       .10000E+07
     2 'Index     '    3.4707       1.0000          .0000       10.000    
     3 'Normalizat'    .69813       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1544       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=   6795.463     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      240 TOTAL
                     EDM=   .83E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    .33781        .42118E-03** at limit **
   2  Index         .86139        5.0935        .50000       -.34106E-09
   3  Normalizat    .69782        .14630E-02    .42265E-01   -.59612E-03
   4  Prefactor     1.1546        .16000E-02    .35811E-01   -.70432E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Index      = 0.861395
  Normalizat = 0.697823
  Prefactor  = 1.15463
 **********
 **   18 **HESSE 
 **********

 FCN=   6795.463     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    1.6849        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .86139        5.0129        .50000       -.97503    
   3  Normalizat    .69782        .32668E-02    .24261E-03   -1.0398    
   4  Prefactor     1.1546        .35747E-02    .21001E-03   -.87739    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.1827e-12
Minuit parameter uncertainties:
  1  3.10933e-05
  2  56024.1
  3  0.00326684
  4  0.00357473
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/110578': 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) = 6795.46283268
delta logL = 7.35126377549e-08

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  1.665e-10  3.109e-05  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  8.614e-01  5.602e+04  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.155e+00  3.575e-03  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.978e-01  3.267e-03  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/110578/cmap_HighResolution_696038401_696297601_4FGL_J1340.4+6926_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.43e-03', job_status='DONE', photon_flux_upper_limit='5.68e-08', time_completed='2023-01-25 01:13:13.120748', job_id='110578', GAL2='1.15', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1674637993.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='7.35e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1762' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 01:13:13 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 110578: <4FGL_J1340.4+6926_daily_bin1762> in cluster <slac> Done

Job <4FGL_J1340.4+6926_daily_bin1762> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Jan 25 01:00:28 2023
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 01:01:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 01:01:22 2023
Terminated at Wed Jan 25 01:13:14 2023
Results reported at Wed Jan 25 01:13:14 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1340.4+6926_daily_bin1762 205.11 69.4446 696038401 696297601 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.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             368.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            766 sec.

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

