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


Performing analysis on: 4FGL_J0238.6+1637_daily_bin1745
RA = 39.668, Dec = 16.6179
tmin = 691632001, tmax = 691891201
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='637191', job_status='RUN', time_executed='2022-12-05 00:07:55.714613', time_epoch_executed='1670227675.71' WHERE source_name='4FGL J0238.6+1637' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/637191

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/637191/ft1_4FGL_J0238.6+1637_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/637191/ft2_4FGL_J0238.6+1637_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/637191/ft1_4FGL_J0238.6+1637_daily_bin1745.fits outfile=/scratch/kocevski/637191/ft1_filteredMKT_4FGL_J0238.6+1637_daily_bin1745.fits ra=39.668 dec=16.6179 rad=12.0 tmin=691632001.0 tmax=691891201.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.34
user 2.13
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/637191/ft2_4FGL_J0238.6+1637_daily_bin1745.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/637191/ft1_filteredMKT_4FGL_J0238.6+1637_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/637191/ft1_filtered_4FGL_J0238.6+1637_daily_bin1745.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.34
sys 0.16

Number of photons that the gtmktime cut: 125

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/637191/ft1_filtered_4FGL_J0238.6+1637_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/637191/ft2_4FGL_J0238.6+1637_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/637191/ltcube_691632001_691891201_4FGL_J0238.6+1637_daily_bin1745.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/637191/ft2_4FGL_J0238.6+1637_daily_bin1745.fits
.....................!
real 15.51
user 14.96
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/637191/ft1_filtered_4FGL_J0238.6+1637_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/637191/ft2_4FGL_J0238.6+1637_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/637191/ltcube_691632001_691891201_4FGL_J0238.6+1637_daily_bin1745.fits outfile=/scratch/kocevski/637191/expmap_691632001_691891201_4FGL_J0238.6+1637_daily_bin1745.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/637191/ltcube_691632001_691891201_4FGL_J0238.6+1637_daily_bin1745.fits
.....................!
real 192.36
user 186.55
sys 5.19

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/637191/ft1_filtered_4FGL_J0238.6+1637_daily_bin1745.fits scfile=/scratch/kocevski/637191/ft2_4FGL_J0238.6+1637_daily_bin1745.fits outfile=/scratch/kocevski/637191/cmap_691632001_691891201_4FGL_J0238.6+1637_daily_bin1745.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/637191/ft1_filtered_4FGL_J0238.6+1637_daily_bin1745.fits scfile=/scratch/kocevski/637191/ft2_4FGL_J0238.6+1637_daily_bin1745.fits outfile=/scratch/kocevski/637191/cmap_HighResolution_691632001_691891201_4FGL_J0238.6+1637_daily_bin1745.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.36
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/637191/ft1_filtered_4FGL_J0238.6+1637_daily_bin1745.fits', '/scratch/kocevski/637191/ft2_4FGL_J0238.6+1637_daily_bin1745.fits', expMap='/scratch/kocevski/637191/expmap_691632001_691891201_4FGL_J0238.6+1637_daily_bin1745.fits', expCube='/scratch/kocevski/637191/ltcube_691632001_691891201_4FGL_J0238.6+1637_daily_bin1745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/637191/Model_4FGL_J0238.6+1637_daily_bin1745.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  0.000e+00  1.000e+06 ( 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 -5.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/637191/ft1_filtered_4FGL_J0238.6+1637_daily_bin1745.fits
Spacecraft file(s): /scratch/kocevski/637191/ft2_4FGL_J0238.6+1637_daily_bin1745.fits
Exposure map: /scratch/kocevski/637191/expmap_691632001_691891201_4FGL_J0238.6+1637_daily_bin1745.fits
Exposure cube: /scratch/kocevski/637191/ltcube_691632001_691891201_4FGL_J0238.6+1637_daily_bin1745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/637191/Model_4FGL_J0238.6+1637_daily_bin1745.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) = 1468.95281595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.185       1.0000          .0000       .10000E+07
     2 'Prefactor '    5.9872       1.0000          .0000       .10000E+07
     3 'norm      '    .63242E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .75208E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    12.344       1.0000          .0000       .10000E+07
     6 'norm      '    .25204       1.0000          .0000       .10000E+07
     7 'Prefactor '    .95090E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    99.457       1.0000          .0000       .10000E+07
     9 'Prefactor '    .14457E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    87.854       1.0000          .0000       .10000E+07
    11 'Prefactor '    17.890       1.0000          .0000       .10000E+07
    12 'Prefactor '    .66470E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    8.2084       1.0000          .0000       .10000E+07
    14 'norm      '    .41134E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    .10919E-01   1.0000          .0000       .10000E+07
    16 'norm      '    .14640E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    71.865       1.0000          .0000       .10000E+07
    18 'Prefactor '    .21876E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .59761E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    19.650       1.0000          .0000       .10000E+07
    21 'norm      '    .55954E-02   1.0000          .0000       .10000E+07
    22 'norm      '    .45150E-02   1.0000          .0000       .10000E+07
    23 'norm      '    20.298       1.0000          .0000       .10000E+07
    24 'norm      '    .80290E-01   1.0000          .0000       .10000E+07
    25 'Prefactor '    .75713E-02   1.0000          .0000       .10000E+07
    26 'Prefactor '    .24211E-01   1.0000          .0000       .10000E+07
    27 'Prefactor '    .16350E-02   1.0000          .0000       .10000E+07
    28 'Normalizat'    .40931       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .87774       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1468.367     FROM MIGRAD    STATUS=CONVERGED    238 CALLS     2713 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.733        16.313       -.13820E-06   -.30491E-01
   2  Prefactor     5.9779        5.9149       -.28413E-06    .17626E-02
   3  norm          .31941E-05    15.885       -.87527E-06** at limit **
   4  Prefactor     .10488E-05    11.425       -.49437E-06** at limit **
   5  Prefactor     12.380        7.6188        .64965E-07   -.41738E-03
   6  norm          .10496E-04    16.364        .10022E-05** at limit **
   7  Prefactor     .62668E-04    153.20       -.94233E-06** at limit **
   8  Prefactor     110.23        112.00       -.12052E-05    .16671E-02
   9  Prefactor     .33630E-04    101.34       -.17141E-05** at limit **
  10  Prefactor     83.343        42.696        .30969E-06   -.14378    
  11  Prefactor     17.566        10.503        .41466E-07    .13162    
  12  Prefactor     .44409E-09    39.994       -.14863E-05** at limit **
  13  Prefactor     7.5743        10.305       -.25291E-06    .52502E-01
  14  norm          .55511E-10    1.2674        .87600E-07** at limit **
  15  Prefactor     .27851E-05    56.234        .13594E-05** at limit **
  16  norm          .44409E-09    29.573        .63233E-06** at limit **
  17  Prefactor     72.232        55.757        .70992E-06   -.28560E-01
  18  Prefactor     .16835E-04    71.989        .16240E-05** at limit **
  19  Prefactor     .35805E-06    18.235       -.10501E-05** at limit **
  20  Prefactor     21.506        31.268        .62657E-07   -.14094    
  21  norm          .26090E-08    16.101       -.43983E-06** at limit **
  22  norm           .0000        15.678       -.88343E-06** at limit **
  23  norm          20.635        15.616        .40040E-06    .16655E-02
  24  norm          .77716E-09    44.006       -.24093E-05** at limit **
  25  Prefactor      .0000        10.679        .45310E-07** at limit **
  26  Prefactor     .55511E-10    63.103       -.43500E-06** at limit **
  27  Prefactor     .18147E-06    53.013        .10125E-05** at limit **
  28  Normalizat    .40007        .57429        .86745E-05   -.64375E-05
  29  Prefactor     .87767        .23450       -.36008E-06   -.16067E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.7328
  Prefactor  = 5.97791
  norm       = 3.19411e-06
  Prefactor  = 1.04883e-06
  Prefactor  = 12.3802
  norm       = 1.04962e-05
  Prefactor  = 6.26681e-05
  Prefactor  = 110.231
  Prefactor  = 3.36296e-05
  Prefactor  = 83.3432
  Prefactor  = 17.5663
  Prefactor  = 4.44089e-10
  Prefactor  = 7.57432
  norm       = 5.55112e-11
  Prefactor  = 2.78511e-06
  norm       = 4.44089e-10
  Prefactor  = 72.2319
  Prefactor  = 1.68348e-05
  Prefactor  = 3.58047e-07
  Prefactor  = 21.5065
  norm       = 2.60902e-09
  norm       = 0
  norm       = 20.6351
  norm       = 7.77156e-10
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 1.81466e-07
  Normalizat = 0.400067
  Prefactor  = 0.877667
 **********
 **   18 **HESSE 
 **********

 FCN=   1468.367     FROM HESSE     STATUS=OK           599 CALLS     3312 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.733        22.455        .16861E-03   -1.5588    
   2  Prefactor     5.9779        6.0004        .41013E-03   -1.5659    
   3  norm          .31941E-05    20.065        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10488E-05    21.479        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.380        7.7397        .28486E-03   -1.5638    
   6  norm          .10496E-04    493.86        .10914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .62668E-04    284.14        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     110.23        118.62        .10028E-03   -1.5498    
   9  Prefactor     .33630E-04    107.38        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     83.343        88.150        .10670E-03   -1.5525    
  11  Prefactor     17.566        27.582        .23652E-03   -1.5624    
  12  Prefactor     .44409E-09    40.006        .14936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.5743        23.339        .34969E-03   -1.5653    
  14  norm          .55511E-10    1.2668        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .27851E-05    61.949        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .44409E-09    29.687        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     72.232        88.479        .11797E-03   -1.5538    
  18  Prefactor     .16835E-04    80.779        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .35805E-06    19.044        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.506        162.94        .22566E-03   -1.5615    
  21  norm          .26090E-08    16.175        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        15.751        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          20.635        15.688        .22203E-03   -1.5617    
  24  norm          .77716E-09    43.619        .14492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor      .0000        10.685        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .55511E-10    62.906        .16774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .18147E-06    54.080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .40007        .63610        .12605       -1.1730    
  29  Prefactor     .87767        .24125        .44721E-01   -.96926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58481e-05
