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


Performing analysis on: 4FGL_J0134.3-3842_weekly_bin408
RA = 23.5887, Dec = -38.7085
tmin = 485740801, tmax = 486345601
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='193242', job_status='RUN', time_executed='2021-07-03 22:41:37.251454', time_epoch_executed='1625377297.25' WHERE source_name='4FGL J0134.3-3842' and cadence='weekly' and bin_id='408'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/193242

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/193242/ft1_4FGL_J0134.3-3842_weekly_bin408.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/193242/ft2_4FGL_J0134.3-3842_weekly_bin408.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/193242/ft1_4FGL_J0134.3-3842_weekly_bin408.fits outfile=/scratch/kocevski/193242/ft1_filteredMKT_4FGL_J0134.3-3842_weekly_bin408.fits ra=23.5887 dec=-38.7085 rad=12.0 tmin=485740801.0 tmax=486345601.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 7.95
user 7.59
sys 0.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/193242/ft1_filtered_4FGL_J0134.3-3842_weekly_bin408.fits" evtable="EVENTS" scfile=/scratch/kocevski/193242/ft2_4FGL_J0134.3-3842_weekly_bin408.fits sctable="SC_DATA" outfile=/scratch/kocevski/193242/ltcube_485740801_486345601_4FGL_J0134.3-3842_weekly_bin408.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/193242/ft2_4FGL_J0134.3-3842_weekly_bin408.fits
.....................!
real 25.81
user 25.37
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/193242/ft1_filtered_4FGL_J0134.3-3842_weekly_bin408.fits evtable="EVENTS" scfile=/scratch/kocevski/193242/ft2_4FGL_J0134.3-3842_weekly_bin408.fits sctable="SC_DATA" expcube=/scratch/kocevski/193242/ltcube_485740801_486345601_4FGL_J0134.3-3842_weekly_bin408.fits outfile=/scratch/kocevski/193242/expmap_485740801_486345601_4FGL_J0134.3-3842_weekly_bin408.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/193242/ltcube_485740801_486345601_4FGL_J0134.3-3842_weekly_bin408.fits
.....................!
real 191.10
user 185.42
sys 5.08

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/193242/ft1_filtered_4FGL_J0134.3-3842_weekly_bin408.fits scfile=/scratch/kocevski/193242/ft2_4FGL_J0134.3-3842_weekly_bin408.fits outfile=/scratch/kocevski/193242/cmap_485740801_486345601_4FGL_J0134.3-3842_weekly_bin408.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.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/193242/ft1_filtered_4FGL_J0134.3-3842_weekly_bin408.fits scfile=/scratch/kocevski/193242/ft2_4FGL_J0134.3-3842_weekly_bin408.fits outfile=/scratch/kocevski/193242/cmap_HighResolution_485740801_486345601_4FGL_J0134.3-3842_weekly_bin408.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 3.69
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/193242/ft1_filtered_4FGL_J0134.3-3842_weekly_bin408.fits evtable="EVENTS" scfile=/scratch/kocevski/193242/ft2_4FGL_J0134.3-3842_weekly_bin408.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/193242/Model_4FGL_J0134.3-3842_weekly_bin408.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/193242/ft1_filtered_4FGL_J0134.3-3842_weekly_bin408.fits.....................!
real 174.13
user 172.40
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.907       1.0000         .10000E-03   10000.    
     3 'norm      '    67.555       1.0000         .10000E-03   10000.    
     4 'norm      '    1.1380       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9685       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.8369       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10398E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .58801       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4636       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11860E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8619       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1749       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98319       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=   9857.928     FROM MIGRAD    STATUS=CONVERGED    387 CALLS     1893 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.242       -.16150E-05** at limit **
   2  Prefactor     11.908        8.4360       -.11068E-06   -.39986E-04
   3  norm          67.559        34.058        .26028E-05    .13034E-03
   4  norm          1.1379        1.5962        .38727E-07   -.10556E-03
   5  Prefactor     .10000E-03    4.1380        .90059E-07** at limit **
   6  Prefactor     1.9688        2.8555        .15924E-06   -.31143E-03
   7  Prefactor     4.8368        7.5324        .62868E-06   -.55346E-03
   8  Prefactor     .10000E-03    5.2410       -.62095E-07** at limit **
   9  Prefactor     .10000E-03    1.1904       -.66102E-07** at limit **
  10  norm          .10000E-03    1.2966        .68930E-07** at limit **
  11  Prefactor     .10000E-03    2.5933        .10360E-06** at limit **
  12  norm          .10000E-03    1.3156       -.25728E-07** at limit **
  13  Prefactor     .60541        4.8730        .80607E-07   -.13875E-03
  14  Prefactor     .10000E-03    14.571        .14369E-05** at limit **
  15  Prefactor     6.4597        12.038       -.22717E-06   -.40133E-04
  16  Prefactor     .10000E-03    11.410       -.79675E-07** at limit **
  17  norm          1.8620        2.0682        .13550E-07   -.26639E-03
  18  Normalizat    1.1748        .13662       -.51639E-06   -.15796E-04
  19  Prefactor     .98331        .14968       -.83391E-07   -.65806E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.9079
  norm       = 67.5586
  norm       = 1.13791
  Prefactor  = 0.0001
  Prefactor  = 1.96883
  Prefactor  = 4.8368
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.605412
  Prefactor  = 0.0001
  Prefactor  = 6.4597
  Prefactor  = 0.0001
  norm       = 1.862
  Normalizat = 1.17479
  Prefactor  = 0.98331
 **********
 **   18 **HESSE 
 **********

 FCN=   9857.928     FROM HESSE     STATUS=OK           270 CALLS     2163 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.908        8.4569        .11609E-03   -1.5018    
   3  norm          67.559        34.273        .48833E-04   -1.4062    
   4  norm          1.1379        1.5618        .14450E-03   -1.5495    
   5  Prefactor     .10000E-03    4.1448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9688        2.8987        .19498E-03   -1.5427    
   7  Prefactor     4.8368        13.067        .91457E-03   -1.5268    
   8  Prefactor     .10000E-03    5.2449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.2013        .10569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.4703        .21935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.6128        .15615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.3312        .11118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .60541        17.892        .42772E-02   -1.5552    
  14  Prefactor     .10000E-03    14.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.4597        12.028        .15786E-03   -1.5200    
  16  Prefactor     .10000E-03    11.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8620        2.0711        .14602E-03   -1.5435    
  18  Normalizat    1.1748        .16203        .22551E-03   -.87386    
  19  Prefactor     .98331        .17753        .27423E-03   -.93288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.13908e-08
