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


Performing analysis on: 4FGL_J0047.9+2233_daily_bin1684
RA = 11.9981, Dec = 22.5632
tmin = 675820801, tmax = 676080001
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='180892', job_status='RUN', time_executed='2022-06-05 00:07:12.583713', time_epoch_executed='1654412832.58' WHERE source_name='4FGL J0047.9+2233' and cadence='daily' and bin_id='1684'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/180892

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/180892/ft1_4FGL_J0047.9+2233_daily_bin1684.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/180892/ft2_4FGL_J0047.9+2233_daily_bin1684.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/180892/ft1_4FGL_J0047.9+2233_daily_bin1684.fits outfile=/scratch/kocevski/180892/ft1_filteredMKT_4FGL_J0047.9+2233_daily_bin1684.fits ra=11.9981 dec=22.5632 rad=12.0 tmin=675820801.0 tmax=676080001.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.50
user 4.19
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/180892/ft2_4FGL_J0047.9+2233_daily_bin1684.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/180892/ft2_4FGL_J0047.9+2233_daily_bin1684.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/180892/ft1_filteredMKT_4FGL_J0047.9+2233_daily_bin1684.fits evtable="EVENTS" outfile="/scratch/kocevski/180892/ft1_filtered_4FGL_J0047.9+2233_daily_bin1684.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.34
sys 0.15

Number of photons that the gtmktime cut: 667

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/180892/ft1_filtered_4FGL_J0047.9+2233_daily_bin1684.fits" evtable="EVENTS" scfile=/scratch/kocevski/180892/ft2_4FGL_J0047.9+2233_daily_bin1684.fits sctable="SC_DATA" outfile=/scratch/kocevski/180892/ltcube_675820801_676080001_4FGL_J0047.9+2233_daily_bin1684.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/180892/ft2_4FGL_J0047.9+2233_daily_bin1684.fits
.....................!
real 14.32
user 13.95
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/180892/ft1_filtered_4FGL_J0047.9+2233_daily_bin1684.fits evtable="EVENTS" scfile=/scratch/kocevski/180892/ft2_4FGL_J0047.9+2233_daily_bin1684.fits sctable="SC_DATA" expcube=/scratch/kocevski/180892/ltcube_675820801_676080001_4FGL_J0047.9+2233_daily_bin1684.fits outfile=/scratch/kocevski/180892/expmap_675820801_676080001_4FGL_J0047.9+2233_daily_bin1684.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/180892/ltcube_675820801_676080001_4FGL_J0047.9+2233_daily_bin1684.fits
.....................!
real 192.16
user 186.30
sys 5.30

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

Setting source of interest to:
4FGL J0047.9+2233 @ 11.9981 22.5632

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/180892/ft1_filtered_4FGL_J0047.9+2233_daily_bin1684.fits scfile=/scratch/kocevski/180892/ft2_4FGL_J0047.9+2233_daily_bin1684.fits outfile=/scratch/kocevski/180892/cmap_675820801_676080001_4FGL_J0047.9+2233_daily_bin1684.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.9981 yref=22.5632 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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/180892/ft1_filtered_4FGL_J0047.9+2233_daily_bin1684.fits scfile=/scratch/kocevski/180892/ft2_4FGL_J0047.9+2233_daily_bin1684.fits outfile=/scratch/kocevski/180892/cmap_HighResolution_675820801_676080001_4FGL_J0047.9+2233_daily_bin1684.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.9981 yref=22.5632 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.58
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/180892/ft1_filtered_4FGL_J0047.9+2233_daily_bin1684.fits evtable="EVENTS" scfile=/scratch/kocevski/180892/ft2_4FGL_J0047.9+2233_daily_bin1684.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/180892/Model_4FGL_J0047.9+2233_daily_bin1684.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/180892/ft1_filtered_4FGL_J0047.9+2233_daily_bin1684.fits.....................!
real 76.56
user 75.06
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/180892/ft1_filtered_4FGL_J0047.9+2233_daily_bin1684.fits', '/scratch/kocevski/180892/ft2_4FGL_J0047.9+2233_daily_bin1684.fits', expMap='/scratch/kocevski/180892/expmap_675820801_676080001_4FGL_J0047.9+2233_daily_bin1684.fits', expCube='/scratch/kocevski/180892/ltcube_675820801_676080001_4FGL_J0047.9+2233_daily_bin1684.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/180892/Model_4FGL_J0047.9+2233_daily_bin1684.xml', optimizer='MINUIT')

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

4FGL J0047.9+2233
   Spectrum: PowerLaw
