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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin1712
RA = 189.625, Dec = -12.028
tmin = 683078401, tmax = 683337601
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='121927', job_status='RUN', time_executed='2022-09-16 16:56:20.897921', time_epoch_executed='1663372580.9' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/121927

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/121927/ft1_4FGL_J1238.5-1201_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/121927/ft2_4FGL_J1238.5-1201_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/121927/ft1_4FGL_J1238.5-1201_daily_bin1712.fits outfile=/scratch/kocevski/121927/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1712.fits ra=189.625 dec=-12.028 rad=12.0 tmin=683078401.0 tmax=683337601.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.82
user 4.53
sys 0.23

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

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

Number of photons that the gtmktime cut: 827

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/121927/ft1_filtered_4FGL_J1238.5-1201_daily_bin1712.fits" evtable="EVENTS" scfile=/scratch/kocevski/121927/ft2_4FGL_J1238.5-1201_daily_bin1712.fits sctable="SC_DATA" outfile=/scratch/kocevski/121927/ltcube_683078401_683337601_4FGL_J1238.5-1201_daily_bin1712.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/121927/ft2_4FGL_J1238.5-1201_daily_bin1712.fits
.....................!
real 14.80
user 14.39
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/121927/ft1_filtered_4FGL_J1238.5-1201_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/121927/ft2_4FGL_J1238.5-1201_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/121927/ltcube_683078401_683337601_4FGL_J1238.5-1201_daily_bin1712.fits outfile=/scratch/kocevski/121927/expmap_683078401_683337601_4FGL_J1238.5-1201_daily_bin1712.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/121927/ltcube_683078401_683337601_4FGL_J1238.5-1201_daily_bin1712.fits
.....................!
real 192.74
user 186.53
sys 5.35

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/121927/ft1_filtered_4FGL_J1238.5-1201_daily_bin1712.fits scfile=/scratch/kocevski/121927/ft2_4FGL_J1238.5-1201_daily_bin1712.fits outfile=/scratch/kocevski/121927/cmap_683078401_683337601_4FGL_J1238.5-1201_daily_bin1712.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.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/121927/ft1_filtered_4FGL_J1238.5-1201_daily_bin1712.fits scfile=/scratch/kocevski/121927/ft2_4FGL_J1238.5-1201_daily_bin1712.fits outfile=/scratch/kocevski/121927/cmap_HighResolution_683078401_683337601_4FGL_J1238.5-1201_daily_bin1712.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=189.625 yref=-12.028 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/121927/ft1_filtered_4FGL_J1238.5-1201_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/121927/ft2_4FGL_J1238.5-1201_daily_bin1712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/121927/Model_4FGL_J1238.5-1201_daily_bin1712.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/121927/ft1_filtered_4FGL_J1238.5-1201_daily_bin1712.fits.....................!
real 70.52
user 68.81
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96312E-07   1.0000          .0000       .10000E+07
     2 'Prefactor '    8.8604       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.8692       1.0000          .0000       .10000E+07
     4 'Prefactor '    .98824E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .78402       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.6758       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.2327       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .46895E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.0239       1.0000          .0000       .10000E+07
    10 'Prefactor '    9.0618       1.0000          .0000       .10000E+07
    11 'Prefactor '    14.322       1.0000          .0000       .10000E+07
    12 'Prefactor '    .33672       1.0000          .0000       .10000E+07
    13 'norm      '    .16767E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    53.881       1.0000          .0000       .10000E+07
    15 'norm      '    .47024       1.0000          .0000       .10000E+07
    16 'norm      '    3.3317       1.0000          .0000       .10000E+07
    17 'norm      '    .48972E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    41.408       1.0000          .0000       .10000E+07
    19 'norm      '    6.2717       1.0000          .0000       .10000E+07
    20 'norm      '    6.4643       1.0000          .0000       .10000E+07
    21 'Prefactor '    .11793E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    13.303       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.2040       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0365       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=   8838.940     FROM MIGRAD    STATUS=CONVERGED    152 CALLS     2085 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.2704        .80466E-09** at limit **
   2  Prefactor     8.8874        1.5282        .36991E-08    .55589E-02
   3  Prefactor     2.0376        9.5864       -.35500E-06    .74849E-02
   4  Prefactor     .55511E-09    24.918        .90003E-06** at limit **
   5  norm          .77222        1.9919       -.10400E-06   -.33185E-03
   6  Prefactor     2.6751        3.3791        .32451E-07    .38935E-03
   7  Prefactor     7.2336        2.2801       -.17580E-06    .55481E-04
   8  Prefactor     .72164E-09    9.2126       -.49346E-06** at limit **
   9  Prefactor     1.9806        7.1124        .20736E-06    .19099E-03
  10  Prefactor     9.0091        8.7755       -.31829E-06   -.25850E-01
  11  Prefactor     14.330        8.1054       -.56735E-07   -.13511E-01
  12  Prefactor     .30836        4.5902       -.41243E-07   -.17034E-01
  13  norm          .27756E-09    9.4200        .22650E-06** at limit **
  14  Prefactor     53.737        6.4348       -.46028E-07   -.17568E-01
  15  norm          .46968        .22951        .91221E-08    .28138E-02
  16  norm          3.2848        6.2047        .10500E-06    .20360E-03
  17  norm           .0000        2.2278        .11042E-06** at limit **
  18  Prefactor     42.243        62.876        .55772E-06   -.64499E-02
  19  norm          6.2606        2.8585       -.27911E-07    .67221E-02
  20  norm          6.4295        8.6710       -.14912E-06   -.11080E-02
  21  Prefactor      .0000        7.6947       -.28912E-06** at limit **
  22  Prefactor     13.215        7.9061       -.11714E-06    .33211E-01
  23  Normalizat    1.2035        .24812        .21847E-05    .50970E-05
  24  Prefactor     1.0369        .14331       -.20153E-08    .93576E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 8.88735
  Prefactor  = 2.03758
  Prefactor  = 5.55112e-10
  norm       = 0.772223
  Prefactor  = 2.67506
  Prefactor  = 7.23364
  Prefactor  = 7.21645e-10
  Prefactor  = 1.98058
  Prefactor  = 9.00914
  Prefactor  = 14.3303
  Prefactor  = 0.308361
  norm       = 2.77556e-10
  Prefactor  = 53.7369
  norm       = 0.46968
  norm       = 3.28477
  norm       = 0
  Prefactor  = 42.2425
  norm       = 6.26065
  norm       = 6.42954
  Prefactor  = 0
  Prefactor  = 13.2149
  Normalizat = 1.20347
  Prefactor  = 1.03692
 **********
 **   18 **HESSE 
 **********

 FCN=   8838.940     FROM HESSE     STATUS=OK           461 CALLS     2546 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.2665        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.8874        12.760        .33649E-03   -1.5648    
   3  Prefactor     2.0376        17.905        .76156E-03   -1.5679    
   4  Prefactor     .55511E-09    24.921        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .77222        2.0097        .54134E-03   -1.5690    
   6  Prefactor     2.6751        3.3948        .62272E-03   -1.5675    
   7  Prefactor     7.2336        2.2823        .37287E-02   -1.5170    
   8  Prefactor     .72164E-09    9.2484        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.9806        7.1546        .72706E-03   -1.5680    
  10  Prefactor     9.0091        9.5074        .33270E-03   -1.5648    
  11  Prefactor     14.330        8.1482        .26441E-03   -1.5632    
  12  Prefactor     .30836        17.323        .14623E-01   -1.5697    
  13  norm          .27756E-09    9.4702        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     53.737        60.697        .13624E-03   -1.5561    
  15  norm          .46968        .23814        .66425E-03   -1.5694    
  16  norm          3.2848        6.2219        .55428E-03   -1.5672    
  17  norm           .0000        2.2293        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     42.243        63.578        .15542E-03   -1.5578    
  19  norm          6.2606        9.9924        .40059E-03   -1.5658    
  20  norm          6.4295        8.8272        .39450E-03   -1.5657    
  21  Prefactor      .0000        7.6827        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.215        9.8963        .27437E-03   -1.5635    
  23  Normalizat    1.2035        .21267        .73228E-01   -.86496    
  24  Prefactor     1.0369        .12146        .40778E-01   -.91509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80042e-08
