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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin1767
RA = 189.625, Dec = -12.028
tmin = 697334401, tmax = 697593601
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='75691', job_status='RUN', time_executed='2023-02-09 01:09:31.489287', time_epoch_executed='1675933771.49' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='1767'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75691

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75691/ft1_4FGL_J1238.5-1201_daily_bin1767.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75691/ft2_4FGL_J1238.5-1201_daily_bin1767.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75691/ft1_4FGL_J1238.5-1201_daily_bin1767.fits outfile=/scratch/kocevski/75691/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1767.fits ra=189.625 dec=-12.028 rad=12.0 tmin=697334401.0 tmax=697593601.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.61
user 3.33
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75691/ft1_filtered_4FGL_J1238.5-1201_daily_bin1767.fits" evtable="EVENTS" scfile=/scratch/kocevski/75691/ft2_4FGL_J1238.5-1201_daily_bin1767.fits sctable="SC_DATA" outfile=/scratch/kocevski/75691/ltcube_697334401_697593601_4FGL_J1238.5-1201_daily_bin1767.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/75691/ft2_4FGL_J1238.5-1201_daily_bin1767.fits
.....................!
real 14.51
user 14.05
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75691/ft1_filtered_4FGL_J1238.5-1201_daily_bin1767.fits evtable="EVENTS" scfile=/scratch/kocevski/75691/ft2_4FGL_J1238.5-1201_daily_bin1767.fits sctable="SC_DATA" expcube=/scratch/kocevski/75691/ltcube_697334401_697593601_4FGL_J1238.5-1201_daily_bin1767.fits outfile=/scratch/kocevski/75691/expmap_697334401_697593601_4FGL_J1238.5-1201_daily_bin1767.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/75691/ltcube_697334401_697593601_4FGL_J1238.5-1201_daily_bin1767.fits
.....................!
real 192.51
user 186.29
sys 4.95

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/75691/ft1_filtered_4FGL_J1238.5-1201_daily_bin1767.fits scfile=/scratch/kocevski/75691/ft2_4FGL_J1238.5-1201_daily_bin1767.fits outfile=/scratch/kocevski/75691/cmap_697334401_697593601_4FGL_J1238.5-1201_daily_bin1767.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75691/ft1_filtered_4FGL_J1238.5-1201_daily_bin1767.fits scfile=/scratch/kocevski/75691/ft2_4FGL_J1238.5-1201_daily_bin1767.fits outfile=/scratch/kocevski/75691/cmap_HighResolution_697334401_697593601_4FGL_J1238.5-1201_daily_bin1767.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.59
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/75691/ft1_filtered_4FGL_J1238.5-1201_daily_bin1767.fits evtable="EVENTS" scfile=/scratch/kocevski/75691/ft2_4FGL_J1238.5-1201_daily_bin1767.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/75691/Model_4FGL_J1238.5-1201_daily_bin1767.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/75691/ft1_filtered_4FGL_J1238.5-1201_daily_bin1767.fits.....................!
real 62.69
user 61.00
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/75691/ft1_filtered_4FGL_J1238.5-1201_daily_bin1767.fits', '/scratch/kocevski/75691/ft2_4FGL_J1238.5-1201_daily_bin1767.fits', expMap='/scratch/kocevski/75691/expmap_697334401_697593601_4FGL_J1238.5-1201_daily_bin1767.fits', expCube='/scratch/kocevski/75691/ltcube_697334401_697593601_4FGL_J1238.5-1201_daily_bin1767.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/75691/Model_4FGL_J1238.5-1201_daily_bin1767.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/75691/ft1_filtered_4FGL_J1238.5-1201_daily_bin1767.fits
Spacecraft file(s): /scratch/kocevski/75691/ft2_4FGL_J1238.5-1201_daily_bin1767.fits
Exposure map: /scratch/kocevski/75691/expmap_697334401_697593601_4FGL_J1238.5-1201_daily_bin1767.fits
Exposure cube: /scratch/kocevski/75691/ltcube_697334401_697593601_4FGL_J1238.5-1201_daily_bin1767.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/75691/Model_4FGL_J1238.5-1201_daily_bin1767.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) = 7874.82190364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11303E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .33198E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .23738E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .12698E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .26840E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .96598E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    6.3374       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .79152E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    13.078       1.0000          .0000       .10000E+07
    10 'Prefactor '    .12242E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    9.6580       1.0000          .0000       .10000E+07
    12 'Prefactor '    12.318       1.0000          .0000       .10000E+07
    13 'norm      '    26.164       1.0000          .0000       .10000E+07
    14 'Prefactor '    .10839E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .11102E-09   1.0000          .0000       .10000E+07
    16 'norm      '    7.4353       1.0000          .0000       .10000E+07
    17 'norm      '    .91205E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    .17154E-01   1.0000          .0000       .10000E+07
    19 'norm      '    6.6981       1.0000          .0000       .10000E+07
    20 'norm      '    9.5047       1.0000          .0000       .10000E+07
    21 'Prefactor '    .15697E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    14.285       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.5073       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79374       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=   7874.756     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     1622 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-09    2.3121        .28024E-07** at limit **
   2  Prefactor     .37081E-07    14.666       -.15902E-06** at limit **
   3  Prefactor     .53291E-08    2.6388       -.67056E-06** at limit **
   4  Prefactor     .38501E-05    18.767        .10326E-05** at limit **
   5  norm          .11657E-08    4.6023       -.25580E-07** at limit **
   6  Prefactor     .49960E-09    2.2462       -.94856E-07** at limit **
   7  Prefactor     6.3381        2.1079       -.11569E-06   -.16235E-03
   8  Prefactor     .55511E-10    2.6791       -.25405E-06** at limit **
   9  Prefactor     13.442        11.215       -.43182E-06   -.37208E-01
  10  Prefactor     .35527E-08    2.4894        .92906E-06** at limit **
  11  Prefactor     9.6343        2.5710        .18513E-06    .20670E-01
  12  Prefactor     13.212        41.495        .21927E-05   -.22887E-01
  13  norm          26.139        2.6914       -.73831E-07    .88879E-03
  14  Prefactor     .10096E-05    35.413        .65331E-06** at limit **
  15  norm          .55511E-10    .19584        .19076E-06** at limit **
  16  norm          7.4585        4.8120        .86247E-06    .49998E-02
  17  norm          .33307E-09    3.0753       -.23608E-06** at limit **
  18  Prefactor     .94369E-09    29.365        .81301E-06** at limit **
  19  norm          6.7050        7.1016       -.32041E-06   -.15272E-01
  20  norm          9.5317        5.0713        .82471E-06    .70631E-01
  21  Prefactor     .13459E-04    12.913       -.11851E-06** at limit **
  22  Prefactor     14.003        11.943       -.57059E-07   -.32732E-02
  23  Normalizat    1.5073        .24256       -.25966E-05    .15502E-03
  24  Prefactor     .79335        .13865        .21690E-05    .23914E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-10
  Prefactor  = 3.70814e-08
  Prefactor  = 5.32907e-09
  Prefactor  = 3.85014e-06
  norm       = 1.16573e-09
  Prefactor  = 4.996e-10
  Prefactor  = 6.33806
  Prefactor  = 5.55112e-11
  Prefactor  = 13.4424
  Prefactor  = 3.55271e-09
  Prefactor  = 9.63433
  Prefactor  = 13.212
  norm       = 26.1385
  Prefactor  = 1.00958e-06
  norm       = 5.55112e-11
  norm       = 7.4585
  norm       = 3.33067e-10
  Prefactor  = 9.4369e-10
  norm       = 6.70504
  norm       = 9.53173
  Prefactor  = 1.34591e-05
  Prefactor  = 14.0034
  Normalizat = 1.50732
  Prefactor  = 0.79335
 **********
 **   18 **HESSE 
 **********

 FCN=   7874.756     FROM HESSE     STATUS=OK           451 CALLS     2073 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-09    2.3785        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .37081E-07    14.616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .53291E-08    3.7295        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .38501E-05    23.899        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .11657E-08    1.2448        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .49960E-09    2.3199        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.3381        2.1070        .39861E-02   -1.5204    
   8  Prefactor     .55511E-10    2.6856        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.442        11.524        .27672E-03   -1.5635    
  10  Prefactor     .35527E-08    3.8081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.6343        7.4690        .32221E-03   -1.5646    
  12  Prefactor     13.212        45.486        .28516E-03   -1.5635    
  13  norm          26.139        28.446        .19554E-03   -1.5606    
  14  Prefactor     .10096E-05    36.719        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .55511E-10    .10056        .96243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.4585        9.4562        .36757E-03   -1.5653    
  17  norm          .33307E-09    3.0725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .94369E-09    29.271        .17232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.7050        7.2009        .38748E-03   -1.5656    
  20  norm          9.5317        7.8260        .32482E-03   -1.5646    
  21  Prefactor     .13459E-04    29.870        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.003        11.966        .26475E-03   -1.5633    
  23  Normalizat    1.5073        .20610        .64608E-01   -.77573    
  24  Prefactor     .79335        .11823        .43636E-01   -.99974    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.6942e-07
