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


Performing analysis on: 4FGL_J0047.9+3947_daily_bin1725
RA = 11.9763, Dec = 39.7975
tmin = 686448001, tmax = 686707201
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='875277', job_status='RUN', time_executed='2022-10-06 00:07:50.280839', time_epoch_executed='1665040070.28' WHERE source_name='4FGL J0047.9+3947' and cadence='daily' and bin_id='1725'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875277

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875277/ft1_4FGL_J0047.9+3947_daily_bin1725.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875277/ft2_4FGL_J0047.9+3947_daily_bin1725.fits


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

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

Done.
real 4.58
user 4.33
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/875277/ft2_4FGL_J0047.9+3947_daily_bin1725.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/875277/ft1_filteredMKT_4FGL_J0047.9+3947_daily_bin1725.fits evtable="EVENTS" outfile="/scratch/kocevski/875277/ft1_filtered_4FGL_J0047.9+3947_daily_bin1725.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.51
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 591

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875277/ft1_filtered_4FGL_J0047.9+3947_daily_bin1725.fits evtable="EVENTS" scfile=/scratch/kocevski/875277/ft2_4FGL_J0047.9+3947_daily_bin1725.fits sctable="SC_DATA" expcube=/scratch/kocevski/875277/ltcube_686448001_686707201_4FGL_J0047.9+3947_daily_bin1725.fits outfile=/scratch/kocevski/875277/expmap_686448001_686707201_4FGL_J0047.9+3947_daily_bin1725.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/875277/ltcube_686448001_686707201_4FGL_J0047.9+3947_daily_bin1725.fits
.....................!
real 193.35
user 188.49
sys 4.48

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/875277/ft1_filtered_4FGL_J0047.9+3947_daily_bin1725.fits scfile=/scratch/kocevski/875277/ft2_4FGL_J0047.9+3947_daily_bin1725.fits outfile=/scratch/kocevski/875277/cmap_686448001_686707201_4FGL_J0047.9+3947_daily_bin1725.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875277/ft1_filtered_4FGL_J0047.9+3947_daily_bin1725.fits scfile=/scratch/kocevski/875277/ft2_4FGL_J0047.9+3947_daily_bin1725.fits outfile=/scratch/kocevski/875277/cmap_HighResolution_686448001_686707201_4FGL_J0047.9+3947_daily_bin1725.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5633       1.0000          .0000       .10000E+07
     2 'norm      '    8.7321       1.0000          .0000       .10000E+07
     3 'Prefactor '    .90681       1.0000          .0000       .10000E+07
     4 'Prefactor '    .61519E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .18384E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11678E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .13459E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    26.402       1.0000          .0000       .10000E+07
     9 'norm      '    5.9663       1.0000          .0000       .10000E+07
    10 'Prefactor '    .21167E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    7.9781       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.7901       1.0000          .0000       .10000E+07
    13 'Prefactor '    .49969E-03   1.0000          .0000       .10000E+07
    14 'norm      '    3.9561       1.0000          .0000       .10000E+07
    15 'norm      '    1.4041       1.0000          .0000       .10000E+07
    16 'Prefactor '    8.8547       1.0000          .0000       .10000E+07
    17 'norm      '    .36962E-04   1.0000          .0000       .10000E+07
    18 'norm      '    .85703       1.0000          .0000       .10000E+07
    19 'Prefactor '    .34508E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .39066E-04   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.2489       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77546       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=   6267.376     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     1743 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5746        2.1947       -.39031E-06    .16141E-01
   2  norm          8.7217        5.5075       -.11483E-05    .29295E-01
   3  Prefactor     .90690        4.3162       -.73177E-06   -.11515E-01
   4  Prefactor      .0000        5.0488        .19094E-06** at limit **
   5  Prefactor      .0000        1.4002        .12408E-06** at limit **
   6  Prefactor     .55511E-10    5.5774       -.32361E-06** at limit **
   7  Prefactor     .55511E-09    51.013       -.14836E-05** at limit **
   8  Prefactor     26.721        3.2711        .83741E-07   -.41347E-03
   9  norm          5.9681        2.8995       -.18624E-07   -.14697E-02
  10  Prefactor     .61062E-09    47.679        .20130E-05** at limit **
  11  Prefactor     7.9927        10.371        .25096E-05    .13636E-01
  12  Prefactor     9.7874        2.9551        .34113E-06   -.37770E-02
  13  Prefactor     .22204E-09    13.001        .30854E-06** at limit **
  14  norm          3.9516        1.6244        .10154E-06    .19484E-02
  15  norm          1.3670        3.4774       -.31921E-06   -.58124E-03
  16  Prefactor     8.7798        3.4093       -.27228E-06    .58922E-02
  17  norm           .0000        1.8614        .10930E-06** at limit **
  18  norm          .86176        1.2503        .97566E-07    .11676E-02
  19  Prefactor     .33307E-09    15.696       -.75111E-06** at limit **
  20  Prefactor     .55511E-10    1.6198       -.28256E-07** at limit **
  21  Normalizat    1.2484        .22648       -.57993E-05   -.83846E-04
  22  Prefactor     .77568        .11614        .64997E-05   -.58073E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.57465
  norm       = 8.72168
  Prefactor  = 0.906903
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-10
  Prefactor  = 26.7213
  norm       = 5.96813
  Prefactor  = 6.10623e-10
  Prefactor  = 7.99273
  Prefactor  = 9.78735
  Prefactor  = 2.22045e-10
  norm       = 3.95156
  norm       = 1.36696
  Prefactor  = 8.77976
  norm       = 0
  norm       = 0.861756
  Prefactor  = 3.33067e-10
  Prefactor  = 5.55112e-11
  Normalizat = 1.24844
  Prefactor  = 0.775677
 **********
 **   18 **HESSE 
 **********

 FCN=   6267.376     FROM HESSE     STATUS=OK           398 CALLS     2141 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5746        18.975        .39148E-03   -1.5657    
   2  norm          8.7217        14.229        .33897E-03   -1.5649    
   3  Prefactor     .90690        6.0765        .45291E-03   -1.5689    
   4  Prefactor      .0000        5.0759        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        1.3976        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    5.6039        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55511E-09    51.674        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.721        33.723        .19465E-03   -1.5605    
   9  norm          5.9681        2.9038        .41086E-03   -1.5659    
  10  Prefactor     .61062E-09    4.5105        .59108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.9927        10.824        .35474E-03   -1.5651    
  12  Prefactor     9.7874        11.141        .32002E-03   -1.5645    
  13  Prefactor     .22204E-09    13.086        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.9516        1.6287        .50690E-03   -1.5668    
  15  norm          1.3670        3.4916        .91482E-03   -1.5685    
  16  Prefactor     8.7798        37.696        .33660E-03   -1.5649    
  17  norm           .0000        1.8009        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .86176        1.2695        .48777E-03   -1.5689    
  19  Prefactor     .33307E-09    15.730        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    1.6264        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2484        .20449        .64652E-01   -.85119    
  22  Prefactor     .77568        .10174        .43397E-01   -1.0063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.15841e-08
