/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 3 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 = 7479
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0134.3-3842_daily_bin69
RA = 23.5887, Dec = -38.7085
tmin = 257212801, tmax = 257472001
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='649957', job_status='RUN', time_executed='2021-08-14 04:56:32.684223', time_epoch_executed='1628942192.68' WHERE source_name='4FGL J0134.3-3842' and cadence='daily' and bin_id='69'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/649957

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/649957/ft1_4FGL_J0134.3-3842_daily_bin69.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/649957/ft2_4FGL_J0134.3-3842_daily_bin69.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/649957/ft1_4FGL_J0134.3-3842_daily_bin69.fits outfile=/scratch/kocevski/649957/ft1_filteredMKT_4FGL_J0134.3-3842_daily_bin69.fits ra=23.5887 dec=-38.7085 rad=12.0 tmin=257212801.0 tmax=257472001.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 6.33
user 2.15
sys 2.98

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/649957/ft2_4FGL_J0134.3-3842_daily_bin69.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/649957/ft1_filteredMKT_4FGL_J0134.3-3842_daily_bin69.fits evtable="EVENTS" outfile="/scratch/kocevski/649957/ft1_filtered_4FGL_J0134.3-3842_daily_bin69.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 3.36
user 0.34
sys 2.96

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/649957/ft1_filtered_4FGL_J0134.3-3842_daily_bin69.fits" evtable="EVENTS" scfile=/scratch/kocevski/649957/ft2_4FGL_J0134.3-3842_daily_bin69.fits sctable="SC_DATA" outfile=/scratch/kocevski/649957/ltcube_257212801_257472001_4FGL_J0134.3-3842_daily_bin69.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/649957/ft2_4FGL_J0134.3-3842_daily_bin69.fits
.....................!
real 16.24
user 12.57
sys 3.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/649957/ft1_filtered_4FGL_J0134.3-3842_daily_bin69.fits evtable="EVENTS" scfile=/scratch/kocevski/649957/ft2_4FGL_J0134.3-3842_daily_bin69.fits sctable="SC_DATA" expcube=/scratch/kocevski/649957/ltcube_257212801_257472001_4FGL_J0134.3-3842_daily_bin69.fits outfile=/scratch/kocevski/649957/expmap_257212801_257472001_4FGL_J0134.3-3842_daily_bin69.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/649957/ltcube_257212801_257472001_4FGL_J0134.3-3842_daily_bin69.fits
.....................!
real 197.07
user 185.81
sys 9.49

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/649957/ft1_filtered_4FGL_J0134.3-3842_daily_bin69.fits scfile=/scratch/kocevski/649957/ft2_4FGL_J0134.3-3842_daily_bin69.fits outfile=/scratch/kocevski/649957/cmap_257212801_257472001_4FGL_J0134.3-3842_daily_bin69.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 4.01
user 0.36
sys 2.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/649957/ft1_filtered_4FGL_J0134.3-3842_daily_bin69.fits scfile=/scratch/kocevski/649957/ft2_4FGL_J0134.3-3842_daily_bin69.fits outfile=/scratch/kocevski/649957/cmap_HighResolution_257212801_257472001_4FGL_J0134.3-3842_daily_bin69.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 4.49
user 0.38
sys 2.89

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/649957/ft1_filtered_4FGL_J0134.3-3842_daily_bin69.fits evtable="EVENTS" scfile=/scratch/kocevski/649957/ft2_4FGL_J0134.3-3842_daily_bin69.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/649957/Model_4FGL_J0134.3-3842_daily_bin69.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/649957/ft1_filtered_4FGL_J0134.3-3842_daily_bin69.fits.....................!
real 96.16
user 89.19
sys 4.86

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5482       1.0000         .10000E-03   10000.    
     3 'norm      '    18.923       1.0000         .10000E-03   10000.    
     4 'norm      '    2.2058       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2757       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.0957       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11740E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11620E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    14.917       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .31895E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.4842       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9283       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.2533       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2144       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .49712       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=   4682.564     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     1969 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.456        .18142E-02** at limit **
   2  Prefactor     2.5494        7.6427        .25580E-03    .93778E-04
   3  norm          18.926        29.965        .92072E-04    .44451E-04
   4  norm          2.2062        2.3270        .10453E-03    .10604E-03
   5  Prefactor     .10000E-03    6.2537        .16710E-02** at limit **
   6  Prefactor     1.2749        3.1440        .18162E-03    .12882E-03
   7  Prefactor     .95829        172.41        .62992E-02    .64375E-04
   8  Prefactor     .10001E-03    76.291        .18142E-02** at limit **
   9  Prefactor     .10000E-03    5.5323        .21702E-02** at limit **
  10  norm          14.917        4.6507        .79302E-04    .71679E-05
  11  Prefactor     .10001E-03    37.231        .33022E-02** at limit **
  12  norm          .10000E-03    6.9060        .22604E-02** at limit **
  13  Prefactor     5.4794        9.1566        .17157E-03    .99060E-04
  14  Prefactor     .10000E-03    12.228        .18142E-02** at limit **
  15  Prefactor     4.9319        10.449        .18117E-03   -.25414E-04
  16  Prefactor     .10000E-03    9.2271        .18142E-02** at limit **
  17  norm          3.2534        2.8433        .10339E-03    .57619E-04
  18  Normalizat    1.2146        .20310        .18562E-03    .60347E-03
  19  Prefactor     .49677        .21229        .31113E-03    .31022E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.54937
  norm       = 18.9257
  norm       = 2.20616
  Prefactor  = 0.0001
  Prefactor  = 1.27492
  Prefactor  = 0.958293
  Prefactor  = 0.000100015
  Prefactor  = 0.000100001
  norm       = 14.9173
  Prefactor  = 0.000100013
  norm       = 0.000100004
  Prefactor  = 5.47936
  Prefactor  = 0.0001
  Prefactor  = 4.93187
  Prefactor  = 0.0001
  norm       = 3.25345
  Normalizat = 1.21459
  Prefactor  = 0.49677
 **********
 **   18 **HESSE 
 **********

 FCN=   4682.564     FROM HESSE     STATUS=OK           250 CALLS     2219 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.456        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5494        7.6377        .10232E-04   -1.5389    
   3  norm          18.926        29.955        .36829E-05   -1.4838    
   4  norm          2.2062        2.3269        .41813E-05   -1.5411    
   5  Prefactor     .10000E-03    6.2538        .33420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.2749        3.1416        .72648E-05   -1.5482    
   7  Prefactor     .95829        170.89        .25197E-03   -1.5512    
   8  Prefactor     .10001E-03    76.350        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.5556        .43404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.917        4.6486        .31721E-05   -1.4935    
  11  Prefactor     .10001E-03    38.270        .13209E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.9507        .45207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.4794        9.1530        .68630E-05   -1.5240    
  14  Prefactor     .10000E-03    12.229        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.9319        10.448        .72469E-05   -1.5264    
  16  Prefactor     .10000E-03    9.2271        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.2534        2.8416        .41356E-05   -1.5347    
  18  Normalizat    1.2146        .20120        .37123E-04   -.86153    
  19  Prefactor     .49677        .21202        .12445E-04   -1.1213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55729e-09
