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


Performing analysis on: 4FGL_J0047.9+3947_daily_bin1721
RA = 11.9763, Dec = 39.7975
tmin = 685411201, tmax = 685670401
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='48693', job_status='RUN', time_executed='2022-09-24 00:06:35.853361', time_epoch_executed='1664003195.85' WHERE source_name='4FGL J0047.9+3947' and cadence='daily' and bin_id='1721'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/48693

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/48693/ft1_4FGL_J0047.9+3947_daily_bin1721.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/48693/ft2_4FGL_J0047.9+3947_daily_bin1721.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/48693/ft1_4FGL_J0047.9+3947_daily_bin1721.fits outfile=/scratch/kocevski/48693/ft1_filteredMKT_4FGL_J0047.9+3947_daily_bin1721.fits ra=11.9763 dec=39.7975 rad=12.0 tmin=685411201.0 tmax=685670401.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 5.23
user 4.94
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/48693/ft2_4FGL_J0047.9+3947_daily_bin1721.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/48693/ft1_filteredMKT_4FGL_J0047.9+3947_daily_bin1721.fits evtable="EVENTS" outfile="/scratch/kocevski/48693/ft1_filtered_4FGL_J0047.9+3947_daily_bin1721.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.35
sys 0.17

Number of photons that the gtmktime cut: 759

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/48693/ft1_filtered_4FGL_J0047.9+3947_daily_bin1721.fits" evtable="EVENTS" scfile=/scratch/kocevski/48693/ft2_4FGL_J0047.9+3947_daily_bin1721.fits sctable="SC_DATA" outfile=/scratch/kocevski/48693/ltcube_685411201_685670401_4FGL_J0047.9+3947_daily_bin1721.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/48693/ft2_4FGL_J0047.9+3947_daily_bin1721.fits
.....................!
real 17.85
user 17.39
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/48693/ft1_filtered_4FGL_J0047.9+3947_daily_bin1721.fits evtable="EVENTS" scfile=/scratch/kocevski/48693/ft2_4FGL_J0047.9+3947_daily_bin1721.fits sctable="SC_DATA" expcube=/scratch/kocevski/48693/ltcube_685411201_685670401_4FGL_J0047.9+3947_daily_bin1721.fits outfile=/scratch/kocevski/48693/expmap_685411201_685670401_4FGL_J0047.9+3947_daily_bin1721.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/48693/ltcube_685411201_685670401_4FGL_J0047.9+3947_daily_bin1721.fits
.....................!
real 191.91
user 186.78
sys 4.58

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/48693/ft1_filtered_4FGL_J0047.9+3947_daily_bin1721.fits scfile=/scratch/kocevski/48693/ft2_4FGL_J0047.9+3947_daily_bin1721.fits outfile=/scratch/kocevski/48693/cmap_685411201_685670401_4FGL_J0047.9+3947_daily_bin1721.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.71
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/48693/ft1_filtered_4FGL_J0047.9+3947_daily_bin1721.fits scfile=/scratch/kocevski/48693/ft2_4FGL_J0047.9+3947_daily_bin1721.fits outfile=/scratch/kocevski/48693/cmap_HighResolution_685411201_685670401_4FGL_J0047.9+3947_daily_bin1721.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.62
user 0.39
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/48693/ft1_filtered_4FGL_J0047.9+3947_daily_bin1721.fits', '/scratch/kocevski/48693/ft2_4FGL_J0047.9+3947_daily_bin1721.fits', expMap='/scratch/kocevski/48693/expmap_685411201_685670401_4FGL_J0047.9+3947_daily_bin1721.fits', expCube='/scratch/kocevski/48693/ltcube_685411201_685670401_4FGL_J0047.9+3947_daily_bin1721.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/48693/Model_4FGL_J0047.9+3947_daily_bin1721.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/48693/ft1_filtered_4FGL_J0047.9+3947_daily_bin1721.fits
Spacecraft file(s): /scratch/kocevski/48693/ft2_4FGL_J0047.9+3947_daily_bin1721.fits
Exposure map: /scratch/kocevski/48693/expmap_685411201_685670401_4FGL_J0047.9+3947_daily_bin1721.fits
Exposure cube: /scratch/kocevski/48693/ltcube_685411201_685670401_4FGL_J0047.9+3947_daily_bin1721.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/48693/Model_4FGL_J0047.9+3947_daily_bin1721.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) = 8221.79918226

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18763E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .22752E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .32807E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    .51035E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.7428       1.0000          .0000       .10000E+07
     6 'Prefactor '    22.982       1.0000          .0000       .10000E+07
     7 'Prefactor '    32.009       1.0000          .0000       .10000E+07
     8 'Prefactor '    .47686E-03   1.0000          .0000       .10000E+07
     9 'norm      '    3.1654       1.0000          .0000       .10000E+07
    10 'Prefactor '    .28655       1.0000          .0000       .10000E+07
    11 'Prefactor '    .30508E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .88481       1.0000          .0000       .10000E+07
    13 'Prefactor '    9.5971       1.0000          .0000       .10000E+07
    14 'norm      '    2.2640       1.0000          .0000       .10000E+07
    15 'norm      '    5.9843       1.0000          .0000       .10000E+07
    16 'Prefactor '    .12032       1.0000          .0000       .10000E+07
    17 'norm      '    .74250       1.0000          .0000       .10000E+07
    18 'norm      '    2.2531       1.0000          .0000       .10000E+07
    19 'Prefactor '    8.8507       1.0000          .0000       .10000E+07
    20 'Prefactor '    6.3460       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.5221       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77351       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=   8221.775     FROM MIGRAD    STATUS=CONVERGED    150 CALLS     1747 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10547E-08    9.7496       -.27996E-06** at limit **
   2  norm          .13878E-08    13.126       -.19190E-06** at limit **
   3  Prefactor      .0000        2.2043       -.74419E-07** at limit **
   4  Prefactor     .11102E-09    3.5905        .37655E-06** at limit **
   5  Prefactor     1.7406        2.6913       -.37017E-07   -.81087E-03
   6  Prefactor     23.063        1.4117        .55817E-08    .71449E-02
   7  Prefactor     32.541        26.107        .23531E-06   -.58476E-01
   8  Prefactor     .41633E-08    12.576       -.19983E-06** at limit **
   9  norm          3.1674        2.4028        .10995E-07   -.14111E-03
  10  Prefactor     .30230        6.2431        .65286E-07    .42109E-03
  11  Prefactor     .35638E-07    53.620        .71414E-06** at limit **
  12  Prefactor     .87645        4.1744       -.93858E-07   -.67410E-01
  13  Prefactor     9.5511        4.6667        .65598E-08   -.81618E-01
  14  norm          2.2658        1.4649       -.33644E-07   -.24575E-02
  15  norm          5.9820        3.4546       -.16659E-07   -.14536E-02
  16  Prefactor     .18596E-07    85.955       -.94012E-07** at limit **
  17  norm          .74218        .72553        .25479E-07    .26134E-02
  18  norm          2.2544        1.1829       -.19510E-07   -.20808E-02
  19  Prefactor     9.5928        99.937       -.11852E-05   -.67761E-02
  20  Prefactor     6.3491        7.4033        .12998E-06   -.68851E-03
  21  Normalizat    1.5210        .23445        .13062E-06   -.56661E-04
  22  Prefactor     .77364        .11449       -.81658E-06   -.12478E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.05471e-09
  norm       = 1.38778e-09
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 1.7406
  Prefactor  = 23.0629
  Prefactor  = 32.5406
  Prefactor  = 4.16334e-09
  norm       = 3.16741
  Prefactor  = 0.3023
  Prefactor  = 3.56382e-08
  Prefactor  = 0.876451
  Prefactor  = 9.55105
  norm       = 2.26579
  norm       = 5.98197
  Prefactor  = 1.85962e-08
  norm       = 0.742175
  norm       = 2.25443
  Prefactor  = 9.59275
  Prefactor  = 6.34913
  Normalizat = 1.52102
  Prefactor  = 0.773643
 **********
 **   18 **HESSE 
 **********

 FCN=   8221.775     FROM HESSE     STATUS=OK           396 CALLS     2143 TOTAL
                     EDM=   .71E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10547E-08    9.7504        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .13878E-08    13.636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        2.2109        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11102E-09    3.5851        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.7406        2.8349        .79429E-03   -1.5682    
   6  Prefactor     23.063        20.492        .20865E-03   -1.5612    
   7  Prefactor     32.541        28.001        .17677E-03   -1.5594    
   8  Prefactor     .41633E-08    13.256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.1674        2.4016        .56941E-03   -1.5672    
  10  Prefactor     .30230        2.5789        .51928E-02   -1.5697    
  11  Prefactor     .35638E-07    53.126        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .87645        26.800        .46816E-03   -1.5689    
  13  Prefactor     9.5511        15.266        .32324E-03   -1.5646    
  14  norm          2.2658        1.4687        .68238E-03   -1.5678    
  15  norm          5.9820        3.4511        .41023E-03   -1.5659    
  16  Prefactor     .18596E-07    84.514        .13413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .74218        .72010        .57323E-03   -1.5691    
  18  norm          2.2544        1.1864        .68421E-03   -1.5678    
  19  Prefactor     9.5928        103.84        .33667E-03   -1.5646    
  20  Prefactor     6.3491        7.4955        .39821E-03   -1.5658    
  21  Normalizat    1.5210        .20786        .68105E-01   -.77189    
  22  Prefactor     .77364        .98735E-01    .43371E-01   -1.0071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.09801e-07
