/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J0134.3-3842_daily_bin1425
RA = 23.5887, Dec = -38.7085
tmin = 608688001, tmax = 608947201
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='660859', job_status='RUN', time_executed='2021-08-14 05:39:24.497194', time_epoch_executed='1628944764.5' WHERE source_name='4FGL J0134.3-3842' and cadence='daily' and bin_id='1425'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/660859

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/660859/ft1_4FGL_J0134.3-3842_daily_bin1425.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/660859/ft2_4FGL_J0134.3-3842_daily_bin1425.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/660859/ft1_4FGL_J0134.3-3842_daily_bin1425.fits outfile=/scratch/kocevski/660859/ft1_filteredMKT_4FGL_J0134.3-3842_daily_bin1425.fits ra=23.5887 dec=-38.7085 rad=12.0 tmin=608688001.0 tmax=608947201.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.08
user 2.25
sys 4.76

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/660859/ft2_4FGL_J0134.3-3842_daily_bin1425.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/660859/ft1_filteredMKT_4FGL_J0134.3-3842_daily_bin1425.fits evtable="EVENTS" outfile="/scratch/kocevski/660859/ft1_filtered_4FGL_J0134.3-3842_daily_bin1425.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 8.60
user 0.28
sys 4.80

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/660859/ft1_filtered_4FGL_J0134.3-3842_daily_bin1425.fits" evtable="EVENTS" scfile=/scratch/kocevski/660859/ft2_4FGL_J0134.3-3842_daily_bin1425.fits sctable="SC_DATA" outfile=/scratch/kocevski/660859/ltcube_608688001_608947201_4FGL_J0134.3-3842_daily_bin1425.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/660859/ft2_4FGL_J0134.3-3842_daily_bin1425.fits
.....................!
real 24.43
user 14.74
sys 5.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/660859/ft1_filtered_4FGL_J0134.3-3842_daily_bin1425.fits evtable="EVENTS" scfile=/scratch/kocevski/660859/ft2_4FGL_J0134.3-3842_daily_bin1425.fits sctable="SC_DATA" expcube=/scratch/kocevski/660859/ltcube_608688001_608947201_4FGL_J0134.3-3842_daily_bin1425.fits outfile=/scratch/kocevski/660859/expmap_608688001_608947201_4FGL_J0134.3-3842_daily_bin1425.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/660859/ltcube_608688001_608947201_4FGL_J0134.3-3842_daily_bin1425.fits
.....................!
real 166.62
user 151.56
sys 10.20

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/660859/ft1_filtered_4FGL_J0134.3-3842_daily_bin1425.fits scfile=/scratch/kocevski/660859/ft2_4FGL_J0134.3-3842_daily_bin1425.fits outfile=/scratch/kocevski/660859/cmap_608688001_608947201_4FGL_J0134.3-3842_daily_bin1425.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 5.48
user 0.32
sys 4.64

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/660859/ft1_filtered_4FGL_J0134.3-3842_daily_bin1425.fits scfile=/scratch/kocevski/660859/ft2_4FGL_J0134.3-3842_daily_bin1425.fits outfile=/scratch/kocevski/660859/cmap_HighResolution_608688001_608947201_4FGL_J0134.3-3842_daily_bin1425.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 5.40
user 0.33
sys 4.78

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/660859/ft1_filtered_4FGL_J0134.3-3842_daily_bin1425.fits evtable="EVENTS" scfile=/scratch/kocevski/660859/ft2_4FGL_J0134.3-3842_daily_bin1425.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/660859/Model_4FGL_J0134.3-3842_daily_bin1425.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/660859/ft1_filtered_4FGL_J0134.3-3842_daily_bin1425.fits.....................!
real 131.15
user 118.41
sys 7.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.386       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8096       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    49.104       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.3732       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.3743       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1399       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.049       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4308       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .81254       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=   7801.962     FROM MIGRAD    STATUS=CONVERGED    392 CALLS     1878 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.393        24.985        .25539E-05    .40763E-03
   2  Prefactor     .10000E-03    2.4356       -.56868E-08** at limit **
   3  norm          .10000E-03    13.857       -.32090E-05** at limit **
   4  norm          .10000E-03    1.3764       -.12204E-07** at limit **
   5  Prefactor     .10000E-03    11.725        .13820E-05** at limit **
   6  Prefactor     2.8106        2.2470        .96206E-06   -.24428E-02
   7  Prefactor     .10000E-03    28.826       -.77477E-06** at limit **
   8  Prefactor     49.107        26.114        .84616E-06    .17141E-03
   9  Prefactor     .10000E-03    .95041       -.37635E-08** at limit **
  10  norm          2.3733        2.2644        .39562E-07   -.48816E-04
  11  Prefactor     .10000E-03    5.9096        .81064E-07** at limit **
  12  norm          2.3737        2.8951        .71031E-07   -.98141E-04
  13  Prefactor     3.1409        6.8130        .20633E-06   -.99234E-04
  14  Prefactor     .10000E-03    18.223        .26727E-05** at limit **
  15  Prefactor     28.053        16.522        .72226E-06    .18619E-03
  16  Prefactor     .10000E-03    6.9016       -.10455E-06** at limit **
  17  norm          .10000E-03    .72651        .51740E-08** at limit **
  18  Normalizat    1.4302        .15904       -.81631E-06    .30303E-04
  19  Prefactor     .81325        .17524        .14758E-06   -.75276E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.3934
  Prefactor  = 0.0001
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.81063
  Prefactor  = 0.0001
  Prefactor  = 49.1072
  Prefactor  = 0.0001
  norm       = 2.37327
  Prefactor  = 0.0001
  norm       = 2.37371
  Prefactor  = 3.14092
  Prefactor  = 0.000100002
  Prefactor  = 28.0532
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.4302
  Prefactor  = 0.813246
 **********
 **   18 **HESSE 
 **********

 FCN=   7801.962     FROM HESSE     STATUS=OK           258 CALLS     2136 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.393        25.882        .69351E-04   -1.4552    
   2  Prefactor     .10000E-03    2.4464        .13461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    14.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.3966        .10117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.8106        2.6972        .68352E-03   -1.5373    
   7  Prefactor     .10000E-03    29.846        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     49.107        26.322        .57226E-04   -1.4305    
   9  Prefactor     .10000E-03    .95528        .84067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.3733        2.2576        .12638E-03   -1.5400    
  11  Prefactor     .10000E-03    5.9720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.3737        2.8860        .16108E-03   -1.5400    
  13  Prefactor     3.1409        6.8073        .22877E-03   -1.5353    
  14  Prefactor     .10000E-03    18.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.053        16.584        .75646E-04   -1.4648    
  16  Prefactor     .10000E-03    6.9053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .73303        .73514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4302        .19076        .21449E-03   -.79759    
  19  Prefactor     .81325        .21025        .30965E-03   -.99242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34636e-09
