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


Performing analysis on: 4FGL_J0946.6+1016_weekly_bin729
RA = 146.661, Dec = 10.277
tmin = 679881601, tmax = 680486401
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='197116', job_status='RUN', time_executed='2022-07-26 02:33:16.274443', time_epoch_executed='1658827996.27' WHERE source_name='4FGL J0946.6+1016' and cadence='weekly' and bin_id='729'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/197116

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/197116/ft1_4FGL_J0946.6+1016_weekly_bin729.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/197116/ft2_4FGL_J0946.6+1016_weekly_bin729.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/197116/ft1_4FGL_J0946.6+1016_weekly_bin729.fits outfile=/scratch/kocevski/197116/ft1_filteredMKT_4FGL_J0946.6+1016_weekly_bin729.fits ra=146.661 dec=10.277 rad=12.0 tmin=679881601.0 tmax=680486401.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 8.44
user 8.12
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/197116/ft2_4FGL_J0946.6+1016_weekly_bin729.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/197116/ft2_4FGL_J0946.6+1016_weekly_bin729.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/197116/ft1_filteredMKT_4FGL_J0946.6+1016_weekly_bin729.fits evtable="EVENTS" outfile="/scratch/kocevski/197116/ft1_filtered_4FGL_J0946.6+1016_weekly_bin729.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.38
sys 0.16

Number of photons that the gtmktime cut: 712

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/197116/ft1_filtered_4FGL_J0946.6+1016_weekly_bin729.fits" evtable="EVENTS" scfile=/scratch/kocevski/197116/ft2_4FGL_J0946.6+1016_weekly_bin729.fits sctable="SC_DATA" outfile=/scratch/kocevski/197116/ltcube_679881601_680486401_4FGL_J0946.6+1016_weekly_bin729.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/197116/ft2_4FGL_J0946.6+1016_weekly_bin729.fits
.....................!
real 31.46
user 30.99
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/197116/ft1_filtered_4FGL_J0946.6+1016_weekly_bin729.fits evtable="EVENTS" scfile=/scratch/kocevski/197116/ft2_4FGL_J0946.6+1016_weekly_bin729.fits sctable="SC_DATA" expcube=/scratch/kocevski/197116/ltcube_679881601_680486401_4FGL_J0946.6+1016_weekly_bin729.fits outfile=/scratch/kocevski/197116/expmap_679881601_680486401_4FGL_J0946.6+1016_weekly_bin729.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/197116/ltcube_679881601_680486401_4FGL_J0946.6+1016_weekly_bin729.fits
.....................!
real 194.22
user 188.67
sys 4.97

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

