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


Performing analysis on: 4FGL_J0238.6+1637_daily_bin1776
RA = 39.668, Dec = 16.6179
tmin = 699667201, tmax = 699926401
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='823970', job_status='RUN', time_executed='2023-03-08 00:05:44.480027', time_epoch_executed='1678262744.48' WHERE source_name='4FGL J0238.6+1637' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/823970

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/823970/ft1_4FGL_J0238.6+1637_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/823970/ft2_4FGL_J0238.6+1637_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/823970/ft1_4FGL_J0238.6+1637_daily_bin1776.fits outfile=/scratch/kocevski/823970/ft1_filteredMKT_4FGL_J0238.6+1637_daily_bin1776.fits ra=39.668 dec=16.6179 rad=12.0 tmin=699667201.0 tmax=699926401.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 4.00
user 3.70
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/823970/ft2_4FGL_J0238.6+1637_daily_bin1776.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/823970/ft1_filteredMKT_4FGL_J0238.6+1637_daily_bin1776.fits evtable="EVENTS" outfile="/scratch/kocevski/823970/ft1_filtered_4FGL_J0238.6+1637_daily_bin1776.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.56
user 0.31
sys 0.18

Number of photons that the gtmktime cut: 873

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/823970/ft1_filtered_4FGL_J0238.6+1637_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/823970/ft2_4FGL_J0238.6+1637_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/823970/ltcube_699667201_699926401_4FGL_J0238.6+1637_daily_bin1776.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/823970/ft2_4FGL_J0238.6+1637_daily_bin1776.fits
.....................!
real 12.10
user 11.75
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/823970/ft1_filtered_4FGL_J0238.6+1637_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/823970/ft2_4FGL_J0238.6+1637_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/823970/ltcube_699667201_699926401_4FGL_J0238.6+1637_daily_bin1776.fits outfile=/scratch/kocevski/823970/expmap_699667201_699926401_4FGL_J0238.6+1637_daily_bin1776.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/823970/ltcube_699667201_699926401_4FGL_J0238.6+1637_daily_bin1776.fits
.....................!
real 190.16
user 185.33
sys 4.33

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/823970/ft1_filtered_4FGL_J0238.6+1637_daily_bin1776.fits scfile=/scratch/kocevski/823970/ft2_4FGL_J0238.6+1637_daily_bin1776.fits outfile=/scratch/kocevski/823970/cmap_699667201_699926401_4FGL_J0238.6+1637_daily_bin1776.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 1.10
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/823970/ft1_filtered_4FGL_J0238.6+1637_daily_bin1776.fits scfile=/scratch/kocevski/823970/ft2_4FGL_J0238.6+1637_daily_bin1776.fits outfile=/scratch/kocevski/823970/cmap_HighResolution_699667201_699926401_4FGL_J0238.6+1637_daily_bin1776.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.62
user 0.40
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/823970/ft1_filtered_4FGL_J0238.6+1637_daily_bin1776.fits', '/scratch/kocevski/823970/ft2_4FGL_J0238.6+1637_daily_bin1776.fits', expMap='/scratch/kocevski/823970/expmap_699667201_699926401_4FGL_J0238.6+1637_daily_bin1776.fits', expCube='/scratch/kocevski/823970/ltcube_699667201_699926401_4FGL_J0238.6+1637_daily_bin1776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/823970/Model_4FGL_J0238.6+1637_daily_bin1776.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/823970/ft1_filtered_4FGL_J0238.6+1637_daily_bin1776.fits
Spacecraft file(s): /scratch/kocevski/823970/ft2_4FGL_J0238.6+1637_daily_bin1776.fits
Exposure map: /scratch/kocevski/823970/expmap_699667201_699926401_4FGL_J0238.6+1637_daily_bin1776.fits
Exposure cube: /scratch/kocevski/823970/ltcube_699667201_699926401_4FGL_J0238.6+1637_daily_bin1776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/823970/Model_4FGL_J0238.6+1637_daily_bin1776.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) = 9131.999433

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7618       1.0000          .0000       .10000E+07
     2 'Prefactor '    7.8709       1.0000          .0000       .10000E+07
     3 'norm      '    7.6424       1.0000          .0000       .10000E+07
     4 'Prefactor '    .75551E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.6834       1.0000          .0000       .10000E+07
     6 'norm      '    .54678E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    33.060       1.0000          .0000       .10000E+07
     8 'Prefactor '    23.199       1.0000          .0000       .10000E+07
     9 'Prefactor '    .11696       1.0000          .0000       .10000E+07
    10 'Prefactor '    .75051E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    .48289E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    5.8988       1.0000          .0000       .10000E+07
    13 'Prefactor '    .49405E-08   1.0000          .0000       .10000E+07
    14 'norm      '    1.7830       1.0000          .0000       .10000E+07
    15 'Prefactor '    .41143E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .84089E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    21.629       1.0000          .0000       .10000E+07
    18 'Prefactor '    .11060E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    9.9616       1.0000          .0000       .10000E+07
    20 'Prefactor '    10.298       1.0000          .0000       .10000E+07
    21 'norm      '    .37915E-03   1.0000          .0000       .10000E+07
    22 'norm      '    18.591       1.0000          .0000       .10000E+07
    23 'norm      '    8.4620       1.0000          .0000       .10000E+07
    24 'norm      '    .65924E-04   1.0000          .0000       .10000E+07
    25 'Prefactor '    .14082E-04   1.0000          .0000       .10000E+07
    26 'Prefactor '    15.754       1.0000          .0000       .10000E+07
    27 'Prefactor '    .21928E-02   1.0000          .0000       .10000E+07
    28 'Normalizat'    .81241       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0807       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=   9131.987     FROM MIGRAD    STATUS=CONVERGED    183 CALLS     2609 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7573        4.3643        .12966E-07   -.63154E-02
   2  Prefactor     7.8718        3.3251       -.10694E-06    .14848E-02
   3  norm          7.5350        5.5602        .30922E-07    .96972E-03
   4  Prefactor      .0000        1.3643        .50583E-07** at limit **
   5  Prefactor     4.6919        2.4665       -.89663E-08    .35919E-03
   6  norm          .43854E-07    137.58        .19110E-05** at limit **
   7  Prefactor     33.023        3.8300       -.73292E-08   -.59255E-01
   8  Prefactor     24.998        37.569       -.69351E-07    .91455E-02
   9  Prefactor     .41966E-07    38.211        .14217E-06** at limit **
  10  Prefactor     .40967E-07    43.493       -.39309E-06** at limit **
  11  Prefactor     .16653E-09    2.9587       -.61677E-07** at limit **
  12  Prefactor     5.9762        1.3988       -.12901E-07    .13861E-01
  13  Prefactor     .24980E-08    5.9082       -.22742E-06** at limit **
  14  norm          1.7824        .61243       -.54391E-08    .98700E-03
  15  Prefactor     .11102E-09    14.555       -.47114E-07** at limit **
  16  norm          .99920E-09    5.0394       -.18099E-07** at limit **
  17  Prefactor     21.410        1.7221       -.26938E-08   -.45541E-01
  18  Prefactor     .22204E-09    16.260       -.36890E-06** at limit **
  19  Prefactor     9.9665        8.5056        .38527E-07   -.14389E-01
  20  Prefactor     10.395        2.8911       -.77455E-08    .69845E-01
  21  norm          .55511E-08    5.3735       -.16118E-06** at limit **
  22  norm          18.570        1.4407        .22643E-09   -.25907E-01
  23  norm          8.4630        4.3748       -.15197E-07    .42537E-03
  24  norm          .27756E-09    2.9261       -.46501E-07** at limit **
  25  Prefactor      .0000        2.7508        .12850E-06** at limit **
  26  Prefactor     15.774        8.0543       -.39545E-08    .18655E-02
  27  Prefactor     .72164E-09    7.0459       -.16224E-06** at limit **
  28  Normalizat    .81079        .24759       -.15433E-05    .27718E-04
  29  Prefactor     1.0809        .98968E-01   -.47118E-06    .65775E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.75731
  Prefactor  = 7.87184
  norm       = 7.53503
  Prefactor  = 0
  Prefactor  = 4.69194
  norm       = 4.38538e-08
  Prefactor  = 33.0226
  Prefactor  = 24.9977
  Prefactor  = 4.19664e-08
  Prefactor  = 4.09672e-08
  Prefactor  = 1.66533e-10
  Prefactor  = 5.97623
  Prefactor  = 2.498e-09
  norm       = 1.78243
  Prefactor  = 1.11022e-10
  norm       = 9.99201e-10
  Prefactor  = 21.4096
  Prefactor  = 2.22045e-10
  Prefactor  = 9.96653
  Prefactor  = 10.3946
  norm       = 5.55112e-09
  norm       = 18.5699
  norm       = 8.46299
  norm       = 2.77556e-10
  Prefactor  = 0
  Prefactor  = 15.7736
  Prefactor  = 7.21645e-10
  Normalizat = 0.810795
  Prefactor  = 1.0809
 **********
 **   18 **HESSE 
 **********

 FCN=   9131.987     FROM HESSE     STATUS=OK           609 CALLS     3218 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7573        8.5336        .52029E-03   -1.5669    
   2  Prefactor     7.8718        3.3287        .35717E-03   -1.5652    
   3  norm          7.5350        5.6719        .36251E-03   -1.5653    
   4  Prefactor      .0000        1.3646        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.6919        2.4815        .46477E-03   -1.5665    
   6  norm          .43854E-07    137.66        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     33.023        23.249        .17394E-03   -1.5593    
   8  Prefactor     24.998        38.163        .20767E-03   -1.5608    
   9  Prefactor     .41966E-07    38.399        .13494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .40967E-07    43.701        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .16653E-09    3.1670        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.9762        19.008        .41324E-03   -1.5659    
  13  Prefactor     .24980E-08    5.9226        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.7824        .64023        .78336E-03   -1.5681    
  15  Prefactor     .11102E-09    14.603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .99920E-09    5.0429        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.410        21.969        .21508E-03   -1.5615    
  18  Prefactor     .22204E-09    16.324        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.9665        8.9887        .31724E-03   -1.5645    
  20  Prefactor     10.395        14.926        .31200E-03   -1.5643    
  21  norm          .55511E-08    5.3911        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          18.570        13.228        .23201E-03   -1.5622    
  23  norm          8.4630        4.3903        .34437E-03   -1.5650    
  24  norm          .27756E-09    3.1084        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor      .0000        2.7510        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     15.774        8.0923        .25207E-03   -1.5629    
  27  Prefactor     .72164E-09    7.0463        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .81079        .23412        .10039       -.99670    
  29  Prefactor     1.0809        .90578E-01    .38369E-01   -.90079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67174e-07
