aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 19 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7600
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1338.0+6534_daily_bin1759
RA = 204.516, Dec = 65.5696
tmin = 695260801, tmax = 695520001
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='559750', job_status='RUN', time_executed='2023-01-16 01:16:23.979481', time_epoch_executed='1673860583.98' WHERE source_name='4FGL J1338.0+6534' and cadence='daily' and bin_id='1759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/559750

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/559750/ft1_4FGL_J1338.0+6534_daily_bin1759.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/559750/ft2_4FGL_J1338.0+6534_daily_bin1759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/559750/ft1_4FGL_J1338.0+6534_daily_bin1759.fits outfile=/scratch/kocevski/559750/ft1_filteredMKT_4FGL_J1338.0+6534_daily_bin1759.fits ra=204.516 dec=65.5696 rad=12.0 tmin=695260801.0 tmax=695520001.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.79
user 2.52
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/559750/ft2_4FGL_J1338.0+6534_daily_bin1759.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/559750/ft2_4FGL_J1338.0+6534_daily_bin1759.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/559750/ft1_filteredMKT_4FGL_J1338.0+6534_daily_bin1759.fits evtable="EVENTS" outfile="/scratch/kocevski/559750/ft1_filtered_4FGL_J1338.0+6534_daily_bin1759.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.52
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 779

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/559750/ft1_filtered_4FGL_J1338.0+6534_daily_bin1759.fits" evtable="EVENTS" scfile=/scratch/kocevski/559750/ft2_4FGL_J1338.0+6534_daily_bin1759.fits sctable="SC_DATA" outfile=/scratch/kocevski/559750/ltcube_695260801_695520001_4FGL_J1338.0+6534_daily_bin1759.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/559750/ft2_4FGL_J1338.0+6534_daily_bin1759.fits
.....................!
real 16.46
user 15.98
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/559750/ft1_filtered_4FGL_J1338.0+6534_daily_bin1759.fits evtable="EVENTS" scfile=/scratch/kocevski/559750/ft2_4FGL_J1338.0+6534_daily_bin1759.fits sctable="SC_DATA" expcube=/scratch/kocevski/559750/ltcube_695260801_695520001_4FGL_J1338.0+6534_daily_bin1759.fits outfile=/scratch/kocevski/559750/expmap_695260801_695520001_4FGL_J1338.0+6534_daily_bin1759.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/559750/ltcube_695260801_695520001_4FGL_J1338.0+6534_daily_bin1759.fits
.....................!
real 192.57
user 186.88
sys 5.03

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 232 point sources and 0 extended sources

