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 145 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2147.1+0931_daily_bin1702
RA = 326.783, Dec = 9.5181
tmin = 680486401, tmax = 680745601
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='257675', job_status='RUN', time_executed='2022-07-29 01:35:16.491493', time_epoch_executed='1659083716.49' WHERE source_name='4FGL J2147.1+0931' and cadence='daily' and bin_id='1702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/257675

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/257675/ft1_4FGL_J2147.1+0931_daily_bin1702.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/257675/ft2_4FGL_J2147.1+0931_daily_bin1702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/257675/ft1_4FGL_J2147.1+0931_daily_bin1702.fits outfile=/scratch/kocevski/257675/ft1_filteredMKT_4FGL_J2147.1+0931_daily_bin1702.fits ra=326.783 dec=9.5181 rad=12.0 tmin=680486401.0 tmax=680745601.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.92
user 2.70
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/257675/ft2_4FGL_J2147.1+0931_daily_bin1702.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/257675/ft2_4FGL_J2147.1+0931_daily_bin1702.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/257675/ft1_filteredMKT_4FGL_J2147.1+0931_daily_bin1702.fits evtable="EVENTS" outfile="/scratch/kocevski/257675/ft1_filtered_4FGL_J2147.1+0931_daily_bin1702.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.34
sys 0.15

