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


Performing analysis on: 4FGL_J0238.2+1531_daily_bin1748
RA = 39.5617, Dec = 15.5175
tmin = 692409601, tmax = 692668801
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='875711', job_status='RUN', time_executed='2022-12-14 00:05:20.224053', time_epoch_executed='1671005120.22' WHERE source_name='4FGL J0238.2+1531' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875711

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875711/ft1_4FGL_J0238.2+1531_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875711/ft2_4FGL_J0238.2+1531_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/875711/ft1_4FGL_J0238.2+1531_daily_bin1748.fits outfile=/scratch/kocevski/875711/ft1_filteredMKT_4FGL_J0238.2+1531_daily_bin1748.fits ra=39.5617 dec=15.5175 rad=12.0 tmin=692409601.0 tmax=692668801.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.81
user 3.32
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/875711/ft2_4FGL_J0238.2+1531_daily_bin1748.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/875711/ft2_4FGL_J0238.2+1531_daily_bin1748.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/875711/ft1_filteredMKT_4FGL_J0238.2+1531_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/875711/ft1_filtered_4FGL_J0238.2+1531_daily_bin1748.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.66
user 0.34
sys 0.19

Number of photons that the gtmktime cut: 793

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/875711/ft1_filtered_4FGL_J0238.2+1531_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/875711/ft2_4FGL_J0238.2+1531_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/875711/ltcube_692409601_692668801_4FGL_J0238.2+1531_daily_bin1748.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/875711/ft2_4FGL_J0238.2+1531_daily_bin1748.fits
.....................!
real 12.27
user 11.73
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875711/ft1_filtered_4FGL_J0238.2+1531_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/875711/ft2_4FGL_J0238.2+1531_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/875711/ltcube_692409601_692668801_4FGL_J0238.2+1531_daily_bin1748.fits outfile=/scratch/kocevski/875711/expmap_692409601_692668801_4FGL_J0238.2+1531_daily_bin1748.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/875711/ltcube_692409601_692668801_4FGL_J0238.2+1531_daily_bin1748.fits
.....................!
real 191.72
user 185.59
sys 5.06

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

