aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 171 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 = 17190
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0146.0-6746_weekly_bin445
RA = 26.5182, Dec = -67.7748
tmin = 508118401, tmax = 508723201
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='251774', job_status='RUN', time_executed='2021-07-04 02:08:09.305835', time_epoch_executed='1625389689.31' WHERE source_name='4FGL J0146.0-6746' and cadence='weekly' and bin_id='445'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251774

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251774/ft1_4FGL_J0146.0-6746_weekly_bin445.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251774/ft2_4FGL_J0146.0-6746_weekly_bin445.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251774/ft1_4FGL_J0146.0-6746_weekly_bin445.fits outfile=/scratch/kocevski/251774/ft1_filteredMKT_4FGL_J0146.0-6746_weekly_bin445.fits ra=26.5182 dec=-67.7748 rad=12.0 tmin=508118401.0 tmax=508723201.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.86
user 7.45
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/251774/ft2_4FGL_J0146.0-6746_weekly_bin445.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/251774/ft2_4FGL_J0146.0-6746_weekly_bin445.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/251774/ft1_filteredMKT_4FGL_J0146.0-6746_weekly_bin445.fits evtable="EVENTS" outfile="/scratch/kocevski/251774/ft1_filtered_4FGL_J0146.0-6746_weekly_bin445.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.89
user 0.39
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251774/ft1_filtered_4FGL_J0146.0-6746_weekly_bin445.fits" evtable="EVENTS" scfile=/scratch/kocevski/251774/ft2_4FGL_J0146.0-6746_weekly_bin445.fits sctable="SC_DATA" outfile=/scratch/kocevski/251774/ltcube_508118401_508723201_4FGL_J0146.0-6746_weekly_bin445.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/251774/ft2_4FGL_J0146.0-6746_weekly_bin445.fits
.....................!
real 27.70
user 26.37
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251774/ft1_filtered_4FGL_J0146.0-6746_weekly_bin445.fits evtable="EVENTS" scfile=/scratch/kocevski/251774/ft2_4FGL_J0146.0-6746_weekly_bin445.fits sctable="SC_DATA" expcube=/scratch/kocevski/251774/ltcube_508118401_508723201_4FGL_J0146.0-6746_weekly_bin445.fits outfile=/scratch/kocevski/251774/expmap_508118401_508723201_4FGL_J0146.0-6746_weekly_bin445.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/251774/ltcube_508118401_508723201_4FGL_J0146.0-6746_weekly_bin445.fits
.....................!
real 195.31
user 185.63
sys 4.61

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 SMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/SMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-FarWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-FarWest.fits is the correct path to the extended template.
Extended source LMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-30DorWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Extended source LMC-North in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-North.fits is the correct path to the extended template.
Added 190 point sources and 5 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 J0146.0-6746 @ 26.5182 -67.7748

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/251774/ft1_filtered_4FGL_J0146.0-6746_weekly_bin445.fits scfile=/scratch/kocevski/251774/ft2_4FGL_J0146.0-6746_weekly_bin445.fits outfile=/scratch/kocevski/251774/cmap_508118401_508723201_4FGL_J0146.0-6746_weekly_bin445.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=26.5182 yref=-67.7748 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.78
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251774/ft1_filtered_4FGL_J0146.0-6746_weekly_bin445.fits scfile=/scratch/kocevski/251774/ft2_4FGL_J0146.0-6746_weekly_bin445.fits outfile=/scratch/kocevski/251774/cmap_HighResolution_508118401_508723201_4FGL_J0146.0-6746_weekly_bin445.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=26.5182 yref=-67.7748 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.01
user 0.42
sys 0.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/251774/ft1_filtered_4FGL_J0146.0-6746_weekly_bin445.fits evtable="EVENTS" scfile=/scratch/kocevski/251774/ft2_4FGL_J0146.0-6746_weekly_bin445.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/251774/Model_4FGL_J0146.0-6746_weekly_bin445.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 LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
adding source SMC-Galaxy
Working on...
/scratch/kocevski/251774/ft1_filtered_4FGL_J0146.0-6746_weekly_bin445.fits.....................!
real 11916.67
user 11859.51
sys 30.80

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/251774/ft1_filtered_4FGL_J0146.0-6746_weekly_bin445.fits', '/scratch/kocevski/251774/ft2_4FGL_J0146.0-6746_weekly_bin445.fits', expMap='/scratch/kocevski/251774/expmap_508118401_508723201_4FGL_J0146.0-6746_weekly_bin445.fits', expCube='/scratch/kocevski/251774/ltcube_508118401_508723201_4FGL_J0146.0-6746_weekly_bin445.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/251774/Model_4FGL_J0146.0-6746_weekly_bin445.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0146.0-6746'

