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


Performing analysis on: 4FGL_J0047.9+2233_daily_bin1729
RA = 11.9981, Dec = 22.5632
tmin = 687484801, tmax = 687744001
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='369013', job_status='RUN', time_executed='2022-10-18 00:05:22.687495', time_epoch_executed='1666076722.69' WHERE source_name='4FGL J0047.9+2233' and cadence='daily' and bin_id='1729'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/369013

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/369013/ft1_4FGL_J0047.9+2233_daily_bin1729.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/369013/ft2_4FGL_J0047.9+2233_daily_bin1729.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/369013/ft1_4FGL_J0047.9+2233_daily_bin1729.fits outfile=/scratch/kocevski/369013/ft1_filteredMKT_4FGL_J0047.9+2233_daily_bin1729.fits ra=11.9981 dec=22.5632 rad=12.0 tmin=687484801.0 tmax=687744001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.77
user 3.40
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/369013/ft2_4FGL_J0047.9+2233_daily_bin1729.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/369013/ft1_filteredMKT_4FGL_J0047.9+2233_daily_bin1729.fits evtable="EVENTS" outfile="/scratch/kocevski/369013/ft1_filtered_4FGL_J0047.9+2233_daily_bin1729.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 1.05
user 0.34
sys 0.19

Number of photons that the gtmktime cut: 306

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/369013/ft1_filtered_4FGL_J0047.9+2233_daily_bin1729.fits" evtable="EVENTS" scfile=/scratch/kocevski/369013/ft2_4FGL_J0047.9+2233_daily_bin1729.fits sctable="SC_DATA" outfile=/scratch/kocevski/369013/ltcube_687484801_687744001_4FGL_J0047.9+2233_daily_bin1729.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/369013/ft2_4FGL_J0047.9+2233_daily_bin1729.fits
.....................!
real 12.66
user 11.94
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/369013/ft1_filtered_4FGL_J0047.9+2233_daily_bin1729.fits evtable="EVENTS" scfile=/scratch/kocevski/369013/ft2_4FGL_J0047.9+2233_daily_bin1729.fits sctable="SC_DATA" expcube=/scratch/kocevski/369013/ltcube_687484801_687744001_4FGL_J0047.9+2233_daily_bin1729.fits outfile=/scratch/kocevski/369013/expmap_687484801_687744001_4FGL_J0047.9+2233_daily_bin1729.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/369013/ltcube_687484801_687744001_4FGL_J0047.9+2233_daily_bin1729.fits
.....................!
real 192.38
user 185.39
sys 6.02

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/369013/ft1_filtered_4FGL_J0047.9+2233_daily_bin1729.fits scfile=/scratch/kocevski/369013/ft2_4FGL_J0047.9+2233_daily_bin1729.fits outfile=/scratch/kocevski/369013/cmap_687484801_687744001_4FGL_J0047.9+2233_daily_bin1729.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 1.85
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/369013/ft1_filtered_4FGL_J0047.9+2233_daily_bin1729.fits scfile=/scratch/kocevski/369013/ft2_4FGL_J0047.9+2233_daily_bin1729.fits outfile=/scratch/kocevski/369013/cmap_HighResolution_687484801_687744001_4FGL_J0047.9+2233_daily_bin1729.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 1.29
user 0.37
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/369013/ft1_filtered_4FGL_J0047.9+2233_daily_bin1729.fits', '/scratch/kocevski/369013/ft2_4FGL_J0047.9+2233_daily_bin1729.fits', expMap='/scratch/kocevski/369013/expmap_687484801_687744001_4FGL_J0047.9+2233_daily_bin1729.fits', expCube='/scratch/kocevski/369013/ltcube_687484801_687744001_4FGL_J0047.9+2233_daily_bin1729.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/369013/Model_4FGL_J0047.9+2233_daily_bin1729.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  0.000e+00  1.000e+06 ( 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/369013/ft1_filtered_4FGL_J0047.9+2233_daily_bin1729.fits
Spacecraft file(s): /scratch/kocevski/369013/ft2_4FGL_J0047.9+2233_daily_bin1729.fits
Exposure map: /scratch/kocevski/369013/expmap_687484801_687744001_4FGL_J0047.9+2233_daily_bin1729.fits
Exposure cube: /scratch/kocevski/369013/ltcube_687484801_687744001_4FGL_J0047.9+2233_daily_bin1729.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/369013/Model_4FGL_J0047.9+2233_daily_bin1729.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) = 3277.18810875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21411E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .20893E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .13441E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .14046E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .83226E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .63986E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .34689E-02   1.0000          .0000       .10000E+07
     8 'norm      '    4.8599       1.0000          .0000       .10000E+07
     9 'norm      '    .30633E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .86385E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .10802E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .82677E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .15289E-04   1.0000          .0000       .10000E+07
    14 'norm      '    1.1960       1.0000          .0000       .10000E+07
    15 'norm      '    3.6421       1.0000          .0000       .10000E+07
    16 'Prefactor '    .18660E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .18991E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .47952E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    39.812       1.0000          .0000       .10000E+07
    20 'Prefactor '    .11623E-01   1.0000          .0000       .10000E+07
    21 'Normalizat'    .83934       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2489       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3277.166     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     1371 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        4.0234       -.82683E-06** at limit **
   2  Prefactor     .22643E-06    8.9044        .36942E-05** at limit **
   3  Prefactor     .10547E-08    7.9076        .77402E-06** at limit **
   4  Prefactor     .55511E-10    1.8643        .44574E-07** at limit **
   5  norm          .77777E-06    14.695       -.17930E-06** at limit **
   6  Prefactor     .37845E-05    9.2466        .36815E-05** at limit **
   7  Prefactor     .12577E-04    46.850        .77451E-05** at limit **
   8  norm          4.8610        4.8141        .17073E-06   -.15249E-02
   9  norm          .19984E-06    8.7192       -.56575E-05** at limit **
  10  Prefactor      .0000        4.2455       -.13797E-06** at limit **
  11  Prefactor     .46440E-05    9.3872        .26154E-06** at limit **
  12  Prefactor      .0000        51.588        .47286E-05** at limit **
  13  Prefactor     .56404E-05    73.303       -.14819E-04** at limit **
  14  norm          1.1965        .93903        .45242E-07    .25454E-02
  15  norm          3.6445        2.3895       -.12099E-06    .10203E-02
  16  Prefactor      .0000        9.4413        .37988E-05** at limit **
  17  Prefactor     .64088E-06    12.229       -.25011E-05** at limit **
  18  Prefactor      .0000        3.1988        .12670E-05** at limit **
  19  Prefactor     39.692        1.1078        .36064E-07    .61963E-03
  20  Prefactor     .90729E-05    18.647       -.18018E-06** at limit **
  21  Normalizat    .83982        .32303        .23261E-04    .34062E-04
  22  Prefactor     1.2489        .23076       -.21808E-04    .64274E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 2.2643e-07
  Prefactor  = 1.05471e-09
  Prefactor  = 5.55112e-11
  norm       = 7.77767e-07
  Prefactor  = 3.78447e-06
  Prefactor  = 1.25774e-05
  norm       = 4.86104
  norm       = 1.9984e-07
  Prefactor  = 0
  Prefactor  = 4.64395e-06
  Prefactor  = 0
  Prefactor  = 5.64038e-06
  norm       = 1.19653
  norm       = 3.64454
  Prefactor  = 0
  Prefactor  = 6.40876e-07
  Prefactor  = 0
  Prefactor  = 39.6921
  Prefactor  = 9.07285e-06
  Normalizat = 0.839821
  Prefactor  = 1.24886
 **********
 **   18 **HESSE 
 **********

 FCN=   3277.166     FROM HESSE     STATUS=OK           376 CALLS     1747 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        4.0142        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .22643E-06    9.1376        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10547E-08    7.9061        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-10    1.8609        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .77777E-06    15.734        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .37845E-05    18.043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .12577E-04    58.364        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.8610        4.8144        .45606E-03   -1.5664    
   9  norm          .19984E-06    8.9148        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        4.2479        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .46440E-05    23.705        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        49.431        .14420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .56404E-05    78.472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1965        .94384        .10392E-02   -1.5686    
  15  norm          3.6445        2.3951        .52910E-03   -1.5670    
  16  Prefactor      .0000        20.576        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .64088E-06    27.738        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        3.1944        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     39.692        20.945        .15850E-03   -1.5582    
  20  Prefactor     .90729E-05    32.227        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .83982        .28407        .72959E-01   -.98608    
  22  Prefactor     1.2489        .20153        .33565E-01   -.84841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09232e-06
