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


Performing analysis on: 4FGL_J0047.9+2233_weekly_bin741
RA = 11.9981, Dec = 22.5632
tmin = 687139201, 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='378942', job_status='RUN', time_executed='2022-10-18 00:37:31.733222', time_epoch_executed='1666078651.73' WHERE source_name='4FGL J0047.9+2233' and cadence='weekly' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/378942

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

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=687139201.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>=687139201.0 && nMetStart<687744001.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/378942/ft1_4FGL_J0047.9+2233_weekly_bin741.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/378942/ft2_4FGL_J0047.9+2233_weekly_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/378942/ft1_4FGL_J0047.9+2233_weekly_bin741.fits outfile=/scratch/kocevski/378942/ft1_filteredMKT_4FGL_J0047.9+2233_weekly_bin741.fits ra=11.9981 dec=22.5632 rad=12.0 tmin=687139201.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 6.59
user 6.32
sys 0.25

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

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

Number of photons that the gtmktime cut: 306

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/378942/ft1_filtered_4FGL_J0047.9+2233_weekly_bin741.fits" evtable="EVENTS" scfile=/scratch/kocevski/378942/ft2_4FGL_J0047.9+2233_weekly_bin741.fits sctable="SC_DATA" outfile=/scratch/kocevski/378942/ltcube_687139201_687744001_4FGL_J0047.9+2233_weekly_bin741.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/378942/ft2_4FGL_J0047.9+2233_weekly_bin741.fits
.....................!
real 27.03
user 26.55
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/378942/ft1_filtered_4FGL_J0047.9+2233_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/378942/ft2_4FGL_J0047.9+2233_weekly_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/378942/ltcube_687139201_687744001_4FGL_J0047.9+2233_weekly_bin741.fits outfile=/scratch/kocevski/378942/expmap_687139201_687744001_4FGL_J0047.9+2233_weekly_bin741.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/378942/ltcube_687139201_687744001_4FGL_J0047.9+2233_weekly_bin741.fits
.....................!
real 190.41
user 185.05
sys 4.98

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/378942/ft1_filtered_4FGL_J0047.9+2233_weekly_bin741.fits scfile=/scratch/kocevski/378942/ft2_4FGL_J0047.9+2233_weekly_bin741.fits outfile=/scratch/kocevski/378942/cmap_687139201_687744001_4FGL_J0047.9+2233_weekly_bin741.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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/378942/ft1_filtered_4FGL_J0047.9+2233_weekly_bin741.fits scfile=/scratch/kocevski/378942/ft2_4FGL_J0047.9+2233_weekly_bin741.fits outfile=/scratch/kocevski/378942/cmap_HighResolution_687139201_687744001_4FGL_J0047.9+2233_weekly_bin741.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.59
user 0.42
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/378942/ft1_filtered_4FGL_J0047.9+2233_weekly_bin741.fits', '/scratch/kocevski/378942/ft2_4FGL_J0047.9+2233_weekly_bin741.fits', expMap='/scratch/kocevski/378942/expmap_687139201_687744001_4FGL_J0047.9+2233_weekly_bin741.fits', expCube='/scratch/kocevski/378942/ltcube_687139201_687744001_4FGL_J0047.9+2233_weekly_bin741.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/378942/Model_4FGL_J0047.9+2233_weekly_bin741.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/378942/ft1_filtered_4FGL_J0047.9+2233_weekly_bin741.fits
Spacecraft file(s): /scratch/kocevski/378942/ft2_4FGL_J0047.9+2233_weekly_bin741.fits
Exposure map: /scratch/kocevski/378942/expmap_687139201_687744001_4FGL_J0047.9+2233_weekly_bin741.fits
Exposure cube: /scratch/kocevski/378942/ltcube_687139201_687744001_4FGL_J0047.9+2233_weekly_bin741.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/378942/Model_4FGL_J0047.9+2233_weekly_bin741.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) = 3279.88406787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23244E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .69062E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .58415E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .66058E-08   1.0000          .0000       .10000E+07
     5 'norm      '    .63193E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .27185E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .28944E-01   1.0000          .0000       .10000E+07
     8 'norm      '    4.9433       1.0000          .0000       .10000E+07
     9 'norm      '    .64294E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .33691E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .14994E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .52828E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .24148E-03   1.0000          .0000       .10000E+07
    14 'norm      '    1.2174       1.0000          .0000       .10000E+07
    15 'norm      '    3.7076       1.0000          .0000       .10000E+07
    16 'Prefactor '    .13538E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .11052E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .31752E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    40.455       1.0000          .0000       .10000E+07
    20 'Prefactor '    .28899E-01   1.0000          .0000       .10000E+07
    21 'Normalizat'    .82807       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2363       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=   3279.850     FROM MIGRAD    STATUS=CONVERGED    162 CALLS     1375 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        3.4954        .12748E-06** at limit **
   2  Prefactor     .53846E-08    8.6980        .84189E-07** at limit **
   3  Prefactor      .0000        7.8004        .64149E-06** at limit **
   4  Prefactor      .0000        1.9026       -.36253E-06** at limit **
   5  norm          .22632E-06    15.464       -.84209E-06** at limit **
   6  Prefactor     .19950E-05    10.278       -.16413E-06** at limit **
   7  Prefactor      .0000        70.821       -.32612E-06** at limit **
   8  norm          4.9410        4.8618        .36435E-06   -.24667E-02
   9  norm          .49405E-08    9.1052        .44230E-06** at limit **
  10  Prefactor     .55511E-10    4.3195       -.42199E-06** at limit **
  11  Prefactor     .79720E-06    11.120        .29324E-06** at limit **
  12  Prefactor     .54401E-06    58.230        .33679E-05** at limit **
  13  Prefactor     .23914E-06    82.432        .27839E-06** at limit **
  14  norm          1.2176        .94579        .42462E-07   -.26726E-02
  15  norm          3.7072        2.4066       -.18668E-06    .33082E-02
  16  Prefactor     .14752E-05    11.745        .15447E-07** at limit **
  17  Prefactor     .18142E-05    16.649        .63366E-06** at limit **
  18  Prefactor      .0000        3.2310        .85998E-07** at limit **
  19  Prefactor     40.330        1.3350        .10418E-07   -.46943E-02
  20  Prefactor     .55511E-10    32.543        .32981E-06** at limit **
  21  Normalizat    .82845        .31995        .13068E-04   -.10023E-03
  22  Prefactor     1.2363        .22852       -.31518E-06   -.15167E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 5.38458e-09
  Prefactor  = 0
  Prefactor  = 0
  norm       = 2.26319e-07
  Prefactor  = 1.99496e-06
  Prefactor  = 0
  norm       = 4.94095
  norm       = 4.94049e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 7.97196e-07
  Prefactor  = 5.44009e-07
  Prefactor  = 2.39142e-07
  norm       = 1.21756
  norm       = 3.70723
  Prefactor  = 1.47521e-06
  Prefactor  = 1.81416e-06
  Prefactor  = 0
  Prefactor  = 40.3302
  Prefactor  = 5.55112e-11
  Normalizat = 0.828445
  Prefactor  = 1.23626
 **********
 **   18 **HESSE 
 **********

 FCN=   3279.850     FROM HESSE     STATUS=OK           380 CALLS     1755 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        3.4834        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .53846E-08    8.7110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        7.7987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        1.8984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .22632E-06    16.376        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .19950E-05    18.631        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        25.796        .95475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.9410        4.8618        .45212E-03   -1.5664    
   9  norm          .49405E-08    9.1223        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    4.3180        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .79720E-06    26.452        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .54401E-06    59.633        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .23914E-06    83.259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2176        .95189        .10228E-02   -1.5686    
  15  norm          3.7072        2.4074        .52423E-03   -1.5669    
  16  Prefactor     .14752E-05    21.644        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .18142E-05    28.359        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        3.2290        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     40.330        21.037        .15724E-03   -1.5581    
  20  Prefactor     .55511E-10    32.518        .16509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .82845        .28135        .72742E-01   -.99022    
  22  Prefactor     1.2363        .19999        .33825E-01   -.85223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9625e-07
