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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin1765
RA = 189.625, Dec = -12.028
tmin = 696816001, tmax = 697075201
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='634071', job_status='RUN', time_executed='2023-02-03 01:00:16.195174', time_epoch_executed='1675414816.2' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/634071

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/634071/ft1_4FGL_J1238.5-1201_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/634071/ft2_4FGL_J1238.5-1201_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/634071/ft1_4FGL_J1238.5-1201_daily_bin1765.fits outfile=/scratch/kocevski/634071/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1765.fits ra=189.625 dec=-12.028 rad=12.0 tmin=696816001.0 tmax=697075201.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.68
user 3.44
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/634071/ft2_4FGL_J1238.5-1201_daily_bin1765.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/634071/ft2_4FGL_J1238.5-1201_daily_bin1765.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/634071/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1765.fits evtable="EVENTS" outfile="/scratch/kocevski/634071/ft1_filtered_4FGL_J1238.5-1201_daily_bin1765.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: 807

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/634071/ft1_filtered_4FGL_J1238.5-1201_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/634071/ft2_4FGL_J1238.5-1201_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/634071/ltcube_696816001_697075201_4FGL_J1238.5-1201_daily_bin1765.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/634071/ft2_4FGL_J1238.5-1201_daily_bin1765.fits
.....................!
real 15.51
user 15.09
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/634071/ft1_filtered_4FGL_J1238.5-1201_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/634071/ft2_4FGL_J1238.5-1201_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/634071/ltcube_696816001_697075201_4FGL_J1238.5-1201_daily_bin1765.fits outfile=/scratch/kocevski/634071/expmap_696816001_697075201_4FGL_J1238.5-1201_daily_bin1765.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/634071/ltcube_696816001_697075201_4FGL_J1238.5-1201_daily_bin1765.fits
.....................!
real 191.62
user 185.34
sys 5.84

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

