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


Performing analysis on: 4FGL_J0047.9+3947_daily_bin1673
RA = 11.9763, Dec = 39.7975
tmin = 672969601, tmax = 673228801
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='350821', job_status='RUN', time_executed='2022-05-03 00:09:51.959739', time_epoch_executed='1651561791.96' WHERE source_name='4FGL J0047.9+3947' and cadence='daily' and bin_id='1673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/350821

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/350821/ft1_4FGL_J0047.9+3947_daily_bin1673.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/350821/ft2_4FGL_J0047.9+3947_daily_bin1673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/350821/ft1_4FGL_J0047.9+3947_daily_bin1673.fits outfile=/scratch/kocevski/350821/ft1_filteredMKT_4FGL_J0047.9+3947_daily_bin1673.fits ra=11.9763 dec=39.7975 rad=12.0 tmin=672969601.0 tmax=673228801.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.99
user 2.76
sys 0.21

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

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

Number of photons that the gtmktime cut: 514

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/350821/ft1_filtered_4FGL_J0047.9+3947_daily_bin1673.fits" evtable="EVENTS" scfile=/scratch/kocevski/350821/ft2_4FGL_J0047.9+3947_daily_bin1673.fits sctable="SC_DATA" outfile=/scratch/kocevski/350821/ltcube_672969601_673228801_4FGL_J0047.9+3947_daily_bin1673.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/350821/ft2_4FGL_J0047.9+3947_daily_bin1673.fits
.....................!
real 15.47
user 14.99
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/350821/ft1_filtered_4FGL_J0047.9+3947_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/350821/ft2_4FGL_J0047.9+3947_daily_bin1673.fits sctable="SC_DATA" expcube=/scratch/kocevski/350821/ltcube_672969601_673228801_4FGL_J0047.9+3947_daily_bin1673.fits outfile=/scratch/kocevski/350821/expmap_672969601_673228801_4FGL_J0047.9+3947_daily_bin1673.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/350821/ltcube_672969601_673228801_4FGL_J0047.9+3947_daily_bin1673.fits
.....................!
real 191.47
user 186.00
sys 4.80

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/350821/ft1_filtered_4FGL_J0047.9+3947_daily_bin1673.fits scfile=/scratch/kocevski/350821/ft2_4FGL_J0047.9+3947_daily_bin1673.fits outfile=/scratch/kocevski/350821/cmap_672969601_673228801_4FGL_J0047.9+3947_daily_bin1673.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.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/350821/ft1_filtered_4FGL_J0047.9+3947_daily_bin1673.fits scfile=/scratch/kocevski/350821/ft2_4FGL_J0047.9+3947_daily_bin1673.fits outfile=/scratch/kocevski/350821/cmap_HighResolution_672969601_673228801_4FGL_J0047.9+3947_daily_bin1673.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.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/350821/ft1_filtered_4FGL_J0047.9+3947_daily_bin1673.fits', '/scratch/kocevski/350821/ft2_4FGL_J0047.9+3947_daily_bin1673.fits', expMap='/scratch/kocevski/350821/expmap_672969601_673228801_4FGL_J0047.9+3947_daily_bin1673.fits', expCube='/scratch/kocevski/350821/ltcube_672969601_673228801_4FGL_J0047.9+3947_daily_bin1673.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/350821/Model_4FGL_J0047.9+3947_daily_bin1673.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  1.000e-04  1.000e+04 ( 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/350821/ft1_filtered_4FGL_J0047.9+3947_daily_bin1673.fits
Spacecraft file(s): /scratch/kocevski/350821/ft2_4FGL_J0047.9+3947_daily_bin1673.fits
Exposure map: /scratch/kocevski/350821/expmap_672969601_673228801_4FGL_J0047.9+3947_daily_bin1673.fits
Exposure cube: /scratch/kocevski/350821/ltcube_672969601_673228801_4FGL_J0047.9+3947_daily_bin1673.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/350821/Model_4FGL_J0047.9+3947_daily_bin1673.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) = 5458.60724171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44306E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.719       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6122       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.875       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2229       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.241       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.6605       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3866       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.608       1.0000         .10000E-03   10000.    
    15 'Prefactor '    144.57       1.0000         .10000E-03   10000.    
    16 'norm      '    3.0692       1.0000         .10000E-03   10000.    
    17 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.542       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.1297       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.856       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.4778       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2933       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .83151       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.

 FCN=   5458.598     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     3149 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    328.36       -.37261E-05** at limit **
   2  Prefactor     .10000E-03    20.945        .34174E-07** at limit **
   3  norm          11.723        21.240       -.30875E-07   -.13783E-04
   4  Prefactor     3.6122        5.6506       -.20405E-06   -.73877E-04
   5  Prefactor     11.876        7.9947        .37036E-08   -.94441E-04
   6  Prefactor     1.2223        3.3396        .27213E-06   -.44309E-04
   7  Prefactor     .10000E-03    8.8007       -.81652E-06** at limit **
   8  Prefactor     16.252        32.913        .68643E-06    .13519E-04
   9  Prefactor     .10000E-03    12.214       -.23216E-06** at limit **
  10  norm          3.6607        3.3127        .11641E-06    .11815E-04
  11  Prefactor     5.3877        7.4795       -.97463E-07   -.27631E-04
  12  Prefactor     .10000E-03    8.8000       -.45174E-06** at limit **
  13  Prefactor     .10000E-03    6.3342       -.19958E-07** at limit **
  14  Prefactor     32.620        39.434        .85870E-06    .22808E-04
  15  Prefactor     144.55        115.78       -.21114E-05   -.34654E-04
  16  norm          3.0701        3.1604       -.56656E-08   -.23038E-04
  17  norm          .10000E-03    8.9341        .38550E-06** at limit **
  18  Prefactor     24.546        25.523       -.16619E-06    .73653E-05
  19  Prefactor     9.1616        110.52        .16849E-05   -.73268E-05
  20  Prefactor     .10000E-03    72.295        .42736E-06** at limit **
  21  norm          .10000E-03    .88633        .95724E-08** at limit **
  22  norm          .10000E-03    .67979       -.66501E-08** at limit **
  23  Prefactor     13.856        36.899        .13321E-06   -.51837E-05
  24  Prefactor     9.4785        8.6095       -.10321E-07   -.35158E-04
  25  Normalizat    1.2930        .30920        .24283E-05   -.17717E-03
  26  Prefactor     .83162        .13575       -.23186E-05   -.13772E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.7227
  Prefactor  = 3.61222
  Prefactor  = 11.8762
  Prefactor  = 1.22229
  Prefactor  = 0.0001
  Prefactor  = 16.2523
  Prefactor  = 0.0001
  norm       = 3.66073
  Prefactor  = 5.38769
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.6202
  Prefactor  = 144.546
  norm       = 3.07013
  norm       = 0.0001
  Prefactor  = 24.5456
  Prefactor  = 9.1616
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.8558
  Prefactor  = 9.47851
  Normalizat = 1.29304
  Prefactor  = 0.831619
 **********
 **   18 **HESSE 
 **********

 FCN=   5458.598     FROM HESSE     STATUS=OK           464 CALLS     3613 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    314.63        .80047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.723        21.145        .11702E-03   -1.5023    
   4  Prefactor     3.6122        5.6276        .20640E-03   -1.5328    
   5  Prefactor     11.876        8.0162        .58125E-03   -1.5019    
   6  Prefactor     1.2223        3.3502        .20708E-03   -1.5487    
   7  Prefactor     .10000E-03    8.8371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.252        33.358        .99383E-04   -1.4901    
   9  Prefactor     .10000E-03    12.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.6607        3.3150        .12353E-03   -1.5325    
  11  Prefactor     5.3877        7.4679        .17315E-03   -1.5244    
  12  Prefactor     .10000E-03    8.8189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.3449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.620        40.142        .70171E-04   -1.4565    
  15  Prefactor     144.55        115.80        .16755E-03   -1.3298    
  16  norm          3.0701        3.1403        .11717E-03   -1.5358    
  17  norm          .10000E-03    9.0356        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.546        25.514        .80859E-04   -1.4717    
  19  Prefactor     9.1616        107.69        .13264E-03   -1.5103    
  20  Prefactor     .10000E-03    72.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .88688        .67931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .68089        .59480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     13.856        36.829        .10760E-03   -1.4963    
  24  Prefactor     9.4785        8.5825        .13017E-03   -1.5092    
  25  Normalizat    1.2930        .33121        .32156E-03   -.83774    
  26  Prefactor     .83162        .14114        .18634E-03   -.98573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67784e-10