Minuit parameter uncertainties:
  1  1.05758e-07
  2  12.7596
  3  12.0803
  4  0.00023189
  5  2.00969
  6  3.39482
  7  2.28233
  8  0.000163467
  9  7.15463
  10  9.50745
  11  8.14818
  12  4.6224
  13  0.000100955
  14  60.6976
  15  0.238144
  16  6.22194
  17  4.25802e-06
  18  63.5786
  19  9.99246
  20  8.82721
  21  8.98909e-06
  22  9.89634
  23  0.21282
  24  0.12149
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.037e+00  1.215e-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.203e+00  2.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.19
Ra Dec: 189.625 -12.028
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 4.42e-08 +/- 4.66e-08
Energy Flux (Fixed Index): 1.10e-05 +/- 1.16e-05

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

Saving results to:
/scratch/kocevski/121927/likelihoodResults_683078401_683337601_4FGL_J1238.5-1201_daily_bin1712.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) = 8838.7257793
delta logL = 0.213966420035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8838.72390675
delta logL = 0.215838968437

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8838.724     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      285 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4335        10.007        .15816E-04    .42265E-03
   2  Index         3.2676        1.1739        .95710E-02    .19753E-04
   3  Normalizat    1.1773        .24250        .32718E-03   -.80385E-03
   4  Prefactor     1.0471        .14186        .20471E-03   -.11170E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.43348
  Index      = 3.26764
  Normalizat = 1.17728
  Prefactor  = 1.0471
 **********
 **   18 **HESSE 
 **********

 FCN=   8838.724     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4335        8.6544        .63266E-06   -1.5657    
   2  Index         3.2676        1.0166        .38284E-03   -.35381    
   3  Normalizat    1.1773        .24269        .65435E-04   -.87308    
   4  Prefactor     1.0471        .14185        .40942E-04   -.91175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.11335e-10