4FGL J0146.0-6746
   Spectrum: PowerLaw
168    Prefactor:  1.171e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
169        Index:  2.062e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
170        Scale:  1.872e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/251774/ft1_filtered_4FGL_J0146.0-6746_weekly_bin445.fits
Spacecraft file(s): /scratch/kocevski/251774/ft2_4FGL_J0146.0-6746_weekly_bin445.fits
Exposure map: /scratch/kocevski/251774/expmap_508118401_508723201_4FGL_J0146.0-6746_weekly_bin445.fits
Exposure cube: /scratch/kocevski/251774/ltcube_508118401_508723201_4FGL_J0146.0-6746_weekly_bin445.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/251774/Model_4FGL_J0146.0-6746_weekly_bin445.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) = 14513.3562958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7887       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10625E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.5512       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.628       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .47529       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22093E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.4841       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22047       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.061       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.086       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.0954       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.032       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1816       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0464       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14513.35     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2412 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7889        6.9564        .97134E-07   -.41494E-04
   2  Prefactor     .10000E-03    1.4472       -.15805E-06** at limit **
   3  Prefactor     .10000E-03    2.0452       -.77872E-07** at limit **
   4  norm          2.5512        2.9010       -.91376E-07   -.20847E-04
   5  Prefactor     .10000E-03    1.8858       -.58866E-07** at limit **
   6  Prefactor     29.635        41.727        .53443E-05    .66952E-04
   7  Prefactor     .10000E-03    2.9260        .13851E-07** at limit **
   8  Prefactor     .10000E-03    2.2714        .97252E-07** at limit **
   9  Prefactor     .47472        1.1173        .15748E-06   -.42673E-03
  10  Prefactor     .10000E-03    2.2911       -.55935E-07** at limit **
  11  Prefactor     .10000E-03    65.932        .10272E-05** at limit **
  12  norm          5.4839        5.1790        .86963E-07    .24250E-04
  13  Prefactor     .22028        .74629        .29372E-06   -.10967E-02
  14  Prefactor     .10000E-03    4.2170       -.27033E-06** at limit **
  15  Prefactor     22.061        38.590       -.61421E-06   -.89458E-05
  16  Prefactor     12.083        25.061       -.12736E-05   -.28903E-04
  17  norm          .10000E-03    1.8946        .26333E-07** at limit **
  18  norm          1.0950        .87257        .43109E-07   -.32754E-03
  19  Prefactor     21.030        21.566       -.23704E-06   -.94035E-05
  20  Prefactor     .10000E-03    28.610        .45545E-06** at limit **
  21  Normalizat    1.1817        .13246       -.72109E-06    .50198E-04
  22  Prefactor     1.0464        .10217        .35475E-06   -.85325E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.78893
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.55122
  Prefactor  = 0.0001
  Prefactor  = 29.6346
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.474722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.48391
  Prefactor  = 0.220277
  Prefactor  = 0.0001
  Prefactor  = 22.0609
  Prefactor  = 12.0831
  norm       = 0.0001
  norm       = 1.09497
  Prefactor  = 21.0305
  Prefactor  = 0.0001
  Normalizat = 1.18166
  Prefactor  = 1.0464
 **********
 **   18 **HESSE 
 **********

 FCN=   14513.35     FROM HESSE     STATUS=OK           350 CALLS     2762 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7889        6.9677        .18385E-03   -1.5270    
   2  Prefactor     .10000E-03    1.4530        .14149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.399        .33215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.5512        2.8988        .21356E-03   -1.5389    
   5  Prefactor     .10000E-03    8.8697        .31911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.635        42.079        .73607E-04   -1.4619    
   7  Prefactor     .10000E-03    3.0261        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.3073        .17712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .47472        1.2114        .18850E-02   -1.5570    
  10  Prefactor     .10000E-03    11.473        .34828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    66.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.4839        5.1793        .17158E-03   -1.5240    
  13  Prefactor     .22028        1.6637        .29493E-03   -1.5614    
  14  Prefactor     .10000E-03    4.2195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.061        38.529        .85279E-04   -1.4768    
  16  Prefactor     12.083        25.159        .11523E-03   -1.5013    
  17  norm          .10000E-03    1.9054        .16159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0950        .84785        .93675E-04   -1.5499    
  19  Prefactor     21.030        21.569        .87337E-04   -1.4790    
  20  Prefactor     .10000E-03    28.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1817        .15347        .25982E-03   -.87172    
  22  Prefactor     1.0464        .12049        .22023E-03   -.91198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87888e-08
