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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin1745
RA = 189.625, Dec = -12.028
tmin = 691632001, tmax = 691891201
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='645408', job_status='RUN', time_executed='2022-12-05 00:35:53.510672', time_epoch_executed='1670229353.51' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/645408

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/645408/ft1_4FGL_J1238.5-1201_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/645408/ft2_4FGL_J1238.5-1201_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/645408/ft1_4FGL_J1238.5-1201_daily_bin1745.fits outfile=/scratch/kocevski/645408/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1745.fits ra=189.625 dec=-12.028 rad=12.0 tmin=691632001.0 tmax=691891201.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 2.35
user 2.15
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/645408/ft2_4FGL_J1238.5-1201_daily_bin1745.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/645408/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/645408/ft1_filtered_4FGL_J1238.5-1201_daily_bin1745.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.49
user 0.31
sys 0.17

Number of photons that the gtmktime cut: 1037

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/645408/ft1_filtered_4FGL_J1238.5-1201_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/645408/ft2_4FGL_J1238.5-1201_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/645408/ltcube_691632001_691891201_4FGL_J1238.5-1201_daily_bin1745.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/645408/ft2_4FGL_J1238.5-1201_daily_bin1745.fits
.....................!
real 12.61
user 12.24
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/645408/ft1_filtered_4FGL_J1238.5-1201_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/645408/ft2_4FGL_J1238.5-1201_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/645408/ltcube_691632001_691891201_4FGL_J1238.5-1201_daily_bin1745.fits outfile=/scratch/kocevski/645408/expmap_691632001_691891201_4FGL_J1238.5-1201_daily_bin1745.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/645408/ltcube_691632001_691891201_4FGL_J1238.5-1201_daily_bin1745.fits
.....................!
real 190.82
user 185.39
sys 5.10

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/645408/ft1_filtered_4FGL_J1238.5-1201_daily_bin1745.fits scfile=/scratch/kocevski/645408/ft2_4FGL_J1238.5-1201_daily_bin1745.fits outfile=/scratch/kocevski/645408/cmap_691632001_691891201_4FGL_J1238.5-1201_daily_bin1745.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/645408/ft1_filtered_4FGL_J1238.5-1201_daily_bin1745.fits scfile=/scratch/kocevski/645408/ft2_4FGL_J1238.5-1201_daily_bin1745.fits outfile=/scratch/kocevski/645408/cmap_HighResolution_691632001_691891201_4FGL_J1238.5-1201_daily_bin1745.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/645408/ft1_filtered_4FGL_J1238.5-1201_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/645408/ft2_4FGL_J1238.5-1201_daily_bin1745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/645408/Model_4FGL_J1238.5-1201_daily_bin1745.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/645408/ft1_filtered_4FGL_J1238.5-1201_daily_bin1745.fits.....................!
real 83.61
user 82.16
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46524E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    .44409E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    .25424E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    .75081E-05   1.0000          .0000       .10000E+07
     5 'norm      '    1.1612       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.6378       1.0000          .0000       .10000E+07
     7 'Prefactor '    4.5172       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4534       1.0000          .0000       .10000E+07
     9 'Prefactor '    5.2092       1.0000          .0000       .10000E+07
    10 'Prefactor '    .37683E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .68183       1.0000          .0000       .10000E+07
    12 'Prefactor '    7.3831       1.0000          .0000       .10000E+07
    13 'norm      '    17.832       1.0000          .0000       .10000E+07
    14 'Prefactor '    .33697E-01   1.0000          .0000       .10000E+07
    15 'norm      '    .21025       1.0000          .0000       .10000E+07
    16 'norm      '    2.9135       1.0000          .0000       .10000E+07
    17 'norm      '    .91038E-08   1.0000          .0000       .10000E+07
    18 'Prefactor '    .20481E-02   1.0000          .0000       .10000E+07
    19 'norm      '    6.3375       1.0000          .0000       .10000E+07
    20 'norm      '    .20859E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    .18646E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    14.626       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.3175       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97555       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=   11148.16     FROM MIGRAD    STATUS=CONVERGED    106 CALLS     1532 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.4289        .21958E-07** at limit **
   2  Prefactor     .83267E-09    6.1909       -.14703E-08** at limit **
   3  Prefactor     .33307E-09    3.5323       -.32707E-07** at limit **
   4  Prefactor     .16875E-06    7.6944        .65820E-07** at limit **
   5  norm          1.1610        1.2622       -.42727E-07   -.52463E-02
   6  Prefactor     1.6373        2.8785       -.12438E-06   -.45869E-02
   7  Prefactor     4.5170        1.5990       -.23725E-06   -.88922E-03
   8  Prefactor     3.4590        3.7273        .43246E-07    .14292E-02
   9  Prefactor     5.2098        1.1092       -.94175E-09    .86056E-02
  10  Prefactor     .92398E-06    3.4651        .74583E-07** at limit **
  11  Prefactor     .66505        .57198        .45520E-08    .23541E-02
  12  Prefactor     7.3866        1.4202       -.30879E-08    .19836E-01
  13  norm          17.891        1.0053       -.90354E-10    .21373E-02
  14  Prefactor     .65148E-06    1.0990        .14736E-07** at limit **
  15  norm          .21025        .12527        .75269E-08** at limit **
  16  norm          2.9075        1.6661        .19758E-07   -.52705E-01
  17  norm          .27756E-09    2.6646       -.42883E-07** at limit **
  18  Prefactor     .17769E-06    10.816        .70955E-07** at limit **
  19  norm          6.3339        1.2842        .41522E-08   -.27891E-01
  20  norm           .0000        2.0275        .31362E-07** at limit **
  21  Prefactor     .27200E-08    3.1198       -.54069E-07** at limit **
  22  Prefactor     14.616        1.1174       -.11412E-09    .19671E-01
  23  Normalizat    1.3176        .19773       -.15608E-05    .24455E-03
  24  Prefactor     .97555        .11860        .22923E-05    .52977E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 8.32667e-10
  Prefactor  = 3.33067e-10
  Prefactor  = 1.68754e-07
  norm       = 1.16097
  Prefactor  = 1.63726
  Prefactor  = 4.51704
  Prefactor  = 3.45898
  Prefactor  = 5.20979
  Prefactor  = 9.23983e-07
  Prefactor  = 0.665045
  Prefactor  = 7.38664
  norm       = 17.8913
  Prefactor  = 6.51479e-07
  norm       = 0.210252
  norm       = 2.90753
  norm       = 2.77556e-10
  Prefactor  = 1.77691e-07
  norm       = 6.33394
  norm       = 0
  Prefactor  = 2.72005e-09
  Prefactor  = 14.6159
  Normalizat = 1.31757
  Prefactor  = 0.975552
 **********
 **   18 **HESSE 
 **********

 FCN=   11148.16     FROM HESSE     STATUS=OK           447 CALLS     1979 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.4228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .83267E-09    6.2143        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .33307E-09    3.5870        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .16875E-06    9.4764        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.1610        1.2647        .10686E-02   -1.5686    
   6  Prefactor     1.6373        2.9129        .82551E-03   -1.5682    
   7  Prefactor     4.5170        1.6014        .47356E-02   -1.5283    
   8  Prefactor     3.4590        3.7372        .54398E-03   -1.5671    
   9  Prefactor     5.2098        8.2572        .44019E-03   -1.5662    
  10  Prefactor     .92398E-06    11.483        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .66505        12.341        .62196E-03   -1.5692    
  12  Prefactor     7.3866        19.814        .36888E-03   -1.5654    
  13  norm          17.891        19.262        .23690E-03   -1.5623    
  14  Prefactor     .65148E-06    67.849        .16261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .21025        .13153        .62746E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9075        7.2801        .59497E-03   -1.5674    
  17  norm          .27756E-09    2.6707        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .17769E-06    12.204        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.3339        7.5931        .39848E-03   -1.5658    
  20  norm           .0000        2.0313        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .27200E-08    3.1889        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.616        8.0969        .26164E-03   -1.5632    
  23  Normalizat    1.3176        .17068        .67622E-01   -.83043    
  24  Prefactor     .97555        .10099        .45961E-01   -.93549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01738e-07
