aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 104 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0146.0-6746_weekly_bin734
RA = 26.5182, Dec = -67.7748
tmin = 682905601, tmax = 683510401
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='37243', job_status='RUN', time_executed='2022-09-16 12:17:23.442387', time_epoch_executed='1663355843.44' WHERE source_name='4FGL J0146.0-6746' and cadence='weekly' and bin_id='734'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/37243

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/37243/ft1_4FGL_J0146.0-6746_weekly_bin734.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/37243/ft2_4FGL_J0146.0-6746_weekly_bin734.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/37243/ft1_4FGL_J0146.0-6746_weekly_bin734.fits outfile=/scratch/kocevski/37243/ft1_filteredMKT_4FGL_J0146.0-6746_weekly_bin734.fits ra=26.5182 dec=-67.7748 rad=12.0 tmin=682905601.0 tmax=683510401.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.94
user 9.48
sys 0.39

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/37243/ft2_4FGL_J0146.0-6746_weekly_bin734.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/37243/ft1_filteredMKT_4FGL_J0146.0-6746_weekly_bin734.fits evtable="EVENTS" outfile="/scratch/kocevski/37243/ft1_filtered_4FGL_J0146.0-6746_weekly_bin734.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.56
user 0.38
sys 0.17

Number of photons that the gtmktime cut: 1326

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/37243/ft1_filtered_4FGL_J0146.0-6746_weekly_bin734.fits" evtable="EVENTS" scfile=/scratch/kocevski/37243/ft2_4FGL_J0146.0-6746_weekly_bin734.fits sctable="SC_DATA" outfile=/scratch/kocevski/37243/ltcube_682905601_683510401_4FGL_J0146.0-6746_weekly_bin734.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/37243/ft2_4FGL_J0146.0-6746_weekly_bin734.fits
.....................!
real 31.37
user 30.82
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/37243/ft1_filtered_4FGL_J0146.0-6746_weekly_bin734.fits evtable="EVENTS" scfile=/scratch/kocevski/37243/ft2_4FGL_J0146.0-6746_weekly_bin734.fits sctable="SC_DATA" expcube=/scratch/kocevski/37243/ltcube_682905601_683510401_4FGL_J0146.0-6746_weekly_bin734.fits outfile=/scratch/kocevski/37243/expmap_682905601_683510401_4FGL_J0146.0-6746_weekly_bin734.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/37243/ltcube_682905601_683510401_4FGL_J0146.0-6746_weekly_bin734.fits
.....................!
real 192.33
user 186.25
sys 5.27

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_8years/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_8years/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_8years/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_8years/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_8years/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/37243/ft1_filtered_4FGL_J0146.0-6746_weekly_bin734.fits scfile=/scratch/kocevski/37243/ft2_4FGL_J0146.0-6746_weekly_bin734.fits outfile=/scratch/kocevski/37243/cmap_682905601_683510401_4FGL_J0146.0-6746_weekly_bin734.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/37243/ft1_filtered_4FGL_J0146.0-6746_weekly_bin734.fits scfile=/scratch/kocevski/37243/ft2_4FGL_J0146.0-6746_weekly_bin734.fits outfile=/scratch/kocevski/37243/cmap_HighResolution_682905601_683510401_4FGL_J0146.0-6746_weekly_bin734.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.58
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/37243/ft1_filtered_4FGL_J0146.0-6746_weekly_bin734.fits evtable="EVENTS" scfile=/scratch/kocevski/37243/ft2_4FGL_J0146.0-6746_weekly_bin734.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/37243/Model_4FGL_J0146.0-6746_weekly_bin734.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/37243/ft1_filtered_4FGL_J0146.0-6746_weekly_bin734.fits.....................!
real 11999.28
user 11925.52
sys 35.61

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/37243/ft1_filtered_4FGL_J0146.0-6746_weekly_bin734.fits', '/scratch/kocevski/37243/ft2_4FGL_J0146.0-6746_weekly_bin734.fits', expMap='/scratch/kocevski/37243/expmap_682905601_683510401_4FGL_J0146.0-6746_weekly_bin734.fits', expCube='/scratch/kocevski/37243/ltcube_682905601_683510401_4FGL_J0146.0-6746_weekly_bin734.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/37243/Model_4FGL_J0146.0-6746_weekly_bin734.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  0.000e+00  1.000e+06 ( 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/37243/ft1_filtered_4FGL_J0146.0-6746_weekly_bin734.fits
Spacecraft file(s): /scratch/kocevski/37243/ft2_4FGL_J0146.0-6746_weekly_bin734.fits
Exposure map: /scratch/kocevski/37243/expmap_682905601_683510401_4FGL_J0146.0-6746_weekly_bin734.fits
Exposure cube: /scratch/kocevski/37243/ltcube_682905601_683510401_4FGL_J0146.0-6746_weekly_bin734.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/37243/Model_4FGL_J0146.0-6746_weekly_bin734.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) = 14204.4488302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35590E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .19511E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    14.069       1.0000          .0000       .10000E+07
     4 'norm      '    4.6973       1.0000          .0000       .10000E+07
     5 'Prefactor '    .28755E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    24.400       1.0000          .0000       .10000E+07
     7 'Prefactor '    5.0169       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.4259       1.0000          .0000       .10000E+07
     9 'Prefactor '    5.5864       1.0000          .0000       .10000E+07
    10 'Prefactor '    21.152       1.0000          .0000       .10000E+07
    11 'norm      '    .41597E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .83121       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10143E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .33911E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    8.7027       1.0000          .0000       .10000E+07
    16 'norm      '    .16653E-09   1.0000          .0000       .10000E+07
    17 'norm      '    1.1190       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.2173       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .77562       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14204.45     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     1421 TOTAL
                     EDM=   .82E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.7589        .18333E-06** at limit **
   2  Prefactor     .15543E-08    6.4096        .16270E-05** at limit **
   3  Prefactor     14.092        5.0413        .19695E-06   -.29203E-03
   4  norm          4.6947        3.7513       -.39448E-07   -.46056E-04
   5  Prefactor      .0000        2.5462       -.91615E-07** at limit **
   6  Prefactor     24.616        40.100        .10528E-04   -.15430E-02
   7  Prefactor     5.0173        2.7885       -.28471E-06   -.56511E-04
   8  Prefactor     3.4321        3.5389       -.15104E-06   -.82378E-04
   9  Prefactor     5.5852        2.9124       -.21722E-06   -.94799E-04
  10  Prefactor     21.181        1.1519       -.16280E-06   -.10737E-01
  11  norm          .99920E-09    6.5187       -.49268E-06** at limit **
  12  Prefactor     .83266        1.2621        .23456E-06   -.54389E-04
  13  Prefactor      .0000        16.029       -.39347E-06** at limit **
  14  Prefactor     .38858E-09    10.906        .20086E-07** at limit **
  15  Prefactor     8.7052        2.3039       -.62022E-06   -.35559E-01
  16  norm           .0000        1.9025        .12925E-07** at limit **
  17  norm          1.1193        .62862        .30217E-07    .20910E-04
  18  Normalizat    1.2172        .14043       -.66176E-05    .79619E-05
  19  Prefactor     .77565        .10685        .34397E-05    .65097E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 1.55431e-09
  Prefactor  = 14.0915
  norm       = 4.69466
  Prefactor  = 0
  Prefactor  = 24.6164
  Prefactor  = 5.01725
  Prefactor  = 3.43213
  Prefactor  = 5.58524
  Prefactor  = 21.1809
  norm       = 9.99201e-10
  Prefactor  = 0.832656
  Prefactor  = 0
  Prefactor  = 3.88578e-10
  Prefactor  = 8.70522
  norm       = 0
  norm       = 1.11927
  Normalizat = 1.21719
  Prefactor  = 0.775647
 **********
 **   18 **HESSE 
 **********

 FCN=   14204.45     FROM HESSE     STATUS=OK           308 CALLS     1729 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.7437        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .15543E-08    6.4091        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.092        5.0307        .26678E-03   -1.5633    
   4  norm          4.6947        3.7541        .46406E-03   -1.5665    
   5  Prefactor      .0000        2.5420        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.616        40.230        .20249E-03   -1.5609    
   7  Prefactor     5.0173        2.7872        .44872E-03   -1.5663    
   8  Prefactor     3.4321        3.5557        .54626E-03   -1.5671    
   9  Prefactor     5.5852        2.9102        .42481E-03   -1.5661    
  10  Prefactor     21.181        21.440        .21750E-03   -1.5616    
  11  norm          .99920E-09    6.5156        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .83266        1.2730        .50637E-03   -1.5690    
  13  Prefactor      .0000        15.908        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .38858E-09    10.927        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.7052        13.620        .33954E-03   -1.5649    
  16  norm           .0000        1.8964        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.1193        .63804        .11108E-02   -1.5687    
  18  Normalizat    1.2172        .11909        .53662E-01   -.86073    
  19  Prefactor     .77565        .90623E-01    .43399E-01   -1.0063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32976e-08