Setting source of interest to:
4FGL J0238.2+1531 @ 39.5617 15.5175

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/875711/ft1_filtered_4FGL_J0238.2+1531_daily_bin1748.fits scfile=/scratch/kocevski/875711/ft2_4FGL_J0238.2+1531_daily_bin1748.fits outfile=/scratch/kocevski/875711/cmap_692409601_692668801_4FGL_J0238.2+1531_daily_bin1748.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.5617 yref=15.5175 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875711/ft1_filtered_4FGL_J0238.2+1531_daily_bin1748.fits scfile=/scratch/kocevski/875711/ft2_4FGL_J0238.2+1531_daily_bin1748.fits outfile=/scratch/kocevski/875711/cmap_HighResolution_692409601_692668801_4FGL_J0238.2+1531_daily_bin1748.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.5617 yref=15.5175 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/875711/ft1_filtered_4FGL_J0238.2+1531_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/875711/ft2_4FGL_J0238.2+1531_daily_bin1748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/875711/Model_4FGL_J0238.2+1531_daily_bin1748.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/875711/ft1_filtered_4FGL_J0238.2+1531_daily_bin1748.fits.....................!
real 120.67
user 118.59
sys 1.60

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/875711/ft1_filtered_4FGL_J0238.2+1531_daily_bin1748.fits', '/scratch/kocevski/875711/ft2_4FGL_J0238.2+1531_daily_bin1748.fits', expMap='/scratch/kocevski/875711/expmap_692409601_692668801_4FGL_J0238.2+1531_daily_bin1748.fits', expCube='/scratch/kocevski/875711/ltcube_692409601_692668801_4FGL_J0238.2+1531_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/875711/Model_4FGL_J0238.2+1531_daily_bin1748.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0238.2+1531'

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  1.956e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.406e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/875711/ft1_filtered_4FGL_J0238.2+1531_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/875711/ft2_4FGL_J0238.2+1531_daily_bin1748.fits
Exposure map: /scratch/kocevski/875711/expmap_692409601_692668801_4FGL_J0238.2+1531_daily_bin1748.fits
Exposure cube: /scratch/kocevski/875711/ltcube_692409601_692668801_4FGL_J0238.2+1531_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/875711/Model_4FGL_J0238.2+1531_daily_bin1748.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) = 8785.5250399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9501       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.6660       1.0000          .0000       .10000E+07
     3 'norm      '    13.974       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.4909       1.0000          .0000       .10000E+07
     5 'Prefactor '    .40242E-01   1.0000          .0000       .10000E+07
     6 'norm      '    .18436E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    18.761       1.0000          .0000       .10000E+07
     8 'Prefactor '    .22475E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    104.96       1.0000          .0000       .10000E+07
    10 'Prefactor '    39.786       1.0000          .0000       .10000E+07
    11 'Prefactor '    .14433E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    .64534E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .17042E-07   1.0000          .0000       .10000E+07
    14 'norm      '    1.0468       1.0000          .0000       .10000E+07
    15 'Prefactor '    54.443       1.0000          .0000       .10000E+07
    16 'Prefactor '    .15115E-02   1.0000          .0000       .10000E+07
    17 'norm      '    .21594E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    .16270E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    80.098       1.0000          .0000       .10000E+07
    20 'Prefactor '    .21762E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .12140E-04   1.0000          .0000       .10000E+07
    22 'norm      '    .15730E-02   1.0000          .0000       .10000E+07
    23 'norm      '    6.4532       1.0000          .0000       .10000E+07
    24 'norm      '    3.6979       1.0000          .0000       .10000E+07
    25 'norm      '    .99365E-07   1.0000          .0000       .10000E+07
    26 'Prefactor '    .31632E-03   1.0000          .0000       .10000E+07
    27 'Prefactor '    .33093E-04   1.0000          .0000       .10000E+07
    28 'Prefactor '    5.5723       1.0000          .0000       .10000E+07
    29 'Normalizat'    .90958       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .93442       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8785.185     FROM MIGRAD    STATUS=CONVERGED    228 CALLS     2882 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0645        9.0992       -.13851E-06   -.18006E-03
   2  Prefactor     6.6658        3.7422       -.14980E-06    .90908E-04
   3  norm          13.987        7.5964       -.24422E-06    .88591E-03
   4  Prefactor     4.4943        5.5172       -.22566E-06   -.14343E-03
   5  Prefactor     .12934E-07    60.727       -.43949E-05** at limit **
   6  norm          .14433E-08    23.297       -.38528E-06** at limit **
   7  Prefactor     17.987        3.7472       -.31759E-06    .88111E-02
   8  Prefactor     .86042E-08    18.944       -.17945E-05** at limit **
   9  Prefactor     110.58        69.221        .96527E-06   -.34426E-01
  10  Prefactor     40.636        41.864       -.13603E-05   -.32133E-01
  11  Prefactor      .0000        2.9570       -.68457E-07** at limit **
  12  Prefactor     .55511E-10    47.282        .85540E-06** at limit **
  13  Prefactor      .0000        5.4763        .47082E-06** at limit **
  14  norm          1.0466        .50064       -.34665E-07   -.25282E-03
  15  Prefactor     53.009        17.137        .21139E-06   -.79164E-01
  16  Prefactor     .69389E-08    46.561        .59669E-07** at limit **
  17  norm          .80491E-08    2.1051       -.24129E-07** at limit **
  18  Prefactor      .0000        7.2778       -.11400E-06** at limit **
  19  Prefactor     81.513        27.843       -.54599E-06    .44965E-01
  20  Prefactor     .77716E-09    4.4781        .95495E-08** at limit **
  21  Prefactor     .10603E-07    14.751        .26595E-05** at limit **
  22  norm          .55511E-08    14.079       -.18379E-05** at limit **
  23  norm          6.4153        6.4881       -.35985E-07    .20404E-03
  24  norm          3.7004        2.8024       -.15326E-06   -.19481E-02
  25  norm           .0000        2.1383       -.13607E-06** at limit **
  26  Prefactor     .44964E-08    3.2280        .23983E-06** at limit **
  27  Prefactor      .0000        2.2253        .30202E-07** at limit **
  28  Prefactor     5.7786        16.065       -.31391E-05   -.43639E-02
  29  Normalizat    .90884        .23738        .38333E-05    .14658E-04
  30  Prefactor     .93412        .91195E-01    .15049E-05   -.45850E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.06454
  Prefactor  = 6.66584
  norm       = 13.987
  Prefactor  = 4.49428
  Prefactor  = 1.29341e-08
  norm       = 1.44329e-09
  Prefactor  = 17.9874
  Prefactor  = 8.60423e-09
  Prefactor  = 110.575
  Prefactor  = 40.6357
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 1.04656
  Prefactor  = 53.0095
  Prefactor  = 6.93889e-09
  norm       = 8.04912e-09
  Prefactor  = 0
  Prefactor  = 81.5125
  Prefactor  = 7.77156e-10
  Prefactor  = 1.06026e-08
  norm       = 5.55112e-09
  norm       = 6.41534
  norm       = 3.70044
  norm       = 0
  Prefactor  = 4.4964e-09
  Prefactor  = 0
  Prefactor  = 5.77861
  Normalizat = 0.908836
  Prefactor  = 0.934115
 **********
 **   18 **HESSE 
 **********

 FCN=   8785.185     FROM HESSE     STATUS=OK           656 CALLS     3538 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0645        9.1431        .50730E-03   -1.5668    
   2  Prefactor     6.6658        3.7347        .38842E-03   -1.5656    
   3  norm          13.987        7.7908        .26768E-03   -1.5633    
   4  Prefactor     4.4943        5.5357        .47487E-03   -1.5666    
   5  Prefactor     .12934E-07    1.1585        .73123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .14433E-08    23.514        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.987        23.081        .23095E-03   -1.5623    
   8  Prefactor     .86042E-08    19.031        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     110.58        72.726        .97616E-04   -1.5498    
  10  Prefactor     40.636        46.762        .15855E-03   -1.5580    
  11  Prefactor      .0000        2.9535        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .55511E-10    10.022        .11318E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        5.4707        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0466        .50722        .10014E-02   -1.5688    
  15  Prefactor     53.009        54.486        .13554E-03   -1.5562    
  16  Prefactor     .69389E-08    46.311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .80491E-08    4.4805        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        7.2769        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     81.513        54.354        .11174E-03   -1.5527    
  20  Prefactor     .77716E-09    4.7193        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10603E-07    14.797        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .55511E-08    14.040        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.4153        6.4883        .39485E-03   -1.5657    
  24  norm          3.7004        2.7990        .52494E-03   -1.5669    
  25  norm           .0000        2.1375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .44964E-08    4.5565        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor      .0000        2.2243        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     5.7786        16.113        .42536E-03   -1.5660    
  29  Normalizat    .90884        .21959        .91442E-01   -.96150    
  30  Prefactor     .93412        .81365E-01    .45442E-01   -.94959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.90721e-07
