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


Performing analysis on: 4FGL_J0047.9+3947_daily_bin1751
RA = 11.9763, Dec = 39.7975
tmin = 693187201, tmax = 693446401
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='67038', job_status='RUN', time_executed='2022-12-23 00:05:41.862600', time_epoch_executed='1671782741.86' WHERE source_name='4FGL J0047.9+3947' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/67038

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/67038/ft1_4FGL_J0047.9+3947_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/67038/ft2_4FGL_J0047.9+3947_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/67038/ft1_4FGL_J0047.9+3947_daily_bin1751.fits outfile=/scratch/kocevski/67038/ft1_filteredMKT_4FGL_J0047.9+3947_daily_bin1751.fits ra=11.9763 dec=39.7975 rad=12.0 tmin=693187201.0 tmax=693446401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.92
user 3.47
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/67038/ft2_4FGL_J0047.9+3947_daily_bin1751.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/67038/ft2_4FGL_J0047.9+3947_daily_bin1751.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/67038/ft1_filteredMKT_4FGL_J0047.9+3947_daily_bin1751.fits evtable="EVENTS" outfile="/scratch/kocevski/67038/ft1_filtered_4FGL_J0047.9+3947_daily_bin1751.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.53
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 795

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/67038/ft1_filtered_4FGL_J0047.9+3947_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/67038/ft2_4FGL_J0047.9+3947_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/67038/ltcube_693187201_693446401_4FGL_J0047.9+3947_daily_bin1751.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/67038/ft2_4FGL_J0047.9+3947_daily_bin1751.fits
.....................!
real 12.61
user 11.90
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/67038/ft1_filtered_4FGL_J0047.9+3947_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/67038/ft2_4FGL_J0047.9+3947_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/67038/ltcube_693187201_693446401_4FGL_J0047.9+3947_daily_bin1751.fits outfile=/scratch/kocevski/67038/expmap_693187201_693446401_4FGL_J0047.9+3947_daily_bin1751.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/67038/ltcube_693187201_693446401_4FGL_J0047.9+3947_daily_bin1751.fits
.....................!
real 191.21
user 185.26
sys 4.41

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

Setting source of interest to:
4FGL J0047.9+3947 @ 11.9763 39.7975

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/67038/ft1_filtered_4FGL_J0047.9+3947_daily_bin1751.fits scfile=/scratch/kocevski/67038/ft2_4FGL_J0047.9+3947_daily_bin1751.fits outfile=/scratch/kocevski/67038/cmap_693187201_693446401_4FGL_J0047.9+3947_daily_bin1751.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=11.9763 yref=39.7975 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/67038/ft1_filtered_4FGL_J0047.9+3947_daily_bin1751.fits scfile=/scratch/kocevski/67038/ft2_4FGL_J0047.9+3947_daily_bin1751.fits outfile=/scratch/kocevski/67038/cmap_HighResolution_693187201_693446401_4FGL_J0047.9+3947_daily_bin1751.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=11.9763 yref=39.7975 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/67038/ft1_filtered_4FGL_J0047.9+3947_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/67038/ft2_4FGL_J0047.9+3947_daily_bin1751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/67038/Model_4FGL_J0047.9+3947_daily_bin1751.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/67038/ft1_filtered_4FGL_J0047.9+3947_daily_bin1751.fits.....................!
real 87.42
user 84.42
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/67038/ft1_filtered_4FGL_J0047.9+3947_daily_bin1751.fits', '/scratch/kocevski/67038/ft2_4FGL_J0047.9+3947_daily_bin1751.fits', expMap='/scratch/kocevski/67038/expmap_693187201_693446401_4FGL_J0047.9+3947_daily_bin1751.fits', expCube='/scratch/kocevski/67038/ltcube_693187201_693446401_4FGL_J0047.9+3947_daily_bin1751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/67038/Model_4FGL_J0047.9+3947_daily_bin1751.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0047.9+3947'

4FGL J0047.9+3947
   Spectrum: PowerLaw