177    Prefactor:  3.900e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
178        Index:  2.509e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
179        Scale:  1.177e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/180892/ft1_filtered_4FGL_J0047.9+2233_daily_bin1684.fits
Spacecraft file(s): /scratch/kocevski/180892/ft2_4FGL_J0047.9+2233_daily_bin1684.fits
Exposure map: /scratch/kocevski/180892/expmap_675820801_676080001_4FGL_J0047.9+2233_daily_bin1684.fits
Exposure cube: /scratch/kocevski/180892/ltcube_675820801_676080001_4FGL_J0047.9+2233_daily_bin1684.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/180892/Model_4FGL_J0047.9+2233_daily_bin1684.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) = 7481.85249153

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.420       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .78245E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9007       1.0000         .10000E-03   10000.    
     9 'norm      '    1.4533       1.0000         .10000E-03   10000.    
    10 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .89044       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.004       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.498       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .40025       1.0000         .10000E-03   10000.    
    17 'norm      '    1.6105       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.100       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.4037       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.394       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.769       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2571       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .80412       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7481.850     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2721 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9783        .73180E-07** at limit **
   2  Prefactor     .10000E-03    8.7935        .89725E-07** at limit **
   3  Prefactor     .10000E-03    2.4624       -.10054E-07** at limit **
   4  Prefactor     30.419        35.719       -.37383E-06   -.23774E-05
   5  Prefactor     .73339E-01    1.5340        .26205E-06   -.42372E-03
   6  norm          .10000E-03    3.3794        .10484E-07** at limit **
   7  Prefactor     .10000E-03    5.5764       -.57752E-07** at limit **
   8  Prefactor     4.9005        5.4385       -.81648E-07    .23401E-05
   9  norm          1.4536        1.9684        .12618E-06   -.58692E-04
  10  norm          .10000E-03    4.0504        .14910E-07** at limit **
  11  Prefactor     .89111        3.1202        .13030E-05   -.14848E-03
  12  Prefactor     10.006        11.868       -.95698E-07   -.12550E-04
  13  Prefactor     14.497        12.947        .99680E-07   -.16461E-04
  14  Prefactor     .10000E-03    18.220        .16901E-05** at limit **
  15  Prefactor     .10000E-03    42.409       -.55616E-06** at limit **
  16  norm          .40013        .63523        .23162E-06   -.38711E-04
  17  norm          1.6106        1.4849        .12915E-06   -.60595E-04
  18  Prefactor     15.099        11.390        .11122E-06   -.16640E-04
  19  Prefactor     9.3931        59.542       -.29211E-05   -.44470E-04
  20  Prefactor     12.395        7.7188        .17208E-06   -.28210E-04
  21  Prefactor     17.768        13.314        .79321E-07   -.26502E-04
  22  Prefactor     .10000E-03    17.148       -.15024E-05** at limit **
  23  Normalizat    1.2572        .18752       -.87493E-06   -.20220E-04
  24  Prefactor     .80406        .12069       -.37245E-06   -.36914E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.4187
  Prefactor  = 0.0733386
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.90053
  norm       = 1.45359
  norm       = 0.0001
  Prefactor  = 0.891106
  Prefactor  = 10.0056
  Prefactor  = 14.4972
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.400129
  norm       = 1.61064
  Prefactor  = 15.0994
  Prefactor  = 9.3931
  Prefactor  = 12.3947
  Prefactor  = 17.7676
  Prefactor  = 0.0001
  Normalizat = 1.25723
  Prefactor  = 0.804059
 **********
 **   18 **HESSE 
 **********

 FCN=   7481.850     FROM HESSE     STATUS=OK           411 CALLS     3132 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0498        .23763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.8917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.4650        .13255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     30.419        35.720        .72645E-04   -1.4604    
   5  Prefactor     .73339E-01    1.5655        .72918E-01   -1.5654    
   6  norm          .10000E-03    3.3965        .15529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.5777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.9005        5.4385        .18169E-03   -1.5265    
   9  norm          1.4536        1.9387        .13749E-03   -1.5467    
  10  norm          .10000E-03    4.0705        .16993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .89111        3.1041        .28172E-03   -1.5519    
  12  Prefactor     10.006        11.876        .12669E-03   -1.5075    
  13  Prefactor     14.497        12.925        .10519E-03   -1.4946    
  14  Prefactor     .10000E-03    18.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    42.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .40013        .62248        .81726E-04   -1.5581    
  17  norm          1.6106        1.4710        .96434E-04   -1.5454    
  18  Prefactor     15.099        11.407        .10307E-03   -1.4931    
  19  Prefactor     9.3931        61.516        .13069E-03   -1.5095    
  20  Prefactor     12.395        7.6760        .11378E-03   -1.5004    
  21  Prefactor     17.768        13.283        .95015E-04   -1.4865    
  22  Prefactor     .10000E-03    17.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2572        .22500        .26783E-03   -.84852    
  24  Prefactor     .80406        .14384        .21458E-03   -.99579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34737e-10