Setting source of interest to:
4FGL J0946.6+1016 @ 146.661 10.277

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/197116/ft1_filtered_4FGL_J0946.6+1016_weekly_bin729.fits scfile=/scratch/kocevski/197116/ft2_4FGL_J0946.6+1016_weekly_bin729.fits outfile=/scratch/kocevski/197116/cmap_679881601_680486401_4FGL_J0946.6+1016_weekly_bin729.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=146.661 yref=10.277 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/197116/ft1_filtered_4FGL_J0946.6+1016_weekly_bin729.fits scfile=/scratch/kocevski/197116/ft2_4FGL_J0946.6+1016_weekly_bin729.fits outfile=/scratch/kocevski/197116/cmap_HighResolution_679881601_680486401_4FGL_J0946.6+1016_weekly_bin729.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=146.661 yref=10.277 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/197116/ft1_filtered_4FGL_J0946.6+1016_weekly_bin729.fits evtable="EVENTS" scfile=/scratch/kocevski/197116/ft2_4FGL_J0946.6+1016_weekly_bin729.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/197116/Model_4FGL_J0946.6+1016_weekly_bin729.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/197116/ft1_filtered_4FGL_J0946.6+1016_weekly_bin729.fits.....................!
real 78.93
user 77.49
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/197116/ft1_filtered_4FGL_J0946.6+1016_weekly_bin729.fits', '/scratch/kocevski/197116/ft2_4FGL_J0946.6+1016_weekly_bin729.fits', expMap='/scratch/kocevski/197116/expmap_679881601_680486401_4FGL_J0946.6+1016_weekly_bin729.fits', expCube='/scratch/kocevski/197116/ltcube_679881601_680486401_4FGL_J0946.6+1016_weekly_bin729.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/197116/Model_4FGL_J0946.6+1016_weekly_bin729.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0946.6+1016'

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  1.452e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  2.344e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
202         beta:  8.006e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.052e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/197116/ft1_filtered_4FGL_J0946.6+1016_weekly_bin729.fits
Spacecraft file(s): /scratch/kocevski/197116/ft2_4FGL_J0946.6+1016_weekly_bin729.fits
Exposure map: /scratch/kocevski/197116/expmap_679881601_680486401_4FGL_J0946.6+1016_weekly_bin729.fits
Exposure cube: /scratch/kocevski/197116/ltcube_679881601_680486401_4FGL_J0946.6+1016_weekly_bin729.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/197116/Model_4FGL_J0946.6+1016_weekly_bin729.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) = 8173.44799357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5453       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.636       1.0000         .10000E-03   10000.    
     6 'norm      '    .82248       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8135       1.0000         .10000E-03   10000.    
     9 'norm      '    20.297       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .29808       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.361       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.1203       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0897       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8173.417     FROM MIGRAD    STATUS=CONVERGED    311 CALLS     1449 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6664       -.25811E-06** at limit **
   2  Prefactor     1.5454        1.9516       -.30362E-06    .19576E-03
   3  Prefactor     .10000E-03    10.720       -.37277E-05** at limit **
   4  norm          .10000E-03    .56847       -.61880E-06** at limit **
   5  Prefactor     21.636        40.446       -.33965E-06    .30896E-05
   6  norm          .82245        .61685       -.46593E-06    .40317E-03
   7  Prefactor     .10000E-03    9.3417        .48398E-06** at limit **
   8  Prefactor     2.8086        10.959       -.15430E-05    .98991E-04
   9  norm          20.289        15.190        .24115E-05   -.79017E-04
  10  Prefactor     .28082        83.932       -.27465E-04    .14341E-04
  11  Prefactor     .10000E-03    20.400       -.69083E-06** at limit **
  12  Prefactor     .10000E-03    11.257        .31590E-05** at limit **
  13  Prefactor     .10000E-03    30.916       -.43886E-05** at limit **
  14  Prefactor     15.354        13.596        .60780E-06   -.14114E-03
  15  Normalizat    1.1203        .16760        .14777E-05    .32813E-03
  16  Prefactor     1.0896        .14241        .10176E-05    .31351E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 1.54535
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 21.6363
  norm       = 0.822455
  Prefactor  = 0.0001
  Prefactor  = 2.80861
  norm       = 20.2891
  Prefactor  = 0.280822
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3543
  Normalizat = 1.12032
  Prefactor  = 1.08965
 **********
 **   18 **HESSE 
 **********

 FCN=   8173.417     FROM HESSE     STATUS=OK           203 CALLS     1652 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6731        .14420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.5454        1.9381        .13775E-03   -1.5459    
   3  Prefactor     .10000E-03    10.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.1333        .12840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.636        40.445        .86110E-04   -1.4777    
   6  norm          .82245        .60717        .59114E-03   -1.5527    
   7  Prefactor     .10000E-03    9.3458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8086        10.862        .24250E-03   -1.5373    
   9  norm          20.289        15.158        .88904E-04   -1.4807    
  10  Prefactor     .28082        92.120        .36883E-02   -1.5602    
  11  Prefactor     .10000E-03    20.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.354        14.192        .10219E-03   -1.4924    
  15  Normalizat    1.1203        .19776        .26228E-03   -.89102    
  16  Prefactor     1.0896        .16946        .22738E-03   -.89798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.50481e-10
