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


Performing analysis on: 4FGL_J0134.3-3842_weekly_bin311
RA = 23.5887, Dec = -38.7085
tmin = 427075201, tmax = 427680001
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='193055', job_status='RUN', time_executed='2021-07-03 22:41:18.474041', time_epoch_executed='1625377278.47' WHERE source_name='4FGL J0134.3-3842' and cadence='weekly' and bin_id='311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/193055

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/193055/ft1_4FGL_J0134.3-3842_weekly_bin311.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/193055/ft2_4FGL_J0134.3-3842_weekly_bin311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/193055/ft1_4FGL_J0134.3-3842_weekly_bin311.fits outfile=/scratch/kocevski/193055/ft1_filteredMKT_4FGL_J0134.3-3842_weekly_bin311.fits ra=23.5887 dec=-38.7085 rad=12.0 tmin=427075201.0 tmax=427680001.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 12.08
user 11.70
sys 0.33

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/193055/ft2_4FGL_J0134.3-3842_weekly_bin311.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/193055/ft1_filteredMKT_4FGL_J0134.3-3842_weekly_bin311.fits evtable="EVENTS" outfile="/scratch/kocevski/193055/ft1_filtered_4FGL_J0134.3-3842_weekly_bin311.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.55
user 0.37
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/193055/ft1_filtered_4FGL_J0134.3-3842_weekly_bin311.fits" evtable="EVENTS" scfile=/scratch/kocevski/193055/ft2_4FGL_J0134.3-3842_weekly_bin311.fits sctable="SC_DATA" outfile=/scratch/kocevski/193055/ltcube_427075201_427680001_4FGL_J0134.3-3842_weekly_bin311.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/193055/ft2_4FGL_J0134.3-3842_weekly_bin311.fits
.....................!
real 27.91
user 27.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/193055/ft1_filtered_4FGL_J0134.3-3842_weekly_bin311.fits evtable="EVENTS" scfile=/scratch/kocevski/193055/ft2_4FGL_J0134.3-3842_weekly_bin311.fits sctable="SC_DATA" expcube=/scratch/kocevski/193055/ltcube_427075201_427680001_4FGL_J0134.3-3842_weekly_bin311.fits outfile=/scratch/kocevski/193055/expmap_427075201_427680001_4FGL_J0134.3-3842_weekly_bin311.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/193055/ltcube_427075201_427680001_4FGL_J0134.3-3842_weekly_bin311.fits
.....................!
real 192.60
user 187.10
sys 4.52

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/193055/ft1_filtered_4FGL_J0134.3-3842_weekly_bin311.fits scfile=/scratch/kocevski/193055/ft2_4FGL_J0134.3-3842_weekly_bin311.fits outfile=/scratch/kocevski/193055/cmap_427075201_427680001_4FGL_J0134.3-3842_weekly_bin311.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.59
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/193055/ft1_filtered_4FGL_J0134.3-3842_weekly_bin311.fits scfile=/scratch/kocevski/193055/ft2_4FGL_J0134.3-3842_weekly_bin311.fits outfile=/scratch/kocevski/193055/cmap_HighResolution_427075201_427680001_4FGL_J0134.3-3842_weekly_bin311.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.60
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/193055/ft1_filtered_4FGL_J0134.3-3842_weekly_bin311.fits evtable="EVENTS" scfile=/scratch/kocevski/193055/ft2_4FGL_J0134.3-3842_weekly_bin311.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/193055/Model_4FGL_J0134.3-3842_weekly_bin311.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/193055/ft1_filtered_4FGL_J0134.3-3842_weekly_bin311.fits.....................!
real 100.24
user 98.58
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/193055/ft1_filtered_4FGL_J0134.3-3842_weekly_bin311.fits', '/scratch/kocevski/193055/ft2_4FGL_J0134.3-3842_weekly_bin311.fits', expMap='/scratch/kocevski/193055/expmap_427075201_427680001_4FGL_J0134.3-3842_weekly_bin311.fits', expCube='/scratch/kocevski/193055/ltcube_427075201_427680001_4FGL_J0134.3-3842_weekly_bin311.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/193055/Model_4FGL_J0134.3-3842_weekly_bin311.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/193055/ft1_filtered_4FGL_J0134.3-3842_weekly_bin311.fits
Spacecraft file(s): /scratch/kocevski/193055/ft2_4FGL_J0134.3-3842_weekly_bin311.fits
Exposure map: /scratch/kocevski/193055/expmap_427075201_427680001_4FGL_J0134.3-3842_weekly_bin311.fits
Exposure cube: /scratch/kocevski/193055/ltcube_427075201_427680001_4FGL_J0134.3-3842_weekly_bin311.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/193055/Model_4FGL_J0134.3-3842_weekly_bin311.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) = 5381.33608714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1526       1.0000         .10000E-03   10000.    
     3 'norm      '    79.569       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .66792       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8110       1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.182       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9203       1.0000         .10000E-03   10000.    
    10 'norm      '    3.4591       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3268       1.0000         .10000E-03   10000.    
    12 'norm      '    .10412E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.6773       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.6368       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1295       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.7177       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .83734       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .76354       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=   5381.326     FROM MIGRAD    STATUS=CONVERGED    375 CALLS     1941 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.219       -.99252E-08** at limit **
   2  Prefactor     3.1526        5.3374        .36847E-06   -.57790E-04
   3  norm          79.564        33.906        .57012E-06    .14898E-03
   4  norm          .10000E-03    1.7603       -.26914E-06** at limit **
   5  Prefactor     .10000E-03    8.5266       -.42905E-06** at limit **
   6  Prefactor     .66742        2.6352       -.11278E-06   -.12801E-03
   7  Prefactor     1.8034        61.797        .42352E-05    .59341E-04
   8  Prefactor     35.176        26.480        .83414E-06    .16354E-03
   9  Prefactor     3.9194        3.6849        .59631E-07   -.69651E-05
  10  norm          3.4586        2.9141        .65728E-07   -.36663E-04
  11  Prefactor     1.3249        4.1351        .94691E-06    .15668E-03
  12  norm          .10000E-03    2.2885        .13528E-05** at limit **
  13  Prefactor     6.6759        7.8132        .75285E-07   -.20048E-04
  14  Prefactor     8.6234        25.971       -.40135E-07    .80698E-05
  15  Prefactor     1.1247        35.406        .93951E-05   -.51454E-04
  16  Prefactor     .10000E-03    8.4193        .42821E-06** at limit **
  17  norm          4.7168        2.6010        .84148E-07   -.94646E-05
  18  Normalizat    .83763        .16694       -.18203E-05    .26752E-03
  19  Prefactor     .76329        .17284        .13047E-05   -.85374E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.15256
  norm       = 79.5638
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.667424
  Prefactor  = 1.80338
  Prefactor  = 35.1762
  Prefactor  = 3.9194
  norm       = 3.45857
  Prefactor  = 1.32489
  norm       = 0.0001
  Prefactor  = 6.67589
  Prefactor  = 8.62336
  Prefactor  = 1.12466
  Prefactor  = 0.0001
  norm       = 4.71682
  Normalizat = 0.837628
  Prefactor  = 0.763287
 **********
 **   18 **HESSE 
 **********

 FCN=   5381.326     FROM HESSE     STATUS=OK           270 CALLS     2211 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.1526        5.3314        .10710E-02   -1.5353    
   3  norm          79.564        33.987        .45023E-04   -1.3922    
   4  norm          .10000E-03    1.8147        .19025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.5591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .66742        2.6248        .22423E-03   -1.5545    
   7  Prefactor     1.8034        62.363        .31046E-03   -1.5439    
   8  Prefactor     35.176        26.565        .67563E-04   -1.4521    
   9  Prefactor     3.9194        3.6768        .12699E-03   -1.5312    
  10  norm          3.4586        2.9106        .11060E-03   -1.5336    
  11  Prefactor     1.3249        4.0676        .24903E-03   -1.5478    
  12  norm          .10000E-03    2.3508        .10848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.6759        7.8106        .15529E-03   -1.5191    
  14  Prefactor     8.6234        25.911        .13640E-03   -1.5121    
  15  Prefactor     1.1247        36.259        .21991E-02   -1.5496    
  16  Prefactor     .10000E-03    8.4711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.7168        2.6036        .83151E-04   -1.5274    
  18  Normalizat    .83763        .18135        .20682E-03   -.98688    
  19  Prefactor     .76329        .18633        .24466E-03   -1.0110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.02547e-10
