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


Performing analysis on: 4FGL_J0238.6+1637_daily_bin1673
RA = 39.668, Dec = 16.6179
tmin = 672969601, tmax = 673228801
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='351259', job_status='RUN', time_executed='2022-05-03 00:11:27.954619', time_epoch_executed='1651561887.95' WHERE source_name='4FGL J0238.6+1637' and cadence='daily' and bin_id='1673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351259

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351259/ft1_4FGL_J0238.6+1637_daily_bin1673.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351259/ft2_4FGL_J0238.6+1637_daily_bin1673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351259/ft1_4FGL_J0238.6+1637_daily_bin1673.fits outfile=/scratch/kocevski/351259/ft1_filteredMKT_4FGL_J0238.6+1637_daily_bin1673.fits ra=39.668 dec=16.6179 rad=12.0 tmin=672969601.0 tmax=673228801.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.96
user 2.73
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/351259/ft2_4FGL_J0238.6+1637_daily_bin1673.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351259/ft2_4FGL_J0238.6+1637_daily_bin1673.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/351259/ft1_filteredMKT_4FGL_J0238.6+1637_daily_bin1673.fits evtable="EVENTS" outfile="/scratch/kocevski/351259/ft1_filtered_4FGL_J0238.6+1637_daily_bin1673.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351259/ft1_filtered_4FGL_J0238.6+1637_daily_bin1673.fits" evtable="EVENTS" scfile=/scratch/kocevski/351259/ft2_4FGL_J0238.6+1637_daily_bin1673.fits sctable="SC_DATA" outfile=/scratch/kocevski/351259/ltcube_672969601_673228801_4FGL_J0238.6+1637_daily_bin1673.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/351259/ft2_4FGL_J0238.6+1637_daily_bin1673.fits
.....................!
real 15.36
user 14.99
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351259/ft1_filtered_4FGL_J0238.6+1637_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/351259/ft2_4FGL_J0238.6+1637_daily_bin1673.fits sctable="SC_DATA" expcube=/scratch/kocevski/351259/ltcube_672969601_673228801_4FGL_J0238.6+1637_daily_bin1673.fits outfile=/scratch/kocevski/351259/expmap_672969601_673228801_4FGL_J0238.6+1637_daily_bin1673.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/351259/ltcube_672969601_673228801_4FGL_J0238.6+1637_daily_bin1673.fits
.....................!
real 193.78
user 187.24
sys 5.98

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

Setting source of interest to:
4FGL J0238.6+1637 @ 39.668 16.6179

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/351259/ft1_filtered_4FGL_J0238.6+1637_daily_bin1673.fits scfile=/scratch/kocevski/351259/ft2_4FGL_J0238.6+1637_daily_bin1673.fits outfile=/scratch/kocevski/351259/cmap_672969601_673228801_4FGL_J0238.6+1637_daily_bin1673.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=39.668 yref=16.6179 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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351259/ft1_filtered_4FGL_J0238.6+1637_daily_bin1673.fits scfile=/scratch/kocevski/351259/ft2_4FGL_J0238.6+1637_daily_bin1673.fits outfile=/scratch/kocevski/351259/cmap_HighResolution_672969601_673228801_4FGL_J0238.6+1637_daily_bin1673.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=39.668 yref=16.6179 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.55
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/351259/ft1_filtered_4FGL_J0238.6+1637_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/351259/ft2_4FGL_J0238.6+1637_daily_bin1673.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/351259/Model_4FGL_J0238.6+1637_daily_bin1673.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/351259/ft1_filtered_4FGL_J0238.6+1637_daily_bin1673.fits..................!
real 16.11
user 14.85
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/351259/ft1_filtered_4FGL_J0238.6+1637_daily_bin1673.fits', '/scratch/kocevski/351259/ft2_4FGL_J0238.6+1637_daily_bin1673.fits', expMap='/scratch/kocevski/351259/expmap_672969601_673228801_4FGL_J0238.6+1637_daily_bin1673.fits', expCube='/scratch/kocevski/351259/ltcube_672969601_673228801_4FGL_J0238.6+1637_daily_bin1673.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/351259/Model_4FGL_J0238.6+1637_daily_bin1673.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0238.6+1637'

