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


Performing analysis on: 4FGL_J0238.6+1637_daily_bin1722
RA = 39.668, Dec = 16.6179
tmin = 685670401, tmax = 685929601
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='229344', job_status='RUN', time_executed='2022-09-27 00:07:13.210975', time_epoch_executed='1664262433.21' WHERE source_name='4FGL J0238.6+1637' and cadence='daily' and bin_id='1722'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229344

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229344/ft1_4FGL_J0238.6+1637_daily_bin1722.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229344/ft2_4FGL_J0238.6+1637_daily_bin1722.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229344/ft1_4FGL_J0238.6+1637_daily_bin1722.fits outfile=/scratch/kocevski/229344/ft1_filteredMKT_4FGL_J0238.6+1637_daily_bin1722.fits ra=39.668 dec=16.6179 rad=12.0 tmin=685670401.0 tmax=685929601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.71
user 3.44
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/229344/ft2_4FGL_J0238.6+1637_daily_bin1722.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/229344/ft1_filteredMKT_4FGL_J0238.6+1637_daily_bin1722.fits evtable="EVENTS" outfile="/scratch/kocevski/229344/ft1_filtered_4FGL_J0238.6+1637_daily_bin1722.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.52
user 0.36
sys 0.15

Number of photons that the gtmktime cut: 827

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229344/ft1_filtered_4FGL_J0238.6+1637_daily_bin1722.fits" evtable="EVENTS" scfile=/scratch/kocevski/229344/ft2_4FGL_J0238.6+1637_daily_bin1722.fits sctable="SC_DATA" outfile=/scratch/kocevski/229344/ltcube_685670401_685929601_4FGL_J0238.6+1637_daily_bin1722.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/229344/ft2_4FGL_J0238.6+1637_daily_bin1722.fits
.....................!
real 14.92
user 14.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229344/ft1_filtered_4FGL_J0238.6+1637_daily_bin1722.fits evtable="EVENTS" scfile=/scratch/kocevski/229344/ft2_4FGL_J0238.6+1637_daily_bin1722.fits sctable="SC_DATA" expcube=/scratch/kocevski/229344/ltcube_685670401_685929601_4FGL_J0238.6+1637_daily_bin1722.fits outfile=/scratch/kocevski/229344/expmap_685670401_685929601_4FGL_J0238.6+1637_daily_bin1722.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/229344/ltcube_685670401_685929601_4FGL_J0238.6+1637_daily_bin1722.fits
.....................!
real 192.90
user 186.77
sys 5.67

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/229344/ft1_filtered_4FGL_J0238.6+1637_daily_bin1722.fits scfile=/scratch/kocevski/229344/ft2_4FGL_J0238.6+1637_daily_bin1722.fits outfile=/scratch/kocevski/229344/cmap_685670401_685929601_4FGL_J0238.6+1637_daily_bin1722.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.58
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229344/ft1_filtered_4FGL_J0238.6+1637_daily_bin1722.fits scfile=/scratch/kocevski/229344/ft2_4FGL_J0238.6+1637_daily_bin1722.fits outfile=/scratch/kocevski/229344/cmap_HighResolution_685670401_685929601_4FGL_J0238.6+1637_daily_bin1722.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.56
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23499E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    7.7770       1.0000          .0000       .10000E+07
     3 'norm      '    2.5871       1.0000          .0000       .10000E+07
     4 'Prefactor '    .37350E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    3.9506       1.0000          .0000       .10000E+07
     6 'norm      '    .40614       1.0000          .0000       .10000E+07
     7 'Prefactor '    15.055       1.0000          .0000       .10000E+07
     8 'Prefactor '    67.180       1.0000          .0000       .10000E+07
     9 'Prefactor '    36.673       1.0000          .0000       .10000E+07
    10 'Prefactor '    .76112E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    5.3878       1.0000          .0000       .10000E+07
    12 'Prefactor '    .40029E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .10086E-05   1.0000          .0000       .10000E+07
    14 'norm      '    1.2562       1.0000          .0000       .10000E+07
    15 'Prefactor '    .40531E-02   1.0000          .0000       .10000E+07
    16 'norm      '    7.8426       1.0000          .0000       .10000E+07
    17 'Prefactor '    13.888       1.0000          .0000       .10000E+07
    18 'Prefactor '    147.02       1.0000          .0000       .10000E+07
    19 'Prefactor '    3.0221       1.0000          .0000       .10000E+07
    20 'Prefactor '    25.992       1.0000          .0000       .10000E+07
    21 'norm      '    .17162E-05   1.0000          .0000       .10000E+07
    22 'norm      '    5.5189       1.0000          .0000       .10000E+07
    23 'norm      '    4.0391       1.0000          .0000       .10000E+07
    24 'norm      '    .22363E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    .32674E-01   1.0000          .0000       .10000E+07
    26 'Prefactor '    3.8292       1.0000          .0000       .10000E+07
    27 'Prefactor '    .26036E-02   1.0000          .0000       .10000E+07
    28 'Normalizat'    .94057       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .95869       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=   8917.767     FROM MIGRAD    STATUS=CONVERGED    219 CALLS     2752 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        16.853       -.90062E-07** at limit **
   2  Prefactor     7.7872        3.8471       -.10296E-06   -.74620E-03
   3  norm          2.5642        4.2735       -.53131E-07   -.22258E-03
   4  Prefactor      .0000        2.5695        .36680E-07** at limit **
   5  Prefactor     3.8644        3.1606       -.52291E-07   -.66845E-03
   6  norm          .86119E-04    56.346       -.40257E-05** at limit **
   7  Prefactor     14.218        6.3301        .29017E-06    .17857E-02
   8  Prefactor     64.971        34.540        .17906E-05   -.24063E-01
   9  Prefactor     49.823        92.078       -.49174E-06   -.39171E-02
  10  Prefactor     .31845E-05    46.608       -.17824E-05** at limit **
  11  Prefactor     5.1689        8.9357       -.92835E-06    .44213E-02
  12  Prefactor     .11102E-08    12.155       -.61219E-06** at limit **
  13  Prefactor     .27756E-09    7.7888        .10651E-06** at limit **
  14  norm          1.2604        .60618       -.39481E-07   -.64831E-04
  15  Prefactor     .10586E-06    33.777       -.13860E-05** at limit **
  16  norm          7.7898        10.267        .91031E-06   -.19633E-01
  17  Prefactor     13.795        13.413        .12031E-06    .35162E-01
  18  Prefactor     147.52        11.485       -.50210E-06    .23293    
  19  Prefactor     3.0297        8.7891        .84106E-06    .67182E-03
  20  Prefactor     26.079        18.371        .16991E-05    .14130E-01
  21  norm           .0000        6.3099        .93734E-07** at limit **
  22  norm          5.5848        6.9538        .94029E-06    .94494E-01
  23  norm          4.0448        4.1944       -.12986E-07   -.43575E-02
  24  norm          .55511E-10    4.8511        .20535E-06** at limit **
  25  Prefactor     .55511E-10    27.991        .55029E-06** at limit **
  26  Prefactor     3.7979        5.3810        .35900E-07    .43855E-03
  27  Prefactor     .77716E-09    5.1099       -.12929E-06** at limit **
  28  Normalizat    .94172        .25198       -.69057E-05    .11760E-04
  29  Prefactor     .95805        .97094E-01   -.21149E-05    .45612E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 7.78717
  norm       = 2.56422
  Prefactor  = 0
  Prefactor  = 3.86444
  norm       = 8.61188e-05
  Prefactor  = 14.2175
  Prefactor  = 64.9711
  Prefactor  = 49.8226
  Prefactor  = 3.18451e-06
  Prefactor  = 5.16886
  Prefactor  = 1.11022e-09
  Prefactor  = 2.77556e-10
  norm       = 1.26038
  Prefactor  = 1.0586e-07
  norm       = 7.78976
  Prefactor  = 13.7946
  Prefactor  = 147.522
  Prefactor  = 3.02973
  Prefactor  = 26.0795
  norm       = 0
  norm       = 5.58483
  norm       = 4.0448
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 3.79794
  Prefactor  = 7.77156e-10
  Normalizat = 0.94172
  Prefactor  = 0.958045
 **********
 **   18 **HESSE 
 **********

 FCN=   8917.767     FROM HESSE     STATUS=OK           629 CALLS     3381 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.3926        .93246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.7872        3.8390        .35934E-03   -1.5652    
   3  norm          2.5642        4.3135        .63416E-03   -1.5676    
   4  Prefactor      .0000        2.5659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.8644        3.3053        .50726E-03   -1.5669    
   6  norm          .86119E-04    188.90        .88778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.218        29.666        .25787E-03   -1.5633    
   8  Prefactor     64.971        38.024        .12201E-03   -1.5547    
   9  Prefactor     49.823        92.218        .16515E-03   -1.5567    
  10  Prefactor     .31845E-05    53.720        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.1689        9.0859        .43270E-03   -1.5662    
  12  Prefactor     .11102E-08    12.035        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .27756E-09    7.7676        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2604        .62069        .99587E-03   -1.5686    
  15  Prefactor     .10586E-06    33.943        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.7898        10.521        .35782E-03   -1.5652    
  17  Prefactor     13.795        15.661        .26851E-03   -1.5634    
  18  Prefactor     147.52        54.214        .82478E-04   -1.5465    
  19  Prefactor     3.0297        8.8385        .58351E-03   -1.5673    
  20  Prefactor     26.079        19.325        .19619E-03   -1.5606    
  21  norm           .0000        6.2867        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.5848        12.049        .42744E-03   -1.5661    
  23  norm          4.0448        4.2308        .50149E-03   -1.5668    
  24  norm          .55511E-10    4.8496        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .55511E-10    3.4680        .99547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.7979        5.3806        .51552E-03   -1.5669    
  27  Prefactor     .77716E-09    5.1023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .94172        .23186        .94083E-01   -.95009    
  29  Prefactor     .95805        .86777E-01    .45749E-01   -.94141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90355e-06
