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


Performing analysis on: 4FGL_J0134.3-3842_weekly_bin161
RA = 23.5887, Dec = -38.7085
tmin = 336355201, tmax = 336960001
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='191393', job_status='RUN', time_executed='2021-07-03 22:36:44.311929', time_epoch_executed='1625377004.31' WHERE source_name='4FGL J0134.3-3842' and cadence='weekly' and bin_id='161'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191393

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

Retrieving the FT1 file...

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

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

Retrieving 114 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191393/ft1_4FGL_J0134.3-3842_weekly_bin161.fits


Retrieving the FT1 file...

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

Retrieving 114 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191393/ft2_4FGL_J0134.3-3842_weekly_bin161.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191393/ft1_4FGL_J0134.3-3842_weekly_bin161.fits outfile=/scratch/kocevski/191393/ft1_filteredMKT_4FGL_J0134.3-3842_weekly_bin161.fits ra=23.5887 dec=-38.7085 rad=12.0 tmin=336355201.0 tmax=336960001.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 10.83
user 10.23
sys 0.37

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/191393/ft2_4FGL_J0134.3-3842_weekly_bin161.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191393/ft2_4FGL_J0134.3-3842_weekly_bin161.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/191393/ft1_filteredMKT_4FGL_J0134.3-3842_weekly_bin161.fits evtable="EVENTS" outfile="/scratch/kocevski/191393/ft1_filtered_4FGL_J0134.3-3842_weekly_bin161.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 1.09
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191393/ft1_filtered_4FGL_J0134.3-3842_weekly_bin161.fits" evtable="EVENTS" scfile=/scratch/kocevski/191393/ft2_4FGL_J0134.3-3842_weekly_bin161.fits sctable="SC_DATA" outfile=/scratch/kocevski/191393/ltcube_336355201_336960001_4FGL_J0134.3-3842_weekly_bin161.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/191393/ft2_4FGL_J0134.3-3842_weekly_bin161.fits
.....................!
real 21.39
user 20.31
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191393/ft1_filtered_4FGL_J0134.3-3842_weekly_bin161.fits evtable="EVENTS" scfile=/scratch/kocevski/191393/ft2_4FGL_J0134.3-3842_weekly_bin161.fits sctable="SC_DATA" expcube=/scratch/kocevski/191393/ltcube_336355201_336960001_4FGL_J0134.3-3842_weekly_bin161.fits outfile=/scratch/kocevski/191393/expmap_336355201_336960001_4FGL_J0134.3-3842_weekly_bin161.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/191393/ltcube_336355201_336960001_4FGL_J0134.3-3842_weekly_bin161.fits
.....................!
real 152.81
user 146.74
sys 4.14

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 Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 185 point sources and 1 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 J0134.3-3842 @ 23.5887 -38.7085

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/191393/ft1_filtered_4FGL_J0134.3-3842_weekly_bin161.fits scfile=/scratch/kocevski/191393/ft2_4FGL_J0134.3-3842_weekly_bin161.fits outfile=/scratch/kocevski/191393/cmap_336355201_336960001_4FGL_J0134.3-3842_weekly_bin161.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=23.5887 yref=-38.7085 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.57
user 0.34
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191393/ft1_filtered_4FGL_J0134.3-3842_weekly_bin161.fits scfile=/scratch/kocevski/191393/ft2_4FGL_J0134.3-3842_weekly_bin161.fits outfile=/scratch/kocevski/191393/cmap_HighResolution_336355201_336960001_4FGL_J0134.3-3842_weekly_bin161.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=23.5887 yref=-38.7085 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.53
user 0.34
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/191393/ft1_filtered_4FGL_J0134.3-3842_weekly_bin161.fits evtable="EVENTS" scfile=/scratch/kocevski/191393/ft2_4FGL_J0134.3-3842_weekly_bin161.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191393/Model_4FGL_J0134.3-3842_weekly_bin161.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/191393/ft1_filtered_4FGL_J0134.3-3842_weekly_bin161.fits.....................!
real 165.41
user 162.12
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/191393/ft1_filtered_4FGL_J0134.3-3842_weekly_bin161.fits', '/scratch/kocevski/191393/ft2_4FGL_J0134.3-3842_weekly_bin161.fits', expMap='/scratch/kocevski/191393/expmap_336355201_336960001_4FGL_J0134.3-3842_weekly_bin161.fits', expCube='/scratch/kocevski/191393/ltcube_336355201_336960001_4FGL_J0134.3-3842_weekly_bin161.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/191393/Model_4FGL_J0134.3-3842_weekly_bin161.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0134.3-3842'

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  3.272e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  2.490e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
285        Scale:  8.319e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/191393/ft1_filtered_4FGL_J0134.3-3842_weekly_bin161.fits
Spacecraft file(s): /scratch/kocevski/191393/ft2_4FGL_J0134.3-3842_weekly_bin161.fits
Exposure map: /scratch/kocevski/191393/expmap_336355201_336960001_4FGL_J0134.3-3842_weekly_bin161.fits
Exposure cube: /scratch/kocevski/191393/ltcube_336355201_336960001_4FGL_J0134.3-3842_weekly_bin161.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/191393/Model_4FGL_J0134.3-3842_weekly_bin161.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) = 11657.7494788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.488       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.3647       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .63828       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .68613E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.1786       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .35203       1.0000         .10000E-03   10000.    
    12 'norm      '    1.5083       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.2397       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.692       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.659       1.0000         .10000E-03   10000.    
    17 'norm      '    .28087       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .90271       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .77819       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11657.72     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     1941 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.5759        .13856E-06** at limit **
   2  Prefactor     11.490        5.2525       -.65517E-07   -.13688E-03
   3  norm          .10000E-03    5.9512        .14127E-06** at limit **
   4  norm          3.3648        1.7263        .38228E-09   -.15692E-03
   5  Prefactor     .10000E-03    2.2244        .23274E-07** at limit **
   6  Prefactor     .63807        1.2518        .90359E-06    .69160E-03
   7  Prefactor     .10014E-03    6.7427        .15651E-05** at limit **
   8  Prefactor     .10000E-03    5.7413        .57476E-08** at limit **
   9  Prefactor     .10000E-03    .72937        .12255E-06** at limit **
  10  norm          5.1793        2.0938        .15148E-07    .84775E-05
  11  Prefactor     .35730        2.2807        .15998E-06   -.36391E-03
  12  norm          1.5114        2.9382        .24687E-06    .14628E-03
  13  Prefactor     9.2408        5.2476        .34198E-06    .24460E-03
  14  Prefactor     13.652        19.999        .11637E-05    .18009E-04
  15  Prefactor     .10000E-03    6.1080       -.31905E-06** at limit **
  16  Prefactor     12.657        9.5927        .80361E-07    .33549E-04
  17  norm          .27961        .94255        .31597E-06   -.27944E-03
  18  Normalizat    .90248        .10565        .12705E-05   -.60993E-03
  19  Prefactor     .77838        .11972       -.22317E-05   -.38955E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.4899
  norm       = 0.0001
  norm       = 3.36481
  Prefactor  = 0.0001
  Prefactor  = 0.638075
  Prefactor  = 0.000100145
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.1793
  Prefactor  = 0.357304
  norm       = 1.51143
  Prefactor  = 9.24084
  Prefactor  = 13.6523
  Prefactor  = 0.0001
  Prefactor  = 12.6573
  norm       = 0.279607
  Normalizat = 0.902483
  Prefactor  = 0.778379
 **********
 **   18 **HESSE 
 **********

 FCN=   11657.72     FROM HESSE     STATUS=OK           280 CALLS     2221 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.6059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.490        5.2590        .11820E-03   -1.5030    
   3  norm          .10000E-03    5.9675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.3648        1.7260        .98596E-04   -1.5341    
   5  Prefactor     .10000E-03    2.2274        .15727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .63807        1.2794        .16311E-03   -1.5548    
   7  Prefactor     .10014E-03    39.457        .48130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.7905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.3882        .17786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.1793        2.0956        .95668E-04   -1.5253    
  11  Prefactor     .35730        13.113        .28698E-02   -1.5588    
  12  norm          1.5114        2.8662        .21030E-03   -1.5462    
  13  Prefactor     9.2408        5.2695        .65924E-03   -1.5100    
  14  Prefactor     13.652        19.729        .10825E-03   -1.4969    
  15  Prefactor     .10000E-03    6.1649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.657        9.5778        .11258E-03   -1.4996    
  17  norm          .27961        1.4998        .18012E-02   -1.5602    
  18  Normalizat    .90248        .11452        .19608E-03   -.96373    
  19  Prefactor     .77838        .12968        .24451E-03   -1.0053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.65016e-08