158    Prefactor:  1.715e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
159        Index:  1.981e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
160        Scale:  2.140e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/67038/ft1_filtered_4FGL_J0047.9+3947_daily_bin1751.fits
Spacecraft file(s): /scratch/kocevski/67038/ft2_4FGL_J0047.9+3947_daily_bin1751.fits
Exposure map: /scratch/kocevski/67038/expmap_693187201_693446401_4FGL_J0047.9+3947_daily_bin1751.fits
Exposure cube: /scratch/kocevski/67038/ltcube_693187201_693446401_4FGL_J0047.9+3947_daily_bin1751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/67038/Model_4FGL_J0047.9+3947_daily_bin1751.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) = 8683.80091447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29837E-03   1.0000          .0000       .10000E+07
     2 'norm      '    9.2961       1.0000          .0000       .10000E+07
     3 'Prefactor '    .90480E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    7.3925       1.0000          .0000       .10000E+07
     5 'Prefactor '    7.1160       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10463E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .49729       1.0000          .0000       .10000E+07
     8 'Prefactor '    .98590E-02   1.0000          .0000       .10000E+07
     9 'norm      '    4.2966       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.3471       1.0000          .0000       .10000E+07
    11 'Prefactor '    .73074E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    5.5747       1.0000          .0000       .10000E+07
    13 'Prefactor '    9.3163       1.0000          .0000       .10000E+07
    14 'norm      '    2.9469       1.0000          .0000       .10000E+07
    15 'norm      '    1.2298       1.0000          .0000       .10000E+07
    16 'Prefactor '    42.874       1.0000          .0000       .10000E+07
    17 'norm      '    2.5844       1.0000          .0000       .10000E+07
    18 'norm      '    4.0003       1.0000          .0000       .10000E+07
    19 'Prefactor '    .15314       1.0000          .0000       .10000E+07
    20 'Prefactor '    .20175E-03   1.0000          .0000       .10000E+07
    21 'Normalizat'    .87417       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93846       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8683.787     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     1836 TOTAL
                     EDM=   .13E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.4471        .26538E-06** at limit **
   2  norm          9.2777        11.459       -.16549E-06    .38912E-05
   3  Prefactor      .0000        4.3941       -.73438E-07** at limit **
   4  Prefactor     7.4024        5.8761       -.20194E-08    .11907E-04
   5  Prefactor     7.1194        3.3077        .70521E-07   -.22449E-03
   6  Prefactor      .0000        9.5443        .25297E-07** at limit **
   7  Prefactor      .0000        109.76       -.13970E-05** at limit **
   8  Prefactor      .0000        17.354       -.17689E-06** at limit **
   9  norm          4.2974        2.3199        .52988E-07   -.16898E-03
  10  Prefactor     1.3469        3.1328        .45504E-06    .47726E-04
  11  Prefactor      .0000        10.554        .43736E-06** at limit **
  12  Prefactor     5.5730        9.6380        .28756E-06   -.34490E-03
  13  Prefactor     9.3103        1.6258        .18049E-07    .40283E-02
  14  norm          2.9464        1.5557       -.21154E-07    .60730E-04
  15  norm          1.2298        2.2313        .36165E-07    .54455E-04
  16  Prefactor     44.118        40.814        .16239E-06   -.93189E-04
  17  norm          2.5838        1.2336       -.27253E-07    .28367E-03
  18  norm          3.9963        1.3649       -.31221E-07    .47297E-03
  19  Prefactor      .0000        33.592        .12259E-07** at limit **
  20  Prefactor      .0000        3.1271       -.24963E-06** at limit **
  21  Normalizat    .87485        .21633       -.42925E-05   -.80058E-05
  22  Prefactor     .93823        .10890        .16988E-05   -.14724E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 9.27772
  Prefactor  = 0
  Prefactor  = 7.40237
  Prefactor  = 7.11943
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 4.29741
  Prefactor  = 1.34692
  Prefactor  = 0
  Prefactor  = 5.57298
  Prefactor  = 9.31033
  norm       = 2.94639
  norm       = 1.22979
  Prefactor  = 44.1182
  norm       = 2.58378
  norm       = 3.99635
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 0.874855
  Prefactor  = 0.938234
 **********
 **   18 **HESSE 
 **********

 FCN=   8683.787     FROM HESSE     STATUS=OK           392 CALLS     2228 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.4574        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.2777        11.467        .32846E-03   -1.5647    
   3  Prefactor      .0000        4.3881        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.4024        5.8839        .36864E-03   -1.5654    
   5  Prefactor     7.1194        3.3105        .37581E-03   -1.5655    
   6  Prefactor      .0000        9.5333        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        105.97        .78983E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        17.380        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.2974        2.3206        .48578E-03   -1.5667    
  10  Prefactor     1.3469        3.1909        .94287E-03   -1.5685    
  11  Prefactor      .0000        10.547        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.5730        9.9490        .42526E-03   -1.5661    
  13  Prefactor     9.3103        19.169        .32810E-03   -1.5647    
  14  norm          2.9464        1.5550        .59137E-03   -1.5674    
  15  norm          1.2298        2.2671        .10139E-02   -1.5686    
  16  Prefactor     44.118        40.783        .15274E-03   -1.5575    
  17  norm          2.5838        1.2313        .63452E-03   -1.5676    
  18  norm          3.9963        1.3667        .50400E-03   -1.5668    
  19  Prefactor      .0000        33.366        .12677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        3.1255        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .87485        .18855        .78286E-01   -.97349    
  22  Prefactor     .93823        .93539E-01    .45493E-01   -.94818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52689e-08
