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


Performing analysis on: 4FGL_J0841.3-3554_daily_bin1704
RA = 130.341, Dec = -35.9041
tmin = 681004801, tmax = 681264001
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='364434', job_status='RUN', time_executed='2022-08-04 01:54:43.245187', time_epoch_executed='1659603283.25' WHERE source_name='4FGL J0841.3-3554' and cadence='daily' and bin_id='1704'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/364434

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/364434/ft1_4FGL_J0841.3-3554_daily_bin1704.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/364434/ft2_4FGL_J0841.3-3554_daily_bin1704.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/364434/ft1_4FGL_J0841.3-3554_daily_bin1704.fits outfile=/scratch/kocevski/364434/ft1_filteredMKT_4FGL_J0841.3-3554_daily_bin1704.fits ra=130.341 dec=-35.9041 rad=12.0 tmin=681004801.0 tmax=681264001.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 2.97
user 2.77
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/364434/ft2_4FGL_J0841.3-3554_daily_bin1704.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/364434/ft2_4FGL_J0841.3-3554_daily_bin1704.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/364434/ft1_filteredMKT_4FGL_J0841.3-3554_daily_bin1704.fits evtable="EVENTS" outfile="/scratch/kocevski/364434/ft1_filtered_4FGL_J0841.3-3554_daily_bin1704.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.55
user 0.36
sys 0.15

Number of photons that the gtmktime cut: 5985

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/364434/ft1_filtered_4FGL_J0841.3-3554_daily_bin1704.fits" evtable="EVENTS" scfile=/scratch/kocevski/364434/ft2_4FGL_J0841.3-3554_daily_bin1704.fits sctable="SC_DATA" outfile=/scratch/kocevski/364434/ltcube_681004801_681264001_4FGL_J0841.3-3554_daily_bin1704.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/364434/ft2_4FGL_J0841.3-3554_daily_bin1704.fits
.....................!
real 15.20
user 14.77
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/364434/ft1_filtered_4FGL_J0841.3-3554_daily_bin1704.fits evtable="EVENTS" scfile=/scratch/kocevski/364434/ft2_4FGL_J0841.3-3554_daily_bin1704.fits sctable="SC_DATA" expcube=/scratch/kocevski/364434/ltcube_681004801_681264001_4FGL_J0841.3-3554_daily_bin1704.fits outfile=/scratch/kocevski/364434/expmap_681004801_681264001_4FGL_J0841.3-3554_daily_bin1704.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/364434/ltcube_681004801_681264001_4FGL_J0841.3-3554_daily_bin1704.fits
.....................!
real 192.99
user 186.63
sys 5.71

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 Puppis A in ROI with RadialDisk spatial model.
Extended source Vela X in ROI with RadialDisk spatial model.
Extended source Vela Junior in ROI with RadialDisk spatial model.
Added 206 point sources and 3 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 J0841.3-3554 @ 130.341 -35.9041

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/364434/ft1_filtered_4FGL_J0841.3-3554_daily_bin1704.fits scfile=/scratch/kocevski/364434/ft2_4FGL_J0841.3-3554_daily_bin1704.fits outfile=/scratch/kocevski/364434/cmap_681004801_681264001_4FGL_J0841.3-3554_daily_bin1704.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=130.341 yref=-35.9041 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/364434/ft1_filtered_4FGL_J0841.3-3554_daily_bin1704.fits scfile=/scratch/kocevski/364434/ft2_4FGL_J0841.3-3554_daily_bin1704.fits outfile=/scratch/kocevski/364434/cmap_HighResolution_681004801_681264001_4FGL_J0841.3-3554_daily_bin1704.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=130.341 yref=-35.9041 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/364434/ft1_filtered_4FGL_J0841.3-3554_daily_bin1704.fits evtable="EVENTS" scfile=/scratch/kocevski/364434/ft2_4FGL_J0841.3-3554_daily_bin1704.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/364434/Model_4FGL_J0841.3-3554_daily_bin1704.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
adding source Puppis A
adding source Vela Junior
adding source Vela X
Working on...
/scratch/kocevski/364434/ft1_filtered_4FGL_J0841.3-3554_daily_bin1704.fits.....................!
real 794.69
user 791.75
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/364434/ft1_filtered_4FGL_J0841.3-3554_daily_bin1704.fits', '/scratch/kocevski/364434/ft2_4FGL_J0841.3-3554_daily_bin1704.fits', expMap='/scratch/kocevski/364434/expmap_681004801_681264001_4FGL_J0841.3-3554_daily_bin1704.fits', expCube='/scratch/kocevski/364434/ltcube_681004801_681264001_4FGL_J0841.3-3554_daily_bin1704.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/364434/Model_4FGL_J0841.3-3554_daily_bin1704.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0841.3-3554'