Minuit parameter uncertainties:
  1  0.00020321
  2  0.000274359
  3  1.23067e-05
  4  3.71839e-05
  5  2.83493
  6  20.4919
  7  28.0006
  8  0.000470563
  9  2.40159
  10  1.76591
  11  0.00275185
  12  9.69306
  13  15.2661
  14  1.4687
  15  3.45108
  16  0.00250896
  17  0.720103
  18  1.18637
  19  63.1249
  20  7.49552
  21  0.207981
  22  0.0987571
Done.

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

Extracting fit parameters...

4FGL J0047.9+3947
   Spectrum: PowerLaw
158    Prefactor:  3.023e-01  1.766e+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:  7.736e-01  9.876e-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:  1.521e+00  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/48693/likelihoodResults_685411201_685670401_4FGL_J0047.9+3947_daily_bin1721.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): 102
logL (Free Index) = 8221.7480356
delta logL = 0.0268367487733

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8221.70987464
delta logL = 0.0649977164994

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2397       1.0000          .0000       .10000E+07
     2 'Index     '    1.4595       1.0000          .0000       10.000    
     3 'Normalizat'    1.5229       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77203       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=   8221.710     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      272 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2389        3.7331        .30134E-04   -.74699E-04
   2  Index         1.4595        1.0875        .12378E-01   -.53418E-05
   3  Normalizat    1.5230        .22979        .30110E-03    .49839E-05
   4  Prefactor     .77199        .11245        .19742E-03   -.69104E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.23892
  Index      = 1.45945
  Normalizat = 1.52304
  Prefactor  = 0.771993
 **********
 **   18 **HESSE 
 **********

 FCN=   8221.710     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2389        3.7232        .12054E-05   -1.5686    
   2  Index         1.4595        1.0852        .49512E-03   -.78682    
   3  Normalizat    1.5230        .22994        .12044E-04   -.77133    
   4  Prefactor     .77199        .11252        .78967E-05   -1.0077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53604e-12
