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


Performing analysis on: 4FGL_J0347.0+4844_weekly_bin715
RA = 56.7527, Dec = 48.7376
tmin = 671414401, tmax = 672019201
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='933880', job_status='RUN', time_executed='2022-04-19 02:23:51.580213', time_epoch_executed='1650360231.58' WHERE source_name='4FGL J0347.0+4844' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933880

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933880/ft1_4FGL_J0347.0+4844_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933880/ft2_4FGL_J0347.0+4844_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933880/ft1_4FGL_J0347.0+4844_weekly_bin715.fits outfile=/scratch/kocevski/933880/ft1_filteredMKT_4FGL_J0347.0+4844_weekly_bin715.fits ra=56.7527 dec=48.7376 rad=12.0 tmin=671414401.0 tmax=672019201.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 7.58
user 7.25
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/933880/ft2_4FGL_J0347.0+4844_weekly_bin715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/933880/ft2_4FGL_J0347.0+4844_weekly_bin715.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/933880/ft1_filteredMKT_4FGL_J0347.0+4844_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/933880/ft1_filtered_4FGL_J0347.0+4844_weekly_bin715.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.56
user 0.40
sys 0.16

Number of photons that the gtmktime cut: 7667

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/933880/ft1_filtered_4FGL_J0347.0+4844_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/933880/ft2_4FGL_J0347.0+4844_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/933880/ltcube_671414401_672019201_4FGL_J0347.0+4844_weekly_bin715.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/933880/ft2_4FGL_J0347.0+4844_weekly_bin715.fits
.....................!
real 28.17
user 27.69
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933880/ft1_filtered_4FGL_J0347.0+4844_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/933880/ft2_4FGL_J0347.0+4844_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/933880/ltcube_671414401_672019201_4FGL_J0347.0+4844_weekly_bin715.fits outfile=/scratch/kocevski/933880/expmap_671414401_672019201_4FGL_J0347.0+4844_weekly_bin715.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/933880/ltcube_671414401_672019201_4FGL_J0347.0+4844_weekly_bin715.fits
.....................!
real 192.25
user 187.06
sys 4.72

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
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Added 172 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0347.0+4844 @ 56.7527 48.7376

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/933880/ft1_filtered_4FGL_J0347.0+4844_weekly_bin715.fits scfile=/scratch/kocevski/933880/ft2_4FGL_J0347.0+4844_weekly_bin715.fits outfile=/scratch/kocevski/933880/cmap_671414401_672019201_4FGL_J0347.0+4844_weekly_bin715.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=56.7527 yref=48.7376 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.61
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933880/ft1_filtered_4FGL_J0347.0+4844_weekly_bin715.fits scfile=/scratch/kocevski/933880/ft2_4FGL_J0347.0+4844_weekly_bin715.fits outfile=/scratch/kocevski/933880/cmap_HighResolution_671414401_672019201_4FGL_J0347.0+4844_weekly_bin715.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=56.7527 yref=48.7376 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.60
user 0.43
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/933880/ft1_filtered_4FGL_J0347.0+4844_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/933880/ft2_4FGL_J0347.0+4844_weekly_bin715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/933880/Model_4FGL_J0347.0+4844_weekly_bin715.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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/scratch/kocevski/933880/ft1_filtered_4FGL_J0347.0+4844_weekly_bin715.fits.....................!
real 1347.34
user 1342.58
sys 1.51

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/933880/ft1_filtered_4FGL_J0347.0+4844_weekly_bin715.fits', '/scratch/kocevski/933880/ft2_4FGL_J0347.0+4844_weekly_bin715.fits', expMap='/scratch/kocevski/933880/expmap_671414401_672019201_4FGL_J0347.0+4844_weekly_bin715.fits', expCube='/scratch/kocevski/933880/ltcube_671414401_672019201_4FGL_J0347.0+4844_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/933880/Model_4FGL_J0347.0+4844_weekly_bin715.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0347.0+4844'

4FGL J0347.0+4844
   Spectrum: PowerLaw