4FGL J0841.3-3554
   Spectrum: LogParabola
329         norm:  1.441e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  1.555e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
331         beta:  2.032e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  3.544e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/364434/ft1_filtered_4FGL_J0841.3-3554_daily_bin1704.fits
Spacecraft file(s): /scratch/kocevski/364434/ft2_4FGL_J0841.3-3554_daily_bin1704.fits
Exposure map: /scratch/kocevski/364434/expmap_681004801_681264001_4FGL_J0841.3-3554_daily_bin1704.fits
Exposure cube: /scratch/kocevski/364434/ltcube_681004801_681264001_4FGL_J0841.3-3554_daily_bin1704.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/364434/Model_4FGL_J0841.3-3554_daily_bin1704.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) = 48609.3216864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.429       1.0000         .10000E-03   10000.    
     3 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.555       1.0000         .10000E-03   10000.    
     5 'norm      '    .10273E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .29003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    106.54       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0466       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11388E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.032       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.2728       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .98663       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   48609.31     FROM MIGRAD    STATUS=CONVERGED    304 CALLS     1678 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.233        .12537E-05** at limit **
   2  Prefactor     21.413        16.911       -.27614E-05   -.56005E-04
   3  norm          .10000E-03    15.640        .72137E-05** at limit **
   4  Prefactor     18.668        156.03        .24941E-03    .48769E-04
   5  norm          .10000E-03    10.368       -.83423E-06** at limit **
   6  Prefactor     .10000E-03    2.5919       -.14190E-06** at limit **
   7  Prefactor     .10000E-03    207.46       -.13328E-03** at limit **
   8  norm          .10000E-03    2.0186       -.26753E-07** at limit **
   9  Prefactor     .10000E-03    18.420       -.10376E-04** at limit **
  10  norm          106.56        42.503        .11698E-04   -.13349E-04
  11  Prefactor     4.0406        6.4947        .54635E-06   -.49681E-03
  12  Prefactor     .10000E-03    9.1271        .19460E-06** at limit **
  13  Prefactor     .10009E-03    1.7348        .86544E-06** at limit **
  14  Prefactor     20.036        24.699        .34479E-05   -.26682E-04
  15  Normalizat    1.2728        .26539       -.19612E-05   -.28991E-03
  16  Prefactor     .98667        .31075E-01   -.11095E-05    .29796E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 21.4129
  norm       = 0.0001
  Prefactor  = 18.6675
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 106.555
  Prefactor  = 4.04064
  Prefactor  = 0.0001
  Prefactor  = 0.000100088
  Prefactor  = 20.0358
  Normalizat = 1.27276
  Prefactor  = 0.986671
 **********
 **   18 **HESSE 
 **********

 FCN=   48609.31     FROM HESSE     STATUS=OK           203 CALLS     1881 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.413        16.932        .86526E-04   -1.4782    
   3  norm          .10000E-03    15.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.668        156.40        .92980E-04   -1.4844    
   5  norm          .10000E-03    10.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.6763        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    215.31        .42808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.0228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          106.56        42.468        .38962E-04   -1.3640    
  11  Prefactor     4.0406        6.4718        .20045E-03   -1.5306    
  12  Prefactor     .10000E-03    9.2756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10009E-03    1.9072        .84498E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.036        24.728        .89489E-04   -1.4812    
  15  Normalizat    1.2728        .26714        .11792E-02   -.84383    
  16  Prefactor     .98667        .31996E-01    .15989E-03   -.93175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69995e-09
Minuit parameter uncertainties:
  1  7.39674e-05
  2  16.9353
  3  5.0935e-06
  4  108.452
  5  4.31501e-05
  6  2.05351e-05
  7  0.0018706
  8  7.04529e-06
  9  1.35943e-05
  10  42.4803
  11  6.47288
  12  1.1554e-05
  13  0.00081968
  14  24.7409
  15  0.267427
  16  0.0319966
Done.

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

Extracting fit parameters...

4FGL J0841.3-3554
   Spectrum: LogParabola