Setting source of interest to:
4FGL J1338.0+6534 @ 204.516 65.5696

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/559750/ft1_filtered_4FGL_J1338.0+6534_daily_bin1759.fits scfile=/scratch/kocevski/559750/ft2_4FGL_J1338.0+6534_daily_bin1759.fits outfile=/scratch/kocevski/559750/cmap_695260801_695520001_4FGL_J1338.0+6534_daily_bin1759.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=204.516 yref=65.5696 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/559750/ft1_filtered_4FGL_J1338.0+6534_daily_bin1759.fits scfile=/scratch/kocevski/559750/ft2_4FGL_J1338.0+6534_daily_bin1759.fits outfile=/scratch/kocevski/559750/cmap_HighResolution_695260801_695520001_4FGL_J1338.0+6534_daily_bin1759.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=204.516 yref=65.5696 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/559750/ft1_filtered_4FGL_J1338.0+6534_daily_bin1759.fits evtable="EVENTS" scfile=/scratch/kocevski/559750/ft2_4FGL_J1338.0+6534_daily_bin1759.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/559750/Model_4FGL_J1338.0+6534_daily_bin1759.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/559750/ft1_filtered_4FGL_J1338.0+6534_daily_bin1759.fits.....................!
real 75.66
user 73.56
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/559750/ft1_filtered_4FGL_J1338.0+6534_daily_bin1759.fits', '/scratch/kocevski/559750/ft2_4FGL_J1338.0+6534_daily_bin1759.fits', expMap='/scratch/kocevski/559750/expmap_695260801_695520001_4FGL_J1338.0+6534_daily_bin1759.fits', expCube='/scratch/kocevski/559750/ltcube_695260801_695520001_4FGL_J1338.0+6534_daily_bin1759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/559750/Model_4FGL_J1338.0+6534_daily_bin1759.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0+6534'

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  1.099e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/559750/ft1_filtered_4FGL_J1338.0+6534_daily_bin1759.fits
Spacecraft file(s): /scratch/kocevski/559750/ft2_4FGL_J1338.0+6534_daily_bin1759.fits
Exposure map: /scratch/kocevski/559750/expmap_695260801_695520001_4FGL_J1338.0+6534_daily_bin1759.fits
Exposure cube: /scratch/kocevski/559750/ltcube_695260801_695520001_4FGL_J1338.0+6534_daily_bin1759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/559750/Model_4FGL_J1338.0+6534_daily_bin1759.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) = 8388.66291505

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24614E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    .20447E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.7527       1.0000          .0000       .10000E+07
     4 'norm      '    1.3310       1.0000          .0000       .10000E+07
     5 'Prefactor '    .46397E-05   1.0000          .0000       .10000E+07
     6 'norm      '    2.3542       1.0000          .0000       .10000E+07
     7 'Prefactor '    38.486       1.0000          .0000       .10000E+07
     8 'Prefactor '    .58444E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .48052E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    25.405       1.0000          .0000       .10000E+07
    11 'Prefactor '    7.7738       1.0000          .0000       .10000E+07
    12 'Prefactor '    .43771E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .15748E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.3289       1.0000          .0000       .10000E+07
    15 'norm      '    .16442E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    .56361E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    3.3006       1.0000          .0000       .10000E+07
    18 'Prefactor '    67.158       1.0000          .0000       .10000E+07
    19 'Prefactor '    .49505E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .82885E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .39401E-03   1.0000          .0000       .10000E+07
    22 'Normalizat'    1.5473       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .66051       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8388.644     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1854 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39149E-05    8.5243        .95052E-06** at limit **
   2  Prefactor     .10513E-05    8.3592        .13776E-05** at limit **
   3  Prefactor     1.7640        1.5231       -.22333E-06   -.11741E-01
   4  norm          1.3333        4.4642        .14164E-05   -.15924E-03
   5  Prefactor      .0000        2.5887       -.59086E-06** at limit **
   6  norm          2.3540        1.7454        .19661E-06    .58408E-03
   7  Prefactor     38.464        3.4342       -.93619E-07   -.53525E-02
   8  Prefactor     .28866E-08    4.9412        .66572E-06** at limit **
   9  Prefactor     .34838E-05    8.4759        .15065E-05** at limit **
  10  Prefactor     25.423        1.3224       -.34410E-07   -.87167E-02
  11  Prefactor     7.8136        2.9871       -.18692E-06   -.80807E-03
  12  Prefactor     .32752E-08    5.4805        .16216E-06** at limit **
  13  Prefactor     .83267E-09    6.9961        .62821E-06** at limit **
  14  Prefactor     3.3400        1.5931       -.10103E-07    .37133E-01
  15  norm           .0000        .75361        .44687E-08** at limit **
  16  Prefactor     .10547E-08    10.142       -.13308E-05** at limit **
  17  Prefactor     3.8633        84.635        .33265E-05   -.25418E-01
  18  Prefactor     67.141        6.6801       -.14829E-06    .20312E-01
  19  Prefactor     .87851E-05    19.608        .69438E-06** at limit **
  20  Prefactor     .40628E-05    17.752       -.13311E-07** at limit **
  21  Prefactor      .0000        5.1861        .10260E-05** at limit **
  22  Normalizat    1.5474        .16907       -.11196E-04   -.96027E-04
  23  Prefactor     .66038        .18613        .10776E-05   -.73829E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.91492e-06
  Prefactor  = 1.05127e-06
  Prefactor  = 1.764
  norm       = 1.33329
  Prefactor  = 0
  norm       = 2.35401
  Prefactor  = 38.4641
  Prefactor  = 2.88658e-09
  Prefactor  = 3.48377e-06
  Prefactor  = 25.4226
  Prefactor  = 7.81358
  Prefactor  = 3.27516e-09
  Prefactor  = 8.32667e-10
  Prefactor  = 3.34004
  norm       = 0
  Prefactor  = 1.05471e-09
  Prefactor  = 3.86334
  Prefactor  = 67.1411
  Prefactor  = 8.78508e-06
  Prefactor  = 4.06275e-06
  Prefactor  = 0
  Normalizat = 1.54744
  Prefactor  = 0.66038
 **********
 **   18 **HESSE 
 **********

 FCN=   8388.644     FROM HESSE     STATUS=OK           414 CALLS     2268 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39149E-05    28.110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10513E-05    28.345        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.7640        44.268        .79154E-03   -1.5681    
   4  norm          1.3333        4.4759        .95144E-03   -1.5685    
   5  Prefactor      .0000        2.5772        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.3540        1.7462        .66774E-03   -1.5677    
   7  Prefactor     38.464        36.487        .16121E-03   -1.5584    
   8  Prefactor     .28866E-08    4.9453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .34838E-05    26.211        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.423        22.861        .19844E-03   -1.5607    
  11  Prefactor     7.8136        47.346        .35941E-03   -1.5652    
  12  Prefactor     .32752E-08    5.4101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .83267E-09    6.9901        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.3400        13.255        .55453E-03   -1.5671    
  15  norm           .0000        .75680        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10547E-08    10.183        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.8633        125.56        .55702E-03   -1.5669    
  18  Prefactor     67.141        41.240        .12203E-03   -1.5544    
  19  Prefactor     .87851E-05    32.005        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .40628E-05    23.390        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        5.1859        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.5474        .14581        .45604E-01   -.76454    
  23  Prefactor     .66038        .16188        .72904E-01   -1.0510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20129e-06