Minuit parameter uncertainties:
  1  3.83734e-06
  2  11.4674
  3  1.01136e-06
  4  5.88388
  5  3.31046
  6  1.04647e-06
  7  1.11228e-05
  8  2.0754e-05
  9  2.32059
  10  3.19086
  11  3.35194e-06
  12  9.94907
  13  19.1694
  14  1.55504
  15  2.26715
  16  40.7837
  17  1.23129
  18  1.36666
  19  3.21648e-06
  20  4.30532e-07
  21  0.188689
  22  0.0935552
Done.

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

Extracting fit parameters...

4FGL J0047.9+3947
   Spectrum: PowerLaw
158    Prefactor:  1.347e+00  3.191e+00  0.000e+00  1.000e+06 ( 1.000e-13)
159        Index:  1.981e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
160        Scale:  2.140e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  9.382e-01  9.356e-02  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  8.749e-01  1.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.26
Ra Dec: 11.976 39.797
Photon Flux Upper Limit: 5.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/67038/likelihoodResults_693187201_693446401_4FGL_J0047.9+3947_daily_bin1751.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) = 8683.78532042
delta logL = 0.00127524875461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8683.78493917
delta logL = 0.00165649734117

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2539       1.0000          .0000       .10000E+07
     2 'Index     '    2.0599       1.0000          .0000       10.000    
     3 'Normalizat'    .87411       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93845       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+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=   8683.785     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      237 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2538        3.7592        .23856E-04   -.10370E-02
   2  Index         2.0599        1.5067        .15858E-01   -.97615E-05
   3  Normalizat    .87411        .20665        .34667E-03   -.40763E-03
   4  Prefactor     .93845        .10700        .17284E-03   -.81204E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.25381
  Index      = 2.05992
  Normalizat = 0.874105
  Prefactor  = 0.938445
 **********
 **   18 **HESSE 
 **********

 FCN=   8683.785     FROM HESSE     STATUS=OK            25 CALLS      262 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2538        3.4185        .95424E-06   -1.5686    
   2  Index         2.0599        1.3769        .63431E-03   -.62860    
   3  Normalizat    .87411        .20661        .13867E-04   -.97376    
   4  Prefactor     .93845        .10702        .34568E-04   -.94810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71994e-10
Minuit parameter uncertainties:
  1  3.4185
  2  1.40497
  3  0.206795
  4  0.10704
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/67038': 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) = 8683.78493917
delta logL = 0.00165649771043

Extracting fit parameters...

4FGL J0047.9+3947
   Spectrum: PowerLaw
158    Prefactor:  1.254e+00  3.419e+00  0.000e+00  1.000e+06 ( 1.000e-13)
159        Index:  2.060e+00  1.405e+00  0.000e+00  1.000e+01 (-1.000e+00)
160        Scale:  2.140e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  9.384e-01  1.070e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  8.741e-01  2.068e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.26
Ra Dec: 11.976 39.797

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/67038/cmap_HighResolution_693187201_693446401_4FGL_J0047.9+3947_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.90e-03', job_status='DONE', photon_flux_upper_limit='5.21e-08', time_completed='2022-12-23 00:17:34.593747', job_id='67038', GAL2='0.94', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1671783454.59', return_code2='0', ts='0.26', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.66e-03', ts2='0.26', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1751' AND source_name='4FGL J0047.9+3947' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 00:17:34 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 67038: <4FGL_J0047.9+3947_daily_bin1751> in cluster <slac> Done

Job <4FGL_J0047.9+3947_daily_bin1751> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Dec 23 00:04:42 2022
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:04:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:04:42 2022
Terminated at Fri Dec 23 00:17:35 2022
Results reported at Fri Dec 23 00:17:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0047.9+3947_daily_bin1751 11.9763 39.7975 693187201 693446401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0047.9+3947 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   678.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             317.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            773 sec.

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