329         norm:  1.000e-04  7.045e-06  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  1.555e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
331         beta:  2.032e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  3.544e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
698    Prefactor:  9.867e-01  3.200e-02  0.000e+00  1.000e+01 ( 1.000e+00)
699        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
700        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
697   Normalization:  1.273e+00  2.674e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 130.341 -35.904
Photon Flux Upper Limit: 1.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/364434/likelihoodResults_681004801_681264001_4FGL_J0841.3-3554_daily_bin1704.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) = 48609.3158011
delta logL = -0.00235601095483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 48608.7197591
delta logL = 0.593685977547

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18812E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.6738       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2031       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98778       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   48608.72     FROM MIGRAD    STATUS=FAILED       103 CALLS      454 TOTAL
                     EDM=   .11E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .18429E-01    .69667        .23770E-03    .97759E-02
   2  alpha         4.6813        4.6241        .74697E-01    .32621E-02
   3  Normalizat    1.2020        .16369        .12068E-02   -.38739E-04
   4  Prefactor     .98776        .19933E-01    .15975E-03   -.35298E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   48608.72     FROM SIMPLEX   STATUS=UNCHANGED     82 CALLS      536 TOTAL
                     EDM=   .81E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .18429E-01    .69667        .22010E-04    .97759E-02
   2  alpha         4.6813        4.6241        .50823E-02    .32621E-02
   3  Normalizat    1.2020        .16369        .18103E-03   -.38739E-04
   4  Prefactor     .98776        .19933E-01    .17125E-04   -.35298E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   48608.72     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      567 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .18428E-01    .80953        .95082E-05    .80350E-03
   2  alpha         4.6813        4.4319        .14939E-01    .93023E-05
   3  Normalizat    1.2020        .24264        .48270E-04   -.34669E-04
   4  Prefactor     .98776        .29279E-01    .63901E-05   -.76858E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0184281
  alpha      = 4.68131
  Normalizat = 1.20196
  Prefactor  = 0.987764
 **********
 **   18 **HESSE 
 **********

 FCN=   48608.72     FROM HESSE     STATUS=OK            25 CALLS      592 TOTAL
                     EDM=   .77E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .18428E-01    .18221        .38033E-06   -1.5681    
   2  alpha         4.6813        4.2774        .59757E-03    1.0603    
   3  Normalizat    1.2020        .26069        .96540E-05   -.86542    
   4  Prefactor     .98776        .31382E-01    .12780E-05   -.93139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.67438e-12
Minuit parameter uncertainties:
  1  0.115578
  2  2.00558
  3  0.260968
  4  0.031383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/364434': 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) = 48608.7197316
delta logL = 0.59371350312

Extracting fit parameters...

4FGL J0841.3-3554
   Spectrum: LogParabola
329         norm:  1.843e-02  1.156e-01  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  4.681e+00  2.006e+00  0.000e+00  5.000e+00 ( 1.000e+00)
331         beta:  2.032e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  3.544e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
698    Prefactor:  9.878e-01  3.138e-02  0.000e+00  1.000e+01 ( 1.000e+00)
699        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
700        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
697   Normalization:  1.202e+00  2.610e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.32
Ra Dec: 130.341 -35.904
Photon Index (Free Index): 4.68 +/- 2.01
Photon Flux (Free Index): 1.04e-07 +/- 1.02e-07
Energy Flux (Free Index): 1.69e-05 +/- 1.68e-05

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/364434/cmap_HighResolution_681004801_681264001_4FGL_J0841.3-3554_daily_bin1704.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.17e-05', comment='SUCCESS', energy_flux2='1.69e-05', dlogl='5.94e-01', photon_flux2='1.04e-07', job_status='DONE', time_completed='2022-08-04 02:59:17.983492', photon_index_error2='2.01', photon_index2='4.68', ts='-0.00', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.98e-08', energy_flux_error2='1.68e-05', EG='1.27', time_epoch_completed='1659607157.98', return_code='0', job_id='364434', GAL2='0.99', EG2='1.20', return_code2='0', photon_flux_error2='1.02e-07', ts2='1.32', photon_index='1.56' WHERE bin_id='1704' AND source_name='4FGL J0841.3-3554' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug  4 02:59:18 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 364335: <4FGL_J0841.3-3554_daily_bin1704> in cluster <slac> Done

Job <4FGL_J0841.3-3554_daily_bin1704> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Aug  4 00:06:24 2022
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug  4 01:51:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug  4 01:51:51 2022
Terminated at Thu Aug  4 02:58:12 2022
Results reported at Thu Aug  4 02:58:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0841.3-3554_daily_bin1704 130.341 -35.9041 681004801 681264001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0841.3-3554 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   3852.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             431.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3981 sec.
    Turnaround time :                            10308 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 364434: <4FGL_J0841.3-3554_daily_bin1704> in cluster <slac> Done

Job <4FGL_J0841.3-3554_daily_bin1704> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Aug  4 00:06:28 2022
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug  4 01:53:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug  4 01:53:08 2022
Terminated at Thu Aug  4 02:59:19 2022
Results reported at Thu Aug  4 02:59:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0841.3-3554_daily_bin1704 130.341 -35.9041 681004801 681264001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0841.3-3554 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   3873.00 sec.
    Max Memory :                                 1262 MB
    Average Memory :                             436.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3970 sec.
    Turnaround time :                            10371 sec.

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