Minuit parameter uncertainties:
  1  0.000390941
  2  2.75485e-05
  3  21.1586
  4  5.62846
  5  8.01693
  6  3.35067
  7  2.18368e-05
  8  33.3965
  9  8.44802e-06
  10  3.31513
  11  7.46921
  12  1.82342e-05
  13  3.92275e-06
  14  40.1755
  15  115.982
  16  3.14051
  17  1.69272e-05
  18  25.5252
  19  62.9636
  20  8.57231e-05
  21  2.96321e-07
  22  1.38429e-06
  23  36.8892
  24  8.58358
  25  0.331758
  26  0.141205
Done.

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

Extracting fit parameters...

4FGL J0047.9+3947
   Spectrum: PowerLaw
158    Prefactor:  5.388e+00  7.469e+00  1.000e-04  1.000e+04 ( 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:  8.316e-01  1.412e-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:  1.293e+00  3.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.78
Ra Dec: 11.976 39.797
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/350821/likelihoodResults_672969601_673228801_4FGL_J0047.9+3947_daily_bin1673.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) = 5457.88897609
delta logL = 0.708684517588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5457.86489463
delta logL = 0.732765977566

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6441       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9765       1.0000          .0000       10.000    
     3 'Normalizat'    1.2284       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84882       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.

 FCN=   5457.865     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      318 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6429        30.183        .82361E-02    .42921E-03
   2  Index         2.9771        2.8410        .93974E-01    .15812E-03
   3  Normalizat    1.2284        .89292E-01    .74220E-01    .11930E-04
   4  Prefactor     .84886        .39325E-01    .44349E-01    .27160E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.64289
  Index      = 2.97714
  Normalizat = 1.22836
  Prefactor  = 0.848857
 **********
 **   18 **HESSE 
 **********

 FCN=   5457.865     FROM HESSE     STATUS=OK            33 CALLS      351 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6429        5.4338        .75908E-04   -1.5452    
   2  Index         2.9771        1.3999        .46188E-02   -.41651    
   3  Normalizat    1.2284        .29738        .32846E-03   -.85731    
   4  Prefactor     .84886        .13901        .18451E-03   -.97952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.97917e-11
