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 203 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 = 14587
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0146.0-6746_weekly_bin505
RA = 26.5182, Dec = -67.7748
tmin = 544406401, tmax = 545011201
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='251907', job_status='RUN', time_executed='2021-07-04 02:10:29.455555', time_epoch_executed='1625389829.46' WHERE source_name='4FGL J0146.0-6746' and cadence='weekly' and bin_id='505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251907

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

Retrieving the FT1 file...

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

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

Retrieving 97 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251907/ft1_4FGL_J0146.0-6746_weekly_bin505.fits


Retrieving the FT1 file...

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

Retrieving 97 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251907/ft2_4FGL_J0146.0-6746_weekly_bin505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251907/ft1_4FGL_J0146.0-6746_weekly_bin505.fits outfile=/scratch/kocevski/251907/ft1_filteredMKT_4FGL_J0146.0-6746_weekly_bin505.fits ra=26.5182 dec=-67.7748 rad=12.0 tmin=544406401.0 tmax=545011201.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 12.89
user 12.18
sys 0.44

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/251907/ft2_4FGL_J0146.0-6746_weekly_bin505.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/251907/ft1_filteredMKT_4FGL_J0146.0-6746_weekly_bin505.fits evtable="EVENTS" outfile="/scratch/kocevski/251907/ft1_filtered_4FGL_J0146.0-6746_weekly_bin505.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.36
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251907/ft1_filtered_4FGL_J0146.0-6746_weekly_bin505.fits" evtable="EVENTS" scfile=/scratch/kocevski/251907/ft2_4FGL_J0146.0-6746_weekly_bin505.fits sctable="SC_DATA" outfile=/scratch/kocevski/251907/ltcube_544406401_545011201_4FGL_J0146.0-6746_weekly_bin505.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/251907/ft2_4FGL_J0146.0-6746_weekly_bin505.fits
.....................!
real 22.70
user 22.12
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251907/ft1_filtered_4FGL_J0146.0-6746_weekly_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/251907/ft2_4FGL_J0146.0-6746_weekly_bin505.fits sctable="SC_DATA" expcube=/scratch/kocevski/251907/ltcube_544406401_545011201_4FGL_J0146.0-6746_weekly_bin505.fits outfile=/scratch/kocevski/251907/expmap_544406401_545011201_4FGL_J0146.0-6746_weekly_bin505.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/251907/ltcube_544406401_545011201_4FGL_J0146.0-6746_weekly_bin505.fits
.....................!
real 194.97
user 186.84
sys 5.25

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/251907/ft1_filtered_4FGL_J0146.0-6746_weekly_bin505.fits scfile=/scratch/kocevski/251907/ft2_4FGL_J0146.0-6746_weekly_bin505.fits outfile=/scratch/kocevski/251907/cmap_544406401_545011201_4FGL_J0146.0-6746_weekly_bin505.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.60
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251907/ft1_filtered_4FGL_J0146.0-6746_weekly_bin505.fits scfile=/scratch/kocevski/251907/ft2_4FGL_J0146.0-6746_weekly_bin505.fits outfile=/scratch/kocevski/251907/cmap_HighResolution_544406401_545011201_4FGL_J0146.0-6746_weekly_bin505.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 0.61
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/251907/ft1_filtered_4FGL_J0146.0-6746_weekly_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/251907/ft2_4FGL_J0146.0-6746_weekly_bin505.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/251907/Model_4FGL_J0146.0-6746_weekly_bin505.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/251907/ft1_filtered_4FGL_J0146.0-6746_weekly_bin505.fits.....................!
real 19051.55
user 19018.05
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/251907/ft1_filtered_4FGL_J0146.0-6746_weekly_bin505.fits', '/scratch/kocevski/251907/ft2_4FGL_J0146.0-6746_weekly_bin505.fits', expMap='/scratch/kocevski/251907/expmap_544406401_545011201_4FGL_J0146.0-6746_weekly_bin505.fits', expCube='/scratch/kocevski/251907/ltcube_544406401_545011201_4FGL_J0146.0-6746_weekly_bin505.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/251907/Model_4FGL_J0146.0-6746_weekly_bin505.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/251907/ft1_filtered_4FGL_J0146.0-6746_weekly_bin505.fits
Spacecraft file(s): /scratch/kocevski/251907/ft2_4FGL_J0146.0-6746_weekly_bin505.fits
Exposure map: /scratch/kocevski/251907/expmap_544406401_545011201_4FGL_J0146.0-6746_weekly_bin505.fits
Exposure cube: /scratch/kocevski/251907/ltcube_544406401_545011201_4FGL_J0146.0-6746_weekly_bin505.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/251907/Model_4FGL_J0146.0-6746_weekly_bin505.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) = 23098.2473537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52768E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0092       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .71102       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0818       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2077       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .98322       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .74449       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    43.409       1.0000         .10000E-03   10000.    
    12 'norm      '    14.986       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21438       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4730       1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.229       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.5706       1.0000         .10000E-03   10000.    
    17 'norm      '    4.5753       1.0000         .10000E-03   10000.    
    18 'norm      '    .99486       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13640E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8517       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2899       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .79556       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=   23098.24     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2556 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28968        1.8792       -.41334E-07    .15332E-03
   2  Prefactor     .10000E-03    1.7760        .49081E-07** at limit **
   3  Prefactor     3.0149        2.6322        .22853E-06   -.26735E-03
   4  norm          .10000E-03    .70953       -.13767E-07** at limit **
   5  Prefactor     .71055        .46840        .38909E-08   -.14815E-02
   6  Prefactor     2.0531        71.445       -.31436E-04    .15603E-04
   7  Prefactor     1.2087        1.1876        .47625E-07    .14209E-03
   8  Prefactor     .98709        3.4863        .38375E-06    .21573E-03
   9  Prefactor     .74982        1.7919       -.49042E-06    .30587E-03
  10  Prefactor     .10000E-03    1.0245       -.62080E-07** at limit **
  11  Prefactor     43.466        26.879        .34244E-05    .11146E-03
  12  norm          14.988        6.7861        .17228E-05    .20284E-03
  13  Prefactor     .21580        .62944       -.98820E-06    .97017E-03
  14  Prefactor     5.4731        6.6384       -.26183E-05    .28165E-04
  15  Prefactor     31.325        32.630        .22672E-04    .22871E-03
  16  Prefactor     8.6063        14.270        .93780E-07    .21947E-04
  17  norm          4.5775        2.9710       -.22679E-06    .24733E-03
  18  norm          .99543        .60497       -.35186E-06   -.76707E-03
  19  Prefactor     .10000E-03    14.329        .59445E-07** at limit **
  20  Prefactor     2.8559        10.540        .83537E-05    .63976E-05
  21  Normalizat    1.2889        .96615E-01    .49453E-07    .97922E-03
  22  Prefactor     .79578        .71860E-01   -.39177E-06    .78501E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.289682
  Prefactor  = 0.0001
  Prefactor  = 3.0149
  norm       = 0.0001
  Prefactor  = 0.710547
  Prefactor  = 2.05313
  Prefactor  = 1.20869
  Prefactor  = 0.987087
  Prefactor  = 0.749815
  Prefactor  = 0.0001
  Prefactor  = 43.466
  norm       = 14.9879
  Prefactor  = 0.215801
  Prefactor  = 5.47309
  Prefactor  = 31.3246
  Prefactor  = 8.60626
  norm       = 4.57753
  norm       = 0.995431
  Prefactor  = 0.0001
  Prefactor  = 2.85587
  Normalizat = 1.28894
  Prefactor  = 0.79578
 **********
 **   18 **HESSE 
 **********

 FCN=   23098.24     FROM HESSE     STATUS=OK           354 CALLS     2910 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28968        22.526        .39430E-02   -1.5600    
   2  Prefactor     .10000E-03    1.8078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.0149        2.6597        .11196E-02   -1.5361    
   4  norm          .10000E-03    .71073        .12502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .71055        2.7534        .23629E-02   -1.5539    
   6  Prefactor     2.0531        71.841        .28620E-03   -1.5421    
   7  Prefactor     1.2087        1.2040        .15997E-03   -1.5488    
   8  Prefactor     .98709        3.2468        .44062E-03   -1.5509    
   9  Prefactor     .74982        2.1402        .24558E-02   -1.5535    
  10  Prefactor     .10000E-03    1.0296        .15012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     43.466        26.910        .60848E-04   -1.4388    
  12  norm          14.988        6.7306        .10346E-03   -1.4933    
  13  Prefactor     .21580        2.2354        .19138E-02   -1.5615    
  14  Prefactor     5.4731        6.6318        .17175E-03   -1.5240    
  15  Prefactor     31.325        32.773        .71700E-04   -1.4588    
  16  Prefactor     8.6063        14.296        .13693E-03   -1.5121    
  17  norm          4.5775        2.9581        .94095E-03   -1.5280    
  18  norm          .99543        .59239        .84021E-04   -1.5508    
  19  Prefactor     .10000E-03    14.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.8559        10.512        .24076E-03   -1.5370    
  21  Normalizat    1.2889        .11430        .23430E-03   -.83897    
  22  Prefactor     .79578        .84396E-01    .22851E-03   -.99884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.49009e-09