Minuit parameter uncertainties:
  1  7.76482e-06
  2  5.25918
  3  9.55866e-06
  4  1.72598
  5  9.2822e-07
  6  1.27944
  7  0.00478554
  8  4.41354e-06
  9  1.01746e-05
  10  2.09559
  11  4.32958
  12  2.86648
  13  5.26976
  14  19.7387
  15  2.31305e-05
  16  9.57897
  17  1.29498
  18  0.114548
  19  0.129732
Done.

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

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  4.414e-06  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  2.490e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
285        Scale:  8.319e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  7.784e-01  1.297e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  9.025e-01  1.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 23.589 -38.709
Photon Flux Upper Limit: 2.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191393/likelihoodResults_336355201_336960001_4FGL_J0134.3-3842_weekly_bin161.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) = 11657.7191598
delta logL = -0.000823171993034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11657.7183412
delta logL = -4.50876541436e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13815E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4273       1.0000          .0000       10.000    
     3 'Normalizat'    .90225       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77854       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11657.54     FROM MIGRAD    STATUS=CONVERGED    179 CALLS      331 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9281        162.76        .85220E-01    .99692E-03
   2  Index         1.3318        2.8168        .34263        .12960E-03
   3  Normalizat    .90496        .15131E-01    .19608E-03    .27216E-03
   4  Prefactor     .77356        .17755E-01    .24451E-03    .79601E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.92809
  Index      = 1.33178
  Normalizat = 0.904959
  Prefactor  = 0.773562
 **********
 **   18 **HESSE 
 **********

 FCN=   11657.54     FROM HESSE     STATUS=OK            31 CALLS      362 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9281        7.7438        .44106E-02   -1.5366    
   2  Index         1.3318        .93468        .16844E-01   -2.3179    
   3  Normalizat    .90496        .10935        .78431E-05   -.96286    
   4  Prefactor     .77356        .12827        .97804E-05   -1.0071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50007e-10