Minuit parameter uncertainties:
  1  5.36369e-05
  2  0.00147253
  3  0.000282145
  4  0.0191847
  5  7.60822e-05
  6  6.64297e-05
  7  2.10699
  8  1.89588e-05
  9  11.5238
  10  0.000232002
  11  7.46905
  12  45.4873
  13  28.4464
  14  0.0121773
  15  4.08796e-06
  16  9.4562
  17  6.13266e-05
  18  0.000337122
  19  7.20091
  20  7.82599
  21  0.0401011
  22  11.9657
  23  0.206212
  24  0.118263
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  3.553e-09  2.320e-04  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:  7.933e-01  1.183e-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.507e+00  2.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 189.625 -12.028
Photon Flux Upper Limit: 7.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75691/likelihoodResults_697334401_697593601_4FGL_J1238.5-1201_daily_bin1767.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): 102
logL (Free Index) = 7874.75643256
delta logL = -0.000304167568174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7874.75612857
delta logL = -1.73997250386e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52014E-07   1.0000          .0000       .10000E+07
     2 'Index     '    .76135       1.0000          .0000       10.000    
     3 'Normalizat'    1.5072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79339       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7874.756     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      263 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.0789        .42118E-03** at limit **
   2  Index         4.3121        2.0741       -.10038E-04     .0000    
   3  Normalizat    1.5073        1.0490        .41615E-04    .23836E-03
   4  Prefactor     .79335        1.1421       -.28565E-04    .42052E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 4.31213
  Normalizat = 1.50732
  Prefactor  = 0.793348
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7874.756     FROM HESSE     STATUS=FAILED         9 CALLS      272 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.0789        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9820        2.3934       -.10038E-04   -.13801    
   3  Normalizat    1.5073        1.0490        .41615E-04   -.77573    
   4  Prefactor     .79335        1.1421       -.28565E-04   -.99974    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.72441e-10
Minuit parameter uncertainties:
  1  1.06241e-06
  2  2.14006
  3  1.06472
  4  1.17918
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75691': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 7874.75612839
delta logL = 3.86535248253e-10

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  0.000e+00  1.062e-06  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  4.312e+00  2.140e+00  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:  7.933e-01  1.179e+00  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.507e+00  1.065e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 189.625 -12.028

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/75691/cmap_HighResolution_697334401_697593601_4FGL_J1238.5-1201_daily_bin1767.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.54e-03', job_status='DONE', photon_flux_upper_limit='7.05e-08', time_completed='2023-02-09 01:20:45.259482', job_id='75691', GAL2='0.79', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1675934445.26', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='3.87e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1767' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Feb  9 01:20:45 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 75691: <4FGL_J1238.5-1201_daily_bin1767> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin1767> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Feb  9 01:05:24 2023
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Feb  9 01:05:54 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Feb  9 01:05:54 2023
Terminated at Thu Feb  9 01:20:45 2023
Results reported at Thu Feb  9 01:20:45 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin1767 189.625 -12.028 697334401 697593601 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 :                                   673.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            921 sec.

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

