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


Performing analysis on: 4FGL_J0134.3-3842_weekly_bin430
RA = 23.5887, Dec = -38.7085
tmin = 499046401, tmax = 499651201
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='193283', job_status='RUN', time_executed='2021-07-03 22:41:41.285764', time_epoch_executed='1625377301.29' WHERE source_name='4FGL J0134.3-3842' and cadence='weekly' and bin_id='430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/193283

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/193283/ft1_4FGL_J0134.3-3842_weekly_bin430.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/193283/ft2_4FGL_J0134.3-3842_weekly_bin430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/193283/ft1_4FGL_J0134.3-3842_weekly_bin430.fits outfile=/scratch/kocevski/193283/ft1_filteredMKT_4FGL_J0134.3-3842_weekly_bin430.fits ra=23.5887 dec=-38.7085 rad=12.0 tmin=499046401.0 tmax=499651201.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.69
user 10.30
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/193283/ft2_4FGL_J0134.3-3842_weekly_bin430.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/193283/ft1_filteredMKT_4FGL_J0134.3-3842_weekly_bin430.fits evtable="EVENTS" outfile="/scratch/kocevski/193283/ft1_filtered_4FGL_J0134.3-3842_weekly_bin430.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.57
user 0.38
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/193283/ft1_filtered_4FGL_J0134.3-3842_weekly_bin430.fits" evtable="EVENTS" scfile=/scratch/kocevski/193283/ft2_4FGL_J0134.3-3842_weekly_bin430.fits sctable="SC_DATA" outfile=/scratch/kocevski/193283/ltcube_499046401_499651201_4FGL_J0134.3-3842_weekly_bin430.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/193283/ft2_4FGL_J0134.3-3842_weekly_bin430.fits
.....................!
real 27.56
user 27.13
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/193283/ft1_filtered_4FGL_J0134.3-3842_weekly_bin430.fits evtable="EVENTS" scfile=/scratch/kocevski/193283/ft2_4FGL_J0134.3-3842_weekly_bin430.fits sctable="SC_DATA" expcube=/scratch/kocevski/193283/ltcube_499046401_499651201_4FGL_J0134.3-3842_weekly_bin430.fits outfile=/scratch/kocevski/193283/expmap_499046401_499651201_4FGL_J0134.3-3842_weekly_bin430.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/193283/ltcube_499046401_499651201_4FGL_J0134.3-3842_weekly_bin430.fits
.....................!
real 191.84
user 185.87
sys 5.04

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/193283/ft1_filtered_4FGL_J0134.3-3842_weekly_bin430.fits scfile=/scratch/kocevski/193283/ft2_4FGL_J0134.3-3842_weekly_bin430.fits outfile=/scratch/kocevski/193283/cmap_499046401_499651201_4FGL_J0134.3-3842_weekly_bin430.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.58
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/193283/ft1_filtered_4FGL_J0134.3-3842_weekly_bin430.fits scfile=/scratch/kocevski/193283/ft2_4FGL_J0134.3-3842_weekly_bin430.fits outfile=/scratch/kocevski/193283/cmap_HighResolution_499046401_499651201_4FGL_J0134.3-3842_weekly_bin430.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.58
user 0.43
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/193283/ft1_filtered_4FGL_J0134.3-3842_weekly_bin430.fits evtable="EVENTS" scfile=/scratch/kocevski/193283/ft2_4FGL_J0134.3-3842_weekly_bin430.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/193283/Model_4FGL_J0134.3-3842_weekly_bin430.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/193283/ft1_filtered_4FGL_J0134.3-3842_weekly_bin430.fits.....................!
real 118.57
user 116.94
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.082       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .46165E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .47993E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.2339       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8625       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .30739E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14534E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15316E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.7271       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.635       1.0000         .10000E-03   10000.    
    12 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.290       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25621E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4205       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12466E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.8174       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.6450       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .52140       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=   6259.479     FROM MIGRAD    STATUS=CONVERGED    371 CALLS     1862 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.144        41.256       -.10048E-05   -.16170E-03
   2  Prefactor     .10007E-03    10.135        .41566E-05** at limit **
   3  norm          .10001E-03    27.191        .43900E-05** at limit **
   4  norm          6.2361        3.7164       -.47510E-07   -.25431E-03
   5  Prefactor     .10000E-03    7.1039        .28616E-07** at limit **
   6  Prefactor     2.8660        2.7055        .44426E-07   -.13148E-03
   7  Prefactor     .10000E-03    14.449       -.33477E-06** at limit **
   8  Prefactor     .10000E-03    7.3619       -.12263E-06** at limit **
   9  Prefactor     .10001E-03    2.2922       -.44878E-06** at limit **
  10  norm          6.7253        4.5210        .29776E-06    .88339E-04
  11  Prefactor     10.627        8.4589        .29852E-06    .30794E-04
  12  norm          .10000E-03    2.3660       -.42851E-07** at limit **
  13  Prefactor     10.290        9.1626        .22515E-06    .38224E-04
  14  Prefactor     .10000E-03    12.991       -.13866E-06** at limit **
  15  Prefactor     6.4389        11.775        .37734E-06    .12023E-04
  16  Prefactor     .10000E-03    18.957        .24379E-05** at limit **
  17  norm          6.8375        3.9015        .16338E-06    .13329E-03
  18  Normalizat    1.6449        .20493       -.51468E-05   -.51599E-03
  19  Prefactor     .52134        .22171        .81954E-05   -.16526E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.144
  Prefactor  = 0.000100069
  norm       = 0.000100005
  norm       = 6.23611
  Prefactor  = 0.0001
  Prefactor  = 2.86596
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 6.72526
  Prefactor  = 10.6273
  norm       = 0.0001
  Prefactor  = 10.2905
  Prefactor  = 0.0001
  Prefactor  = 6.43894
  Prefactor  = 0.000100001
  norm       = 6.83753
  Normalizat = 1.6449
  Prefactor  = 0.521342
 **********
 **   18 **HESSE 
 **********

 FCN=   6259.479     FROM HESSE     STATUS=OK           268 CALLS     2130 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.144        41.433        .73050E-04   -1.4609    
   2  Prefactor     .10007E-03    24.784        .39424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10001E-03    28.280        .21178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.2361        3.7152        .11415E-03   -1.5208    
   5  Prefactor     .10000E-03    7.1079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.8660        2.7024        .12234E-03   -1.5369    
   7  Prefactor     .10000E-03    14.542        .21379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.3666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    9.2439        .22430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.7253        4.5215        .13252E-03   -1.5189    
  11  Prefactor     10.627        8.4432        .12286E-03   -1.5056    
  12  norm          .10000E-03    2.3802        .11869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.290        9.1610        .12491E-03   -1.5066    
  14  Prefactor     .10000E-03    13.015        .21455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.4389        11.707        .15840E-03   -1.5200    
  16  Prefactor     .10000E-03    19.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.8375        3.8978        .11234E-03   -1.5185    
  18  Normalizat    1.6449        .21561        .20731E-03   -.73784    
  19  Prefactor     .52134        .22935        .37486E-03   -1.1101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93817e-09