Minuit parameter uncertainties:
  1  25.8907
  2  1.50388e-06
  3  0.000408813
  4  8.88209e-07
  5  0.000153937
  6  2.69732
  7  8.35104e-05
  8  26.3286
  9  6.84171e-07
  10  2.25768
  11  8.56256e-06
  12  2.88614
  13  6.80901
  14  0.000371048
  15  16.5869
  16  1.76953e-05
  17  6.48335e-07
  18  0.190851
  19  0.21046
Done.

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

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  4.911e+01  2.633e+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.132e-01  2.105e-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.430e+00  1.909e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.27
Ra Dec: 23.589 -38.709
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 6.44e-08 +/- 3.45e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 1.01e-05

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) = 7801.86534832
delta logL = 0.0967239065676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7801.858483
delta logL = 0.103589227954

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.178       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7507       1.0000          .0000       10.000    
     3 'Normalizat'    1.4122       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82809       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=   7801.858     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      291 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.175        34.480        .64036E-04    .99420E-04
   2  Index         2.7508        .65042        .56073E-02    .38839E-04
   3  Normalizat    1.4121        .19287        .21560E-03   -.45832E-03
   4  Prefactor     .82823        .21338        .30714E-03   -.40493E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.1747
  Index      = 2.75081
  Normalizat = 1.41211
  Prefactor  = 0.828231
 **********
 **   18 **HESSE 
 **********

 FCN=   7801.858     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.175        31.651        .25615E-05   -1.4455    
   2  Index         2.7508        .59661        .22429E-03   -.46658    
   3  Normalizat    1.4121        .19251        .43120E-04   -.80279    
   4  Prefactor     .82823        .21308        .12286E-04   -.98696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46046e-10
Minuit parameter uncertainties:
  1  31.6647
  2  0.598404
  3  0.192607
  4  0.213292
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/660859': 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) = 7801.85848253
delta logL = 0.103589701246

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  3.917e+01  3.166e+01  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  2.751e+00  5.984e-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.282e-01  2.133e-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.412e+00  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.49
Ra Dec: 23.589 -38.709
Photon Index (Free Index): 2.75 +/- 0.60
Photon Flux (Free Index): 7.61e-08 +/- 4.53e-08
Energy Flux (Free Index): 1.76e-05 +/- 9.34e-06

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/660859/cmap_HighResolution_608688001_608947201_4FGL_J0134.3-3842_daily_bin1425.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.44e-08', energy_flux2='1.76e-05', photon_flux_error='3.45e-08', dlogl='1.04e-01', energy_flux='1.89e-05', photon_flux2='7.61e-08', job_status='DONE', time_completed='2021-08-14 05:50:34.920137', photon_index_error2='0.60', photon_index2='2.75', ts='6.27', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='9.34e-06', EG='1.43', time_epoch_completed='1628945434.92', return_code='0', job_id='660859', GAL2='0.83', EG2='1.41', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='4.53e-08', ts2='6.49', photon_index='2.49' WHERE bin_id='1425' AND source_name='4FGL J0134.3-3842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 05:50:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0026>
Subject: Job 660859: <4FGL_J0134.3-3842_daily_bin1425> in cluster <slac> Done

Job <4FGL_J0134.3-3842_daily_bin1425> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 14 05:35:51 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 05:36:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 05:36:10 2021
Terminated at Sat Aug 14 05:50:36 2021
Results reported at Sat Aug 14 05:50:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0134.3-3842_daily_bin1425 23.5887 -38.7085 608688001 608947201 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 :                                   713.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            885 sec.

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

