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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin1749
RA = 189.625, Dec = -12.028
tmin = 692668801, tmax = 692928001
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='953002', job_status='RUN', time_executed='2022-12-17 00:46:37.882444', time_epoch_executed='1671266797.88' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953002

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953002/ft1_4FGL_J1238.5-1201_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953002/ft2_4FGL_J1238.5-1201_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953002/ft1_4FGL_J1238.5-1201_daily_bin1749.fits outfile=/scratch/kocevski/953002/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1749.fits ra=189.625 dec=-12.028 rad=12.0 tmin=692668801.0 tmax=692928001.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.69
user 3.42
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/953002/ft2_4FGL_J1238.5-1201_daily_bin1749.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/953002/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1749.fits evtable="EVENTS" outfile="/scratch/kocevski/953002/ft1_filtered_4FGL_J1238.5-1201_daily_bin1749.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.50
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 782

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953002/ft1_filtered_4FGL_J1238.5-1201_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/953002/ft2_4FGL_J1238.5-1201_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/953002/ltcube_692668801_692928001_4FGL_J1238.5-1201_daily_bin1749.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/953002/ft2_4FGL_J1238.5-1201_daily_bin1749.fits
.....................!
real 11.93
user 11.57
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953002/ft1_filtered_4FGL_J1238.5-1201_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/953002/ft2_4FGL_J1238.5-1201_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/953002/ltcube_692668801_692928001_4FGL_J1238.5-1201_daily_bin1749.fits outfile=/scratch/kocevski/953002/expmap_692668801_692928001_4FGL_J1238.5-1201_daily_bin1749.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/953002/ltcube_692668801_692928001_4FGL_J1238.5-1201_daily_bin1749.fits
.....................!
real 190.53
user 185.66
sys 4.53

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/953002/ft1_filtered_4FGL_J1238.5-1201_daily_bin1749.fits scfile=/scratch/kocevski/953002/ft2_4FGL_J1238.5-1201_daily_bin1749.fits outfile=/scratch/kocevski/953002/cmap_692668801_692928001_4FGL_J1238.5-1201_daily_bin1749.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953002/ft1_filtered_4FGL_J1238.5-1201_daily_bin1749.fits scfile=/scratch/kocevski/953002/ft2_4FGL_J1238.5-1201_daily_bin1749.fits outfile=/scratch/kocevski/953002/cmap_HighResolution_692668801_692928001_4FGL_J1238.5-1201_daily_bin1749.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.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/953002/ft1_filtered_4FGL_J1238.5-1201_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/953002/ft2_4FGL_J1238.5-1201_daily_bin1749.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/953002/Model_4FGL_J1238.5-1201_daily_bin1749.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/953002/ft1_filtered_4FGL_J1238.5-1201_daily_bin1749.fits.....................!
real 68.35
user 67.01
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0218       1.0000          .0000       .10000E+07
     2 'Prefactor '    12.590       1.0000          .0000       .10000E+07
     3 'Prefactor '    18.855       1.0000          .0000       .10000E+07
     4 'Prefactor '    24.934       1.0000          .0000       .10000E+07
     5 'norm      '    .34972E-08   1.0000          .0000       .10000E+07
     6 'Prefactor '    .30757E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.2658       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .93992E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    12.476       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.5958       1.0000          .0000       .10000E+07
    11 'Prefactor '    17.616       1.0000          .0000       .10000E+07
    12 'Prefactor '    .14098E-02   1.0000          .0000       .10000E+07
    13 'norm      '    12.068       1.0000          .0000       .10000E+07
    14 'Prefactor '    .92136E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .19829       1.0000          .0000       .10000E+07
    16 'norm      '    .12600E-05   1.0000          .0000       .10000E+07
    17 'norm      '    11.164       1.0000          .0000       .10000E+07
    18 'Prefactor '    .13324       1.0000          .0000       .10000E+07
    19 'norm      '    2.0132       1.0000          .0000       .10000E+07
    20 'norm      '    10.811       1.0000          .0000       .10000E+07
    21 'Prefactor '    2.9140       1.0000          .0000       .10000E+07
    22 'Prefactor '    .57344E-04   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.3002       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91325       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=   8466.192     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     1538 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0220        2.7546       -.33490E-06    .69907E-03
   2  Prefactor     12.506        2.0410       -.19978E-06   -.97718E-02
   3  Prefactor     18.633        3.9033       -.40286E-06   -.37074E-01
   4  Prefactor     25.000        1.1114        .14586E-08   -.88618E-02
   5  norm           .0000        .57997        .68708E-06** at limit **
   6  Prefactor     .57232E-07    6.0836       -.50496E-06** at limit **
   7  Prefactor     4.2650        1.9001        .34532E-06   -.19309E-03
   8  Prefactor     .50820E-06    12.589       -.21610E-06** at limit **
   9  Prefactor     12.441        1.6668       -.57080E-07   -.46456E-02
  10  Prefactor     7.5456        1.7764       -.12210E-06    .16944E-01
  11  Prefactor     17.587        6.0336       -.45123E-06   -.18925    
  12  Prefactor     .51092E-06    13.873        .61749E-05** at limit **
  13  norm          12.158        1.4434        .13102E-06   -.11865E-01
  14  Prefactor     .56344E-07    24.493       -.95372E-06** at limit **
  15  norm          .19827        .15758        .59736E-08** at limit **
  16  norm          .77161E-08    5.3227       -.18695E-05** at limit **
  17  norm          11.103        5.6705       -.42226E-06   -.48312E-02
  18  Prefactor     .17116E-05    28.792        .10556E-05** at limit **
  19  norm          1.8498        8.4985       -.15348E-05   -.16025E-01
  20  norm          10.818        1.9975       -.26571E-06   -.56274E-01
  21  Prefactor     2.8879        5.7116        .94925E-06    .16123E-03
  22  Prefactor      .0000        2.1729        .52082E-06** at limit **
  23  Normalizat    1.3017        .23572        .13083E-04    .75874E-05
  24  Prefactor     .91307        .13774       -.58512E-05    .48550E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.02195
  Prefactor  = 12.5064
  Prefactor  = 18.6329
  Prefactor  = 24.9997
  norm       = 0
  Prefactor  = 5.7232e-08
  Prefactor  = 4.26501
  Prefactor  = 5.08205e-07
  Prefactor  = 12.4406
  Prefactor  = 7.54557
  Prefactor  = 17.5867
  Prefactor  = 5.10925e-07
  norm       = 12.1583
  Prefactor  = 5.63438e-08
  norm       = 0.198266
  norm       = 7.71605e-09
  norm       = 11.1025
  Prefactor  = 1.71163e-06
  norm       = 1.84978
  norm       = 10.8179
  Prefactor  = 2.88787
  Prefactor  = 0
  Normalizat = 1.30168
  Prefactor  = 0.913068
 **********
 **   18 **HESSE 
 **********

 FCN=   8466.192     FROM HESSE     STATUS=OK           451 CALLS     1989 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0220        2.7732        .58354E-03   -1.5673    
   2  Prefactor     12.506        14.516        .28205E-03   -1.5637    
   3  Prefactor     18.633        14.511        .23038E-03   -1.5622    
   4  Prefactor     25.000        24.785        .20031E-03   -1.5608    
   5  norm           .0000        .58170        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .57232E-07    6.3228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.2650        1.9069        .48769E-02   -1.5295    
   8  Prefactor     .50820E-06    14.143        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.441        12.346        .28335E-03   -1.5637    
  10  Prefactor     7.5456        11.561        .36363E-03   -1.5653    
  11  Prefactor     17.587        9.6216        .23836E-03   -1.5624    
  12  Prefactor     .51092E-06    15.325        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.158        16.444        .28811E-03   -1.5638    
  14  Prefactor     .56344E-07    24.638        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .19827        .16703        .70367E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .77161E-08    5.4222        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.103        5.6754        .29960E-03   -1.5641    
  18  Prefactor     .17116E-05    35.441        .13110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.8498        9.2058        .72927E-03   -1.5681    
  20  norm          10.818        8.8227        .30446E-03   -1.5642    
  21  Prefactor     2.8879        5.7257        .59491E-03   -1.5674    
  22  Prefactor      .0000        2.1760        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3017        .20839        .69059E-01   -.83516    
  24  Prefactor     .91307        .11676        .45174E-01   -.95686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73297e-07