Number of photons that the gtmktime cut: 306

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/257675/ft1_filtered_4FGL_J2147.1+0931_daily_bin1702.fits" evtable="EVENTS" scfile=/scratch/kocevski/257675/ft2_4FGL_J2147.1+0931_daily_bin1702.fits sctable="SC_DATA" outfile=/scratch/kocevski/257675/ltcube_680486401_680745601_4FGL_J2147.1+0931_daily_bin1702.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/257675/ft2_4FGL_J2147.1+0931_daily_bin1702.fits
.....................!
real 13.41
user 13.02
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/257675/ft1_filtered_4FGL_J2147.1+0931_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/257675/ft2_4FGL_J2147.1+0931_daily_bin1702.fits sctable="SC_DATA" expcube=/scratch/kocevski/257675/ltcube_680486401_680745601_4FGL_J2147.1+0931_daily_bin1702.fits outfile=/scratch/kocevski/257675/expmap_680486401_680745601_4FGL_J2147.1+0931_daily_bin1702.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/257675/ltcube_680486401_680745601_4FGL_J2147.1+0931_daily_bin1702.fits
.....................!
real 191.56
user 185.10
sys 5.92

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 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J2147.1+0931 @ 326.783 9.5181

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/257675/ft1_filtered_4FGL_J2147.1+0931_daily_bin1702.fits scfile=/scratch/kocevski/257675/ft2_4FGL_J2147.1+0931_daily_bin1702.fits outfile=/scratch/kocevski/257675/cmap_680486401_680745601_4FGL_J2147.1+0931_daily_bin1702.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=326.783 yref=9.5181 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/257675/ft1_filtered_4FGL_J2147.1+0931_daily_bin1702.fits scfile=/scratch/kocevski/257675/ft2_4FGL_J2147.1+0931_daily_bin1702.fits outfile=/scratch/kocevski/257675/cmap_HighResolution_680486401_680745601_4FGL_J2147.1+0931_daily_bin1702.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=326.783 yref=9.5181 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.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/257675/ft1_filtered_4FGL_J2147.1+0931_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/257675/ft2_4FGL_J2147.1+0931_daily_bin1702.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/257675/Model_4FGL_J2147.1+0931_daily_bin1702.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/257675/ft1_filtered_4FGL_J2147.1+0931_daily_bin1702.fits.....................!
real 43.53
user 42.18
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/257675/ft1_filtered_4FGL_J2147.1+0931_daily_bin1702.fits', '/scratch/kocevski/257675/ft2_4FGL_J2147.1+0931_daily_bin1702.fits', expMap='/scratch/kocevski/257675/expmap_680486401_680745601_4FGL_J2147.1+0931_daily_bin1702.fits', expCube='/scratch/kocevski/257675/ltcube_680486401_680745601_4FGL_J2147.1+0931_daily_bin1702.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/257675/Model_4FGL_J2147.1+0931_daily_bin1702.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2147.1+0931'

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  2.902e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
298        alpha:  2.432e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
299         beta:  9.991e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  4.060e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/257675/ft1_filtered_4FGL_J2147.1+0931_daily_bin1702.fits
Spacecraft file(s): /scratch/kocevski/257675/ft2_4FGL_J2147.1+0931_daily_bin1702.fits
Exposure map: /scratch/kocevski/257675/expmap_680486401_680745601_4FGL_J2147.1+0931_daily_bin1702.fits
Exposure cube: /scratch/kocevski/257675/ltcube_680486401_680745601_4FGL_J2147.1+0931_daily_bin1702.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/257675/Model_4FGL_J2147.1+0931_daily_bin1702.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) = 3700.42348276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.4063       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    197.04       1.0000         .10000E-03   10000.    
     6 'norm      '    8.0667       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.998       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11633E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .20619E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    40.677       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    63.081       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10576E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    40.060       1.0000         .10000E-03   10000.    
    26 'norm      '    .96274       1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.224       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .76056       1.0000         .10000E-03   10000.    
    29 'Prefactor '    18.091       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .41193       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .95871       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3700.307     FROM MIGRAD    STATUS=CONVERGED    803 CALLS     4759 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3707       -.41601E-08** at limit **
   2  Prefactor     6.4334        124.58       -.37905E-05   -.10797E-05
   3  Prefactor     .10000E-03    53.726        .15773E-05** at limit **
   4  Prefactor     .10000E-03    82.994        .46777E-06** at limit **
   5  Prefactor     196.89        435.25       -.10614E-05   -.57734E-05
   6  norm          8.0673        4.9847       -.13020E-07    .62015E-04
   7  Prefactor     24.010        79.522       -.15686E-06   -.19403E-05
   8  Prefactor     .10000E-03    10.391        .93555E-07** at limit **
   9  Prefactor     .10000E-03    11.180       -.38809E-06** at limit **
  10  Prefactor     .10000E-03    12.932       -.22610E-06** at limit **
  11  Prefactor     .10000E-03    82.258       -.29528E-06** at limit **
  12  Prefactor     .10000E-03    187.56       -.13430E-05** at limit **
  13  norm          .10001E-03    2.1824       -.85274E-06** at limit **
  14  Prefactor     .10000E-03    92.970        .13837E-06** at limit **
  15  Prefactor     .10000E-03    98.204        .23532E-06** at limit **
  16  norm          .10000E-03    2.4452        .25479E-07** at limit **
  17  norm          40.683        40.432       -.26127E-06    .63470E-06
  18  Prefactor     .10000E-03    66.797       -.71737E-06** at limit **
  19  Prefactor     63.046        41.511        .75197E-06    .18056E-03
  20  Prefactor     .10000E-03    23.773       -.11085E-06** at limit **
  21  norm          .10000E-03    .51228       -.28061E-06** at limit **
  22  Prefactor     .10000E-03    104.76        .15762E-05** at limit **
  23  Prefactor     .10000E-03    26.594        .11889E-06** at limit **
  24  Prefactor     .10000E-03    40.063        .18856E-06** at limit **
  25  Prefactor     40.091        69.690       -.50516E-06    .52862E-05
  26  norm          .96276        12.431        .21418E-05   -.54281E-04
  27  Prefactor     12.225        17.124       -.25662E-06   -.12897E-04
  28  Prefactor     .76060        .33733       -.14510E-07   -.20182E-03
  29  Prefactor     18.089        16.895       -.47101E-07   -.13013E-04
  30  Normalizat    .41157        .40114        .50794E-05    .97205E-04
  31  Prefactor     .95878        .16319       -.85399E-06    .35907E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.43336
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 196.886
  norm       = 8.06732
  Prefactor  = 24.0095
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 40.6835
  Prefactor  = 0.0001
  Prefactor  = 63.0458
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.0907
  norm       = 0.962758
  Prefactor  = 12.2248
  Prefactor  = 0.760603
  Prefactor  = 18.0891
  Normalizat = 0.411568
  Prefactor  = 0.958783
 **********
 **   18 **HESSE 
 **********

 FCN=   3700.307     FROM HESSE     STATUS=OK           612 CALLS     5371 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3843        .16129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.4334        124.91        .15857E-03   -1.5201    
   3  Prefactor     .10000E-03    53.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    83.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     196.89        434.76        .14391E-03   -1.2892    
   6  norm          8.0673        4.9793        .10286E-03   -1.5140    
   7  Prefactor     24.010        79.134        .81769E-04   -1.4728    
   8  Prefactor     .10000E-03    10.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    82.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    187.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    9.0556        .15204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    92.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    98.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.4823        .92743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          40.683        40.263        .62850E-04   -1.4431    
  18  Prefactor     .10000E-03    68.943        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     63.046        40.588        .50524E-04   -1.4118    
  20  Prefactor     .10000E-03    23.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .54970        .86380E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    105.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    26.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    40.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     40.091        68.802        .63330E-04   -1.4441    
  26  norm          .96276        11.337        .37706E-03   -1.5512    
  27  Prefactor     12.225        17.108        .11457E-03   -1.5009    
  28  Prefactor     .76060        .33675        .21749E-04   -1.5534    
  29  Prefactor     18.089        16.940        .94166E-04   -1.4857    
  30  Normalizat    .41157        .40136        .52207E-03   -1.1671    
  31  Prefactor     .95878        .17354        .15690E-03   -.94116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37827e-09
