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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin1769
RA = 189.625, Dec = -12.028
tmin = 697852801, tmax = 698112001
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='434607', job_status='RUN', time_executed='2023-02-15 00:49:14.889671', time_epoch_executed='1676450954.89' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='1769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/434607

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/434607/ft1_4FGL_J1238.5-1201_daily_bin1769.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/434607/ft2_4FGL_J1238.5-1201_daily_bin1769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/434607/ft1_4FGL_J1238.5-1201_daily_bin1769.fits outfile=/scratch/kocevski/434607/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1769.fits ra=189.625 dec=-12.028 rad=12.0 tmin=697852801.0 tmax=698112001.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 4.35
user 4.12
sys 0.22

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

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

Number of photons that the gtmktime cut: 568

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/434607/ft1_filtered_4FGL_J1238.5-1201_daily_bin1769.fits" evtable="EVENTS" scfile=/scratch/kocevski/434607/ft2_4FGL_J1238.5-1201_daily_bin1769.fits sctable="SC_DATA" outfile=/scratch/kocevski/434607/ltcube_697852801_698112001_4FGL_J1238.5-1201_daily_bin1769.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/434607/ft2_4FGL_J1238.5-1201_daily_bin1769.fits
.....................!
real 12.01
user 11.69
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/434607/ft1_filtered_4FGL_J1238.5-1201_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/434607/ft2_4FGL_J1238.5-1201_daily_bin1769.fits sctable="SC_DATA" expcube=/scratch/kocevski/434607/ltcube_697852801_698112001_4FGL_J1238.5-1201_daily_bin1769.fits outfile=/scratch/kocevski/434607/expmap_697852801_698112001_4FGL_J1238.5-1201_daily_bin1769.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/434607/ltcube_697852801_698112001_4FGL_J1238.5-1201_daily_bin1769.fits
.....................!
real 190.66
user 186.49
sys 3.87

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/434607/ft1_filtered_4FGL_J1238.5-1201_daily_bin1769.fits scfile=/scratch/kocevski/434607/ft2_4FGL_J1238.5-1201_daily_bin1769.fits outfile=/scratch/kocevski/434607/cmap_697852801_698112001_4FGL_J1238.5-1201_daily_bin1769.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/434607/ft1_filtered_4FGL_J1238.5-1201_daily_bin1769.fits scfile=/scratch/kocevski/434607/ft2_4FGL_J1238.5-1201_daily_bin1769.fits outfile=/scratch/kocevski/434607/cmap_HighResolution_697852801_698112001_4FGL_J1238.5-1201_daily_bin1769.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/434607/ft1_filtered_4FGL_J1238.5-1201_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/434607/ft2_4FGL_J1238.5-1201_daily_bin1769.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/434607/Model_4FGL_J1238.5-1201_daily_bin1769.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/434607/ft1_filtered_4FGL_J1238.5-1201_daily_bin1769.fits.....................!
real 54.06
user 52.82
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .71715E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .91215E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.8999       1.0000          .0000       .10000E+07
     4 'Prefactor '    44.362       1.0000          .0000       .10000E+07
     5 'norm      '    .30365E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .22629E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    7.3582       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .54265E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    11.772       1.0000          .0000       .10000E+07
    10 'Prefactor '    .89083E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    8.4250       1.0000          .0000       .10000E+07
    12 'Prefactor '    .30952E-03   1.0000          .0000       .10000E+07
    13 'norm      '    30.974       1.0000          .0000       .10000E+07
    14 'Prefactor '    .14318E-04   1.0000          .0000       .10000E+07
    15 'norm      '    .44781       1.0000          .0000       .10000E+07
    16 'norm      '    2.1331       1.0000          .0000       .10000E+07
    17 'norm      '    .78493E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    .11583       1.0000          .0000       .10000E+07
    19 'norm      '    5.1737       1.0000          .0000       .10000E+07
    20 'norm      '    .69503E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    4.0545       1.0000          .0000       .10000E+07
    22 'Prefactor '    .12961E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.3438       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87051       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=   6300.288     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     1976 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.1168       -.48141E-06** at limit **
   2  Prefactor     .11324E-07    12.792        .93286E-06** at limit **
   3  Prefactor     2.8877        1.6857       -.60229E-06    .53257E-02
   4  Prefactor     44.547        13.022        .14841E-05   -.15809    
   5  norm           .0000        .77060       -.11410E-06** at limit **
   6  Prefactor     .83267E-09    5.3347        .17798E-06** at limit **
   7  Prefactor     7.3623        2.6747       -.28720E-06    .16668E-04
   8  Prefactor      .0000        4.0448       -.25868E-06** at limit **
   9  Prefactor     11.778        1.1824        .10400E-06    .44438E-02
  10  Prefactor     .64393E-08    2.6234        .98103E-06** at limit **
  11  Prefactor     8.4129        1.1070        .10509E-06   -.45018E-02
  12  Prefactor     .76000E-06    18.077        .38332E-05** at limit **
  13  norm          31.047        2.6168       -.32418E-06    .12206E-01
  14  Prefactor     .30120E-06    73.972        .65724E-07** at limit **
  15  norm          .44771        .23698       -.23352E-07    .14892E-01
  16  norm          2.1337        7.1668        .42980E-06   -.12523E-02
  17  norm           .0000        1.8979       -.31815E-07** at limit **
  18  Prefactor     .16653E-09    17.045        .41907E-05** at limit **
  19  norm          5.1754        8.1344       -.45979E-06   -.41186E-03
  20  norm          .10391E-05    17.661       -.43633E-05** at limit **
  21  Prefactor     4.1209        5.6799       -.15269E-06    .72829E-03
  22  Prefactor     .39413E-08    2.8457       -.12464E-05** at limit **
  23  Normalizat    1.3435        .26913       -.12509E-04    .32249E-04
  24  Prefactor     .87047        .15583        .11660E-04    .19576E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 1.13243e-08
  Prefactor  = 2.88771
  Prefactor  = 44.5465
  norm       = 0
  Prefactor  = 8.32667e-10
  Prefactor  = 7.36228
  Prefactor  = 0
  Prefactor  = 11.7779
  Prefactor  = 6.43929e-09
  Prefactor  = 8.41289
  Prefactor  = 7.60003e-07
  norm       = 31.0473
  Prefactor  = 3.01204e-07
  norm       = 0.447713
  norm       = 2.13367
  norm       = 0
  Prefactor  = 1.66533e-10
  norm       = 5.17536
  norm       = 1.03906e-06
  Prefactor  = 4.12089
  Prefactor  = 3.94129e-09
  Normalizat = 1.34348
  Prefactor  = 0.870467
 **********
 **   18 **HESSE 
 **********

 FCN=   6300.288     FROM HESSE     STATUS=OK           441 CALLS     2417 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.0778        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11324E-07    12.802        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8877        33.087        .59645E-03   -1.5674    
   4  Prefactor     44.547        61.926        .15015E-03   -1.5574    
   5  norm           .0000        .76935        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .83267E-09    5.2985        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.3623        2.6736        .36965E-02   -1.5165    
   8  Prefactor      .0000        4.0435        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.778        14.853        .29173E-03   -1.5639    
  10  Prefactor     .64393E-08    3.5071        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.4129        11.346        .34513E-03   -1.5650    
  12  Prefactor     .76000E-06    18.489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          31.047        31.808        .17971E-03   -1.5597    
  14  Prefactor     .30120E-06    73.930        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .44771        .23966        .59830E-03   -1.5695    
  16  norm          2.1337        7.1942        .70559E-03   -1.5679    
  17  norm           .0000        1.8987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .16653E-09    37.433        .13522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.1754        8.1585        .44173E-03   -1.5662    
  20  norm          .10391E-05    18.111        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.1209        5.6853        .50051E-03   -1.5667    
  22  Prefactor     .39413E-08    3.5023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3435        .23569        .68042E-01   -.82278    
  24  Prefactor     .87047        .13345        .44628E-01   -.97181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62066e-06