Minuit parameter uncertainties:
  1  2.77317
  2  14.516
  3  14.5107
  4  24.7848
  5  5.51125e-07
  6  0.0012032
  7  1.90693
  8  0.00536205
  9  12.346
  10  11.5611
  11  9.62156
  12  0.00559654
  13  16.4444
  14  0.00235603
  15  0.167027
  16  0.000409649
  17  5.67537
  18  0.0155771
  19  8.25316
  20  8.82271
  21  5.7257
  22  1.29107e-06
  23  0.208528
  24  0.116788
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  7.546e+00  1.156e+01  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:  9.131e-01  1.168e-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.302e+00  2.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.51
Ra Dec: 189.625 -12.028
Photon Flux Upper Limit: 1.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/953002/likelihoodResults_692668801_692928001_4FGL_J1238.5-1201_daily_bin1749.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) = 8464.36436821
delta logL = 1.82720579672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8464.19477662
delta logL = 1.99679738262

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23426E-01   1.0000          .0000       .10000E+07
     2 'Index     '    7.7133       1.0000          .0000       10.000    
     3 'Normalizat'    1.1710       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97132       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.

 FCN=   8464.195     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      317 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23237E-01    .17120        .16821E-03** at limit **
   2  Index         7.7184        2.8655        .16730        .39518E-04
   3  Normalizat    1.1712        .57384E-01    .72183E-01    .35269E-04
   4  Prefactor     .97126        .33967E-01    .45908E-01    .88948E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0232372
  Index      = 7.71843
  Normalizat = 1.17116
  Prefactor  = 0.971263
 **********
 **   18 **HESSE 
 **********

 FCN=   8464.195     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      352 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23237E-01    .35284        .75481E-05   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.7184        7.8113        .68554E-02    .57482    
   3  Normalizat    1.1712        .18988        .31942E-03   -.87499    
   4  Prefactor     .97126        .10973        .20476E-03   -.93694    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.4982e-10
