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 21 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1340.4+6926_monthly_bin169
RA = 205.11, Dec = 69.4446
tmin = 675043201, tmax = 677635201
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='169845', job_status='RUN', time_executed='2022-06-23 02:28:16.093874', time_epoch_executed='1655976496.09' WHERE source_name='4FGL J1340.4+6926' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/169845

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/169845/ft1_4FGL_J1340.4+6926_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/169845/ft2_4FGL_J1340.4+6926_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/169845/ft1_4FGL_J1340.4+6926_monthly_bin169.fits outfile=/scratch/kocevski/169845/ft1_filteredMKT_4FGL_J1340.4+6926_monthly_bin169.fits ra=205.11 dec=69.4446 rad=12.0 tmin=675043201.0 tmax=677635201.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 27.71
user 26.94
sys 0.70

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/169845/ft2_4FGL_J1340.4+6926_monthly_bin169.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/169845/ft1_filteredMKT_4FGL_J1340.4+6926_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/169845/ft1_filtered_4FGL_J1340.4+6926_monthly_bin169.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.87
user 0.66
sys 0.20

Number of photons that the gtmktime cut: 8852

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/169845/ft1_filtered_4FGL_J1340.4+6926_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/169845/ft2_4FGL_J1340.4+6926_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/169845/ltcube_675043201_677635201_4FGL_J1340.4+6926_monthly_bin169.fits outfile=/scratch/kocevski/169845/expmap_675043201_677635201_4FGL_J1340.4+6926_monthly_bin169.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/169845/ltcube_675043201_677635201_4FGL_J1340.4+6926_monthly_bin169.fits
.....................!
real 194.45
user 189.07
sys 5.00

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/169845/ft1_filtered_4FGL_J1340.4+6926_monthly_bin169.fits scfile=/scratch/kocevski/169845/ft2_4FGL_J1340.4+6926_monthly_bin169.fits outfile=/scratch/kocevski/169845/cmap_675043201_677635201_4FGL_J1340.4+6926_monthly_bin169.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.82
user 0.65
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/169845/ft1_filtered_4FGL_J1340.4+6926_monthly_bin169.fits scfile=/scratch/kocevski/169845/ft2_4FGL_J1340.4+6926_monthly_bin169.fits outfile=/scratch/kocevski/169845/cmap_HighResolution_675043201_677635201_4FGL_J1340.4+6926_monthly_bin169.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.84
user 0.67
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/169845/ft1_filtered_4FGL_J1340.4+6926_monthly_bin169.fits', '/scratch/kocevski/169845/ft2_4FGL_J1340.4+6926_monthly_bin169.fits', expMap='/scratch/kocevski/169845/expmap_675043201_677635201_4FGL_J1340.4+6926_monthly_bin169.fits', expCube='/scratch/kocevski/169845/ltcube_675043201_677635201_4FGL_J1340.4+6926_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/169845/Model_4FGL_J1340.4+6926_monthly_bin169.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  1.000e-04  1.000e+04 ( 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/169845/ft1_filtered_4FGL_J1340.4+6926_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/169845/ft2_4FGL_J1340.4+6926_monthly_bin169.fits
Exposure map: /scratch/kocevski/169845/expmap_675043201_677635201_4FGL_J1340.4+6926_monthly_bin169.fits
Exposure cube: /scratch/kocevski/169845/ltcube_675043201_677635201_4FGL_J1340.4+6926_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/169845/Model_4FGL_J1340.4+6926_monthly_bin169.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) = 96133.0107804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68704       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3949       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.000       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.506       1.0000         .10000E-03   10000.    
     6 'norm      '    .95028       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3875       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0180       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.574       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .69162       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0803       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.8638       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3657       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .52671       1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.575       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10462E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .53976       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.405       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.6747       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12651E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.650       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0172       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96221       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   96132.95     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     2915 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .68711        1.9299       -.15992E-07   -.57550E-04
   2  Prefactor     2.3949        .75732       -.45355E-08    .12591E-04
   3  Prefactor     .10000E-03    1.7652        .25627E-07** at limit **
   4  Prefactor     11.000        4.3260       -.65098E-07    .18144E-04
   5  Prefactor     13.505        12.188       -.85344E-06    .31238E-05
   6  norm          .95031        .74683       -.17090E-07   -.16993E-03
   7  Prefactor     3.3876        6.3578       -.68749E-06    .14642E-05
   8  Prefactor     .10000E-03    3.0764       -.47902E-06** at limit **
   9  Prefactor     3.0179        5.8557       -.25427E-06    .45383E-05
  10  Prefactor     11.574        5.5769        .15376E-07    .26391E-04
  11  Prefactor     .69119        .80530       -.49438E-08    .53875E-05
  12  Prefactor     2.0799        2.6749       -.13804E-06    .15630E-04
  13  Prefactor     5.8638        8.4449       -.98401E-06    .16079E-05
  14  Prefactor     2.3681        1.6404        .24301E-08   -.28066E-04
  15  Prefactor     .10000E-03    .32752       -.72209E-08** at limit **
  16  Prefactor     .10000E-03    1.1881       -.16387E-07** at limit **
  17  Prefactor     .52688        2.1309        .49499E-07   -.44820E-04
  18  Prefactor     40.575        39.399       -.46082E-07    .63600E-06
  19  Prefactor     .10000E-03    3.9045       -.11033E-05** at limit **
  20  Prefactor     .10000E-03    .67209       -.88495E-07** at limit **
  21  Prefactor     .53389        1.5678       -.33351E-06    .55361E-03
  22  Prefactor     13.405        6.7495       -.22260E-06    .40192E-04
  23  Prefactor     3.6734        10.426       -.41898E-05    .98177E-06
  24  Prefactor     .10001E-03    .56719        .17022E-06** at limit **
  25  Prefactor     12.651        4.8591        .37663E-06   -.13840E-03
  26  Normalizat    1.0172        .39344E-01    .93188E-07    .30775E-03
  27  Prefactor     .96221        .40203E-01    .48353E-07    .31146E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.68711
  Prefactor  = 2.39492
  Prefactor  = 0.0001
  Prefactor  = 10.9996
  Prefactor  = 13.5055
  norm       = 0.95031
  Prefactor  = 3.38759
  Prefactor  = 0.0001
  Prefactor  = 3.01786
  Prefactor  = 11.5743
  Prefactor  = 0.691189
  Prefactor  = 2.07991
  Prefactor  = 5.86382
  Prefactor  = 2.36811
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.526881
  Prefactor  = 40.5746
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.533892
  Prefactor  = 13.4048
  Prefactor  = 3.67341
  Prefactor  = 0.000100008
  Prefactor  = 12.6511
  Normalizat = 1.01721
  Prefactor  = 0.962212
 **********
 **   18 **HESSE 
 **********

 FCN=   96132.95     FROM HESSE     STATUS=OK           510 CALLS     3425 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .68711        3.0264        .24024E-02   -1.5542    
   2  Prefactor     2.3949        .75659        .14747E-03   -1.5398    
   3  Prefactor     .10000E-03    1.7671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.000        4.3275        .12080E-03   -1.5045    
   5  Prefactor     13.505        12.188        .10899E-03   -1.4973    
   6  norm          .95031        .66925        .22788E-02   -1.5513    
   7  Prefactor     3.3876        6.3520        .21983E-03   -1.5340    
   8  Prefactor     .10000E-03    3.0870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0179        5.8533        .23361E-03   -1.5361    
  10  Prefactor     11.574        5.5496        .58877E-03   -1.5027    
  11  Prefactor     .69119        .74998        .25350E-03   -1.5542    
  12  Prefactor     2.0799        2.6486        .28632E-03   -1.5420    
  13  Prefactor     5.8638        8.4528        .16584E-03   -1.5224    
  14  Prefactor     2.3681        1.6011        .13321E-02   -1.5400    
  15  Prefactor     .10000E-03    .99120        .33910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.2149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .52688        3.5187        .22759E-02   -1.5563    
  18  Prefactor     40.575        39.400        .62929E-04   -1.4433    
  19  Prefactor     .10000E-03    3.9341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.7539        .49314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .53389        7.6737        .62878E-02   -1.5562    
  22  Prefactor     13.405        6.7458        .10940E-03   -1.4976    
  23  Prefactor     3.6734        10.430        .21070E-03   -1.5325    
  24  Prefactor     .10001E-03    3.6845        .44077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     12.651        4.7986        .11262E-03   -1.4996    
  26  Normalizat    1.0172        .45341E-01    .21555E-03   -.92456    
  27  Prefactor     .96221        .47274E-01    .23439E-03   -.94000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50594e-07