Minuit parameter uncertainties:
  1  5.1101
  2  1.29534e-06
  3  2.65979
  4  5.36704e-07
  5  2.75391
  6  24.3209
  7  1.20405
  8  3.24736
  9  2.14038
  10  1.45577e-07
  11  26.9174
  12  6.73097
  13  1.38885
  14  6.63273
  15  32.7913
  16  14.3019
  17  2.95822
  18  0.592395
  19  1.69898e-05
  20  10.5186
  21  0.114323
  22  0.08441
Done.

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

Extracting fit parameters...

4FGL J0146.0-6746
   Spectrum: PowerLaw
168    Prefactor:  9.871e-01  3.247e+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

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  7.958e-01  8.441e-02  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.289e+00  1.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/251907/likelihoodResults_544406401_545011201_4FGL_J0146.0-6746_weekly_bin505.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) = 23097.4016348
delta logL = 0.842978674907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 23097.3735707
delta logL = 0.871042723789

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60845       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1378       1.0000          .0000       10.000    
     3 'Normalizat'    1.2593       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80759       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=   23097.37     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      241 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60524        5.0169        .11706E-01    .50189E-02
   2  Index         3.1402        1.6549        .12005        .54941E-03
   3  Normalizat    1.2590        .18732E-01    .53518E-01   -.13060E-03
   4  Prefactor     .80771        .14756E-01    .43816E-01   -.68055E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.605244
  Index      = 3.14019
  Normalizat = 1.25902
  Prefactor  = 0.807708
 **********
 **   18 **HESSE 
 **********

 FCN=   23097.37     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      274 TOTAL
                     EDM=   .49E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60524        18.251        .89637E-04   -1.5552    
   2  Index         3.1402        3.8854        .72932E-02   -.38112    
   3  Normalizat    1.2590        .10104        .23664E-03   -.84798    
   4  Prefactor     .80771        .78079E-01    .22695E-03   -.99445    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.87991e-06
