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


Performing analysis on: 4FGL_J0146.0-6746_weekly_bin724
RA = 26.5182, Dec = -67.7748
tmin = 676857601, tmax = 677462401
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='360637', job_status='RUN', time_executed='2022-06-21 00:07:19.765623', time_epoch_executed='1655795239.77' WHERE source_name='4FGL J0146.0-6746' and cadence='weekly' and bin_id='724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360637

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360637/ft1_4FGL_J0146.0-6746_weekly_bin724.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360637/ft2_4FGL_J0146.0-6746_weekly_bin724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360637/ft1_4FGL_J0146.0-6746_weekly_bin724.fits outfile=/scratch/kocevski/360637/ft1_filteredMKT_4FGL_J0146.0-6746_weekly_bin724.fits ra=26.5182 dec=-67.7748 rad=12.0 tmin=676857601.0 tmax=677462401.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 5.93
user 5.56
sys 0.29

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

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

Number of photons that the gtmktime cut: 1966

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/360637/ft1_filtered_4FGL_J0146.0-6746_weekly_bin724.fits" evtable="EVENTS" scfile=/scratch/kocevski/360637/ft2_4FGL_J0146.0-6746_weekly_bin724.fits sctable="SC_DATA" outfile=/scratch/kocevski/360637/ltcube_676857601_677462401_4FGL_J0146.0-6746_weekly_bin724.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/360637/ft2_4FGL_J0146.0-6746_weekly_bin724.fits
.....................!
real 36.56
user 36.02
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360637/ft1_filtered_4FGL_J0146.0-6746_weekly_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/360637/ft2_4FGL_J0146.0-6746_weekly_bin724.fits sctable="SC_DATA" expcube=/scratch/kocevski/360637/ltcube_676857601_677462401_4FGL_J0146.0-6746_weekly_bin724.fits outfile=/scratch/kocevski/360637/expmap_676857601_677462401_4FGL_J0146.0-6746_weekly_bin724.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/360637/ltcube_676857601_677462401_4FGL_J0146.0-6746_weekly_bin724.fits
.....................!
real 193.15
user 187.51
sys 4.97

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/360637/ft1_filtered_4FGL_J0146.0-6746_weekly_bin724.fits scfile=/scratch/kocevski/360637/ft2_4FGL_J0146.0-6746_weekly_bin724.fits outfile=/scratch/kocevski/360637/cmap_676857601_677462401_4FGL_J0146.0-6746_weekly_bin724.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.65
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/360637/ft1_filtered_4FGL_J0146.0-6746_weekly_bin724.fits scfile=/scratch/kocevski/360637/ft2_4FGL_J0146.0-6746_weekly_bin724.fits outfile=/scratch/kocevski/360637/cmap_HighResolution_676857601_677462401_4FGL_J0146.0-6746_weekly_bin724.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.60
user 0.41
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/360637/ft1_filtered_4FGL_J0146.0-6746_weekly_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/360637/ft2_4FGL_J0146.0-6746_weekly_bin724.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360637/Model_4FGL_J0146.0-6746_weekly_bin724.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/360637/ft1_filtered_4FGL_J0146.0-6746_weekly_bin724.fits.....................!
real 17295.88
user 17232.91
sys 9.92

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66052       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0704       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4012       1.0000         .10000E-03   10000.    
     4 'norm      '    4.1659       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6848       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10836E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .32632       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11739E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6712       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0655       1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.796       1.0000         .10000E-03   10000.    
    12 'norm      '    3.3223       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .41971E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.6512       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.5660       1.0000         .10000E-03   10000.    
    18 'norm      '    1.5737       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10533E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10764E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2246       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95061       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=   21000.02     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2148 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .66413        3.4555        .10260E-05   -.61819E-03
   2  Prefactor     1.1013        3.4349       -.14194E-06   -.22134E-03
   3  Prefactor     3.4021        3.0415        .33905E-06   -.20243E-03
   4  norm          4.1660        3.3762        .59875E-07    .71836E-05
   5  Prefactor     4.6831        4.5542        .22525E-06   -.13115E-03
   6  Prefactor     .10000E-03    39.300       -.21615E-06** at limit **
   7  Prefactor     .32177        1.2161        .25791E-06   -.54232E-03
   8  Prefactor     .10000E-03    1.3415       -.51499E-06** at limit **
   9  Prefactor     1.6739        2.1796        .90741E-06   -.65166E-05
  10  Prefactor     4.0653        3.2660       -.38180E-07   -.31827E-04
  11  Prefactor     26.814        20.266        .16295E-05    .39702E-03
  12  norm          3.3204        3.2230       -.19042E-06    .36659E-04
  13  Prefactor     .10000E-03    .49101        .79526E-07** at limit **
  14  Prefactor     6.6502        6.5752        .23799E-07    .22038E-04
  15  Prefactor     .10000E-03    12.946       -.15232E-06** at limit **
  16  Prefactor     .10000E-03    5.1553        .24698E-06** at limit **
  17  norm          3.5670        3.2190        .27060E-06   -.21360E-03
  18  norm          1.5736        .65097        .58840E-08   -.17314E-03
  19  Prefactor     .10000E-03    23.364       -.14418E-05** at limit **
  20  Prefactor     .10000E-03    24.888        .14406E-05** at limit **
  21  Normalizat    1.2246        .10868       -.91198E-06   -.22785E-03
  22  Prefactor     .95063        .79740E-01    .19071E-07   -.38255E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.664126
  Prefactor  = 1.10129
  Prefactor  = 3.40213
  norm       = 4.16601
  Prefactor  = 4.68312
  Prefactor  = 0.0001
  Prefactor  = 0.321766
  Prefactor  = 0.0001
  Prefactor  = 1.67391
  Prefactor  = 4.06529
  Prefactor  = 26.814
  norm       = 3.32037
  Prefactor  = 0.0001
  Prefactor  = 6.65023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.56703
  norm       = 1.57355
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Normalizat = 1.22457
  Prefactor  = 0.950625
 **********
 **   18 **HESSE 
 **********

 FCN=   21000.02     FROM HESSE     STATUS=OK           358 CALLS     2506 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .66413        13.008        .45675E-02   -1.5545    
   2  Prefactor     1.1013        6.8599        .41996E-02   -1.5498    
   3  Prefactor     3.4021        3.0505        .21937E-03   -1.5339    
   4  norm          4.1660        3.3776        .19747E-03   -1.5300    
   5  Prefactor     4.6831        4.5535        .18593E-03   -1.5275    
   6  Prefactor     .10000E-03    40.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .32177        3.1134        .30228E-02   -1.5595    
   8  Prefactor     .10000E-03    3.1386        .31189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.6739        2.2281        .23128E-03   -1.5449    
  10  Prefactor     4.0653        3.2484        .19997E-03   -1.5305    
  11  Prefactor     26.814        21.143        .77389E-04   -1.4672    
  12  norm          3.3204        3.2329        .22208E-03   -1.5344    
  13  Prefactor     .10000E-03    4.0195        .19220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.6502        6.5756        .15560E-03   -1.5192    
  15  Prefactor     .10000E-03    12.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.1808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5670        3.1993        .21402E-03   -1.5330    
  18  norm          1.5736        .64659        .68189E-04   -1.5457    
  19  Prefactor     .10000E-03    23.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    25.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2246        .12571        .25204E-03   -.85847    
  22  Prefactor     .95063        .94702E-01    .22393E-03   -.94394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72771e-07