Minuit parameter uncertainties:
  1  41.4728
  2  0.0026145
  3  0.000778668
  4  3.7153
  5  7.72118e-06
  6  2.70253
  7  2.37904e-05
  8  1.27649e-05
  9  0.000446013
  10  4.52177
  11  8.44419
  12  3.40745e-06
  13  9.16229
  14  7.96522e-06
  15  11.7107
  16  0.00033125
  17  3.8979
  18  0.215729
  19  0.229757
Done.

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

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  1.276e-05  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:  5.213e-01  2.298e-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.645e+00  2.157e-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: 4.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/193283/likelihoodResults_499046401_499651201_4FGL_J0134.3-3842_weekly_bin430.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) = 6259.47964266
delta logL = -0.000637205877865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6259.479006
delta logL = -5.51246557734e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10708E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4715       1.0000          .0000       10.000    
     3 'Normalizat'    1.6450       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52121       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=   6259.479     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      257 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.405        .18142E-01** at limit **
   2  Index         1.9772        5.9089        .50000        .43160E-06
   3  Normalizat    1.6449        .74395E-02    .20731E-03   -.70579E-02
   4  Prefactor     .52133        .80685E-02    .37485E-03   -.38471E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.97725
  Normalizat = 1.64489
  Prefactor  = 0.521331
 **********
 **   18 **HESSE 
 **********

 FCN=   6259.479     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    198.83        .23266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9772        6.0266        .50000       -.64920    
   3  Normalizat    1.6449        .21291E-01    .41461E-04   -.73784    
   4  Prefactor     .52133        .23091E-01    .74970E-04   -1.1101    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.30158e-09
Minuit parameter uncertainties:
  1  0.000921945
  2  784.921
  3  0.0212906
  4  0.0230909
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/193283': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6259.47900419
delta logL = 1.26016948343e-06

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  9.219e-04  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  1.977e+00  7.849e+02  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:  5.213e-01  2.309e-02  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.645e+00  2.129e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/193283/cmap_HighResolution_499046401_499651201_4FGL_J0134.3-3842_weekly_bin430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.82e-03', job_status='DONE', photon_flux_upper_limit='4.91e-08', time_completed='2021-07-03 22:54:01.647955', job_id='193283', GAL2='0.52', fit_tolerance='1e-08', EG2='1.64', EG='1.64', time_epoch_completed='1625378041.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.52', dlogl='1.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='430' AND source_name='4FGL J0134.3-3842' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 22:54:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 193283: <4FGL_J0134.3-3842_weekly_bin430> in cluster <slac> Done

Job <4FGL_J0134.3-3842_weekly_bin430> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Jul  3 22:41:29 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 22:41:30 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:30 2021
Terminated at Sat Jul  3 22:54:02 2021
Results reported at Sat Jul  3 22:54:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0134.3-3842_weekly_bin430 23.5887 -38.7085 499046401 499651201 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 :                                   716.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             368.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            753 sec.

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