Setting source of interest to:
4FGL J1238.5-1201 @ 189.625 -12.028

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/634071/ft1_filtered_4FGL_J1238.5-1201_daily_bin1765.fits scfile=/scratch/kocevski/634071/ft2_4FGL_J1238.5-1201_daily_bin1765.fits outfile=/scratch/kocevski/634071/cmap_696816001_697075201_4FGL_J1238.5-1201_daily_bin1765.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=189.625 yref=-12.028 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/634071/ft1_filtered_4FGL_J1238.5-1201_daily_bin1765.fits scfile=/scratch/kocevski/634071/ft2_4FGL_J1238.5-1201_daily_bin1765.fits outfile=/scratch/kocevski/634071/cmap_HighResolution_696816001_697075201_4FGL_J1238.5-1201_daily_bin1765.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=189.625 yref=-12.028 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/634071/ft1_filtered_4FGL_J1238.5-1201_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/634071/ft2_4FGL_J1238.5-1201_daily_bin1765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/634071/Model_4FGL_J1238.5-1201_daily_bin1765.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/634071/ft1_filtered_4FGL_J1238.5-1201_daily_bin1765.fits.....................!
real 68.42
user 66.94
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/634071/ft1_filtered_4FGL_J1238.5-1201_daily_bin1765.fits', '/scratch/kocevski/634071/ft2_4FGL_J1238.5-1201_daily_bin1765.fits', expMap='/scratch/kocevski/634071/expmap_696816001_697075201_4FGL_J1238.5-1201_daily_bin1765.fits', expCube='/scratch/kocevski/634071/ltcube_696816001_697075201_4FGL_J1238.5-1201_daily_bin1765.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/634071/Model_4FGL_J1238.5-1201_daily_bin1765.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1238.5-1201'

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  4.386e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/634071/ft1_filtered_4FGL_J1238.5-1201_daily_bin1765.fits
Spacecraft file(s): /scratch/kocevski/634071/ft2_4FGL_J1238.5-1201_daily_bin1765.fits
Exposure map: /scratch/kocevski/634071/expmap_696816001_697075201_4FGL_J1238.5-1201_daily_bin1765.fits
Exposure cube: /scratch/kocevski/634071/ltcube_696816001_697075201_4FGL_J1238.5-1201_daily_bin1765.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/634071/Model_4FGL_J1238.5-1201_daily_bin1765.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) = 8594.10238827

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1326       1.0000          .0000       .10000E+07
     2 'Prefactor '    16.923       1.0000          .0000       .10000E+07
     3 'Prefactor '    6.6582       1.0000          .0000       .10000E+07
     4 'Prefactor '    27.632       1.0000          .0000       .10000E+07
     5 'norm      '    .86153E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .96792E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    6.9289       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.3349       1.0000          .0000       .10000E+07
     9 'Prefactor '    9.6601       1.0000          .0000       .10000E+07
    10 'Prefactor '    15.101       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.8899       1.0000          .0000       .10000E+07
    12 'Prefactor '    34.018       1.0000          .0000       .10000E+07
    13 'norm      '    .15953E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .10610E-01   1.0000          .0000       .10000E+07
    15 'norm      '    .12134       1.0000          .0000       .10000E+07
    16 'norm      '    .19404E-05   1.0000          .0000       .10000E+07
    17 'norm      '    4.1971       1.0000          .0000       .10000E+07
    18 'Prefactor '    18.015       1.0000          .0000       .10000E+07
    19 'norm      '    21.304       1.0000          .0000       .10000E+07
    20 'norm      '    .91117E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .96436E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    .44980E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.2985       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83596       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8594.102     FROM MIGRAD    STATUS=CONVERGED    136 CALLS     2055 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1326        2.3841        .30235E-07    .64562E-03
   2  Prefactor     16.931        1.1547       -.57733E-09    .23077E-01
   3  Prefactor     6.6582        1.2303        .27719E-07   -.14510E-01
   4  Prefactor     27.682        1.4711       -.25444E-07    .62789E-01
   5  norm           .0000        1.2892       -.14191E-07** at limit **
   6  Prefactor     .55511E-10    4.4046       -.70673E-08** at limit **
   7  Prefactor     6.9285        2.0693        .18032E-06    .18441E-03
   8  Prefactor     8.3423        6.6156       -.13242E-08    .58567E-03
   9  Prefactor     9.6542        3.0058       -.31589E-07   -.70100E-02
  10  Prefactor     15.100        8.1327        .88689E-07    .90482E-02
  11  Prefactor     2.8995        7.0138        .10067E-07   -.10708E-02
  12  Prefactor     34.148        4.8279       -.98873E-07    .15983    
  13  norm          .38858E-09    12.814        .81886E-07** at limit **
  14  Prefactor     .21094E-08    17.218        .14255E-06** at limit **
  15  norm          .12149        .11556        .30406E-08** at limit **
  16  norm           .0000        2.0160        .91080E-07** at limit **
  17  norm          4.1986        3.8157        .37903E-07    .57942E-03
  18  Prefactor     17.017        56.262        .15701E-05    .91219E-02
  19  norm          21.365        3.5088       -.83355E-07   -.23206E-01
  20  norm          .55511E-10    4.9082       -.56008E-07** at limit **
  21  Prefactor      .0000        2.6387        .10541E-06** at limit **
  22  Prefactor     .16653E-09    7.1928        .19067E-06** at limit **
  23  Normalizat    1.2988        .22562        .19039E-06    .74788E-05
  24  Prefactor     .83587        .13164       -.80500E-06   -.15652E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.13264
  Prefactor  = 16.9306
  Prefactor  = 6.65819
  Prefactor  = 27.6825
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 6.92846
  Prefactor  = 8.34228
  Prefactor  = 9.65422
  Prefactor  = 15.1004
  Prefactor  = 2.89952
  Prefactor  = 34.1481
  norm       = 3.88578e-10
  Prefactor  = 2.10942e-09
  norm       = 0.121486
  norm       = 0
  norm       = 4.19861
  Prefactor  = 17.0175
  norm       = 21.3647
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  Normalizat = 1.29879
  Prefactor  = 0.835869
 **********
 **   18 **HESSE 
 **********

 FCN=   8594.102     FROM HESSE     STATUS=OK           451 CALLS     2506 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1326        2.4054        .70568E-03   -1.5679    
   2  Prefactor     16.931        11.827        .24319E-03   -1.5626    
   3  Prefactor     6.6582        12.361        .38865E-03   -1.5656    
   4  Prefactor     27.682        27.545        .19027E-03   -1.5603    
   5  norm           .0000        1.2792        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    4.3764        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.9285        2.0686        .38103E-02   -1.5181    
   8  Prefactor     8.3423        6.6245        .34701E-03   -1.5650    
   9  Prefactor     9.6542        8.7885        .32218E-03   -1.5646    
  10  Prefactor     15.100        8.6339        .25748E-03   -1.5630    
  11  Prefactor     2.8995        7.0682        .59755E-03   -1.5674    
  12  Prefactor     34.148        33.163        .17147E-03   -1.5591    
  13  norm          .38858E-09    12.815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .21094E-08    17.218        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .12149        .12545        .66953E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        2.0151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.1986        3.8207        .49167E-03   -1.5667    
  18  Prefactor     17.017        57.012        .23570E-03   -1.5625    
  19  norm          21.365        12.352        .21672E-03   -1.5616    
  20  norm          .55511E-10    4.8889        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        2.6403        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .16653E-09    7.1734        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2988        .19470        .65685E-01   -.83602    
  24  Prefactor     .83587        .11108        .44183E-01   -.98419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09059e-06