Minuit parameter uncertainties:
  1  1.1844e-05
  2  3.83901
  3  4.31352
  4  3.6956e-06
  5  3.30533
  6  0.255101
  7  29.6667
  8  38.0239
  9  92.2207
  10  0.0261593
  11  9.08591
  12  0.000233093
  13  8.96528e-05
  14  0.620695
  15  0.00379143
  16  10.5206
  17  15.6607
  18  54.2139
  19  8.83857
  20  19.3251
  21  6.49549e-06
  22  12.0488
  23  4.23084
  24  3.13379e-05
  25  2.12475e-05
  26  5.38057
  27  0.00012582
  28  0.23211
  29  0.0867901
Done.

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

Extracting fit parameters...

4FGL J0238.6+1637
   Spectrum: LogParabola
253         norm:  1.260e+00  6.207e-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:  9.580e-01  8.679e-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:  9.417e-01  2.321e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.94
Ra Dec: 39.668 16.618
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 8.98e-08 +/- 4.42e-08
Energy Flux (Fixed Index): 4.49e-05 +/- 2.21e-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) = 8917.68584113
delta logL = 0.081542429949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8917.68072008
delta logL = 0.0866634817339

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3405       1.0000          .0000       .10000E+07
     2 'alpha     '    1.9326       1.0000          .0000       5.0000    
     3 'Normalizat'    .95013       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95627       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8917.681     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      267 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3404        .63537        .49533E-05    .73721E-02
   2  alpha         1.9325        .37241        .12024E-01    .30142E-04
   3  Normalizat    .95013        .23386        .41521E-03   -.53118E-05
   4  Prefactor     .95627        .95579E-01    .16802E-03   -.36537E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.34045
  alpha      = 1.93252
  Normalizat = 0.950125
  Prefactor  = 0.956269
 **********
 **   18 **HESSE 
 **********

 FCN=   8917.681     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3404        .63172        .19813E-06   -1.5685    
   2  alpha         1.9325        .37026        .48096E-03   -.22899    
   3  Normalizat    .95013        .23394        .16609E-04   -.94721    
   4  Prefactor     .95627        .95617E-01    .67209E-05   -.94202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79259e-11