Minuit parameter uncertainties:
  1  6.64887
  2  4.60427
  3  0.101059
  4  0.0780896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251907': 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) = 23097.373564
delta logL = 0.871049450656

Extracting fit parameters...

4FGL J0146.0-6746
   Spectrum: PowerLaw
168    Prefactor:  6.052e-01  6.649e+00  1.000e-04  1.000e+04 ( 1.000e-13)
169        Index:  3.140e+00  4.604e+00  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:  8.077e-01  7.809e-02  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.259e+00  1.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.92
Ra Dec: 26.518 -67.775
Photon Index (Free Index): 3.14 +/- 4.60
Photon Flux (Free Index): 2.80e-08 +/- 2.41e-08
Energy Flux (Free Index): 5.25e-06 +/- 8.84e-06

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/251907/cmap_HighResolution_544406401_545011201_4FGL_J0146.0-6746_weekly_bin505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.39e-03', comment='SUCCESS', energy_flux2='5.25e-06', dlogl='8.71e-01', photon_flux2='2.80e-08', job_status='DONE', time_completed='2021-07-04 08:05:15.967098', photon_index_error2='4.60', photon_index2='3.14', ts='0.12', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='3.17e-08', energy_flux_error2='8.84e-06', EG='1.29', time_epoch_completed='1625411115.97', return_code='0', job_id='251907', GAL2='0.81', EG2='1.26', return_code2='102', photon_flux_error2='2.41e-08', ts2='1.92', photon_index='2.06' WHERE bin_id='505' AND source_name='4FGL J0146.0-6746' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 08:05:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0181>
Subject: Job 251907: <4FGL_J0146.0-6746_weekly_bin505> in cluster <slac> Done

Job <4FGL_J0146.0-6746_weekly_bin505> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Jul  4 02:02:17 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 02:02:19 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:19 2021
Terminated at Sun Jul  4 08:05:19 2021
Results reported at Sun Jul  4 08:05:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0146.0-6746_weekly_bin505 26.5182 -67.7748 544406401 545011201 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 :                                   20747.00 sec.
    Max Memory :                                 632 MB
    Average Memory :                             580.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   21780 sec.
    Turnaround time :                            21782 sec.

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

