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


Performing analysis on: 4FGL_J0134.3-3842_weekly_bin581
RA = 23.5887, Dec = -38.7085
tmin = 590371201, tmax = 590976001
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='194594', job_status='RUN', time_executed='2021-07-03 22:46:39.917527', time_epoch_executed='1625377599.92' WHERE source_name='4FGL J0134.3-3842' and cadence='weekly' and bin_id='581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/194594

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/194594/ft1_4FGL_J0134.3-3842_weekly_bin581.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/194594/ft2_4FGL_J0134.3-3842_weekly_bin581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/194594/ft1_4FGL_J0134.3-3842_weekly_bin581.fits outfile=/scratch/kocevski/194594/ft1_filteredMKT_4FGL_J0134.3-3842_weekly_bin581.fits ra=23.5887 dec=-38.7085 rad=12.0 tmin=590371201.0 tmax=590976001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 9.59
user 9.24
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/194594/ft2_4FGL_J0134.3-3842_weekly_bin581.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/194594/ft1_filteredMKT_4FGL_J0134.3-3842_weekly_bin581.fits evtable="EVENTS" outfile="/scratch/kocevski/194594/ft1_filtered_4FGL_J0134.3-3842_weekly_bin581.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/194594/ft1_filtered_4FGL_J0134.3-3842_weekly_bin581.fits" evtable="EVENTS" scfile=/scratch/kocevski/194594/ft2_4FGL_J0134.3-3842_weekly_bin581.fits sctable="SC_DATA" outfile=/scratch/kocevski/194594/ltcube_590371201_590976001_4FGL_J0134.3-3842_weekly_bin581.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/194594/ft2_4FGL_J0134.3-3842_weekly_bin581.fits
.....................!
real 27.30
user 26.88
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/194594/ft1_filtered_4FGL_J0134.3-3842_weekly_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/194594/ft2_4FGL_J0134.3-3842_weekly_bin581.fits sctable="SC_DATA" expcube=/scratch/kocevski/194594/ltcube_590371201_590976001_4FGL_J0134.3-3842_weekly_bin581.fits outfile=/scratch/kocevski/194594/expmap_590371201_590976001_4FGL_J0134.3-3842_weekly_bin581.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/194594/ltcube_590371201_590976001_4FGL_J0134.3-3842_weekly_bin581.fits
.....................!
real 194.28
user 188.78
sys 5.06

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/194594/ft1_filtered_4FGL_J0134.3-3842_weekly_bin581.fits scfile=/scratch/kocevski/194594/ft2_4FGL_J0134.3-3842_weekly_bin581.fits outfile=/scratch/kocevski/194594/cmap_590371201_590976001_4FGL_J0134.3-3842_weekly_bin581.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.70
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/194594/ft1_filtered_4FGL_J0134.3-3842_weekly_bin581.fits scfile=/scratch/kocevski/194594/ft2_4FGL_J0134.3-3842_weekly_bin581.fits outfile=/scratch/kocevski/194594/cmap_HighResolution_590371201_590976001_4FGL_J0134.3-3842_weekly_bin581.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.67
user 0.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/194594/ft1_filtered_4FGL_J0134.3-3842_weekly_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/194594/ft2_4FGL_J0134.3-3842_weekly_bin581.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/194594/Model_4FGL_J0134.3-3842_weekly_bin581.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/194594/ft1_filtered_4FGL_J0134.3-3842_weekly_bin581.fits.....................!
real 173.44
user 170.33
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.8162       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4404       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.473       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.7481       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3306       1.0000         .10000E-03   10000.    
    10 'norm      '    1.9450       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.394       1.0000         .10000E-03   10000.    
    12 'norm      '    .10141E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.6353       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.421       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.839       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14574E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.9105       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3553       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .86281       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=   9903.324     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1971 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.387       -.28830E-07** at limit **
   2  Prefactor     .10000E-03    2.0004       -.15950E-07** at limit **
   3  norm          .10000E-03    15.050       -.10696E-06** at limit **
   4  norm          .10000E-03    1.2962       -.24937E-07** at limit **
   5  Prefactor     8.8162        8.9729        .31254E-07    .66829E-05
   6  Prefactor     5.4405        3.3974       -.12133E-06   -.30890E-03
   7  Prefactor     22.474        17.146        .55409E-06   -.37398E-04
   8  Prefactor     8.7484        13.144        .46736E-06    .20569E-05
   9  Prefactor     1.3306        3.2978       -.17065E-05   -.15348E-02
  10  norm          1.9449        2.8867       -.58819E-06   -.99160E-03
  11  Prefactor     11.395        7.1472        .45686E-06    .43239E-04
  12  norm          .10000E-03    1.7208        .26442E-06** at limit **
  13  Prefactor     6.6357        8.7436        .23468E-06   -.67515E-04
  14  Prefactor     11.411        26.020       -.12997E-04    .20384E-03
  15  Prefactor     23.865        18.660        .34598E-05   -.19402E-03
  16  Prefactor     .10002E-03    71.524       -.30883E-06** at limit **
  17  norm          1.9104        1.9304       -.13419E-06   -.35931E-03
  18  Normalizat    1.3552        .14507        .13313E-05   -.12944E-05
  19  Prefactor     .86292        .15365       -.49782E-06    .14176E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.81618
  Prefactor  = 5.44051
  Prefactor  = 22.474
  Prefactor  = 8.74842
  Prefactor  = 1.33057
  norm       = 1.94494
  Prefactor  = 11.3949
  norm       = 0.0001
  Prefactor  = 6.63572
  Prefactor  = 11.411
  Prefactor  = 23.8646
  Prefactor  = 0.000100017
  norm       = 1.91044
  Normalizat = 1.35517
  Prefactor  = 0.862921
 **********
 **   18 **HESSE 
 **********

 FCN=   9903.324     FROM HESSE     STATUS=OK           274 CALLS     2245 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.0123        .13744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    15.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.3429        .22117E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.8162        8.9737        .13499E-03   -1.5114    
   6  Prefactor     5.4405        3.4021        .13790E-03   -1.5241    
   7  Prefactor     22.474        17.159        .84494E-04   -1.4759    
   8  Prefactor     8.7484        13.135        .13552E-03   -1.5116    
   9  Prefactor     1.3306        3.5857        .28765E-03   -1.5477    
  10  norm          1.9449        2.9290        .20122E-03   -1.5429    
  11  Prefactor     11.395        7.1203        .11868E-03   -1.5033    
  12  norm          .10000E-03    1.7367        .12751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.6357        8.7378        .15578E-03   -1.5193    
  14  Prefactor     11.411        25.183        .11854E-03   -1.5032    
  15  Prefactor     23.865        18.151        .82040E-04   -1.4731    
  16  Prefactor     .10002E-03    73.313        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.9104        1.9277        .13453E-03   -1.5432    
  18  Normalizat    1.3552        .17438        .22599E-03   -.81934    
  19  Prefactor     .86292        .18241        .30371E-03   -.97449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45305e-09