317    Prefactor:  4.692e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  2.577e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.017e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/933880/ft1_filtered_4FGL_J0347.0+4844_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/933880/ft2_4FGL_J0347.0+4844_weekly_bin715.fits
Exposure map: /scratch/kocevski/933880/expmap_671414401_672019201_4FGL_J0347.0+4844_weekly_bin715.fits
Exposure cube: /scratch/kocevski/933880/ltcube_671414401_672019201_4FGL_J0347.0+4844_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/933880/Model_4FGL_J0347.0+4844_weekly_bin715.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) = 71809.875646

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.572       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .26913       1.0000         .10000E-03   10000.    
     3 'norm      '    4.8977       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.4659       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.725       1.0000         .10000E-03   10000.    
     6 'norm      '    1.9419       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9911       1.0000         .10000E-03   10000.    
     9 'norm      '    27.322       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.019       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25270       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.0022       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0111       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.6676       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .92711       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   71809.80     FROM MIGRAD    STATUS=CONVERGED    343 CALLS     1545 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.571        7.5811        .22532E-06   -.33388E-04
   2  Prefactor     .26941        .66677E-01   -.27583E-07   -.28878E-02
   3  norm          4.8976        2.4432        .98718E-07   -.21208E-03
   4  Prefactor     6.4638        6.3119        .26585E-06   -.90154E-04
   5  Prefactor     19.727        19.766        .20847E-06   -.34486E-04
   6  norm          1.9420        .39194        .11160E-08    .68778E-04
   7  Prefactor     .10000E-03    34.067        .80386E-06** at limit **
   8  Prefactor     8.0254        18.577       -.18177E-05    .18047E-04
   9  norm          27.261        34.326       -.11822E-05   -.15200E-04
  10  Prefactor     17.016        13.363        .26211E-06    .22485E-05
  11  Prefactor     .26910        4.9862        .61157E-05    .35003E-05
  12  Prefactor     .10000E-03    22.287        .40673E-06** at limit **
  13  norm          8.0040        5.1219        .27689E-06   -.73937E-05
  14  Prefactor     5.0117        3.6410       -.12599E-07    .91721E-04
  15  Normalizat    1.6677        .18148       -.24526E-05   -.45344E-05
  16  Prefactor     .92712        .19182E-01   -.79217E-07   -.28936E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.5708
  Prefactor  = 0.269413
  norm       = 4.89759
  Prefactor  = 6.46383
  Prefactor  = 19.7269
  norm       = 1.94202
  Prefactor  = 0.0001
  Prefactor  = 8.02536
  norm       = 27.2607
  Prefactor  = 17.0161
  Prefactor  = 0.269098
  Prefactor  = 0.000100001
  norm       = 8.00395
  Prefactor  = 5.0117
  Normalizat = 1.66766
  Prefactor  = 0.927124
 **********
 **   18 **HESSE 
 **********

 FCN=   71809.80     FROM HESSE     STATUS=OK           209 CALLS     1754 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.571        7.6357        .11297E-03   -1.4999    
   2  Prefactor     .26941        .88356        .20578E-02   -1.5604    
   3  norm          4.8976        2.4435        .90874E-03   -1.5265    
   4  Prefactor     6.4638        6.3191        .15783E-03   -1.5199    
   5  Prefactor     19.727        19.815        .90182E-04   -1.4819    
   6  norm          1.9420        .39288        .68229E-04   -1.5429    
   7  Prefactor     .10000E-03    34.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.0254        18.822        .14184E-03   -1.5141    
   9  norm          27.261        34.940        .76643E-04   -1.4663    
  10  Prefactor     17.016        13.371        .97086E-04   -1.4883    
  11  Prefactor     .26910        5.2872        .38265E-02   -1.5604    
  12  Prefactor     .10000E-03    22.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.0040        5.1178        .14174E-03   -1.5142    
  14  Prefactor     5.0117        3.6399        .17964E-03   -1.5260    
  15  Normalizat    1.6677        .18954        .81528E-03   -.73170    
  16  Prefactor     .92712        .20173E-01    .11723E-03   -.95200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16781e-09
Minuit parameter uncertainties:
  1  7.63627
  2  0.883601
  3  2.4435
  4  6.31974
  5  19.8218
  6  0.392881
  7  0.000186351
  8  18.8356
  9  34.9663
  10  13.3736
  11  2.38541
  12  0.000214755
  13  5.11812
  14  3.64007
  15  0.189624
  16  0.0201731
