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


Performing analysis on: 4FGL_J1338.0+6534_daily_bin1771
RA = 204.516, Dec = 65.5696
tmin = 698371201, tmax = 698630401
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='548879', job_status='RUN', time_executed='2023-02-21 00:58:34.201045', time_epoch_executed='1676969914.2' WHERE source_name='4FGL J1338.0+6534' and cadence='daily' and bin_id='1771'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548879

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548879/ft1_4FGL_J1338.0+6534_daily_bin1771.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548879/ft2_4FGL_J1338.0+6534_daily_bin1771.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548879/ft1_4FGL_J1338.0+6534_daily_bin1771.fits outfile=/scratch/kocevski/548879/ft1_filteredMKT_4FGL_J1338.0+6534_daily_bin1771.fits ra=204.516 dec=65.5696 rad=12.0 tmin=698371201.0 tmax=698630401.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.12
user 2.88
sys 0.18

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

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

Number of photons that the gtmktime cut: 562

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/548879/ft1_filtered_4FGL_J1338.0+6534_daily_bin1771.fits" evtable="EVENTS" scfile=/scratch/kocevski/548879/ft2_4FGL_J1338.0+6534_daily_bin1771.fits sctable="SC_DATA" outfile=/scratch/kocevski/548879/ltcube_698371201_698630401_4FGL_J1338.0+6534_daily_bin1771.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/548879/ft2_4FGL_J1338.0+6534_daily_bin1771.fits
.....................!
real 12.46
user 12.10
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548879/ft1_filtered_4FGL_J1338.0+6534_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/548879/ft2_4FGL_J1338.0+6534_daily_bin1771.fits sctable="SC_DATA" expcube=/scratch/kocevski/548879/ltcube_698371201_698630401_4FGL_J1338.0+6534_daily_bin1771.fits outfile=/scratch/kocevski/548879/expmap_698371201_698630401_4FGL_J1338.0+6534_daily_bin1771.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/548879/ltcube_698371201_698630401_4FGL_J1338.0+6534_daily_bin1771.fits
.....................!
real 189.91
user 185.45
sys 4.08

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/548879/ft1_filtered_4FGL_J1338.0+6534_daily_bin1771.fits scfile=/scratch/kocevski/548879/ft2_4FGL_J1338.0+6534_daily_bin1771.fits outfile=/scratch/kocevski/548879/cmap_698371201_698630401_4FGL_J1338.0+6534_daily_bin1771.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/548879/ft1_filtered_4FGL_J1338.0+6534_daily_bin1771.fits scfile=/scratch/kocevski/548879/ft2_4FGL_J1338.0+6534_daily_bin1771.fits outfile=/scratch/kocevski/548879/cmap_HighResolution_698371201_698630401_4FGL_J1338.0+6534_daily_bin1771.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.59
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22940E+06   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.7578       1.0000          .0000       .10000E+07
     3 'Prefactor '    5.2767       1.0000          .0000       .10000E+07
     4 'norm      '    .64720       1.0000          .0000       .10000E+07
     5 'Prefactor '    .87840E-05   1.0000          .0000       .10000E+07
     6 'norm      '    .72720E-08   1.0000          .0000       .10000E+07
     7 'Prefactor '    .38929E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .42779E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .64948E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    .70999E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    .26065E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    13 'Prefactor '    .32752E-08   1.0000          .0000       .10000E+07
    14 'Prefactor '    .94761       1.0000          .0000       .10000E+07
    15 'norm      '    3.2530       1.0000          .0000       .10000E+07
    16 'Prefactor '    6.1941       1.0000          .0000       .10000E+07
    17 'Prefactor '    .71770E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .83918E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    20.382       1.0000          .0000       .10000E+07
    20 'Prefactor '    37.506       1.0000          .0000       .10000E+07
    21 'Prefactor '    7.2786       1.0000          .0000       .10000E+07
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95965       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=   5904.251     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1904 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22940E+06    1.6361        .28763E-10   -2.2962    
   2  Prefactor      .0000        842.30        .70075E-06** at limit **
   3  Prefactor     5.2836        1.0733       -.49921E-08    .42825E-02
   4  norm          .65040        2.1586       -.91130E-07   -.41064E-04
   5  Prefactor      .0000        5.5970       -.10909E-07** at limit **
   6  norm           .0000        3.2030        .14894E-06** at limit **
   7  Prefactor     .61062E-09    13.295        .28725E-07** at limit **
   8  Prefactor      .0000        3.8707       -.86551E-08** at limit **
   9  Prefactor     .55511E-10    7.6816        .27000E-07** at limit **
  10  Prefactor      .0000        4.0246       -.27801E-07** at limit **
  11  Prefactor     .46574E-07    27.712        .18049E-06** at limit **
  12  Prefactor      .0000        .38472       -.19567E-08** at limit **
  13  Prefactor      .0000        1.6200        .28004E-08** at limit **
  14  Prefactor     .88873        .51594       -.28248E-09   -.33556E-02
  15  norm          3.2611        4.8107       -.40503E-07   -.26139E-03
  16  Prefactor     6.4883        14.463        .10555E-06    .10026E-01
  17  Prefactor     .46962E-07    20.999        .10494E-06** at limit **
  18  Prefactor     .34694E-07    67.637       -.27085E-06** at limit **
  19  Prefactor     20.270        1.5887        .79853E-08   -.83234E-02
  20  Prefactor     37.732        1.8036       -.47601E-09   -.25577E-01
  21  Prefactor     8.3134        5.5442        .10535E-07   -.41666E-01
  22  Normalizat    .10000E-01    .14781E-01    .70834E-06** at limit **
  23  Prefactor     .95866        .79448E-01    .68020E-06   -.43273E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 229396
  Prefactor  = 0
  Prefactor  = 5.28359
  norm       = 0.650401
  Prefactor  = 0
  norm       = 0
  Prefactor  = 6.10623e-10
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 4.65739e-08
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0.888725
  norm       = 3.26106
  Prefactor  = 6.48826
  Prefactor  = 4.69624e-08
  Prefactor  = 3.46945e-08
  Prefactor  = 20.27
  Prefactor  = 37.7322
  Prefactor  = 8.31338
  Normalizat = 0.01
  Prefactor  = 0.958661
 **********
 **   18 **HESSE 
 **********

 FCN=   5904.251     FROM HESSE     STATUS=OK           414 CALLS     2318 TOTAL
                     EDM=   .80E-02    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22940E+06    16354.        .27269E-05   -.57187    
   2  Prefactor      .0000        842.62        .79014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.2836        49.873        .43732E-03   -1.5662    
   4  norm          .65040        2.1749        .65102E-03   -1.5692    
   5  Prefactor      .0000        5.5968        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        3.1981        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .61062E-09    13.338        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        3.8749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    7.6844        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        4.0287        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .46574E-07    28.038        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        .38488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        1.6210        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .88873        13.796        .42522E-03   -1.5689    
  15  norm          3.2611        4.8477        .56128E-03   -1.5672    
  16  Prefactor     6.4883        14.594        .40313E-03   -1.5657    
  17  Prefactor     .46962E-07    21.354        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .34694E-07    66.127        .14383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.270        17.050        .22157E-03   -1.5618    
  20  Prefactor     37.732        23.505        .16330E-03   -1.5585    
  21  Prefactor     8.3134        24.441        .37154E-03   -1.5650    
  22  Normalizat    .10000E-01    .14466E-01    .13039       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .95866        .89595E-01    .45761E-01   -.94120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.00798311