Minuit parameter uncertainties:
  1  7.7464
  2  0.946887
  3  0.109372
  4  0.128318
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191393': 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) = 11657.5359736
delta logL = 0.182363077309

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  2.928e+00  7.746e+00  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  1.332e+00  9.469e-01  0.000e+00  1.000e+01 (-1.000e+00)
285        Scale:  8.319e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  7.736e-01  1.283e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  9.050e-01  1.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 23.589 -38.709

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/191393/cmap_HighResolution_336355201_336960001_4FGL_J0134.3-3842_weekly_bin161.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.99e-03', job_status='DONE', photon_flux_upper_limit='2.55e-08', time_completed='2021-07-03 22:51:11.677451', job_id='191393', GAL2='0.77', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1625377871.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.82e-01', ts2='0.37', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='161' AND source_name='4FGL J0134.3-3842' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 22:51:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 191393: <4FGL_J0134.3-3842_weekly_bin161> in cluster <slac> Done

Job <4FGL_J0134.3-3842_weekly_bin161> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Jul  3 22:34:38 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 22:34:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  3 22:34:39 2021
Terminated at Sat Jul  3 22:51:12 2021
Results reported at Sat Jul  3 22:51:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0134.3-3842_weekly_bin161 23.5887 -38.7085 336355201 336960001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0134.3-3842 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   840.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             366.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            994 sec.

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