Minuit parameter uncertainties:
  1  9.73646e-06
  2  0.00287683
  3  0.000181574
  4  2.10168e-05
  5  0.0069963
  6  0.0165266
  7  0.0541879
  8  4.8144
  9  0.00266945
  10  4.40354e-06
  11  0.0209846
  12  5.53744e-05
  13  0.0420772
  14  0.943839
  15  2.39507
  16  4.19259e-06
  17  0.00843245
  18  1.23182e-05
  19  20.9451
  20  0.0341991
  21  0.284579
  22  0.201659
Done.

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

Extracting fit parameters...

4FGL J0047.9+2233
   Spectrum: PowerLaw
177    Prefactor:  4.644e-06  2.098e-02  0.000e+00  1.000e+06 ( 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:  1.249e+00  2.017e-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:  8.398e-01  2.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 11.998 22.563
Photon Flux Upper Limit: 1.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/369013/likelihoodResults_687484801_687744001_4FGL_J0047.9+2233_daily_bin1729.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) = 3277.18649883
delta logL = -0.0207182829058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3276.83434104
delta logL = 0.331439504999

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78024E-02   1.0000          .0000       .10000E+07
     2 'Index     '    6.1824       1.0000          .0000       10.000    
     3 'Normalizat'    .73154       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3004       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   3277.166     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      312 TOTAL
                     EDM=   .11E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .95680        .42118E-03** at limit **
   2  Index         .29416        .34826       -.53542E-04     .0000    
   3  Normalizat    .83982        1.1421       -.40169E-05    .10696E-04
   4  Prefactor     1.2489        1.0588       -.31939E-05    .30951E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.294161
  Normalizat = 0.839821
  Prefactor  = 1.24886
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   3277.166     FROM HESSE     STATUS=FAILED         9 CALLS      321 TOTAL
                     EDM=   .11E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .95680        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .68133E-01    .34826       -.53542E-04   -20.076    
   3  Normalizat    .83982        1.1421       -.40169E-05   -2.1555    
   4  Prefactor     1.2489        1.0588       -.31939E-05   -2.2932    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.10245e-12