Minuit parameter uncertainties:
  1  0.631716
  2  0.371702
  3  0.234194
  4  0.0956337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229344': 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) = 8917.68072007
delta logL = 0.0866634886243

Extracting fit parameters...

4FGL J0238.6+1637
   Spectrum: LogParabola
253         norm:  1.340e+00  6.317e-01  0.000e+00  1.000e+06 ( 1.000e-11)
254        alpha:  1.933e+00  3.717e-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:  9.563e-01  9.563e-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:  9.501e-01  2.342e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.16
Ra Dec: 39.668 16.618
Photon Index (Free Index): 1.93 +/- 0.37
Photon Flux (Free Index): 8.00e-08 +/- 4.45e-08
Energy Flux (Free Index): 5.22e-05 +/- 3.12e-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/229344/cmap_HighResolution_685670401_685929601_4FGL_J0238.6+1637_daily_bin1722.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.98e-08', energy_flux2='5.22e-05', photon_flux_error='4.42e-08', dlogl='8.67e-02', energy_flux='4.49e-05', photon_flux2='8.00e-08', job_status='DONE', time_completed='2022-09-27 00:20:44.427770', photon_index_error2='0.37', photon_index2='1.93', ts='9.94', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='3.12e-05', EG='0.94', time_epoch_completed='1664263244.43', return_code='0', job_id='229344', GAL2='0.96', EG2='0.95', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='4.45e-08', ts2='10.16', photon_index='2.09' WHERE bin_id='1722' AND source_name='4FGL J0238.6+1637' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 27 00:20:44 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 229344: <4FGL_J0238.6+1637_daily_bin1722> in cluster <slac> Done

Job <4FGL_J0238.6+1637_daily_bin1722> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 27 00:05:04 2022
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 27 00:05:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 27 00:05:23 2022
Terminated at Tue Sep 27 00:20:45 2022
Results reported at Tue Sep 27 00:20:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0238.6+1637_daily_bin1722 39.668 16.6179 685670401 685929601 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 :                                   813.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            941 sec.

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