Minuit parameter uncertainties:
  1  7.91551e-06
  2  0.000433271
  3  1.84861e-05
  4  1.28642e-05
  5  0.00385045
  6  0.0121931
  7  1.13779e-05
  8  4.86184
  9  0.000423831
  10  3.01572e-05
  11  0.0091844
  12  0.0113912
  13  0.00892448
  14  0.951887
  15  2.40743
  16  0.0113014
  17  0.0143456
  18  4.13564e-06
  19  21.0375
  20  6.7823e-05
  21  0.281847
  22  0.200114
Done.

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

Extracting fit parameters...

4FGL J0047.9+2233
   Spectrum: PowerLaw
177    Prefactor:  7.972e-07  9.184e-03  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.236e+00  2.001e-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.284e-01  2.818e-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.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/378942/likelihoodResults_687139201_687744001_4FGL_J0047.9+2233_weekly_bin741.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) = 3279.86815225
delta logL = -0.0186422539732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3279.48275008
delta logL = 0.366759918811

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10645E-01   1.0000          .0000       .10000E+07
     2 'Index     '    6.0723       1.0000          .0000       10.000    
     3 'Normalizat'    .71530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2898       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.

 FCN=   3279.483     FROM MIGRAD    STATUS=CONVERGED    187 CALLS      415 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10417E-01    .24400        .15683E-03** at limit **
   2  Index         6.0828        2.8494        .13298       -.18224E-03
   3  Normalizat    .71488        .58471E-01    .77902E-01    .22594E-03
   4  Prefactor     1.2902        .41817E-01    .32790E-01   -.22116E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0104167
  Index      = 6.08275
  Normalizat = 0.714881
  Prefactor  = 1.2902
 **********
 **   18 **HESSE 
 **********

 FCN=   3279.483     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      448 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10417E-01    .77379        .71702E-05   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.0828        7.9397        .45242E-02   -12.348    
   3  Normalizat    .71488        .24412        .34489E-03   -2.1085    
   4  Prefactor     1.2902        .16939        .18838E-03   -.83599    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.09006e-10
