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 200 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_J1338.0+6534_daily_bin1715
RA = 204.516, Dec = 65.5696
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='136455', job_status='RUN', time_executed='2022-09-16 17:49:42.525208', time_epoch_executed='1663375782.53' WHERE source_name='4FGL J1338.0+6534' and cadence='daily' and bin_id='1715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/136455

Creating custom pfile directory:
/scratch/kocevski/136455/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/136455/ft1_4FGL_J1338.0+6534_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/136455/ft2_4FGL_J1338.0+6534_daily_bin1715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/136455/ft1_4FGL_J1338.0+6534_daily_bin1715.fits outfile=/scratch/kocevski/136455/ft1_filteredMKT_4FGL_J1338.0+6534_daily_bin1715.fits ra=204.516 dec=65.5696 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.56
user 3.31
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/136455/ft2_4FGL_J1338.0+6534_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/136455/ft1_filteredMKT_4FGL_J1338.0+6534_daily_bin1715.fits evtable="EVENTS" outfile="/scratch/kocevski/136455/ft1_filtered_4FGL_J1338.0+6534_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.54
user 0.36
sys 0.16

Number of photons that the gtmktime cut: 533

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/136455/ft1_filtered_4FGL_J1338.0+6534_daily_bin1715.fits" evtable="EVENTS" scfile=/scratch/kocevski/136455/ft2_4FGL_J1338.0+6534_daily_bin1715.fits sctable="SC_DATA" outfile=/scratch/kocevski/136455/ltcube_683856001_684115201_4FGL_J1338.0+6534_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/136455/ft2_4FGL_J1338.0+6534_daily_bin1715.fits
.....................!
real 16.39
user 15.86
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/136455/ft1_filtered_4FGL_J1338.0+6534_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/136455/ft2_4FGL_J1338.0+6534_daily_bin1715.fits sctable="SC_DATA" expcube=/scratch/kocevski/136455/ltcube_683856001_684115201_4FGL_J1338.0+6534_daily_bin1715.fits outfile=/scratch/kocevski/136455/expmap_683856001_684115201_4FGL_J1338.0+6534_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/136455/ltcube_683856001_684115201_4FGL_J1338.0+6534_daily_bin1715.fits
.....................!
real 191.77
user 186.41
sys 4.43

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/136455/ft1_filtered_4FGL_J1338.0+6534_daily_bin1715.fits scfile=/scratch/kocevski/136455/ft2_4FGL_J1338.0+6534_daily_bin1715.fits outfile=/scratch/kocevski/136455/cmap_683856001_684115201_4FGL_J1338.0+6534_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=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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/136455/ft1_filtered_4FGL_J1338.0+6534_daily_bin1715.fits scfile=/scratch/kocevski/136455/ft2_4FGL_J1338.0+6534_daily_bin1715.fits outfile=/scratch/kocevski/136455/cmap_HighResolution_683856001_684115201_4FGL_J1338.0+6534_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=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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/136455/ft1_filtered_4FGL_J1338.0+6534_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/136455/ft2_4FGL_J1338.0+6534_daily_bin1715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/136455/Model_4FGL_J1338.0+6534_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/136455/ft1_filtered_4FGL_J1338.0+6534_daily_bin1715.fits.....................!
real 55.35
user 53.90
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/136455/ft1_filtered_4FGL_J1338.0+6534_daily_bin1715.fits', '/scratch/kocevski/136455/ft2_4FGL_J1338.0+6534_daily_bin1715.fits', expMap='/scratch/kocevski/136455/expmap_683856001_684115201_4FGL_J1338.0+6534_daily_bin1715.fits', expCube='/scratch/kocevski/136455/ltcube_683856001_684115201_4FGL_J1338.0+6534_daily_bin1715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/136455/Model_4FGL_J1338.0+6534_daily_bin1715.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/136455/ft1_filtered_4FGL_J1338.0+6534_daily_bin1715.fits
Spacecraft file(s): /scratch/kocevski/136455/ft2_4FGL_J1338.0+6534_daily_bin1715.fits
Exposure map: /scratch/kocevski/136455/expmap_683856001_684115201_4FGL_J1338.0+6534_daily_bin1715.fits
Exposure cube: /scratch/kocevski/136455/ltcube_683856001_684115201_4FGL_J1338.0+6534_daily_bin1715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/136455/Model_4FGL_J1338.0+6534_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) = 5799.99424825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3821       1.0000          .0000       .10000E+07
     2 'Prefactor '    .32535E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    11.626       1.0000          .0000       .10000E+07
     4 'norm      '    .12892E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .20398E-05   1.0000          .0000       .10000E+07
     6 'norm      '    3.1233       1.0000          .0000       .10000E+07
     7 'Prefactor '    17.176       1.0000          .0000       .10000E+07
     8 'Prefactor '    .39857E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    6.8767       1.0000          .0000       .10000E+07
    10 'Prefactor '    .99478E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .12730E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .13695E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .67120E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .33832E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .11921E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .20117E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    30.300       1.0000          .0000       .10000E+07
    18 'Prefactor '    15.762       1.0000          .0000       .10000E+07
    19 'Prefactor '    .12568E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .16123E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .36919E-03   1.0000          .0000       .10000E+07
    22 'Normalizat'    .84698       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0509       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=   5799.993     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1815 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3845        5.1648       -.20128E-07   -.58032E-04
   2  Prefactor     .82490E-07    7.1335       -.34136E-06** at limit **
   3  Prefactor     11.618        1.5691        .35712E-08   -.29812E-02
   4  norm           .0000        2.0539       -.97213E-07** at limit **
   5  Prefactor      .0000        1.6744       -.20501E-06** at limit **
   6  norm          3.1215        1.9917       -.17839E-06   -.65766E-03
   7  Prefactor     17.119        5.2974        .65111E-07   -.14557E-01
   8  Prefactor      .0000        4.1275       -.11172E-06** at limit **
   9  Prefactor     6.8746        4.1285       -.84426E-07    .12909E-01
  10  Prefactor     .11890E-06    9.1049       -.11754E-06** at limit **
  11  Prefactor     .55511E-10    115.68       -.27603E-05** at limit **
  12  Prefactor      .0000        2.1737        .42350E-08** at limit **
  13  Prefactor     .29976E-07    6.6185       -.33721E-06** at limit **
  14  Prefactor     .47184E-08    17.770        .52356E-06** at limit **
  15  norm           .0000        1.9511        .78476E-07** at limit **
  16  Prefactor     .12212E-06    6.6518       -.66749E-08** at limit **
  17  Prefactor     30.219        2.1054       -.38076E-07    .18460E-01
  18  Prefactor     15.692        7.9983        .10351E-06   -.26236E-01
  19  Prefactor     .89706E-07    6.3978       -.17882E-06** at limit **
  20  Prefactor     .94369E-09    15.755        .40951E-07** at limit **
  21  Prefactor     .63893E-07    8.1457       -.16591E-06** at limit **
  22  Normalizat    .84719        .17200        .57287E-05   -.67691E-05
  23  Prefactor     1.0512        .20385       -.56193E-05   -.11373E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.38448
  Prefactor  = 8.24896e-08
  Prefactor  = 11.6175
  norm       = 0
  Prefactor  = 0
  norm       = 3.12147
  Prefactor  = 17.119
  Prefactor  = 0
  Prefactor  = 6.87461
  Prefactor  = 1.18905e-07
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 2.9976e-08
  Prefactor  = 4.71845e-09
  norm       = 0
  Prefactor  = 1.22125e-07
  Prefactor  = 30.2188
  Prefactor  = 15.6916
  Prefactor  = 8.9706e-08
  Prefactor  = 9.4369e-10
  Prefactor  = 6.38933e-08
  Normalizat = 0.847186
  Prefactor  = 1.05121
 **********
 **   18 **HESSE 
 **********

 FCN=   5799.993     FROM HESSE     STATUS=OK           406 CALLS     2221 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3845        5.1776        .54994E-03   -1.5671    
   2  Prefactor     .82490E-07    8.5743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.618        17.907        .29355E-03   -1.5640    
   4  norm           .0000        2.0449        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        1.6726        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.1215        1.9962        .57343E-03   -1.5673    
   7  Prefactor     17.119        24.515        .24139E-03   -1.5625    
   8  Prefactor      .0000        4.1235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.8746        32.314        .38236E-03   -1.5656    
  10  Prefactor     .11890E-06    13.516        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    115.41        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.1612        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .29976E-07    11.353        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .47184E-08    20.719        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        1.9457        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .12212E-06    8.6869        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     30.219        54.397        .18170E-03   -1.5598    
  18  Prefactor     15.692        25.707        .25201E-03   -1.5629    
  19  Prefactor     .89706E-07    12.455        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .94369E-09    19.186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .63893E-07    10.142        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .84719        .14679        .44220E-01   -.98342    
  23  Prefactor     1.0512        .17280        .39857E-01   -.91041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40034e-07