Minuit parameter uncertainties:
  1  2.40544
  2  11.8266
  3  12.3609
  4  27.5455
  5  1.12816e-06
  6  3.11096e-05
  7  2.06862
  8  6.62448
  9  8.78851
  10  8.6339
  11  7.06819
  12  33.163
  13  0.000145929
  14  0.000383084
  15  0.125455
  16  7.76148e-06
  17  3.82065
  18  57.0137
  19  12.3522
  20  3.74702e-05
  21  9.47409e-06
  22  7.00077e-05
  23  0.194812
  24  0.111108
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.510e+01  8.634e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  8.359e-01  1.111e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.299e+00  1.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.80
Ra Dec: 189.625 -12.028
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 7.42e-08 +/- 4.24e-08
Energy Flux (Fixed Index): 1.84e-05 +/- 1.05e-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) = 8593.65342601
delta logL = 0.448434531399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8593.65066775
delta logL = 0.451192798258

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8593.651     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 27.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.850        8.3744       -.17449E-06    .15100E-01
   2  Index         2.1345        .33571        .51300E-05    .53622E-03
   3  Normalizat    1.3347        .18711       -.16777E-06   -.13839E-03
   4  Prefactor     .82270        .10999        .18449E-06   -.13663E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.8498
  Index      = 2.13453
  Normalizat = 1.33466
  Prefactor  = 0.822697
 **********
 **   18 **HESSE 
 **********

 FCN=   8593.651     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.850        10.283        .10052E-04   -1.5628    
   2  Index         2.1345        .52672        .85252E-02   -.61028    
   3  Normalizat    1.3347        .22298        .28726E-03   -.82538    
   4  Prefactor     .82270        .13031        .20951E-03   -.98897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.07637e-09
Minuit parameter uncertainties:
  1  10.2833
  2  0.528184
  3  0.223139
  4  0.130361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/634071': 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) = 8593.65066771
delta logL = 0.451192834187

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.585e+01  1.028e+01  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.135e+00  5.282e-01  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  8.227e-01  1.304e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.335e+00  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.68
Ra Dec: 189.625 -12.028
Photon Index (Free Index): 2.13 +/- 0.53
Photon Flux (Free Index): 4.77e-08 +/- 4.14e-08
Energy Flux (Free Index): 2.43e-05 +/- 1.88e-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/634071/cmap_HighResolution_696816001_697075201_4FGL_J1238.5-1201_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.42e-08', energy_flux2='2.43e-05', photon_flux_error='4.24e-08', dlogl='4.51e-01', energy_flux='1.84e-05', photon_flux2='4.77e-08', job_status='DONE', time_completed='2023-02-03 01:11:57.138937', photon_index_error2='0.53', photon_index2='2.13', ts='5.80', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.88e-05', EG='1.30', time_epoch_completed='1675415517.14', return_code='0', job_id='634071', GAL2='0.82', EG2='1.33', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='4.14e-08', ts2='6.68', photon_index='2.66' WHERE bin_id='1765' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 01:11:57 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 634071: <4FGL_J1238.5-1201_daily_bin1765> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin1765> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb  3 00:55:18 2023
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 00:56:34 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 00:56:34 2023
Terminated at Fri Feb  3 01:11:57 2023
Results reported at Fri Feb  3 01:11:57 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin1765 189.625 -12.028 696816001 697075201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1238.5-1201 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   702.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            999 sec.

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