Minuit parameter uncertainties:
  1  3.55563e-06
  2  0.000198673
  3  5.03074
  4  3.75412
  5  1.06935e-06
  6  40.2306
  7  2.78722
  8  3.55573
  9  2.91025
  10  21.4398
  11  0.000159489
  12  1.273
  13  4.05586e-05
  14  0.000127718
  15  13.6202
  16  3.8503e-07
  17  0.638045
  18  0.119112
  19  0.0906403
Done.

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

Extracting fit parameters...

4FGL J0146.0-6746
   Spectrum: PowerLaw
168    Prefactor:  3.432e+00  3.556e+00  0.000e+00  1.000e+06 ( 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.756e-01  9.064e-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.217e+00  1.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.67
Ra Dec: 26.518 -67.775
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 1.36e-08 +/- 1.41e-08
Energy Flux (Fixed Index): 8.11e-06 +/- 8.40e-06

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

Saving results to:
/scratch/kocevski/37243/likelihoodResults_682905601_683510401_4FGL_J0146.0-6746_weekly_bin734.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) = 14203.9165795
delta logL = 0.530158266434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14203.9096847
delta logL = 0.537052990485

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4387       1.0000          .0000       .10000E+07
     2 'Index     '    2.8857       1.0000          .0000       10.000    
     3 'Normalizat'    1.1889       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78849       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=   14203.91     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      260 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4392        12.239        .89929E-03    .15187E-01
   2  Index         2.8856        1.6899        .15618        .25577E-03
   3  Normalizat    1.1887        .27714E-01    .54185E-01    .48285E-04
   4  Prefactor     .78866        .21047E-01    .43567E-01    .55995E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.43921
  Index      = 2.88559
  Normalizat = 1.18868
  Prefactor  = 0.788665
 **********
 **   18 **HESSE 
 **********

 FCN=   14203.91     FROM HESSE     STATUS=OK            33 CALLS      293 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4392        5.6509        .98900E-05   -1.5684    
   2  Index         2.8856        1.8493        .53983E-02   -.43662    
   3  Normalizat    1.1887        .14506        .23959E-03   -.86953    
   4  Prefactor     .78866        .11028        .22579E-03   -1.0015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12263e-10
