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


Performing analysis on: 4FGL_J0146.0-6746_weekly_bin607
RA = 26.5182, Dec = -67.7748
tmin = 606096001, tmax = 606700801
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='252118', job_status='RUN', time_executed='2021-07-04 02:08:41.635822', time_epoch_executed='1625389721.64' WHERE source_name='4FGL J0146.0-6746' and cadence='weekly' and bin_id='607'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/252118

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/252118/ft1_4FGL_J0146.0-6746_weekly_bin607.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/252118/ft2_4FGL_J0146.0-6746_weekly_bin607.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/252118/ft1_4FGL_J0146.0-6746_weekly_bin607.fits outfile=/scratch/kocevski/252118/ft1_filteredMKT_4FGL_J0146.0-6746_weekly_bin607.fits ra=26.5182 dec=-67.7748 rad=12.0 tmin=606096001.0 tmax=606700801.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.75
user 7.86
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/252118/ft1_filtered_4FGL_J0146.0-6746_weekly_bin607.fits" evtable="EVENTS" scfile=/scratch/kocevski/252118/ft2_4FGL_J0146.0-6746_weekly_bin607.fits sctable="SC_DATA" outfile=/scratch/kocevski/252118/ltcube_606096001_606700801_4FGL_J0146.0-6746_weekly_bin607.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/252118/ft2_4FGL_J0146.0-6746_weekly_bin607.fits
.....................!
real 26.89
user 25.40
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/252118/ft1_filtered_4FGL_J0146.0-6746_weekly_bin607.fits evtable="EVENTS" scfile=/scratch/kocevski/252118/ft2_4FGL_J0146.0-6746_weekly_bin607.fits sctable="SC_DATA" expcube=/scratch/kocevski/252118/ltcube_606096001_606700801_4FGL_J0146.0-6746_weekly_bin607.fits outfile=/scratch/kocevski/252118/expmap_606096001_606700801_4FGL_J0146.0-6746_weekly_bin607.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/252118/ltcube_606096001_606700801_4FGL_J0146.0-6746_weekly_bin607.fits
.....................!
real 197.92
user 184.64
sys 5.65

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/252118/ft1_filtered_4FGL_J0146.0-6746_weekly_bin607.fits scfile=/scratch/kocevski/252118/ft2_4FGL_J0146.0-6746_weekly_bin607.fits outfile=/scratch/kocevski/252118/cmap_606096001_606700801_4FGL_J0146.0-6746_weekly_bin607.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 1.04
user 0.41
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/252118/ft1_filtered_4FGL_J0146.0-6746_weekly_bin607.fits scfile=/scratch/kocevski/252118/ft2_4FGL_J0146.0-6746_weekly_bin607.fits outfile=/scratch/kocevski/252118/cmap_HighResolution_606096001_606700801_4FGL_J0146.0-6746_weekly_bin607.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.93
user 0.42
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/252118/ft1_filtered_4FGL_J0146.0-6746_weekly_bin607.fits evtable="EVENTS" scfile=/scratch/kocevski/252118/ft2_4FGL_J0146.0-6746_weekly_bin607.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/252118/Model_4FGL_J0146.0-6746_weekly_bin607.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/252118/ft1_filtered_4FGL_J0146.0-6746_weekly_bin607.fits....................!
real 12439.36
user 12406.20
sys 3.86

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1027       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.0606       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.651       1.0000         .10000E-03   10000.    
     4 'norm      '    6.3026       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.752       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6427       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.618       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .39002       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.6359       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5137       1.0000         .10000E-03   10000.    
    17 'norm      '    9.2795       1.0000         .10000E-03   10000.    
    18 'norm      '    5.8397       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10403E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0188       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94928       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96808       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15427.05     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2345 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1027        7.8205         .0000        .17191E-03
   2  Prefactor     9.0607        5.3506         .0000        .79490E-03
   3  Prefactor     17.651        4.8168         .0000        .11524E-02
   4  norm          6.3027        3.7247         .0000       -.54877E-02
   5  Prefactor     .10000E-03    1.9399         .0000    ** at limit **
   6  Prefactor     29.752        45.557         .0000        .10122E-03
   7  Prefactor     .10000E-03    .56998         .0000    ** at limit **
   8  Prefactor     .10000E-03    3.5621         .0000    ** at limit **
   9  Prefactor     .10000E-03    1.0347         .0000    ** at limit **
  10  Prefactor     2.6429        3.6665         .0000        .25829E-01
  11  Prefactor     12.618        12.363         .0000        .12050E-03
  12  norm          .10000E-03    1.7224         .0000    ** at limit **
  13  Prefactor     .39027        1.4595         .0000        .48267E-02
  14  Prefactor     8.6359        8.2726         .0000        .52181E-04
  15  Prefactor     .10000E-03    8.5140         .0000    ** at limit **
  16  Prefactor     1.5126        30.602         .0000        .46581E-02
  17  norm          9.2795        4.6082         .0000        .51518E-03
  18  norm          5.8397        1.1115         .0000        .72020E-04
  19  Prefactor     .10005E-03    62.837         .0000    ** at limit **
  20  Prefactor     .98817        12.602         .0000       -.69742E-03
  21  Normalizat    .94926        .11754         .0000        .85449E-04
  22  Prefactor     .96808        .91474E-01     .0000        .75348E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.10271
  Prefactor  = 9.06073
  Prefactor  = 17.6508
  norm       = 6.30267
  Prefactor  = 0.0001
  Prefactor  = 29.7517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.6429
  Prefactor  = 12.6183
  norm       = 0.0001
  Prefactor  = 0.390273
  Prefactor  = 8.63589
  Prefactor  = 0.0001
  Prefactor  = 1.51256
  norm       = 9.2795
  norm       = 5.83967
  Prefactor  = 0.000100048
  Prefactor  = 0.988165
  Normalizat = 0.949265
  Prefactor  = 0.968077
 **********
 **   18 **HESSE 
 **********

 FCN=   15427.05     FROM HESSE     STATUS=OK           348 CALLS     2693 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1027        7.8179        .14085E-03   -1.5139    
   2  Prefactor     9.0607        5.3422        .13315E-03   -1.5106    
   3  Prefactor     17.651        4.8278        .95332E-04   -1.4867    
   4  norm          6.3027        3.7262        .79944E-03   -1.5206    
   5  Prefactor     .10000E-03    1.9638        .16886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.752        45.644        .73454E-04   -1.4617    
   7  Prefactor     .10000E-03    .57126        .91567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.7178        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.0677        .24626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.6429        3.6498        .12540E-02   -1.5383    
  11  Prefactor     12.618        12.366        .11277E-03   -1.4997    
  12  norm          .10000E-03    1.7250        .15919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .39027        1.4739        .27382E-03   -1.5583    
  14  Prefactor     8.6359        8.2737        .13640E-03   -1.5120    
  15  Prefactor     .10000E-03    8.5163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.5126        30.992        .17377E-02   -1.5462    
  17  norm          9.2795        4.5979        .13156E-03   -1.5099    
  18  norm          5.8397        1.1111        .16619E-04   -1.5225    
  19  Prefactor     .10005E-03    63.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .98817        99.531        .85486E-02   -1.5509    
  21  Normalizat    .94926        .13697        .26461E-03   -.94750    
  22  Prefactor     .96808        .10731        .21323E-03   -.93801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64468e-08