Minuit parameter uncertainties:
  1  8.53362
  2  3.32868
  3  5.67187
  4  1.5812e-06
  5  2.48151
  6  0.00491298
  7  23.2494
  8  38.1633
  9  0.00253884
  10  0.0026762
  11  4.34838e-05
  12  19.008
  13  0.000244208
  14  0.640229
  15  7.7112e-05
  16  0.000143256
  17  21.9694
  18  0.000116436
  19  8.98875
  20  14.9263
  21  0.000345904
  22  13.2283
  23  4.39033
  24  6.13694e-05
  25  8.16124e-06
  26  8.09232
  27  0.000144093
  28  0.234411
  29  0.0905907
Done.

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

Extracting fit parameters...

4FGL J0238.6+1637
   Spectrum: LogParabola
253         norm:  1.782e+00  6.402e-01  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:  1.081e+00  9.059e-02  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:  8.108e-01  2.344e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.02
Ra Dec: 39.668 16.618
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 1.27e-07 +/- 4.56e-08
Energy Flux (Fixed Index): 6.34e-05 +/- 2.28e-05

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) = 9131.27118291
delta logL = 0.715647351388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9131.25862876
delta logL = 0.72820150454

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8509       1.0000          .0000       .10000E+07
     2 'alpha     '    1.7194       1.0000          .0000       5.0000    
     3 'Normalizat'    .84259       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0761       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=   9131.259     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      212 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8509        .76459        .76602E-03   -.55027E-03
   2  alpha         1.7195        .31828        .25923       -.18109E-04
   3  Normalizat    .84260        .21361        .98692E-01    .39945E-04
   4  Prefactor     1.0761        .89475E-01    .38573E-01   -.62503E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.8509
  alpha      = 1.71946
  Normalizat = 0.842601
  Prefactor  = 1.07614
 **********
 **   18 **HESSE 
 **********

 FCN=   9131.259     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8509        .66954        .45006E-05   -1.5681    
   2  alpha         1.7195        .29744        .10665E-01   -.31752    
   3  Normalizat    .84260        .23200        .43732E-03   -.98507    
   4  Prefactor     1.0761        .97846E-01    .16428E-03   -.90233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.29973e-11