Done.

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

Extracting fit parameters...

4FGL J0347.0+4844
   Spectrum: PowerLaw
317    Prefactor:  8.025e+00  1.884e+01  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  2.577e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.017e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  9.271e-01  2.017e-02  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.668e+00  1.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 56.753 48.738
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/933880/likelihoodResults_671414401_672019201_4FGL_J0347.0+4844_weekly_bin715.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 71809.2908118
delta logL = 0.510496552568

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 71809.2540701
delta logL = 0.547238234576

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68170E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    6.5575       1.0000          .0000       10.000    
     3 'Normalizat'    1.6321       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92936       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   71809.25     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      376 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67763E-02    .20725E-01    .44200E-02    .94239E-01
   2  Index         6.5611        .89191        .21260        .72012E-03
   3  Normalizat    1.6321        .21282E-01    .18468       -.14130E-04
   4  Prefactor     .92937        .23881E-02    .26495E-01   -.34493E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00677628
  Index      = 6.56115
  Normalizat = 1.63213
  Prefactor  = 0.929365
 **********
 **   18 **HESSE 
 **********

 FCN=   71809.25     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      411 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67763E-02    .26824        .16414E-03   -1.5692    
   2  Index         6.5611        7.6937        .12224E-01    .31754    
   3  Normalizat    1.6321        .11422        .82232E-03   -.74130    
   4  Prefactor     .92937        .12782E-01    .11709E-03   -.95122    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.02056e-07
Minuit parameter uncertainties:
  1  0.0846366
  2  5.64768
  3  0.114236
  4  0.0127825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933880': 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) = 71809.2540669
delta logL = 0.547241473148

Extracting fit parameters...

4FGL J0347.0+4844
   Spectrum: PowerLaw
317    Prefactor:  6.776e-03  8.464e-02  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  6.561e+00  5.648e+00  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  1.017e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  9.294e-01  1.278e-02  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.632e+00  1.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.38
Ra Dec: 56.753 48.738
Photon Index (Free Index): 6.56 +/- 5.65
Photon Flux (Free Index): 5.02e-08 +/- 4.24e-08
Energy Flux (Free Index): 6.09e-06 +/- 5.89e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/933880/cmap_HighResolution_671414401_672019201_4FGL_J0347.0+4844_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.29e-03', comment='SUCCESS', energy_flux2='6.09e-06', dlogl='5.47e-01', photon_flux2='5.02e-08', job_status='DONE', time_completed='2022-04-19 03:35:23.738903', photon_index_error2='5.65', photon_index2='6.56', ts='0.23', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='5.89e-06', EG='1.67', time_epoch_completed='1650364523.74', return_code='0', job_id='933880', GAL2='0.93', EG2='1.63', return_code2='102', photon_flux_error2='4.24e-08', ts2='1.38', photon_index='2.58' WHERE bin_id='715' AND source_name='4FGL J0347.0+4844' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:35:23 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 930170: <4FGL_J0347.0+4844_weekly_bin715> in cluster <slac> Done

Job <4FGL_J0347.0+4844_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:05:46 2022
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:10:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:10:19 2022
Terminated at Tue Apr 19 03:25:11 2022
Results reported at Tue Apr 19 03:25:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0347.0+4844_weekly_bin715 56.7527 48.7376 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0347.0+4844 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   4290.00 sec.
    Max Memory :                                 633 MB
    Average Memory :                             442.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   4491 sec.
    Turnaround time :                            11965 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 933880: <4FGL_J0347.0+4844_weekly_bin715> in cluster <slac> Done

Job <4FGL_J0347.0+4844_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:16:41 2022
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:22:11 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:22:11 2022
Terminated at Tue Apr 19 03:35:24 2022
Results reported at Tue Apr 19 03:35:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0347.0+4844_weekly_bin715 56.7527 48.7376 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0347.0+4844 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   4285.00 sec.
    Max Memory :                                 1265 MB
    Average Memory :                             462.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   4393 sec.
    Turnaround time :                            11923 sec.

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