Minuit parameter uncertainties:
  1  2.68586e-06
  2  5.33223
  3  33.9955
  4  1.10977e-05
  5  6.42954e-05
  6  2.62528
  7  21.2332
  8  26.5743
  9  3.67701
  10  2.91075
  11  4.06845
  12  4.15336e-05
  13  7.81178
  14  25.9448
  15  12.7797
  16  6.25727e-05
  17  2.60367
  18  0.181478
  19  0.186487
Done.

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

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  3.518e+01  2.657e+01  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.633e-01  1.865e-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:  8.376e-01  1.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.98
Ra Dec: 23.589 -38.709
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 4.62e-08 +/- 3.48e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.02e-05

TS (Fixed Index): 2.98
Ra Dec: 23.589 -38.709
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/193055/likelihoodResults_427075201_427680001_4FGL_J0134.3-3842_weekly_bin311.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) = 5381.22575889
delta logL = 0.100395186288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5381.22453589
delta logL = 0.101618188464

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.263       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1857       1.0000          .0000       10.000    
     3 'Normalizat'    .85140       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74992       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.

 FCN=   5381.225     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      265 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.263        854.62        .14898E-02   -.60238E-04
   2  Index         2.1857        5.9869        .20906        .24902E-04
   3  Normalizat    .85143        .85523E-01    .44277E-01    .91780E-05
   4  Prefactor     .74988        .75836E-01    .43062E-01    .13745E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.2635
  Index      = 2.1857
  Normalizat = 0.851431
  Prefactor  = 0.749884
 **********
 **   18 **HESSE 
 **********

 FCN=   5381.225     FROM HESSE     STATUS=OK            31 CALLS      296 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.263        36.451        .59593E-04   -1.4361    
   2  Index         2.1857        .60915        .72188E-02   -.59784    
   3  Normalizat    .85143        .16381        .20528E-03   -.98188    
   4  Prefactor     .74988        .18524        .24652E-03   -1.0160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73081e-10