Minuit parameter uncertainties:
  1  22.4547
  2  6.00045
  3  0.0160113
  4  0.00949271
  5  7.73968
  6  0.144007
  7  0.266894
  8  118.618
  9  0.120188
  10  88.151
  11  27.5822
  12  0.00027213
  13  23.3397
  14  1.55125e-05
  15  0.0262705
  16  0.000228803
  17  88.4804
  18  0.0737545
  19  0.00522242
  20  118.397
  21  0.000409298
  22  2.18231e-05
  23  15.6879
  24  0.00037106
  25  9.54657e-06
  26  0.000129795
  27  0.00626558
  28  0.648154
  29  0.241548
Done.

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

Extracting fit parameters...

4FGL J0238.6+1637
   Spectrum: LogParabola
253         norm:  5.551e-11  1.551e-05  0.000e+00  1.000e+06 ( 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 -5.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.777e-01  2.415e-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:  4.001e-01  6.482e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 39.668 16.618
Photon Flux Upper Limit: 2.84e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.42e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/637191/likelihoodResults_691632001_691891201_4FGL_J0238.6+1637_daily_bin1745.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) = 1468.36881384
delta logL = -0.00189878864649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1468.36691557
delta logL = -5.18010210726e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1468.367     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      218 TOTAL
                     EDM=   .64E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.2315        .29338E-06** at limit **
   2  alpha         1.9775        1.0109       -.10408E-04     .0000    
   3  Normalizat    .40007        .52073        .29222E-04   -.36812E-04
   4  Prefactor     .87767        .22980       -.21243E-05   -.20353E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.97753
  Normalizat = 0.400069
  Prefactor  = 0.877665
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1468.367     FROM HESSE     STATUS=FAILED        11 CALLS      229 TOTAL
                     EDM=   .64E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.2235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .85053        1.1710       -.10408E-04   -.21054    
   3  Normalizat    .40007        .71998        .29222E-04   -1.1730    
   4  Prefactor     .87767        1.2237       -.21243E-05   -.96926    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.44996e-11