Minuit parameter uncertainties:
  1  6.59743e-06
  2  2.17228e-06
  3  1.44801e-05
  4  1.19114e-06
  5  8.97508
  6  3.40222
  7  17.1629
  8  13.1388
  9  3.5863
  10  2.92919
  11  7.12078
  12  3.53689e-05
  13  8.73947
  14  25.2065
  15  18.1552
  16  0.00220412
  17  1.92777
  18  0.174457
  19  0.182542
Done.

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

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  8.748e+00  1.314e+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:  8.629e-01  1.825e-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:  1.355e+00  1.745e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/194594/likelihoodResults_590371201_590976001_4FGL_J0134.3-3842_weekly_bin581.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) = 9902.92267652
delta logL = 0.401465020412

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9902.91399909
delta logL = 0.410142450102

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.456       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6958       1.0000          .0000       10.000    
     3 'Normalizat'    1.3634       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85664       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=   9902.914     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      220 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.456        13.595        .30977E-02    .64930E-03
   2  Index         1.6958        .58569        .27899       -.68609E-04
   3  Normalizat    1.3634        .13820        .50980E-01    .10532E-04
   4  Prefactor     .85664        .15278        .68850E-01    .14645E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.456
  Index      = 1.69579
  Normalizat = 1.36337
  Prefactor  = 0.856637
 **********
 **   18 **HESSE 
 **********

 FCN=   9902.914     FROM HESSE     STATUS=OK            31 CALLS      251 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.456        13.989        .12391E-03   -1.5061    
   2  Index         1.6958        .75087        .14433E-01   -.72194    
   3  Normalizat    1.3634        .16410        .22539E-03   -.81694    
   4  Prefactor     .85664        .18128        .30461E-03   -.97673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.50858e-10
Minuit parameter uncertainties:
  1  13.9937
  2  0.755978
  3  0.164161
  4  0.181405
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/194594': 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) = 9902.91399909
delta logL = 0.410142451896

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  1.046e+01  1.399e+01  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  1.696e+00  7.560e-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:  8.566e-01  1.814e-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:  1.363e+00  1.642e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.60
Ra Dec: 23.589 -38.709
Photon Index (Free Index): 1.70 +/- 0.76
Photon Flux (Free Index): 5.42e-09 +/- 8.86e-09
Energy Flux (Free Index): 8.96e-06 +/- 1.64e-05

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/194594/cmap_HighResolution_590371201_590976001_4FGL_J0134.3-3842_weekly_bin581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.91e-03', comment='SUCCESS', energy_flux2='8.96e-06', dlogl='4.10e-01', photon_flux2='5.42e-09', job_status='DONE', time_completed='2021-07-03 23:02:13.498023', photon_index_error2='0.76', photon_index2='1.70', ts='0.78', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='6.32e-08', energy_flux_error2='1.64e-05', EG='1.36', time_epoch_completed='1625378533.5', return_code='0', job_id='194594', GAL2='0.86', EG2='1.36', return_code2='0', photon_flux_error2='8.86e-09', ts2='1.60', photon_index='2.49' WHERE bin_id='581' AND source_name='4FGL J0134.3-3842' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 23:02:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 194594: <4FGL_J0134.3-3842_weekly_bin581> in cluster <slac> Done

Job <4FGL_J0134.3-3842_weekly_bin581> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Jul  3 22:46:19 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 22:46:20 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:46:20 2021
Terminated at Sat Jul  3 23:02:14 2021
Results reported at Sat Jul  3 23:02:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0134.3-3842_weekly_bin581 23.5887 -38.7085 590371201 590976001 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 :                                   911.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             341.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            955 sec.

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