Minuit parameter uncertainties:
  1  4.86861e-07
  2  0.350777
  3  1.17754
  4  1.07782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/369013': 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): 101
logL (Free Index) = 3277.16578045
delta logL = 9.78138814389e-08

Extracting fit parameters...

4FGL J0047.9+2233
   Spectrum: PowerLaw
177    Prefactor:  0.000e+00  4.869e-07  0.000e+00  1.000e+06 ( 1.000e-13)
178        Index:  2.942e-01  3.508e-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:  1.249e+00  1.078e+00  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:  8.398e-01  1.178e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 11.998 22.563

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/369013/cmap_HighResolution_687484801_687744001_4FGL_J0047.9+2233_daily_bin1729.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', job_status='DONE', photon_flux_upper_limit='1.56e-07', time_completed='2022-10-18 00:13:34.884270', job_id='369013', GAL2='1.25', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1666077214.88', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='9.78e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1729' AND source_name='4FGL J0047.9+2233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct 18 00:13:34 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 369013: <4FGL_J0047.9+2233_daily_bin1729> in cluster <slac> Done

Job <4FGL_J0047.9+2233_daily_bin1729> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Oct 18 00:05:04 2022
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 00:05:05 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 18 00:05:05 2022
Terminated at Tue Oct 18 00:13:35 2022
Results reported at Tue Oct 18 00:13:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0047.9+2233_daily_bin1729 11.9981 22.5632 687484801 687744001 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 :                                   431.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             311.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   510 sec.
    Turnaround time :                            511 sec.

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