Minuit parameter uncertainties:
  1  9.14314
  2  3.73473
  3  7.79085
  4  5.53566
  5  0.000244626
  6  0.000367443
  7  23.0812
  8  0.000808847
  9  72.7269
  10  46.7625
  11  9.8684e-07
  12  3.75165e-05
  13  9.20701e-06
  14  0.507218
  15  54.4863
  16  0.00113362
  17  0.000380015
  18  4.6758e-07
  19  54.3543
  20  0.000119565
  21  0.000791667
  22  0.000557582
  23  6.48832
  24  2.79899
  25  3.08118e-06
  26  0.000286473
  27  3.00969e-07
  28  16.1128
  29  0.219806
  30  0.081376
Done.

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

Extracting fit parameters...

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  0.000e+00  9.207e-06  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.406e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
504    Prefactor:  9.341e-01  8.138e-02  0.000e+00  1.000e+01 ( 1.000e+00)
505        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
506        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
503   Normalization:  9.088e-01  2.198e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 39.562 15.518
Photon Flux Upper Limit: 8.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/875711/likelihoodResults_692409601_692668801_4FGL_J0238.2+1531_daily_bin1748.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) = 8785.27413203
delta logL = -0.089195700386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8784.63877549
delta logL = 0.546160834798

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30887E-01   1.0000          .0000       .10000E+07
     2 'Index     '    5.1615       1.0000          .0000       10.000    
     3 'Normalizat'    .84181       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94872       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8784.638     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      299 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27854E-01    .36839        .34345E-03** at limit **
   2  Index         5.2114        2.1837        .97303E-01    .32513E-03
   3  Normalizat    .83760        .43124E-01    .94706E-01    .38043E-04
   4  Prefactor     .94950        .17516E-01    .45623E-01    .15789E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0278536
  Index      = 5.21135
  Normalizat = 0.837599
  Prefactor  = 0.949496
 **********
 **   18 **HESSE 
 **********

 FCN=   8784.638     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      334 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27854E-01    1.3724        .15449E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.2114        7.3185        .57579E-02    .42284E-01
   3  Normalizat    .83760        .16406        .41959E-03   -.98689    
   4  Prefactor     .94950        .65612E-01    .16013E-03   -.94432    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.17332e-10