Minuit parameter uncertainties:
  1  3.81403e-06
  2  56.833
  3  0.000107771
  4  5.01542e-07
  5  442.191
  6  4.97954
  7  79.4831
  8  7.15701e-06
  9  3.10799e-05
  10  1.05436e-05
  11  2.54165e-05
  12  0.000721315
  13  0.000631429
  14  0.000113919
  15  0.000149614
  16  4.6915e-06
  17  40.2903
  18  0.000147067
  19  40.6058
  20  4.84729e-05
  21  3.73072e-06
  22  9.79004e-05
  23  4.38191e-05
  24  2.85298e-05
  25  68.9389
  26  6.60887
  27  17.1144
  28  0.336754
  29  16.9446
  30  0.404216
  31  0.173638
Done.

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

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  1.000e-04  4.692e-06  1.000e-04  1.000e+04 ( 1.000e-11)
298        alpha:  2.432e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
299         beta:  9.991e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  4.060e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  9.588e-01  1.736e-01  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  4.116e-01  4.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 326.783 9.518
Photon Flux Upper Limit: 1.61e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/257675/likelihoodResults_680486401_680745601_4FGL_J2147.1+0931_daily_bin1702.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) = 3700.30937803
delta logL = -0.00192029481832

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3700.30745776
delta logL = -2.58519321505e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4417       1.0000          .0000       5.0000    
     3 'Normalizat'    .41156       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95881       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+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=   3700.307     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      237 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    122.70        .93037E-02** at limit **
   2  alpha         2.6829        3.8316        .16466        .15189E-07
   3  Normalizat    .41157        .56872E-01    .52207E-03   -.22563E-03
   4  Prefactor     .95878        .25676E-01    .15690E-03   -.74553E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.68286
  Normalizat = 0.411565
  Prefactor  = 0.958782
 **********
 **   18 **HESSE 
 **********

 FCN=   3700.307     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6057        .18929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6829        3.4346        .65865E-02    .73210E-01
   3  Normalizat    .41157        .37535        .20883E-04   -1.1671    
   4  Prefactor     .95878        .17071        .31379E-04   -.94116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15435e-10
Minuit parameter uncertainties:
  1  8.16406e-06
  2  182.741
  3  0.377681
  4  0.170801
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/257675': 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) = 3700.30745679
delta logL = 9.49244167714e-07

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  1.000e-04  8.164e-06  1.000e-04  1.000e+04 ( 1.000e-11)
298        alpha:  2.683e+00  1.827e+02  0.000e+00  5.000e+00 ( 1.000e+00)
299         beta:  9.991e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  4.060e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  9.588e-01  1.708e-01  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  4.116e-01  3.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 326.783 9.518

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/257675/cmap_HighResolution_680486401_680745601_4FGL_J2147.1+0931_daily_bin1702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.52e-05', job_status='DONE', photon_flux_upper_limit='1.61e-07', time_completed='2022-07-29 01:45:58.162954', job_id='257675', GAL2='0.96', fit_tolerance='1e-08', EG2='0.41', EG='0.41', time_epoch_completed='1659084358.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='9.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1702' AND source_name='4FGL J2147.1+0931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 29 01:45:58 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 257675: <4FGL_J2147.1+0931_daily_bin1702> in cluster <slac> Done

Job <4FGL_J2147.1+0931_daily_bin1702> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Jul 29 01:30:32 2022
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 29 01:32:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 29 01:32:42 2022
Terminated at Fri Jul 29 01:45:59 2022
Results reported at Fri Jul 29 01:45:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2147.1+0931_daily_bin1702 326.783 9.5181 680486401 680745601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2147.1+0931 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   644.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            927 sec.

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