Minuit parameter uncertainties:
  1  0.669543
  2  0.298223
  3  0.232274
  4  0.0978623
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/823970': 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) = 9131.25862876
delta logL = 0.728201507965

Extracting fit parameters...

4FGL J0238.6+1637
   Spectrum: LogParabola
253         norm:  1.851e+00  6.695e-01  0.000e+00  1.000e+06 ( 1.000e-11)
254        alpha:  1.719e+00  2.982e-01  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:  1.076e+00  9.786e-02  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:  8.426e-01  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.48
Ra Dec: 39.668 16.618
Photon Index (Free Index): 1.72 +/- 0.30
Photon Flux (Free Index): 9.01e-08 +/- 4.24e-08
Energy Flux (Free Index): 9.10e-05 +/- 4.62e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/823970/cmap_HighResolution_699667201_699926401_4FGL_J0238.6+1637_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.27e-07', energy_flux2='9.10e-05', photon_flux_error='4.56e-08', dlogl='7.28e-01', energy_flux='6.34e-05', photon_flux2='9.01e-08', job_status='DONE', time_completed='2023-03-08 00:19:05.372145', photon_index_error2='0.30', photon_index2='1.72', ts='26.02', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='4.62e-05', EG='0.81', time_epoch_completed='1678263545.37', return_code='0', job_id='823970', GAL2='1.08', EG2='0.84', return_code2='0', energy_flux_error='2.28e-05', photon_flux_error2='4.24e-08', ts2='27.48', photon_index='2.09' WHERE bin_id='1776' AND source_name='4FGL J0238.6+1637' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 00:19:05 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 823970: <4FGL_J0238.6+1637_daily_bin1776> in cluster <slac> Done

Job <4FGL_J0238.6+1637_daily_bin1776> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Mar  8 00:04:59 2023
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 00:05:03 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 00:05:03 2023
Terminated at Wed Mar  8 00:19:06 2023
Results reported at Wed Mar  8 00:19:06 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0238.6+1637_daily_bin1776 39.668 16.6179 699667201 699926401 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 :                                   800.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            847 sec.

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