Minuit parameter uncertainties:
  1  2.88412
  2  0.756593
  3  3.23256e-07
  4  4.32762
  5  12.1905
  6  0.669259
  7  6.3533
  8  9.96431e-08
  9  5.85439
  10  5.54988
  11  0.749989
  12  2.64873
  13  8.4545
  14  1.60118
  15  8.85917e-07
  16  4.0533e-07
  17  2.72314
  18  39.425
  19  1.96059e-06
  20  3.23538e-05
  21  4.04841
  22  6.74616
  23  10.4356
  24  0.000332692
  25  4.7987
  26  0.0453431
  27  0.0472764
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  2.080e+00  2.649e+00  1.000e-04  1.000e+04 ( 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:  9.622e-01  4.728e-02  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.017e+00  4.534e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/169845/likelihoodResults_675043201_677635201_4FGL_J1340.4+6926_monthly_bin169.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) = 96132.7398542
delta logL = 0.209764328189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 96132.6513848
delta logL = 0.298233657333

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4305       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0656       1.0000          .0000       10.000    
     3 'Normalizat'    1.0191       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96035       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=   96132.65     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      222 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4309        24.396        .54597E-02    .13755E-02
   2  Index         2.0655        .90582        .50000       -.14426E-04
   3  Normalizat    1.0192        .55494E-02    .43478E-01    .32062E-04
   4  Prefactor     .96034        .57851E-02    .45770E-01    .21638E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.43086
  Index      = 2.06554
  Normalizat = 1.01915
  Prefactor  = 0.960338
 **********
 **   18 **HESSE 
 **********

 FCN=   96132.65     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4309        3.3858        .21839E-03   -1.5337    
   2  Index         2.0655        .51063        .12478E-01   -.62722    
   3  Normalizat    1.0192        .44010E-01    .21536E-03   -.92392    
   4  Prefactor     .96034        .46835E-01    .23458E-03   -.94063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.91063e-11