Minuit parameter uncertainties:
  1  7.93965e-05
  2  8.45778
  3  34.2825
  4  1.56181
  5  6.97155e-08
  6  2.89894
  7  13.0747
  8  2.32964e-09
  9  8.07653e-07
  10  6.53638e-06
  11  3.26277e-06
  12  4.65119e-07
  13  6.58411
  14  5.55647e-05
  15  12.033
  16  1.34805e-05
  17  2.07115
  18  0.162099
  19  0.177633
Done.

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

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  2.330e-09  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:  9.833e-01  1.776e-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.175e+00  1.621e-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: 3.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/193242/likelihoodResults_485740801_486345601_4FGL_J0134.3-3842_weekly_bin408.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) = 9857.92936922
delta logL = -0.000907153709704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9857.928462
delta logL = 5.89479896007e-08

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 'Index     '    2.4770       1.0000          .0000       10.000    
     3 'Normalizat'    1.1748       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98330       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=   9857.928     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      254 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.381        .18142E-01** at limit **
   2  Index         2.0063        7.8833        .50000        .43883E-07
   3  Normalizat    1.1748        .70004E-02    .22551E-03    .31371E-03
   4  Prefactor     .98331        .79060E-02    .27423E-03    .26947E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.00626
  Normalizat = 1.17479
  Prefactor  = 0.983311
 **********
 **   18 **HESSE 
 **********

 FCN=   9857.928     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    249.14        .23804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0063        8.8299        .50000       -.64194    
   3  Normalizat    1.1748        .22508E-01    .45102E-04   -.87386    
   4  Prefactor     .98331        .25420E-01    .10969E-04   -.93288    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.74064e-09
Minuit parameter uncertainties:
  1  0.000875499
  2  1046.48
  3  0.0225087
  4  0.0254205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/193242': 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) = 9857.92846082
delta logL = 1.2457039702e-06

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  8.755e-04  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  2.006e+00  1.046e+03  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:  9.833e-01  2.542e-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.175e+00  2.251e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/193242/cmap_HighResolution_485740801_486345601_4FGL_J0134.3-3842_weekly_bin408.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.74e-03', job_status='DONE', photon_flux_upper_limit='3.52e-08', time_completed='2021-07-03 22:56:45.694475', job_id='193242', GAL2='0.98', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1625378205.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.25e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='408' AND source_name='4FGL J0134.3-3842' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 22:56:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 193242: <4FGL_J0134.3-3842_weekly_bin408> in cluster <slac> Done

Job <4FGL_J0134.3-3842_weekly_bin408> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Jul  3 22:41:25 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 22:41:27 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:27 2021
Terminated at Sat Jul  3 22:56:46 2021
Results reported at Sat Jul  3 22:56:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0134.3-3842_weekly_bin408 23.5887 -38.7085 485740801 486345601 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 :                                   889.08 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             335.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            921 sec.

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