Minuit parameter uncertainties:
  1  5.43543
  2  1.42272
  3  0.297791
  4  0.139067
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/350821': 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) = 5457.86489379
delta logL = 0.732766822992

Extracting fit parameters...

4FGL J0047.9+3947
   Spectrum: PowerLaw
158    Prefactor:  1.643e+00  5.435e+00  1.000e-04  1.000e+04 ( 1.000e-13)
159        Index:  2.977e+00  1.423e+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:  8.489e-01  1.391e-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:  1.228e+00  2.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.31
Ra Dec: 11.976 39.797
Photon Index (Free Index): 2.98 +/- 1.42
Photon Flux (Free Index): 7.61e-08 +/- 7.24e-08
Energy Flux (Free Index): 1.54e-05 +/- 1.37e-05

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/350821/cmap_HighResolution_672969601_673228801_4FGL_J0047.9+3947_daily_bin1673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.21e-03', comment='SUCCESS', energy_flux2='1.54e-05', dlogl='7.33e-01', photon_flux2='7.61e-08', job_status='DONE', time_completed='2022-05-03 00:21:20.385988', photon_index_error2='1.42', photon_index2='2.98', ts='0.78', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='1.37e-05', EG='1.29', time_epoch_completed='1651562480.39', return_code='0', job_id='350821', GAL2='0.85', EG2='1.23', return_code2='0', photon_flux_error2='7.24e-08', ts2='2.31', photon_index='1.98' WHERE bin_id='1673' AND source_name='4FGL J0047.9+3947' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May  3 00:21:20 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0028>
Subject: Job 350822: <4FGL_J0047.9+3947_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0047.9+3947_daily_bin1673> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue May  3 00:05:22 2022
Job was executed on host(s) <bullet0028>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:06:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:06:15 2022
Terminated at Tue May  3 00:18:46 2022
Results reported at Tue May  3 00:18:46 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0047.9+3947_daily_bin1673 11.9763 39.7975 672969601 673228801 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 :                                   697.06 sec.
    Max Memory :                                 617 MB
    Average Memory :                             292.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            804 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 350821: <4FGL_J0047.9+3947_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0047.9+3947_daily_bin1673> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue May  3 00:05:22 2022
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:06:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:06:15 2022
Terminated at Tue May  3 00:21:21 2022
Results reported at Tue May  3 00:21:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0047.9+3947_daily_bin1673 11.9763 39.7975 672969601 673228801 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 :                                   690.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            959 sec.

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