Minuit parameter uncertainties:
  1  1.00729e-06
  2  0.000762235
  3  19.5495
  4  61.9266
  5  5.07308e-06
  6  0.000131364
  7  2.67367
  8  4.98835e-06
  9  14.8527
  10  0.000300377
  11  11.3458
  12  0.00749719
  13  31.8083
  14  0.00943811
  15  0.239659
  16  7.19421
  17  8.22715e-06
  18  0.00016496
  19  8.15852
  20  0.00867615
  21  5.68527
  22  0.00023536
  23  0.235882
  24  0.133496
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  6.439e-09  3.004e-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:  8.705e-01  1.335e-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.343e+00  2.359e-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: 8.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/434607/likelihoodResults_697852801_698112001_4FGL_J1238.5-1201_daily_bin1769.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) = 6300.28784871
delta logL = -0.000221140491703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6300.2876277
delta logL = -1.24553480418e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22204E-09   1.0000          .0000       .10000E+07
     2 'Index     '    .75781       1.0000          .0000       10.000    
     3 'Normalizat'    1.3435       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87040       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=   6300.288     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      252 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.3106        .42118E-03** at limit **
   2  Index         3.6940        2.0193        .49738E-04     .0000    
   3  Normalizat    1.3435        1.0709       -.15599E-04    .82492E-04
   4  Prefactor     .87047        1.2167        .10823E-04    .14326E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.694
  Normalizat = 1.34348
  Prefactor  = 0.870466
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6300.288     FROM HESSE     STATUS=FAILED         9 CALLS      261 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.3106        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5040        2.3097        .49738E-04   -.26427    
   3  Normalizat    1.3435        1.0709       -.15599E-04   -.82278    
   4  Prefactor     .87047        1.2167        .10823E-04   -.97181    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.18697e-11
Minuit parameter uncertainties:
  1  5.59607e-06
  2  2.08335
  3  1.08951
  4  1.25804
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/434607': 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) = 6300.28762757
delta logL = 9.46783984546e-10

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  0.000e+00  5.596e-06  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  3.694e+00  2.083e+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:  8.705e-01  1.258e+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.343e+00  1.090e+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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/434607/cmap_HighResolution_697852801_698112001_4FGL_J1238.5-1201_daily_bin1769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.60e-03', job_status='DONE', photon_flux_upper_limit='8.41e-08', time_completed='2023-02-15 00:59:29.762681', job_id='434607', GAL2='0.87', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1676451569.76', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='9.47e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1769' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb 15 00:59:29 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 434607: <4FGL_J1238.5-1201_daily_bin1769> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin1769> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Feb 15 00:45:20 2023
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb 15 00:45:21 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb 15 00:45:21 2023
Terminated at Wed Feb 15 00:59:30 2023
Results reported at Wed Feb 15 00:59:30 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin1769 189.625 -12.028 697852801 698112001 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 :                                   617.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            850 sec.

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

