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


Performing analysis on: 4FGL_J0146.0-6746_weekly_bin468
RA = 26.5182, Dec = -67.7748
tmin = 522028801, tmax = 522633601
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='251824', job_status='RUN', time_executed='2021-07-04 02:04:10.066666', time_epoch_executed='1625389450.07' WHERE source_name='4FGL J0146.0-6746' and cadence='weekly' and bin_id='468'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251824

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251824/ft1_4FGL_J0146.0-6746_weekly_bin468.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251824/ft2_4FGL_J0146.0-6746_weekly_bin468.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251824/ft1_4FGL_J0146.0-6746_weekly_bin468.fits outfile=/scratch/kocevski/251824/ft1_filteredMKT_4FGL_J0146.0-6746_weekly_bin468.fits ra=26.5182 dec=-67.7748 rad=12.0 tmin=522028801.0 tmax=522633601.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 9.25
user 7.54
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/251824/ft2_4FGL_J0146.0-6746_weekly_bin468.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/251824/ft1_filteredMKT_4FGL_J0146.0-6746_weekly_bin468.fits evtable="EVENTS" outfile="/scratch/kocevski/251824/ft1_filtered_4FGL_J0146.0-6746_weekly_bin468.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.97
user 0.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251824/ft1_filtered_4FGL_J0146.0-6746_weekly_bin468.fits" evtable="EVENTS" scfile=/scratch/kocevski/251824/ft2_4FGL_J0146.0-6746_weekly_bin468.fits sctable="SC_DATA" outfile=/scratch/kocevski/251824/ltcube_522028801_522633601_4FGL_J0146.0-6746_weekly_bin468.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/251824/ft2_4FGL_J0146.0-6746_weekly_bin468.fits
.....................!
real 27.18
user 25.57
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251824/ft1_filtered_4FGL_J0146.0-6746_weekly_bin468.fits evtable="EVENTS" scfile=/scratch/kocevski/251824/ft2_4FGL_J0146.0-6746_weekly_bin468.fits sctable="SC_DATA" expcube=/scratch/kocevski/251824/ltcube_522028801_522633601_4FGL_J0146.0-6746_weekly_bin468.fits outfile=/scratch/kocevski/251824/expmap_522028801_522633601_4FGL_J0146.0-6746_weekly_bin468.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/251824/ltcube_522028801_522633601_4FGL_J0146.0-6746_weekly_bin468.fits
.....................!
real 203.00
user 185.09
sys 5.01

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/251824/ft1_filtered_4FGL_J0146.0-6746_weekly_bin468.fits scfile=/scratch/kocevski/251824/ft2_4FGL_J0146.0-6746_weekly_bin468.fits outfile=/scratch/kocevski/251824/cmap_522028801_522633601_4FGL_J0146.0-6746_weekly_bin468.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.84
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251824/ft1_filtered_4FGL_J0146.0-6746_weekly_bin468.fits scfile=/scratch/kocevski/251824/ft2_4FGL_J0146.0-6746_weekly_bin468.fits outfile=/scratch/kocevski/251824/cmap_HighResolution_522028801_522633601_4FGL_J0146.0-6746_weekly_bin468.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 2.90
user 0.45
sys 0.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/251824/ft1_filtered_4FGL_J0146.0-6746_weekly_bin468.fits evtable="EVENTS" scfile=/scratch/kocevski/251824/ft2_4FGL_J0146.0-6746_weekly_bin468.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/251824/Model_4FGL_J0146.0-6746_weekly_bin468.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/251824/ft1_filtered_4FGL_J0146.0-6746_weekly_bin468.fits.....................!
real 12053.37
user 12008.48
sys 5.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.077       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18060E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.1489       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    52.360       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4031       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7700       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6885       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10261E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4115       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.555       1.0000         .10000E-03   10000.    
    17 'norm      '    1.1262       1.0000         .10000E-03   10000.    
    18 'norm      '    1.9334       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .68530       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2184       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91496       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=   14695.55     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2428 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.077        11.573       -.81737E-07   -.27510E-03
   2  Prefactor     .10011E-03    3.2635        .65003E-06** at limit **
   3  Prefactor     .10000E-03    2.1324        .99205E-08** at limit **
   4  norm          9.1489        4.6431       -.88697E-06   -.15096E-02
   5  Prefactor     .10000E-03    1.3815        .35905E-07** at limit **
   6  Prefactor     52.357        59.121       -.12238E-05   -.76271E-04
   7  Prefactor     1.4041        2.9278        .78068E-06   -.49815E-03
   8  Prefactor     1.7702        2.5797        .22797E-06   -.27971E-03
   9  Prefactor     1.6887        1.6943        .99785E-07   -.26883E-03
  10  Prefactor     .10000E-03    1.6634        .33468E-07** at limit **
  11  Prefactor     .10000E-03    19.344        .16343E-06** at limit **
  12  norm          .10001E-03    3.0829       -.21630E-06** at limit **
  13  Prefactor     2.4120        2.0428       -.29985E-09   -.48343E-03
  14  Prefactor     .10000E-03    3.4035       -.50778E-08** at limit **
  15  Prefactor     .10000E-03    12.561       -.31166E-07** at limit **
  16  Prefactor     17.556        22.150       -.16529E-05   -.28146E-03
  17  norm          1.1267        3.5040        .22454E-05   -.59817E-03
  18  norm          1.9335        .84691       -.18417E-06   -.68976E-03
  19  Prefactor     .53605        19.735       -.84457E-06    .71277E-04
  20  Prefactor     .10000E-03    6.0900        .31958E-07** at limit **
  21  Normalizat    1.2181        .13008        .22896E-06   -.27111E-03
  22  Prefactor     .91511        .98019E-01   -.31599E-06   -.15509E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.0766
  Prefactor  = 0.000100112
  Prefactor  = 0.0001
  norm       = 9.14888
  Prefactor  = 0.0001
  Prefactor  = 52.3567
  Prefactor  = 1.40412
  Prefactor  = 1.77022
  Prefactor  = 1.68866
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100007
  Prefactor  = 2.41197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.5564
  norm       = 1.12667
  norm       = 1.93347
  Prefactor  = 0.536047
  Prefactor  = 0.0001
  Normalizat = 1.21814
  Prefactor  = 0.915105
 **********
 **   18 **HESSE 
 **********

 FCN=   14695.55     FROM HESSE     STATUS=OK           358 CALLS     2786 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.077        11.439        .73056E-04   -1.4611    
   2  Prefactor     .10011E-03    36.091        .40488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.1621        .17279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.1489        4.9709        .13250E-03   -1.5103    
   5  Prefactor     .10000E-03    1.3881        .13913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     52.357        59.703        .55427E-04   -1.4260    
   7  Prefactor     1.4041        2.9627        .29521E-03   -1.5471    
   8  Prefactor     1.7702        2.5633        .22772E-03   -1.5442    
   9  Prefactor     1.6887        1.6721        .15145E-03   -1.5448    
  10  Prefactor     .10000E-03    1.6764        .15264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10001E-03    28.075        .41233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.4120        2.0359        .15204E-03   -1.5397    
  14  Prefactor     .10000E-03    3.4042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.556        22.802        .95590E-04   -1.4870    
  17  norm          1.1267        3.6738        .37193E-03   -1.5496    
  18  norm          1.9335        .84138        .65656E-04   -1.5430    
  19  Prefactor     .53605        20.583        .16949       -1.5562    
  20  Prefactor     .10000E-03    6.0916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2181        .15604        .25598E-03   -.86044    
  22  Prefactor     .91511        .11683        .22909E-03   -.95615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.28346e-09