4FGL J0238.6+1637
   Spectrum: LogParabola
253         norm:  1.740e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
254        alpha:  2.090e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
255         beta:  9.194e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
256           Eb:  8.889e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/351259/ft1_filtered_4FGL_J0238.6+1637_daily_bin1673.fits
Spacecraft file(s): /scratch/kocevski/351259/ft2_4FGL_J0238.6+1637_daily_bin1673.fits
Exposure map: /scratch/kocevski/351259/expmap_672969601_673228801_4FGL_J0238.6+1637_daily_bin1673.fits
Exposure cube: /scratch/kocevski/351259/ltcube_672969601_673228801_4FGL_J0238.6+1637_daily_bin1673.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/351259/Model_4FGL_J0238.6+1637_daily_bin1673.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) = 234.577818691

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.114       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1169.2       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.387       1.0000         .10000E-03   10000.    
     4 'norm      '    .11765E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11184E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    105.79       1.0000         .10000E-03   10000.    
     7 'norm      '    .20452E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    54.050       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9996.6       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .58337E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    76.603       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9399       1.0000         .10000E-03   10000.    
    13 'Prefactor '    102.39       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .71918E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .59245E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    127.89       1.0000         .10000E-03   10000.    
    17 'norm      '    9999.9       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.3234       1.0000         .10000E-03   10000.    
    19 'norm      '    6.8347       1.0000         .10000E-03   10000.    
    20 'Prefactor '    467.26       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.6221       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9997.2       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1426.8       1.0000         .10000E-03   10000.    
    24 'norm      '    1771.1       1.0000         .10000E-03   10000.    
    25 'norm      '    .17897E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10299E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    18.881       1.0000         .10000E-03   10000.    
    29 'Prefactor '    37.962       1.0000         .10000E-03   10000.    
    30 'Prefactor '    28.662       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .12598E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .87523E-01   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   217.5933     FROM MIGRAD    STATUS=CONVERGED   1570 CALLS     4856 TOTAL
                     EDM=   .96E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.706        56.377        .13508E-02    .66802E-05
   2  Prefactor     1125.7        1216.4        .31121E-03   -.35980E-05
   3  Prefactor     25.136        26.987        .19497E-02    .10841E-05
   4  norm          .10000E-03    96.420        .90712E-02** at limit **
   5  Prefactor     .10000E-03    84.903        .90712E-02** at limit **
   6  Prefactor     85.228        74.590        .97745E-03   -.11753E-04
   7  norm          .10000E-03    6899.4        .91249E-02** at limit **
   8  Prefactor     .10000E-03    1803.5        .13639E-02** at limit **
   9  Prefactor    10000.0        7374.1        .54907E-02** at limit **
  10  Prefactor     .10000E-03    738.60        .93107E-02** at limit **
  11  Prefactor     3686.4        6448.6        .11470E-02   -.24408E-06
  12  Prefactor     .10000E-03    9605.6        .45239E-02** at limit **
  13  Prefactor    10000.0        5144.8        .99339E-02** at limit **
  14  Prefactor     .10000E-03    479.34        .93765E-02** at limit **
  15  Prefactor     .10000E-03    685.67        .94794E-02** at limit **
  16  Prefactor    10000.0        9048.1        .88998E-02** at limit **
  17  norm         10000.0        1441.0        .94512E-02** at limit **
  18  Prefactor    10000.0        5723.5        .43548E-02** at limit **
  19  norm         10000.0        9908.3        .38367E-02** at limit **
  20  Prefactor    10000.0        9842.3        .47382E-02** at limit **
  21  Prefactor    10000.0        9884.8        .34128E-02** at limit **
  22  Prefactor    10000.0        7070.7        .60744E-02** at limit **
  23  Prefactor    10000.0        9902.6        .28592E-02** at limit **
  24  norm          1088.0        5151.1        .26194E-03   -.99009E-07
  25  norm          .10000E-03    112.29        .90712E-02** at limit **
  26  norm          .10000E-03    44.416        .90712E-02** at limit **
  27  norm          .10000E-03    64.195        .90712E-02** at limit **
  28  Prefactor     .10000E-03    1798.2        .23044E-02** at limit **
  29  Prefactor     38.281        48.613        .16263E-02   -.73636E-05
  30  Prefactor     30.951        40.885        .18709E-02    .14277E-05
  31  Prefactor     .10000E-03    74.863        .90712E-02** at limit **
  32  Normalizat    .10000E-01    .31930        .11790    ** at limit **
  33  Prefactor     .82664E-01    .17882        .56965E-01    .39072E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.7057
  Prefactor  = 1125.74
  Prefactor  = 25.1358
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 85.2279
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 3686.42
  Prefactor  = 0.000100002
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 1087.99
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.2807
  Prefactor  = 30.951
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.0826635
 **********
 **   18 **HESSE 
 **********

 FCN=   217.5933     FROM HESSE     STATUS=OK           671 CALLS     5527 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.706        57.195        .54032E-04   -1.4214    
   2  Prefactor     1125.7        1215.3        .62243E-04   -.88648    
   3  Prefactor     25.136        26.978        .77141E-04   -1.4705    
   4  norm          .10000E-03    96.446        .14179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    84.902        .13307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     85.228        74.801        .39098E-04   -1.3859    
   7  norm          .10000E-03    6899.4        .18250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1803.5        .27279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        7374.1        .10981E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    738.59        .18621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3686.4        6440.4        .45879E-04   -.26584    
  12  Prefactor     .10000E-03    9605.6        .90478E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        5144.8        .19868E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    479.33        .18753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    685.67        .18959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        9048.1        .17800E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm         10000.0        1441.0        .18902E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        5723.8        .87096E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm         10000.0        9906.5        .76735E-03    14.137    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        9842.3        .94764E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor    10000.0        9884.8        .68257E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor    10000.0        7070.7        .12149E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor    10000.0        9902.6        .57185E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1088.0        5153.0        .10478E-04   -.89852    
  25  norm          .10000E-03    112.29        .15311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    44.416        .96180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    64.195        .11567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1798.2        .46087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     38.281        48.438        .65051E-04   -1.4470    
  30  Prefactor     30.951        40.902        .74834E-04   -1.4595    
  31  Prefactor     .10000E-03    74.862        .12494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .32371        .50923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .82664E-01    .17577        .25354E-03   -1.3887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.86739e-12