Minuit parameter uncertainties:
  1  18.9752
  2  14.2291
  3  4.69501
  4  1.05548e-05
  5  6.25025e-06
  6  3.67603e-05
  7  0.000335698
  8  33.7235
  9  2.90378
  10  0.000103056
  11  10.824
  12  11.1409
  13  0.000102751
  14  1.62867
  15  3.49161
  16  36.3852
  17  7.99746e-07
  18  1.2695
  19  0.000139253
  20  1.51236e-05
  21  0.204619
  22  0.101765
Done.

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

Extracting fit parameters...

4FGL J0047.9+3947
   Spectrum: PowerLaw
158    Prefactor:  6.106e-10  1.031e-04  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.757e-01  1.018e-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.248e+00  2.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/875277/likelihoodResults_686448001_686707201_4FGL_J0047.9+3947_daily_bin1725.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) = 6267.40236205
delta logL = -0.0263926267316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6267.36606801
delta logL = 0.00990141421516

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30551       1.0000          .0000       .10000E+07
     2 'Index     '    2.5279       1.0000          .0000       10.000    
     3 'Normalizat'    1.2444       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77609       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=   6267.366     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      235 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30263        3.6411        .34946E-02    .11222E-01
   2  Index         2.5280        .23958        .50000       -.61666E-06
   3  Normalizat    1.2446        .76340E-02    .64738E-01   -.26845E-04
   4  Prefactor     .77602        .39030E-02    .43405E-01   -.13290E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.302635
  Index      = 2.52802
  Normalizat = 1.24455
  Prefactor  = 0.776021
 **********
 **   18 **HESSE 
 **********

 FCN=   6267.366     FROM HESSE     STATUS=OK            35 CALLS      270 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30263        15.556        .21075E-03   -1.5697    
   2  Index         2.5280        6.2614        .30456E-02   -.51714    
   3  Normalizat    1.2446        .22548        .28637E-03   -.85237    
   4  Prefactor     .77602        .11439        .17992E-03   -1.0062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32365e-07
Minuit parameter uncertainties:
  1  4.33949
  2  4.38012
  3  0.225654
  4  0.114427
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875277': 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) = 6267.366067
delta logL = 0.00990242907028

Extracting fit parameters...

4FGL J0047.9+3947
   Spectrum: PowerLaw
158    Prefactor:  3.026e-01  4.339e+00  0.000e+00  1.000e+06 ( 1.000e-13)
159        Index:  2.528e+00  4.380e+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.760e-01  1.144e-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.245e+00  2.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 11.976 39.797

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/875277/cmap_HighResolution_686448001_686707201_4FGL_J0047.9+3947_daily_bin1725.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.02e-03', job_status='DONE', photon_flux_upper_limit='6.70e-08', time_completed='2022-10-06 00:17:44.339353', job_id='875277', GAL2='0.78', fit_tolerance='1e-08', EG2='1.24', EG='1.25', time_epoch_completed='1665040664.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='9.90e-03', ts2='0.02', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1725' AND source_name='4FGL J0047.9+3947' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Oct  6 00:17:44 PDT 2022

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 875278: <4FGL_J0047.9+3947_daily_bin1725> in cluster <slac> Done

Job <4FGL_J0047.9+3947_daily_bin1725> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Oct  6 00:05:44 2022
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct  6 00:06:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct  6 00:06:55 2022
Terminated at Thu Oct  6 00:15:22 2022
Results reported at Thu Oct  6 00:15:22 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0047.9+3947_daily_bin1725 11.9763 39.7975 686448001 686707201 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 :                                   475.25 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             328.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   507 sec.
    Turnaround time :                            578 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 875277: <4FGL_J0047.9+3947_daily_bin1725> in cluster <slac> Done

Job <4FGL_J0047.9+3947_daily_bin1725> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Oct  6 00:05:44 2022
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct  6 00:06:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct  6 00:06:55 2022
Terminated at Thu Oct  6 00:17:45 2022
Results reported at Thu Oct  6 00:17:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0047.9+3947_daily_bin1725 11.9763 39.7975 686448001 686707201 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 :                                   593.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            721 sec.

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

