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/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 7 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 = 17291
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0146.0-6746_weekly_bin44
RA = 26.5182, Dec = -67.7748
tmin = 265593601, tmax = 266198401
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='248485', job_status='RUN', time_executed='2021-07-04 01:51:08.941763', time_epoch_executed='1625388668.94' WHERE source_name='4FGL J0146.0-6746' and cadence='weekly' and bin_id='44'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248485

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248485/ft1_4FGL_J0146.0-6746_weekly_bin44.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248485/ft2_4FGL_J0146.0-6746_weekly_bin44.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248485/ft1_4FGL_J0146.0-6746_weekly_bin44.fits outfile=/scratch/kocevski/248485/ft1_filteredMKT_4FGL_J0146.0-6746_weekly_bin44.fits ra=26.5182 dec=-67.7748 rad=12.0 tmin=265593601.0 tmax=266198401.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 2.79
user 2.52
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248485/ft1_filtered_4FGL_J0146.0-6746_weekly_bin44.fits" evtable="EVENTS" scfile=/scratch/kocevski/248485/ft2_4FGL_J0146.0-6746_weekly_bin44.fits sctable="SC_DATA" outfile=/scratch/kocevski/248485/ltcube_265593601_266198401_4FGL_J0146.0-6746_weekly_bin44.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/248485/ft2_4FGL_J0146.0-6746_weekly_bin44.fits
.....................!
real 29.49
user 28.85
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248485/ft1_filtered_4FGL_J0146.0-6746_weekly_bin44.fits evtable="EVENTS" scfile=/scratch/kocevski/248485/ft2_4FGL_J0146.0-6746_weekly_bin44.fits sctable="SC_DATA" expcube=/scratch/kocevski/248485/ltcube_265593601_266198401_4FGL_J0146.0-6746_weekly_bin44.fits outfile=/scratch/kocevski/248485/expmap_265593601_266198401_4FGL_J0146.0-6746_weekly_bin44.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/248485/ltcube_265593601_266198401_4FGL_J0146.0-6746_weekly_bin44.fits
.....................!
real 192.45
user 186.28
sys 4.55

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/248485/ft1_filtered_4FGL_J0146.0-6746_weekly_bin44.fits scfile=/scratch/kocevski/248485/ft2_4FGL_J0146.0-6746_weekly_bin44.fits outfile=/scratch/kocevski/248485/cmap_265593601_266198401_4FGL_J0146.0-6746_weekly_bin44.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=26.5182 yref=-67.7748 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.60
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248485/ft1_filtered_4FGL_J0146.0-6746_weekly_bin44.fits scfile=/scratch/kocevski/248485/ft2_4FGL_J0146.0-6746_weekly_bin44.fits outfile=/scratch/kocevski/248485/cmap_HighResolution_265593601_266198401_4FGL_J0146.0-6746_weekly_bin44.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/248485/ft1_filtered_4FGL_J0146.0-6746_weekly_bin44.fits evtable="EVENTS" scfile=/scratch/kocevski/248485/ft2_4FGL_J0146.0-6746_weekly_bin44.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/248485/Model_4FGL_J0146.0-6746_weekly_bin44.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/248485/ft1_filtered_4FGL_J0146.0-6746_weekly_bin44.fits.....................!
real 9366.66
user 9347.13
sys 2.44

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.524       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.2505       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4555       1.0000         .10000E-03   10000.    
     4 'norm      '    1.7875       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5915       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.552       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .30468       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2806       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.6840       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2529       1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.276       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3207       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.246       1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.372       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.0764       1.0000         .10000E-03   10000.    
    18 'norm      '    .49951       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.1234       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.1511       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85336       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90665       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=   11864.38     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     2410 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.525        11.461       -.58605E-06   -.50787E-04
   2  Prefactor     4.2510        5.8911        .24335E-05   -.30612E-04
   3  Prefactor     1.4563        2.9232        .58438E-07   -.19912E-03
   4  norm          1.7877        3.0975        .30923E-06    .43879E-04
   5  Prefactor     3.5925        5.0591        .29485E-05   -.10682E-03
   6  Prefactor     10.533        44.228        .69330E-05    .41165E-04
   7  Prefactor     .29705        1.3450        .22573E-06   -.25424E-03
   8  Prefactor     2.2815        4.1521        .11266E-06   -.30560E-04
   9  Prefactor     5.6842        2.7825        .73119E-07    .68914E-04
  10  Prefactor     5.2525        4.2363        .44178E-07   -.16999E-04
  11  Prefactor     32.275        25.619        .40413E-06    .21865E-04
  12  norm          .10000E-03    2.8454       -.38731E-07** at limit **
  13  Prefactor     1.3221        2.0844        .25838E-07   -.28221E-03
  14  Prefactor     19.246        16.292        .19042E-07    .10142E-04
  15  Prefactor     34.361        34.551        .20631E-05    .73323E-04
  16  Prefactor     .10000E-03    14.016        .18089E-06** at limit **
  17  norm          3.0764        3.0288        .78795E-07    .20935E-04
  18  norm          .49962        .46267       -.26308E-07   -.29209E-03
  19  Prefactor     8.1230        21.421        .21563E-06    .73515E-06
  20  Prefactor     9.1506        16.680        .22037E-06    .29462E-05
  21  Normalizat    .85320        .12908       -.45283E-06    .16225E-03
  22  Prefactor     .90676        .97366E-01   -.54871E-06   -.31503E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.5252
  Prefactor  = 4.25103
  Prefactor  = 1.45631
  norm       = 1.7877
  Prefactor  = 3.59248
  Prefactor  = 10.5326
  Prefactor  = 0.297049
  Prefactor  = 2.28152
  Prefactor  = 5.68423
  Prefactor  = 5.25255
  Prefactor  = 32.2745
  norm       = 0.0001
  Prefactor  = 1.32207
  Prefactor  = 19.2457
  Prefactor  = 34.3613
  Prefactor  = 0.0001
  norm       = 3.07641
  norm       = 0.499617
  Prefactor  = 8.123
  Prefactor  = 9.15063
  Normalizat = 0.853203
  Prefactor  = 0.906756
 **********
 **   18 **HESSE 
 **********

 FCN=   11864.38     FROM HESSE     STATUS=OK           360 CALLS     2770 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.525        11.507        .79291E-04   -1.4697    
   2  Prefactor     4.2510        5.8824        .97718E-03   -1.5296    
   3  Prefactor     1.4563        2.9028        .25421E-03   -1.5467    
   4  norm          1.7877        3.0704        .24609E-03   -1.5441    
   5  Prefactor     3.5925        5.0739        .10661E-02   -1.5329    
   6  Prefactor     10.533        44.237        .12334E-03   -1.5059    
   7  Prefactor     .29705        6.3525        .24163E-02   -1.5599    
   8  Prefactor     2.2815        4.1128        .27188E-03   -1.5406    
   9  Prefactor     5.6842        2.7713        .11671E-03   -1.5231    
  10  Prefactor     5.2525        4.2270        .17538E-03   -1.5250    
  11  Prefactor     32.275        25.615        .70530E-04   -1.4571    
  12  norm          .10000E-03    2.8501        .17943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.3221        2.0661        .18398E-03   -1.5478    
  14  Prefactor     19.246        16.286        .91298E-04   -1.4830    
  15  Prefactor     34.361        34.498        .68353E-04   -1.4535    
  16  Prefactor     .10000E-03    14.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.0764        3.0116        .17660E-03   -1.5357    
  18  norm          .49962        .46539        .67317E-04   -1.5567    
  19  Prefactor     8.1230        21.415        .14067E-03   -1.5138    
  20  Prefactor     9.1506        16.677        .13249E-03   -1.5103    
  21  Normalizat    .85320        .15151        .25937E-03   -.98125    
  22  Prefactor     .90676        .11479        .20261E-03   -.95905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60356e-08