Minuit parameter uncertainties:
  1  8.65443
  2  1.02476
  3  0.242926
  4  0.141903
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/121927': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8838.72390602
delta logL = 0.215839696823

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  6.433e+00  8.654e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  3.268e+00  1.025e+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:  1.047e+00  1.419e-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.177e+00  2.429e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.66
Ra Dec: 189.625 -12.028
Photon Index (Free Index): 3.27 +/- 1.02
Photon Flux (Free Index): 6.32e-08 +/- 5.84e-08
Energy Flux (Free Index): 1.13e-05 +/- 1.02e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/121927/cmap_HighResolution_683078401_683337601_4FGL_J1238.5-1201_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', comment='SUCCESS', photon_flux='4.42e-08', energy_flux2='1.13e-05', photon_flux_error='4.66e-08', dlogl='2.16e-01', energy_flux='1.10e-05', photon_flux2='6.32e-08', job_status='DONE', time_completed='2022-09-16 17:09:50.506452', photon_index_error2='1.02', photon_index2='3.27', ts='1.19', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='1.02e-05', EG='1.20', time_epoch_completed='1663373390.51', return_code='0', job_id='121927', GAL2='1.05', EG2='1.18', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='5.84e-08', ts2='1.66', photon_index='2.66' WHERE bin_id='1712' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:09:50 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 121927: <4FGL_J1238.5-1201_daily_bin1712> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin1712> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 16:55:18 2022
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:56:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 16:56:08 2022
Terminated at Fri Sep 16 17:09:51 2022
Results reported at Fri Sep 16 17:09:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin1712 189.625 -12.028 683078401 683337601 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 :                                   810.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            873 sec.

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