Minuit parameter uncertainties:
  1  3.38604
  2  0.511993
  3  0.0440115
  4  0.0468371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/169845': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 96132.6513847
delta logL = 0.298233742782

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.431e+00  3.386e+00  1.000e-04  1.000e+04 ( 1.000e-13)
378        Index:  2.066e+00  5.120e-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:  9.603e-01  4.684e-02  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.019e+00  4.401e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.39
Ra Dec: 205.110 69.445
Photon Index (Free Index): 2.07 +/- 0.51
Photon Flux (Free Index): 3.31e-09 +/- 3.70e-09
Energy Flux (Free Index): 1.96e-06 +/- 2.26e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/169845/cmap_HighResolution_675043201_677635201_4FGL_J1340.4+6926_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-03', comment='SUCCESS', energy_flux2='1.96e-06', dlogl='2.98e-01', photon_flux2='3.31e-09', job_status='DONE', time_completed='2022-06-23 05:01:56.625187', photon_index_error2='0.51', photon_index2='2.07', ts='0.80', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.44e-08', energy_flux_error2='2.26e-06', EG='1.02', time_epoch_completed='1655985716.63', return_code='0', job_id='169845', GAL2='0.96', EG2='1.02', return_code2='0', photon_flux_error2='3.70e-09', ts2='1.39', photon_index='2.53' WHERE bin_id='169' AND source_name='4FGL J1340.4+6926' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 05:01:56 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 169845: <4FGL_J1340.4+6926_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1340.4+6926_monthly_bin169> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Jun 23 01:50:24 2022
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:27:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:27:47 2022
Terminated at Thu Jun 23 05:01:57 2022
Results reported at Thu Jun 23 05:01:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1340.4+6926_monthly_bin169 205.11 69.4446 675043201 677635201 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 :                                   9186.00 sec.
    Max Memory :                                 1265 MB
    Average Memory :                             464.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   9250 sec.
    Turnaround time :                            11493 sec.

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