Minuit parameter uncertainties:
  1  5.17758
  2  0.00168197
  3  17.9068
  4  1.04762e-06
  5  2.07522e-06
  6  1.99622
  7  24.5151
  8  5.1576e-06
  9  29.8094
  10  0.0025356
  11  0.000117721
  12  4.57675e-07
  13  0.00116634
  14  0.000623966
  15  1.14676e-07
  16  0.00206004
  17  54.3978
  18  25.7069
  19  0.0021139
  20  0.000269085
  21  0.00161028
  22  0.146855
  23  0.172888
Done.

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

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  0.000e+00  4.577e-07  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:  1.051e+00  1.729e-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:  8.472e-01  1.469e-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: 5.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/136455/likelihoodResults_683856001_684115201_4FGL_J1338.0+6534_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): 102
logL (Free Index) = 5799.9947111
delta logL = -0.00208495078368

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5799.99262622
delta logL = -7.53789208829e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26645E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.0856       1.0000          .0000       10.000    
     3 'Normalizat'    .84722       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0512       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=   5799.993     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      265 TOTAL
                     EDM=   .14E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .40470        .16479E-02** at limit **
   2  Index         3.9773        1.8227        .23634E-04     .0000    
   3  Normalizat    .84719        1.1847       -.61409E-05    .99065E-05
   4  Prefactor     1.0512        1.1899        .44740E-05    .70764E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.97726
  Normalizat = 0.847186
  Prefactor  = 1.05121
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5799.993     FROM HESSE     STATUS=FAILED         9 CALLS      274 TOTAL
                     EDM=   .14E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .40470        .16479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7181        2.3327        .23634E-04   -.20600    
   3  Normalizat    .84719        1.1847       -.61409E-05   -.98342    
   4  Prefactor     1.0512        1.1899        .44740E-05   -.91041    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.36431e-13
Minuit parameter uncertainties:
  1  4.26154e-07
  2  1.86768
  3  1.22417
  4  1.22195
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/136455': 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) = 5799.99262615
delta logL = 0.0

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  0.000e+00  4.262e-07  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  3.977e+00  1.868e+00  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:  1.051e+00  1.222e+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:  8.472e-01  1.224e+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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/136455/cmap_HighResolution_683856001_684115201_4FGL_J1338.0+6534_daily_bin1715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-03', job_status='DONE', photon_flux_upper_limit='5.30e-08', time_completed='2022-09-16 18:01:27.630298', job_id='136455', GAL2='1.05', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1663376487.63', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='1715' AND source_name='4FGL J1338.0+6534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 18:01:27 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 136455: <4FGL_J1338.0+6534_daily_bin1715> in cluster <slac> Done

Job <4FGL_J1338.0+6534_daily_bin1715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 16 17:45:16 2022
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 17:46:14 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:46:14 2022
Terminated at Fri Sep 16 18:01:28 2022
Results reported at Fri Sep 16 18:01:28 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.0+6534_daily_bin1715 204.516 65.5696 683856001 684115201 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 :                                   705.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             306.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            972 sec.

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