Minuit parameter uncertainties:
  1  57.2511
  2  1247.47
  3  26.9908
  4  3.98544e-06
  5  1.97506e-06
  6  74.8833
  7  0.000583882
  8  0.00159559
  9  0.00265471
  10  6.95252e-05
  11  9072.33
  12  0.0105229
  13  0.101188
  14  6.20377e-05
  15  9.03354e-06
  16  0.0319642
  17  0.000434573
  18  0.218232
  19  0.882501
  20  0.006336
  21  0.0997616
  22  0.000978485
  23  0.0120615
  24  4476.34
  25  1.36056e-05
  26  1.47327e-06
  27  3.82682e-05
  28  0.000366435
  29  48.488
  30  40.9395
  31  3.2515e-06
  32  4.39471e-08
  33  0.176893
Done.

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

Extracting fit parameters...

4FGL J0238.6+1637
   Spectrum: LogParabola
253         norm:  1.000e+04  4.346e-04  1.000e-04  1.000e+04 ( 1.000e-11)
254        alpha:  2.090e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
255         beta:  9.194e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
256           Eb:  8.889e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  8.266e-02  1.769e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.000e-02  4.395e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.86
Ra Dec: 39.668 16.618
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 7.13e-04 +/- 3.10e-11
Energy Flux (Fixed Index): 3.56e-01 +/- 1.55e-08

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) = 198.488584105
delta logL = 19.1047302872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 198.488495669
delta logL = 19.1048187236

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88188E-01   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   198.4885     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      191 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        1054.2        .90716E-02** at limit **
   2  alpha         5.0000        .69193E-01    .73497E-01** at limit **
   3  Normalizat    .10000E-01    .28392        .10596    ** at limit **
   4  Prefactor     .88205E-01    .16234        .53467E-01   -.89973E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 0.0882053
 **********
 **   18 **HESSE 
 **********

 FCN=   198.4885     FROM HESSE     STATUS=OK            23 CALLS      214 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        1054.2        .18143E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        .69160E-01    .16243E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .28678        .46118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .88205E-01    .15906        .23755E-03   -1.3827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11281e-09