Minuit parameter uncertainties:
  1  0.179559
  2  7.33613
  3  0.244496
  4  0.169463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/378942': 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): 102
logL (Free Index) = 3279.48274389
delta logL = 0.366766102728

Extracting fit parameters...

4FGL J0047.9+2233
   Spectrum: PowerLaw
177    Prefactor:  1.042e-02  1.796e-01  0.000e+00  1.000e+06 ( 1.000e-13)
178        Index:  6.083e+00  7.336e+00  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.290e+00  1.695e-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:  7.149e-01  2.445e-01  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/378942/cmap_HighResolution_687139201_687744001_4FGL_J0047.9+2233_weekly_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', job_status='DONE', photon_flux_upper_limit='1.58e-07', time_completed='2022-10-18 00:45:19.028032', job_id='378942', GAL2='1.29', fit_tolerance='1e-08', EG2='0.71', EG='0.83', time_epoch_completed='1666079119.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='3.67e-01', ts2='0.85', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='741' AND source_name='4FGL J0047.9+2233' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 18 00:45:19 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 378942: <4FGL_J0047.9+2233_weekly_bin741> in cluster <slac> Done

Job <4FGL_J0047.9+2233_weekly_bin741> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Oct 18 00:35:46 2022
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 00:35:47 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:35:47 2022
Terminated at Tue Oct 18 00:45:19 2022
Results reported at Tue Oct 18 00:45:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0047.9+2233_weekly_bin741 11.9981 22.5632 687139201 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 :                                   469.00 sec.
    Max Memory :                                 1224 MB
    Average Memory :                             280.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   572 sec.
    Turnaround time :                            573 sec.

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