Minuit parameter uncertainties:
  1  1.12229e-05
  2  1.01102
  3  0.737723
  4  1.26541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/637191': 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) = 1468.36691505
delta logL = -2.63753463514e-11

Extracting fit parameters...

4FGL J0238.6+1637
   Spectrum: LogParabola
253         norm:  0.000e+00  1.122e-05  0.000e+00  1.000e+06 ( 1.000e-11)
254        alpha:  1.978e+00  1.011e+00  0.000e+00  5.000e+00 ( 1.000e+00)
255         beta:  9.194e-02  0.000e+00 -5.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.777e-01  1.265e+00  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:  4.001e-01  7.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 39.668 16.618

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/637191/cmap_HighResolution_691632001_691891201_4FGL_J0238.6+1637_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-04', job_status='DONE', photon_flux_upper_limit='2.84e-07', time_completed='2022-12-05 00:14:44.319483', job_id='637191', GAL2='0.88', fit_tolerance='1e-08', EG2='0.40', EG='0.40', time_epoch_completed='1670228084.32', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='-2.64e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1745' AND source_name='4FGL J0238.6+1637' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 00:14:44 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 637191: <4FGL_J0238.6+1637_daily_bin1745> in cluster <slac> Done

Job <4FGL_J0238.6+1637_daily_bin1745> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Dec  5 00:05:02 2022
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:05:03 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:05:03 2022
Terminated at Mon Dec  5 00:14:45 2022
Results reported at Mon Dec  5 00:14:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0238.6+1637_daily_bin1745 39.668 16.6179 691632001 691891201 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 :                                   407.54 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             248.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   581 sec.
    Turnaround time :                            583 sec.

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