Minuit parameter uncertainties:
  1  3.72323
  2  1.10304
  3  0.230093
  4  0.112555
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/48693': 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) = 8221.70987453
delta logL = 0.0649978248057

Extracting fit parameters...

4FGL J0047.9+3947
   Spectrum: PowerLaw
158    Prefactor:  1.239e+00  3.723e+00  0.000e+00  1.000e+06 ( 1.000e-13)
159        Index:  1.459e+00  1.103e+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:  7.720e-01  1.126e-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.523e+00  2.301e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/48693/cmap_HighResolution_685411201_685670401_4FGL_J0047.9+3947_daily_bin1721.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.55e-03', job_status='DONE', photon_flux_upper_limit='4.74e-08', time_completed='2022-09-24 00:18:08.729151', job_id='48693', GAL2='0.77', fit_tolerance='1e-08', EG2='1.52', EG='1.52', time_epoch_completed='1664003888.73', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='6.50e-02', ts2='0.14', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1721' AND source_name='4FGL J0047.9+3947' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 24 00:18:08 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 48693: <4FGL_J0047.9+3947_daily_bin1721> in cluster <slac> Done

Job <4FGL_J0047.9+3947_daily_bin1721> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 24 00:04:56 2022
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 24 00:05:09 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 24 00:05:09 2022
Terminated at Sat Sep 24 00:18:09 2022
Results reported at Sat Sep 24 00:18:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0047.9+3947_daily_bin1721 11.9763 39.7975 685411201 685670401 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 :                                   683.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             313.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            793 sec.

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