Minuit parameter uncertainties:
  1  11.5078
  2  5.88324
  3  2.90306
  4  3.07067
  5  5.0745
  6  43.2253
  7  2.74722
  8  4.11335
  9  2.77141
  10  4.2272
  11  25.6241
  12  3.29962e-06
  13  2.06619
  14  16.2901
  15  34.5175
  16  3.97408e-05
  17  3.01175
  18  0.465392
  19  21.4355
  20  16.6851
  21  0.151588
  22  0.114823
Done.

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

Extracting fit parameters...

4FGL J0146.0-6746
   Spectrum: PowerLaw
168    Prefactor:  2.282e+00  4.113e+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.068e-01  1.148e-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:  8.532e-01  1.516e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/248485/likelihoodResults_265593601_266198401_4FGL_J0146.0-6746_weekly_bin44.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) = 11864.3023075
delta logL = 0.0744137746678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11864.2899169
delta logL = 0.086804427141

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7355       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4097       1.0000          .0000       10.000    
     3 'Normalizat'    .84776       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90884       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=   11864.29     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      228 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7318        66.345        .79642E-02    .14673E-02
   2  Index         2.4103        3.1186        .16545        .17731E-03
   3  Normalizat    .84759        .29339E-01    .44230E-01    .26327E-04
   4  Prefactor     .90898        .23199E-01    .45118E-01    .37258E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.7318
  Index      = 2.41034
  Normalizat = 0.847594
  Prefactor  = 0.908979
 **********
 **   18 **HESSE 
 **********

 FCN=   11864.29     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7318        4.2434        .20094E-03   -1.5445    
   2  Index         2.4103        1.0369        .10061E-01   -.54443    
   3  Normalizat    .84759        .14109        .26010E-03   -.98327    
   4  Prefactor     .90898        .11330        .20236E-03   -.95828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08623e-08
Minuit parameter uncertainties:
  1  4.24414
  2  1.04736
  3  0.141152
  4  0.113326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248485': 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) = 11864.2899155
delta logL = 0.0868057592234

Extracting fit parameters...

4FGL J0146.0-6746
   Spectrum: PowerLaw
168    Prefactor:  1.732e+00  4.244e+00  1.000e-04  1.000e+04 ( 1.000e-13)
169        Index:  2.410e+00  1.047e+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.090e-01  1.133e-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:  8.476e-01  1.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.40
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/248485/cmap_HighResolution_265593601_266198401_4FGL_J0146.0-6746_weekly_bin44.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.56e-03', job_status='DONE', photon_flux_upper_limit='4.73e-08', time_completed='2021-07-04 04:43:57.334529', job_id='248485', GAL2='0.91', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1625399037.33', return_code2='0', ts='0.40', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='8.68e-02', ts2='0.59', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='44' AND source_name='4FGL J0146.0-6746' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 04:43:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 248485: <4FGL_J0146.0-6746_weekly_bin44> in cluster <slac> Done

Job <4FGL_J0146.0-6746_weekly_bin44> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Jul  4 01:50:37 2021
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 01:50: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 01:50:38 2021
Terminated at Sun Jul  4 04:43:58 2021
Results reported at Sun Jul  4 04:43:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0146.0-6746_weekly_bin44 26.5182 -67.7748 265593601 266198401 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 :                                   10326.00 sec.
    Max Memory :                                 982 MB
    Average Memory :                             592.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   10400 sec.
    Turnaround time :                            10401 sec.

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