Minuit parameter uncertainties:
  1  16357.7
  2  1.57482e-05
  3  32.4663
  4  2.17493
  5  1.60181e-05
  6  1.7228e-06
  7  0.000176514
  8  5.12852e-07
  9  4.44936e-05
  10  8.97729e-07
  11  0.00228523
  12  1.01403e-08
  13  1.7901e-07
  14  7.00315
  15  4.84775
  16  14.5939
  17  0.00200317
  18  0.0030283
  19  17.0501
  20  23.5049
  21  24.4411
  22  1.02522e-09
  23  0.0896089
Done.

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

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  0.000e+00  1.014e-08  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:  9.587e-01  8.961e-02  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.000e-02  1.025e-09  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/548879/likelihoodResults_698371201_698630401_4FGL_J1338.0+6534_daily_bin1771.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) = 5904.25313441
delta logL = -0.00251058039157

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5904.25062673
delta logL = -2.89875333692e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22982E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.4764       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95878       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=   5904.251     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      234 TOTAL
                     EDM=   .16E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .72112        .42118E-03** at limit **
   2  Index         1.6551        1.1012       -.16277E-05     .0000    
   3  Normalizat    .10000E-01    .25505       -.46259E-05** at limit **
   4  Prefactor     .95866        1.3004       -.16487E-08    .17419E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.65508
  Normalizat = 0.01
  Prefactor  = 0.958661
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5904.251     FROM HESSE     STATUS=FAILED         9 CALLS      243 TOTAL
                     EDM=   .16E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .72112        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .26649        1.5388       -.16277E-05   -.73284    
   3  Normalizat    .10000E-01    .25505       -.46259E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .95866        1.3004       -.16487E-08   -.94120    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.5879e-12
Minuit parameter uncertainties:
  1  1.404e-06
  2  1.11801
  3  1.34976e-07
  4  1.34691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548879': 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) = 5904.25062383
delta logL = 0.0

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  0.000e+00  1.404e-06  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  1.655e+00  1.118e+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:  9.587e-01  1.347e+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.000e-02  1.350e-07  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/548879/cmap_HighResolution_698371201_698630401_4FGL_J1338.0+6534_daily_bin1771.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.49e-03', job_status='DONE', photon_flux_upper_limit='1.88e-08', time_completed='2023-02-21 01:10:19.449399', job_id='548879', GAL2='0.96', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1676970619.45', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='1771' AND source_name='4FGL J1338.0+6534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb 21 01:10:19 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 548879: <4FGL_J1338.0+6534_daily_bin1771> in cluster <slac> Done

Job <4FGL_J1338.0+6534_daily_bin1771> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb 21 00:55:20 2023
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 00:55:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 00:55:20 2023
Terminated at Tue Feb 21 01:10:19 2023
Results reported at Tue Feb 21 01:10:19 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.0+6534_daily_bin1771 204.516 65.5696 698371201 698630401 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 :                                   707.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             263.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            899 sec.

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