Minuit parameter uncertainties:
  1  0.181097
  2  5.01296
  3  0.189993
  4  0.109754
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953002': 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) = 8464.19477496
delta logL = 1.99679904793

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  2.324e-02  1.811e-01  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  7.718e+00  5.013e+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:  9.713e-01  1.098e-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.171e+00  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.89
Ra Dec: 189.625 -12.028
Photon Index (Free Index): 7.72 +/- 5.01
Photon Flux (Free Index): 1.23e-07 +/- 7.04e-08
Energy Flux (Free Index): 1.44e-05 +/- 9.16e-06

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/953002/cmap_HighResolution_692668801_692928001_4FGL_J1238.5-1201_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', comment='SUCCESS', energy_flux2='1.44e-05', dlogl='2.00e+00', photon_flux2='1.23e-07', job_status='DONE', time_completed='2022-12-17 00:58:13.553848', photon_index_error2='5.01', photon_index2='7.72', ts='0.51', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.50e-07', energy_flux_error2='9.16e-06', EG='1.30', time_epoch_completed='1671267493.55', return_code='0', job_id='953002', GAL2='0.97', EG2='1.17', return_code2='102', photon_flux_error2='7.04e-08', ts2='4.89', photon_index='2.66' WHERE bin_id='1749' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 00:58:13 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 953002: <4FGL_J1238.5-1201_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin1749> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Dec 17 00:45:17 2022
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 00:45:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 00:45:17 2022
Terminated at Sat Dec 17 00:58:14 2022
Results reported at Sat Dec 17 00:58:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin1749 189.625 -12.028 692668801 692928001 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 :                                   697.57 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            777 sec.

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