Minuit parameter uncertainties:
  1  7.81887
  2  5.34252
  3  4.82789
  4  3.72633
  5  8.69339e-07
  6  45.6976
  7  2.5318e-08
  8  1.46151e-07
  9  3.88752e-07
  10  3.65015
  11  12.3681
  12  1.2965e-06
  13  1.47406
  14  8.27484
  15  5.77522e-06
  16  13.7012
  17  4.59808
  18  1.11114
  19  0.00350089
  20  19.8676
  21  0.137016
  22  0.107329
Done.

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

Extracting fit parameters...

4FGL J0146.0-6746
   Spectrum: PowerLaw
168    Prefactor:  1.000e-04  1.462e-07  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.681e-01  1.073e-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:  9.493e-01  1.370e-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.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/252118/likelihoodResults_606096001_606700801_4FGL_J0146.0-6746_weekly_bin607.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) = 15427.0489987
delta logL = -0.00128488457813

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15427.0477182
delta logL = -4.41719203081e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13220E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1174       1.0000          .0000       10.000    
     3 'Normalizat'    .94943       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96786       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   15426.75     FROM MIGRAD    STATUS=FAILED       220 CALLS      379 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .11360E-01    .31025E-03** at limit **
   2  Index         6.2868        7.4985        .81915E-02    .15918E-02
   3  Normalizat    .92078        .39630E-01    .26835E-03   -.56896E-03
   4  Prefactor     .98297        .32103E-01    .21183E-03   -.11656E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15426.75     FROM SIMPLEX   STATUS=UNCHANGED    206 CALLS      585 TOTAL
                     EDM=   .70E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .11360E-01    .68486E-05** at limit **
   2  Index         6.2868        7.4985        .10637E-04    .15918E-02
   3  Normalizat    .92078        .39630E-01    .14646E-06   -.56896E-03
   4  Prefactor     .98297        .32103E-01    .47466E-07   -.11656E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15426.75     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      626 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .11122E-01    .32100E-03** at limit **
   2  Index         6.2868        7.5291        .16383E-02    .18320E-04
   3  Normalizat    .92078        .40470E-01    .10734E-04   -.53634E-03
   4  Prefactor     .98297        .32903E-01    .42366E-04   -.11394E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.28679
  Normalizat = 0.920782
  Prefactor  = 0.982968
 **********
 **   18 **HESSE 
 **********

 FCN=   15426.75     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      661 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .11538E-01    .31761E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.2868        7.5483        .65532E-04    .26029    
   3  Normalizat    .92078        .41190E-01    .21468E-05   -.95734    
   4  Prefactor     .98297        .33513E-01    .84732E-05   -.93299    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.16673e-10
Minuit parameter uncertainties:
  1  4.18696e-09
  2  5.44348
  3  0.0411917
  4  0.0335138
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/252118': 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) = 15426.7450893
delta logL = 0.302624466813

Extracting fit parameters...

4FGL J0146.0-6746
   Spectrum: PowerLaw
168    Prefactor:  1.000e-04  4.187e-09  1.000e-04  1.000e+04 ( 1.000e-13)
169        Index:  6.287e+00  5.443e+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:  9.830e-01  3.351e-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:  9.208e-01  4.119e-02  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/252118/cmap_HighResolution_606096001_606700801_4FGL_J0146.0-6746_weekly_bin607.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.36e-03', job_status='DONE', photon_flux_upper_limit='3.13e-08', time_completed='2021-07-04 05:57:43.361978', job_id='252118', GAL2='0.98', fit_tolerance='1e-08', EG2='0.92', EG='0.95', time_epoch_completed='1625403463.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='3.03e-01', ts2='0.66', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='607' AND source_name='4FGL J0146.0-6746' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 05:57:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0142>
Subject: Job 252118: <4FGL_J0146.0-6746_weekly_bin607> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0146.0-6746_weekly_bin607 26.5182 -67.7748 606096001 606700801 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 :                                   13678.00 sec.
    Max Memory :                                 631 MB
    Average Memory :                             584.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   14107 sec.
    Turnaround time :                            14109 sec.

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