Minuit parameter uncertainties:
  1  36.4689
  2  0.611378
  3  0.163902
  4  0.185392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/193055': 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) = 5381.22453587
delta logL = 0.1016182126

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  4.526e+01  3.647e+01  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  2.186e+00  6.114e-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.499e-01  1.854e-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:  8.514e-01  1.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.18
Ra Dec: 23.589 -38.709
Photon Index (Free Index): 2.19 +/- 0.61
Photon Flux (Free Index): 3.92e-08 +/- 3.28e-08
Energy Flux (Free Index): 1.81e-05 +/- 1.86e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/193055/cmap_HighResolution_427075201_427680001_4FGL_J0134.3-3842_weekly_bin311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.18e-03', comment='SUCCESS', photon_flux='4.62e-08', energy_flux2='1.81e-05', photon_flux_error='3.48e-08', dlogl='1.02e-01', energy_flux='1.36e-05', photon_flux2='3.92e-08', job_status='DONE', time_completed='2021-07-03 22:52:53.731514', photon_index_error2='0.61', photon_index2='2.19', ts='2.98', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.86e-05', EG='0.84', time_epoch_completed='1625377973.73', return_code='0', job_id='193055', GAL2='0.75', EG2='0.85', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='3.28e-08', ts2='3.18', photon_index='2.49' WHERE bin_id='311' AND source_name='4FGL J0134.3-3842' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 22:52:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 193055: <4FGL_J0134.3-3842_weekly_bin311> in cluster <slac> Done

Job <4FGL_J0134.3-3842_weekly_bin311> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Jul  3 22:41:07 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 22:41:08 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:41:08 2021
Terminated at Sat Jul  3 22:52:55 2021
Results reported at Sat Jul  3 22:52:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0134.3-3842_weekly_bin311 23.5887 -38.7085 427075201 427680001 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 :                                   681.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             337.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            708 sec.

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