Minuit parameter uncertainties:
  1  3.85225e-06
  2  1.93818
  3  4.06349e-05
  4  8.87444e-05
  5  40.4961
  6  0.607173
  7  1.5906e-05
  8  10.8697
  9  15.1611
  10  10.1864
  11  1.76407e-05
  12  7.22948e-06
  13  0.000175325
  14  14.1946
  15  0.197895
  16  0.169545
Done.

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

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  1.000e-04  8.874e-05  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  2.344e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
202         beta:  8.006e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.052e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
489    Prefactor:  1.090e+00  1.695e-01  0.000e+00  1.000e+01 ( 1.000e+00)
490        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
491        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  1.120e+00  1.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 146.661 10.277
Photon Flux Upper Limit: 8.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.60e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/197116/likelihoodResults_679881601_680486401_4FGL_J0946.6+1016_weekly_bin729.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) = 8173.41921734
delta logL = -0.00224709199847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8172.85398725
delta logL = 0.562982994065

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8172.854     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      343 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .75689E-01    2.6234        .55099E-02   -.18614E-02
   2  alpha         5.0000        4.9421        .46289    ** at limit **
   3  Normalizat    1.0527        .61615E-01    .60955E-01   -.83460E-04
   4  Prefactor     1.1268        .50346E-01    .36642E-01   -.10461E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0756889
  alpha      = 5
  Normalizat = 1.05274
  Prefactor  = 1.12682
 **********
 **   18 **HESSE 
 **********

 FCN=   8172.854     FROM HESSE     STATUS=OK            35 CALLS      378 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .75689E-01    .11519        .25542E-03   -1.5653    
   2  alpha         5.0000        4.3438        .50000        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0527        .20759        .26959E-03   -.91284    
   4  Prefactor     1.1268        .17367        .22411E-03   -.88614    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45862e-10
Minuit parameter uncertainties:
  1  0.115187
  2  0.000239474
  3  0.207751
  4  0.173762
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/197116': 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) = 8172.85398203
delta logL = 0.562988218842

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  7.569e-02  1.152e-01  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  5.000e+00  2.395e-04  0.000e+00  5.000e+00 ( 1.000e+00)
202         beta:  8.006e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.052e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
489    Prefactor:  1.127e+00  1.738e-01  0.000e+00  1.000e+01 ( 1.000e+00)
490        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
491        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  1.053e+00  2.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.22
Ra Dec: 146.661 10.277
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 5.37e-08 +/- 8.12e-08
Energy Flux (Free Index): 7.24e-06 +/- 1.10e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/197116/cmap_HighResolution_679881601_680486401_4FGL_J0946.6+1016_weekly_bin729.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.60e-05', comment='SUCCESS', energy_flux2='7.24e-06', dlogl='5.63e-01', photon_flux2='5.37e-08', job_status='DONE', time_completed='2022-07-26 02:43:49.156196', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='8.11e-08', energy_flux_error2='1.10e-05', EG='1.12', time_epoch_completed='1658828629.16', return_code='0', job_id='197116', GAL2='1.13', EG2='1.05', return_code2='0', photon_flux_error2='8.12e-08', ts2='1.22', photon_index='2.34' WHERE bin_id='729' AND source_name='4FGL J0946.6+1016' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 26 02:43:49 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 197116: <4FGL_J0946.6+1016_weekly_bin729> in cluster <slac> Done

Job <4FGL_J0946.6+1016_weekly_bin729> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Jul 26 02:30:29 2022
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 26 02:32:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 26 02:32:25 2022
Terminated at Tue Jul 26 02:43:50 2022
Results reported at Tue Jul 26 02:43:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0946.6+1016_weekly_bin729 146.661 10.277 679881601 680486401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0946.6+1016 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   633.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            801 sec.

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