Minuit parameter uncertainties:
  1  11.4397
  2  0.00401782
  3  1.52755e-06
  4  4.97108
  5  1.33439e-06
  6  59.771
  7  2.96303
  8  2.56349
  9  1.67215
  10  1.83515e-06
  11  2.50622e-05
  12  0.000876698
  13  2.03593
  14  6.97663e-07
  15  5.82759e-06
  16  22.8132
  17  3.6745
  18  0.84139
  19  6.64513
  20  4.21974e-06
  21  0.156099
  22  0.116867
Done.

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

Extracting fit parameters...

4FGL J0146.0-6746
   Spectrum: PowerLaw
168    Prefactor:  1.770e+00  2.563e+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:  9.151e-01  1.169e-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.218e+00  1.561e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/251824/likelihoodResults_522028801_522633601_4FGL_J0146.0-6746_weekly_bin468.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): 0
logL (Free Index) = 14695.0371478
delta logL = 0.509336038005

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14695.0357258
delta logL = 0.510757975102

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7751       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3988       1.0000          .0000       10.000    
     3 'Normalizat'    1.2215       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91355       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14695.04     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      297 TOTAL
                     EDM=   .67E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7750        3.4104        .22972E-03   -.59388E-06
   2  Index         1.3987        .61169        .15260E-01   -.68792E-05
   3  Normalizat    1.2215        .14546        .25564E-03   -.97303E-04
   4  Prefactor     .91355        .11530        .22923E-03   -.11992E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77498
  Index      = 1.3987
  Normalizat = 1.22153
  Prefactor  = 0.913552
 **********
 **   18 **HESSE 
 **********

 FCN=   14695.04     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7750        3.4836        .91887E-05   -1.5375    
   2  Index         1.3987        .62505        .61041E-03   -.80418    
   3  Normalizat    1.2215        .14561        .10226E-04   -.85940    
   4  Prefactor     .91355        .11542        .91693E-05   -.95669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4239e-12
Minuit parameter uncertainties:
  1  3.48385
  2  0.628484
  3  0.145661
  4  0.115456
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251824': 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) = 14695.0357258
delta logL = 0.510757982494

Extracting fit parameters...

4FGL J0146.0-6746
   Spectrum: PowerLaw
168    Prefactor:  2.775e+00  3.484e+00  1.000e-04  1.000e+04 ( 1.000e-13)
169        Index:  1.399e+00  6.285e-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:  9.136e-01  1.155e-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.222e+00  1.457e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.76
Ra Dec: 26.518 -67.775
Photon Index (Free Index): 1.40 +/- 0.63
Photon Flux (Free Index): 3.92e-09 +/- 6.10e-09
Energy Flux (Free Index): 1.74e-05 +/- 2.74e-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/251824/cmap_HighResolution_522028801_522633601_4FGL_J0146.0-6746_weekly_bin468.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-03', comment='SUCCESS', energy_flux2='1.74e-05', dlogl='5.11e-01', photon_flux2='3.92e-09', job_status='DONE', time_completed='2021-07-04 05:45:29.112248', photon_index_error2='0.63', photon_index2='1.40', ts='0.74', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='3.50e-08', energy_flux_error2='2.74e-05', EG='1.22', time_epoch_completed='1625402729.11', return_code='0', job_id='251824', GAL2='0.91', EG2='1.22', return_code2='0', photon_flux_error2='6.10e-09', ts2='1.76', photon_index='2.06' WHERE bin_id='468' AND source_name='4FGL J0146.0-6746' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 05:45:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 251824: <4FGL_J0146.0-6746_weekly_bin468> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0146.0-6746_weekly_bin468 26.5182 -67.7748 522028801 522633601 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 :                                   13191.00 sec.
    Max Memory :                                 631 MB
    Average Memory :                             592.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   13405 sec.
    Turnaround time :                            13407 sec.

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