Minuit parameter uncertainties:
  1  6.96886
  2  8.59158e-07
  3  2.87243e-06
  4  2.89897
  5  9.85043e-05
  6  42.1216
  7  4.77013e-06
  8  1.3524e-06
  9  1.21142
  10  0.000124736
  11  7.72077e-05
  12  5.17968
  13  1.2105
  14  3.55645e-06
  15  38.5721
  16  25.1811
  17  1.00067e-06
  18  0.847858
  19  21.5766
  20  1.92683e-05
  21  0.153525
  22  0.120519
Done.

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

Extracting fit parameters...

4FGL J0146.0-6746
   Spectrum: PowerLaw
168    Prefactor:  1.000e-04  1.352e-06  1.000e-04  1.000e+04 ( 1.000e-13)
169        Index:  2.062e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
170        Scale:  1.872e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  1.046e+00  1.205e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  1.182e+00  1.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 26.518 -67.775
Photon Flux Upper Limit: 3.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/251774/likelihoodResults_508118401_508723201_4FGL_J0146.0-6746_weekly_bin445.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) = 14513.3551327
delta logL = -0.00206511500801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14513.3530675
delta logL = 3.72565409634e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14513.35     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1478        .90712E-02** at limit **
   2  Index         2.0760        6.4872        .50000       -.22399E-04
   3  Normalizat    1.1817        .22556E-02    .58750E-01   -.26915E-04
   4  Prefactor     1.0464        .18206E-02    .40125E-01   -.25295E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.07601
  Normalizat = 1.18165
  Prefactor  = 1.0464
 **********
 **   18 **HESSE 
 **********

 FCN=   14513.35     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.912        .17736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0760        5.1628        .50000       -.62463    
   3  Normalizat    1.1817        .75264E-02    .25982E-03   -.87172    
   4  Prefactor     1.0464        .60785E-02    .22023E-03   -.91198    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.78076e-07
Minuit parameter uncertainties:
  1  7.06424e-06
  2  76.1348
  3  0.00752639
  4  0.00607847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251774': 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) = 14513.3530675
delta logL = 7.90369085735e-08

Extracting fit parameters...

4FGL J0146.0-6746
   Spectrum: PowerLaw
168    Prefactor:  1.000e-04  7.064e-06  1.000e-04  1.000e+04 ( 1.000e-13)
169        Index:  2.076e+00  7.613e+01  0.000e+00  1.000e+01 (-1.000e+00)
170        Scale:  1.872e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  1.046e+00  6.078e-03  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  1.182e+00  7.526e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 26.518 -67.775

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/251774/cmap_HighResolution_508118401_508723201_4FGL_J0146.0-6746_weekly_bin445.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.31e-03', job_status='DONE', photon_flux_upper_limit='3.06e-08', time_completed='2021-07-04 05:52:25.148794', job_id='251774', GAL2='1.05', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1625403145.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='7.90e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='445' AND source_name='4FGL J0146.0-6746' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 05:52:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 251774: <4FGL_J0146.0-6746_weekly_bin445> in cluster <slac> Done

Job <4FGL_J0146.0-6746_weekly_bin445> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Jul  4 02:02:04 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 02:02:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 02:02:05 2021
Terminated at Sun Jul  4 05:52:29 2021
Results reported at Sun Jul  4 05:52:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0146.0-6746_weekly_bin445 26.5182 -67.7748 508118401 508723201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0146.0-6746 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   13052.00 sec.
    Max Memory :                                 938 MB
    Average Memory :                             572.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                22
    Run time :                                   13823 sec.
    Turnaround time :                            13825 sec.

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