Minuit parameter uncertainties:
  1  0.391029
  2  5.64033
  3  0.164158
  4  0.0656173
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875711': 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): 102
logL (Free Index) = 8784.63827824
delta logL = 0.546658089834

Extracting fit parameters...

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  2.785e-02  3.910e-01  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  5.211e+00  5.640e+00  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  1.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
504    Prefactor:  9.495e-01  6.562e-02  0.000e+00  1.000e+01 ( 1.000e+00)
505        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
506        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
503   Normalization:  8.376e-01  1.642e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.18
Ra Dec: 39.562 15.518
Photon Index (Free Index): 5.21 +/- 5.64
Photon Flux (Free Index): 7.98e-08 +/- 7.56e-08
Energy Flux (Free Index): 1.04e-05 +/- 1.16e-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/875711/cmap_HighResolution_692409601_692668801_4FGL_J0238.2+1531_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.95e-03', comment='SUCCESS', energy_flux2='1.04e-05', dlogl='5.47e-01', photon_flux2='7.98e-08', job_status='DONE', time_completed='2022-12-14 00:20:35.639784', photon_index_error2='5.64', photon_index2='5.21', ts='0.00', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='8.99e-08', energy_flux_error2='1.16e-05', EG='0.91', time_epoch_completed='1671006035.64', return_code='0', job_id='875711', GAL2='0.95', EG2='0.84', return_code2='102', photon_flux_error2='7.56e-08', ts2='1.18', photon_index='2.41' WHERE bin_id='1748' AND source_name='4FGL J0238.2+1531' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:20:35 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 875711: <4FGL_J0238.2+1531_daily_bin1748> in cluster <slac> Done

Job <4FGL_J0238.2+1531_daily_bin1748> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec 14 00:05:02 2022
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:05:03 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:05:03 2022
Terminated at Wed Dec 14 00:20:36 2022
Results reported at Wed Dec 14 00:20:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0238.2+1531_daily_bin1748 39.5617 15.5175 692409601 692668801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0238.2+1531 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   879.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            934 sec.

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