Minuit parameter uncertainties:
  1  0.0209811
  2  0.0109178
  3  17.6736
  4  4.47589
  5  6.11416e-06
  6  1.7462
  7  36.4876
  8  0.000239621
  9  0.0191117
  10  22.8614
  11  38.4683
  12  0.000267207
  13  0.000152249
  14  13.2552
  15  2.28281e-06
  16  0.000209886
  17  44.0501
  18  41.2398
  19  0.0335364
  20  0.0194965
  21  4.51338e-07
  22  0.145849
  23  0.161993
Done.

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

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  3.275e-09  2.672e-04  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  6.604e-01  1.620e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.547e+00  1.458e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 204.516 65.570
Photon Flux Upper Limit: 6.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/559750/likelihoodResults_695260801_695520001_4FGL_J1338.0+6534_daily_bin1759.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) = 8388.64874188
delta logL = -0.00500306641334

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8388.64373882
delta logL = -4.02906152885e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22760E-08   1.0000          .0000       .10000E+07
     2 'Index     '    3.0698       1.0000          .0000       10.000    
     3 'Normalizat'    1.5474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66038       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8388.644     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      241 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.1805        .42118E-03** at limit **
   2  Index         2.3952        .92937       -.14458E-04     .0000    
   3  Normalizat    1.5474        1.0451       -.43861E-05    .67019E-04
   4  Prefactor     .66038        1.0098        .10298E-04    .82167E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.39521
  Normalizat = 1.54744
  Prefactor  = 0.660381
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.1805        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .64318        1.8145       -.14458E-04   -.54797    
   3  Normalizat    1.5474        1.0451       -.43861E-05   -.76454    
   4  Prefactor     .66038        1.0098        .10298E-04   -1.0510    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.14741e-11
Minuit parameter uncertainties:
  1  1.9218e-05
  2  0.936871
  3  1.0603
  4  1.03987
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/559750': 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) = 8388.64373882
delta logL = 2.94676283374e-10

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  0.000e+00  1.922e-05  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.395e+00  9.369e-01  0.000e+00  1.000e+01 (-1.000e+00)
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  6.604e-01  1.040e+00  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.547e+00  1.060e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 204.516 65.570

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/559750/cmap_HighResolution_695260801_695520001_4FGL_J1338.0+6534_daily_bin1759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.44e-03', job_status='DONE', photon_flux_upper_limit='6.90e-08', time_completed='2023-01-16 01:30:13.926061', job_id='559750', GAL2='0.66', fit_tolerance='1e-08', EG2='1.55', EG='1.55', time_epoch_completed='1673861413.93', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='2.95e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='1759' AND source_name='4FGL J1338.0+6534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 16 01:30:13 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 559750: <4FGL_J1338.0+6534_daily_bin1759> in cluster <slac> Done

Job <4FGL_J1338.0+6534_daily_bin1759> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Jan 16 01:15:22 2023
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 16 01:15:52 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 16 01:15:52 2023
Terminated at Mon Jan 16 01:30:14 2023
Results reported at Mon Jan 16 01:30:14 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.0+6534_daily_bin1759 204.516 65.5696 695260801 695520001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1338.0+6534 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   830.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             354.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            892 sec.

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