Minuit parameter uncertainties:
  1  5.65094
  2  1.90488
  3  0.145108
  4  0.110307
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/37243': 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) = 14203.9096833
delta logL = 0.537054437307

Extracting fit parameters...

4FGL J0146.0-6746
   Spectrum: PowerLaw
168    Prefactor:  1.439e+00  5.651e+00  0.000e+00  1.000e+06 ( 1.000e-13)
169        Index:  2.886e+00  1.905e+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:  7.887e-01  1.103e-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.189e+00  1.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.79
Ra Dec: 26.518 -67.775
Photon Index (Free Index): 2.89 +/- 1.90
Photon Flux (Free Index): 3.59e-08 +/- 3.63e-08
Energy Flux (Free Index): 7.61e-06 +/- 6.28e-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/37243/cmap_HighResolution_682905601_683510401_4FGL_J0146.0-6746_weekly_bin734.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-03', comment='SUCCESS', photon_flux='1.36e-08', energy_flux2='7.61e-06', photon_flux_error='1.41e-08', dlogl='5.37e-01', energy_flux='8.11e-06', photon_flux2='3.59e-08', job_status='DONE', time_completed='2022-09-16 15:53:00.096844', photon_index_error2='1.90', photon_index2='2.89', ts='1.67', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='4.75e-08', energy_flux_error2='6.28e-06', EG='1.22', time_epoch_completed='1663368780.1', return_code='0', job_id='37243', GAL2='0.79', EG2='1.19', return_code2='0', energy_flux_error='8.40e-06', photon_flux_error2='3.63e-08', ts2='2.79', photon_index='2.06' WHERE bin_id='734' AND source_name='4FGL J0146.0-6746' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:53:00 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 37243: <4FGL_J0146.0-6746_weekly_bin734> in cluster <slac> Done

Job <4FGL_J0146.0-6746_weekly_bin734> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 16 12:10:30 2022
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 12:15:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 12:15:29 2022
Terminated at Fri Sep 16 15:53:00 2022
Results reported at Fri Sep 16 15:53:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0146.0-6746_weekly_bin734 26.5182 -67.7748 682905601 683510401 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 :                                   12906.00 sec.
    Max Memory :                                 630 MB
    Average Memory :                             598.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   13051 sec.
    Turnaround time :                            13350 sec.

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