Minuit parameter uncertainties:
  1  5.28493e-06
  2  2.03654e-05
  3  1.99221e-06
  4  35.745
  5  0.677245
  6  1.29413e-06
  7  2.34891e-06
  8  5.43907
  9  1.9388
  10  4.00221e-06
  11  3.10463
  12  11.8793
  13  12.9275
  14  0.000172947
  15  5.88935e-05
  16  0.622495
  17  1.47101
  18  11.409
  19  48.1478
  20  7.67657
  21  13.2854
  22  0.00014699
  23  0.225171
  24  0.143904
Done.

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

Extracting fit parameters...

4FGL J0047.9+2233
   Spectrum: PowerLaw
177    Prefactor:  1.001e+01  1.188e+01  1.000e-04  1.000e+04 ( 1.000e-13)
178        Index:  2.509e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
179        Scale:  1.177e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  8.041e-01  1.439e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  1.257e+00  2.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.91
Ra Dec: 11.998 22.563
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/180892/likelihoodResults_675820801_676080001_4FGL_J0047.9+2233_daily_bin1684.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) = 7481.68536942
delta logL = 0.164284926424

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7481.67472409
delta logL = 0.174930250871

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.335       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1144       1.0000          .0000       10.000    
     3 'Normalizat'    1.2673       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79819       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+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=   7481.675     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      316 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.336        18.526        .99096E-04   -.15201E-03
   2  Index         2.1144        .61973        .96283E-02   -.13171E-04
   3  Normalizat    1.2671        .21723        .26688E-03   -.49158E-04
   4  Prefactor     .79827        .14266        .21521E-03   -.63286E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.3357
  Index      = 2.11438
  Normalizat = 1.26714
  Prefactor  = 0.798266
 **********
 **   18 **HESSE 
 **********

 FCN=   7481.675     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.336        18.149        .39638E-05   -1.4899    
   2  Index         2.1144        .60711        .38513E-03   -.61520    
   3  Normalizat    1.2671        .21741        .10675E-04   -.84553    
   4  Prefactor     .79827        .14277        .86083E-05   -.99792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21932e-11
Minuit parameter uncertainties:
  1  18.1553
  2  0.60937
  3  0.217562
  4  0.142837
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/180892': 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) = 7481.67472395
delta logL = 0.174930390927

Extracting fit parameters...

4FGL J0047.9+2233
   Spectrum: PowerLaw
177    Prefactor:  1.634e+01  1.816e+01  1.000e-04  1.000e+04 ( 1.000e-13)
178        Index:  2.114e+00  6.094e-01  0.000e+00  1.000e+01 (-1.000e+00)
179        Scale:  1.177e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  7.983e-01  1.428e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  1.267e+00  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.25
Ra Dec: 11.998 22.563
Photon Index (Free Index): 2.11 +/- 0.61
Photon Flux (Free Index): 2.69e-08 +/- 3.24e-08
Energy Flux (Free Index): 1.43e-05 +/- 1.80e-05

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/180892/cmap_HighResolution_675820801_676080001_4FGL_J0047.9+2233_daily_bin1684.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.05e-03', comment='SUCCESS', energy_flux2='1.43e-05', dlogl='1.75e-01', photon_flux2='2.69e-08', job_status='DONE', time_completed='2022-06-05 00:19:21.962737', photon_index_error2='0.61', photon_index2='2.11', ts='0.91', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='1.80e-05', EG='1.26', time_epoch_completed='1654413561.96', return_code='0', job_id='180892', GAL2='0.80', EG2='1.27', return_code2='0', photon_flux_error2='3.24e-08', ts2='1.25', photon_index='2.51' WHERE bin_id='1684' AND source_name='4FGL J0047.9+2233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jun  5 00:19:21 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0039>
Subject: Job 180892: <4FGL_J0047.9+2233_daily_bin1684> in cluster <slac> Done

Job <4FGL_J0047.9+2233_daily_bin1684> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jun  5 00:04:40 2022
Job was executed on host(s) <bullet0039>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jun  5 00:05:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jun  5 00:05:29 2022
Terminated at Sun Jun  5 00:19:22 2022
Results reported at Sun Jun  5 00:19:22 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0047.9+2233_daily_bin1684 11.9981 22.5632 675820801 676080001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0047.9+2233 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   730.09 sec.
    Max Memory :                                 632 MB
    Average Memory :                             265.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2929 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            882 sec.

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