Minuit parameter uncertainties:
  1  5.87949
  2  5.49787
  3  3.05068
  4  3.37773
  5  4.5538
  6  2.66e-05
  7  2.0016
  8  4.80519e-05
  9  2.22819
  10  3.24855
  11  21.1486
  12  3.23312
  13  5.82314e-05
  14  6.57633
  15  2.51456e-05
  16  2.64515e-05
  17  3.19942
  18  0.646589
  19  0.0002903
  20  0.000300843
  21  0.125741
  22  0.094718
Done.

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

Extracting fit parameters...

4FGL J0146.0-6746
   Spectrum: PowerLaw
168    Prefactor:  1.000e-04  4.805e-05  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.506e-01  9.472e-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.225e+00  1.257e-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: 2.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/360637/likelihoodResults_676857601_677462401_4FGL_J0146.0-6746_weekly_bin724.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) = 21000.0233987
delta logL = -0.00151327182539

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 21000.0218846
delta logL = 8.13277438283e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0266       1.0000          .0000       10.000    
     3 'Normalizat'    1.2246       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95062       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=   21000.02     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      233 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .34751        .62221E-01** at limit **
   2  Index         1.9892        1.9863        .50000        .89409E-04
   3  Normalizat    1.2246        .13534E-02    .56995E-01   -.29686E-03
   4  Prefactor     .95063        .10803E-02    .45647E-01   -.36886E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.98915
  Normalizat = 1.22457
  Prefactor  = 0.950625
 **********
 **   18 **HESSE 
 **********

 FCN=   21000.02     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      268 TOTAL
                     EDM=   .88E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    370.02        .32044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9892        9.0054        .50000       -.64622    
   3  Normalizat    1.2246        .31200E-01    .25204E-03   -.85847    
   4  Prefactor     .95063        .24907E-01    .22393E-03   -.94394    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.8401e-07
Minuit parameter uncertainties:
  1  0.000109285
  2  41.3008
  3  0.0312003
  4  0.0249069
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360637': 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) = 21000.0218837
delta logL = 1.67612597579e-06

Extracting fit parameters...

4FGL J0146.0-6746
   Spectrum: PowerLaw
168    Prefactor:  1.000e-04  1.093e-04  1.000e-04  1.000e+04 ( 1.000e-13)
169        Index:  1.989e+00  4.130e+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.506e-01  2.491e-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.225e+00  3.120e-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/360637/cmap_HighResolution_676857601_677462401_4FGL_J0146.0-6746_weekly_bin724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.97e-03', job_status='DONE', photon_flux_upper_limit='2.61e-08', time_completed='2022-06-21 05:19:37.343661', job_id='360637', GAL2='0.95', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1655813977.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.68e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='724' AND source_name='4FGL J0146.0-6746' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 21 05:19:37 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 360637: <4FGL_J0146.0-6746_weekly_bin724> in cluster <slac> Done

Job <4FGL_J0146.0-6746_weekly_bin724> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Jun 21 00:04:56 2022
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jun 21 00:06:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jun 21 00:06:24 2022
Terminated at Tue Jun 21 05:19:37 2022
Results reported at Tue Jun 21 05:19:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0146.0-6746_weekly_bin724 26.5182 -67.7748 676857601 677462401 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 :                                   18693.00 sec.
    Max Memory :                                 784 MB
    Average Memory :                             604.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   18793 sec.
    Turnaround time :                            18881 sec.

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