Minuit parameter uncertainties:
  1  4.21028e-06
  2  0.000143399
  3  6.99518e-05
  4  0.00252936
  5  1.26474
  6  2.91289
  7  1.60138
  8  3.73715
  9  8.25717
  10  0.00651475
  11  5.72974
  12  19.8139
  13  19.2625
  14  0.0132972
  15  0.131526
  16  7.28011
  17  5.28093e-05
  18  0.00294504
  19  7.59313
  20  1.4331e-05
  21  0.000186769
  22  8.09686
  23  0.170749
  24  0.101008
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  9.240e-07  6.515e-03  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.756e-01  1.010e-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.318e+00  1.707e-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.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/645408/likelihoodResults_691632001_691891201_4FGL_J1238.5-1201_daily_bin1745.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11148.1632024
delta logL = -0.00333783097813

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11148.1598673
delta logL = -2.67362338491e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12417E-03   1.0000          .0000       .10000E+07
     2 'Index     '    3.5063       1.0000          .0000       10.000    
     3 'Normalizat'    1.3175       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97556       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=   11148.16     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      283 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    1.5671        .42118E-03** at limit **
   2  Index         1.3944        8.7290        .50000       -.90949E-10
   3  Normalizat    1.3176        .27279E-02    .67622E-01   -.60294E-04
   4  Prefactor     .97555        .16485E-02    .45961E-01   -.14022E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 1.39443
  Normalizat = 1.31757
  Prefactor  = 0.975551
 **********
 **   18 **HESSE 
 **********

 FCN=   11148.16     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      316 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    7.9285        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3944        8.9551        .50000       -.80541    
   3  Normalizat    1.3176        .60767E-02    .29917E-03   -.83043    
   4  Prefactor     .97555        .36749E-02    .20531E-03   -.93549    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.44726e-11
Minuit parameter uncertainties:
  1  4.67213e-05
  2  72168
  3  0.00607666
  4  0.0036749
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/645408': 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) = 11148.1598645
delta logL = 3.99450073019e-08

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  5.551e-11  4.672e-05  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  1.394e+00  7.217e+04  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.756e-01  3.675e-03  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.318e+00  6.077e-03  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/645408/cmap_HighResolution_691632001_691891201_4FGL_J1238.5-1201_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.02e-03', job_status='DONE', photon_flux_upper_limit='7.67e-08', time_completed='2022-12-05 00:49:11.925912', job_id='645408', GAL2='0.98', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1670230151.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='3.99e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1745' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 00:49:11 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 645408: <4FGL_J1238.5-1201_daily_bin1745> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin1745> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Dec  5 00:35:20 2022
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:35:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:35:21 2022
Terminated at Mon Dec  5 00:49:12 2022
Results reported at Mon Dec  5 00:49:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin1745 189.625 -12.028 691632001 691891201 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 :                                   801.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            832 sec.

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