Minuit parameter uncertainties:
  1  3.45184e-05
  2  7.64061
  3  29.9783
  4  2.32696
  5  1.38002e-05
  6  3.14196
  7  25.6675
  8  0.00213105
  9  0.000116901
  10  4.64875
  11  0.00141434
  12  0.000334012
  13  9.15531
  14  4.90631e-05
  15  10.4517
  16  2.28205e-05
  17  2.84176
  18  0.201324
  19  0.212355
Done.

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

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  2.131e-03  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:  4.968e-01  2.124e-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.215e+00  2.013e-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: 7.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/649957/likelihoodResults_257212801_257472001_4FGL_J0134.3-3842_daily_bin69.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) = 4682.56444599
delta logL = -6.23488613201e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4682.56438391
delta logL = -2.64156369667e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4404       1.0000          .0000       10.000    
     3 'Normalizat'    1.2146       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49678       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=   4682.564     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      265 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10392E-03    31.815        .10602    ** at limit **
   2  Index         2.5779        6.2619        .50000       -.26767E-04
   3  Normalizat    1.2146        .49015E-02    .34543E-01   -.15141E-03
   4  Prefactor     .49677        .54834E-02    .70279E-01    .13083E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103917
  Index      = 2.57794
  Normalizat = 1.21458
  Prefactor  = 0.496774
 **********
 **   18 **HESSE 
 **********

 FCN=   4682.564     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      306 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10392E-03    47.577        .88941E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5779        6.2212        .50000       -.50569    
   3  Normalizat    1.2146        .52493E-02    .18561E-03   -.86153    
   4  Prefactor     .49677        .58589E-02    .31113E-03   -1.1213    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04754e-10
Minuit parameter uncertainties:
  1  0.0273238
  2  5.67973
  3  0.00524934
  4  0.00585888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/649957': 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) = 4682.56438316
delta logL = 4.82982613903e-07

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  1.039e-04  2.732e-02  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  2.578e+00  5.680e+00  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:  4.968e-01  5.859e-03  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.215e+00  5.249e-03  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/649957/cmap_HighResolution_257212801_257472001_4FGL_J0134.3-3842_daily_bin69.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-03', job_status='DONE', photon_flux_upper_limit='7.98e-08', time_completed='2021-08-14 05:07:07.759569', job_id='649957', GAL2='0.50', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1628942827.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='4.83e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='69' AND source_name='4FGL J0134.3-3842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 05:07:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 649957: <4FGL_J0134.3-3842_daily_bin69> in cluster <slac> Done

Job <4FGL_J0134.3-3842_daily_bin69> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Aug 14 04:54:44 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 04:55:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 04:55:25 2021
Terminated at Sat Aug 14 05:07:09 2021
Results reported at Sat Aug 14 05:07:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0134.3-3842_daily_bin69 23.5887 -38.7085 257212801 257472001 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 :                                   658.48 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            745 sec.

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