Minuit parameter uncertainties:
  1  0.00346451
  2  2.03037e-07
  3  1.69893e-05
  4  0.159839
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351259': 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) = 198.488490802
delta logL = 19.1048235901

Extracting fit parameters...

4FGL J0238.6+1637
   Spectrum: LogParabola
253         norm:  1.000e+04  3.465e-03  1.000e-04  1.000e+04 ( 1.000e-11)
254        alpha:  5.000e+00  2.030e-07  0.000e+00  5.000e+00 ( 1.000e+00)
255         beta:  9.194e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
256           Eb:  8.889e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  8.821e-02  1.598e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.000e-02  1.699e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 49.03
Ra Dec: 39.668 16.618
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 9.86e-02 +/- 5.11e-08
Energy Flux (Free Index): 1.35e+01 +/- 6.80e-06

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/351259/cmap_HighResolution_672969601_673228801_4FGL_J0238.6+1637_daily_bin1673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.13e-04', energy_flux2='1.35e+01', photon_flux_error='3.10e-11', dlogl='1.91e+01', energy_flux='3.56e-01', photon_flux2='9.86e-02', job_status='DONE', time_completed='2022-05-03 00:17:07.270317', photon_index_error2='0.00', photon_index2='5.00', ts='10.86', fit_tolerance='1e-08', GAL='0.08', photon_index_error='0.00', energy_flux_error2='6.80e-06', EG='0.01', time_epoch_completed='1651562227.27', return_code='0', job_id='351259', GAL2='0.09', EG2='0.01', return_code2='0', energy_flux_error='1.55e-08', photon_flux_error2='5.11e-08', ts2='49.03', photon_index='2.09' WHERE bin_id='1673' AND source_name='4FGL J0238.6+1637' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May  3 00:17:07 PDT 2022

.01', return_code2='0', energy_flux_error='1.55e-08', photon_flux_error2='5.11e-08', ts2='49.03', photon_index='2.09' WHERE bin_id='1673' AND source_name='4FGL J0238.6+1637' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May  3 00:16:06 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 351163: <4FGL_J0238.6+1637_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0238.6+1637_daily_bin1673> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue May  3 00:05:37 2022
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:08:04 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:08:04 2022
Terminated at Tue May  3 00:16:06 2022
Results reported at Tue May  3 00:16:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0238.6+1637_daily_bin1673 39.668 16.6179 672969601 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0238.6+1637 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   339.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   482 sec.
    Turnaround time :                            629 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0177>
Subject: Job 351259: <4FGL_J0238.6+1637_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0238.6+1637_daily_bin1673> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue May  3 00:05:43 2022
Job was executed on host(s) <bullet0177>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:09:41 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:09:41 2022
Terminated at Tue May  3 00:17:07 2022
Results reported at Tue May  3 00:17:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0238.6+1637_daily_bin1673 39.668 16.6179 672969601 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0238.6+1637 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   341.58 sec.
    Max Memory :                                 316 MB
    Average Memory :                             210.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2619 MB
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   446 sec.
    Turnaround time :                            684 sec.

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

