aklog: Couldn't determine realm of user:aklog: No credentials cache found  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 166 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 = 7463
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0134.3-3842_daily_bin1684
RA = 23.5887, Dec = -38.7085
tmin = 675820801, tmax = 676080001
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='180978', job_status='RUN', time_executed='2022-06-05 00:09:25.059662', time_epoch_executed='1654412965.06' WHERE source_name='4FGL J0134.3-3842' and cadence='daily' and bin_id='1684'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/180978

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/180978/ft1_4FGL_J0134.3-3842_daily_bin1684.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/180978/ft2_4FGL_J0134.3-3842_daily_bin1684.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/180978/ft1_4FGL_J0134.3-3842_daily_bin1684.fits outfile=/scratch/kocevski/180978/ft1_filteredMKT_4FGL_J0134.3-3842_daily_bin1684.fits ra=23.5887 dec=-38.7085 rad=12.0 tmin=675820801.0 tmax=676080001.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 4.49
user 4.25
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/180978/ft2_4FGL_J0134.3-3842_daily_bin1684.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/180978/ft1_filteredMKT_4FGL_J0134.3-3842_daily_bin1684.fits evtable="EVENTS" outfile="/scratch/kocevski/180978/ft1_filtered_4FGL_J0134.3-3842_daily_bin1684.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.51
user 0.35
sys 0.14

Number of photons that the gtmktime cut: 528

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/180978/ft1_filtered_4FGL_J0134.3-3842_daily_bin1684.fits" evtable="EVENTS" scfile=/scratch/kocevski/180978/ft2_4FGL_J0134.3-3842_daily_bin1684.fits sctable="SC_DATA" outfile=/scratch/kocevski/180978/ltcube_675820801_676080001_4FGL_J0134.3-3842_daily_bin1684.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/180978/ft2_4FGL_J0134.3-3842_daily_bin1684.fits
.....................!
real 14.33
user 13.89
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/180978/ft1_filtered_4FGL_J0134.3-3842_daily_bin1684.fits evtable="EVENTS" scfile=/scratch/kocevski/180978/ft2_4FGL_J0134.3-3842_daily_bin1684.fits sctable="SC_DATA" expcube=/scratch/kocevski/180978/ltcube_675820801_676080001_4FGL_J0134.3-3842_daily_bin1684.fits outfile=/scratch/kocevski/180978/expmap_675820801_676080001_4FGL_J0134.3-3842_daily_bin1684.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/180978/ltcube_675820801_676080001_4FGL_J0134.3-3842_daily_bin1684.fits
.....................!
real 190.99
user 185.66
sys 4.72

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/180978/ft1_filtered_4FGL_J0134.3-3842_daily_bin1684.fits scfile=/scratch/kocevski/180978/ft2_4FGL_J0134.3-3842_daily_bin1684.fits outfile=/scratch/kocevski/180978/cmap_675820801_676080001_4FGL_J0134.3-3842_daily_bin1684.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/180978/ft1_filtered_4FGL_J0134.3-3842_daily_bin1684.fits scfile=/scratch/kocevski/180978/ft2_4FGL_J0134.3-3842_daily_bin1684.fits outfile=/scratch/kocevski/180978/cmap_HighResolution_675820801_676080001_4FGL_J0134.3-3842_daily_bin1684.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/180978/ft1_filtered_4FGL_J0134.3-3842_daily_bin1684.fits evtable="EVENTS" scfile=/scratch/kocevski/180978/ft2_4FGL_J0134.3-3842_daily_bin1684.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/180978/Model_4FGL_J0134.3-3842_daily_bin1684.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/180978/ft1_filtered_4FGL_J0134.3-3842_daily_bin1684.fits.....................!
real 108.84
user 107.27
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13997E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    66.996       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4408       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .47362E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0460       1.0000         .10000E-03   10000.    
    10 'norm      '    .12043E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.743       1.0000         .10000E-03   10000.    
    12 'norm      '    .21016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .28292E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.400       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11541E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.2438       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .95745       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .68325       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=   5778.287     FROM MIGRAD    STATUS=CONVERGED    679 CALLS     2478 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.943        .18142E-02** at limit **
   2  Prefactor     .10000E-03    2.4669        .11622E-02** at limit **
   3  norm          67.010        33.092        .49035E-04   -.22536E-03
   4  norm          .10000E-03    .81704        .66753E-03** at limit **
   5  Prefactor     .10000E-03    4.5886        .15899E-02** at limit **
   6  Prefactor     2.4409        2.9737        .13711E-03   -.39103E-03
   7  Prefactor     .10000E-03    14.035        .18142E-02** at limit **
   8  Prefactor     .10022E-03    143.72        .48982E-02** at limit **
   9  Prefactor     4.0462        2.9140        .10547E-03   -.19618E-04
  10  norm          .15661E-01    1.5536        .29006E-01    .63763E-03
  11  Prefactor     14.735        7.2129        .10431E-03   -.77436E-03
  12  norm          .10012E-03    16.549        .23448E-02** at limit **
  13  Prefactor     .10000E-03    22.370        .37196E-02** at limit **
  14  Prefactor     .10000E-03    36.100        .18142E-02** at limit **
  15  Prefactor     16.412        13.653        .98899E-04   -.27818E-04
  16  Prefactor     .10000E-03    23.102        .18142E-02** at limit **
  17  norm          3.2439        2.2452        .91620E-04   -.11925E-03
  18  Normalizat    .95733        .16975        .19213E-03   -.49488E-03
  19  Prefactor     .68329        .18908        .25845E-03   -.29032E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 67.0102
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.4409
  Prefactor  = 0.0001
  Prefactor  = 0.000100222
  Prefactor  = 4.04621
  norm       = 0.0156608
  Prefactor  = 14.7349
  norm       = 0.000100118
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 16.4121
  Prefactor  = 0.0001
  norm       = 3.24386
  Normalizat = 0.957326
  Prefactor  = 0.683288
 **********
 **   18 **HESSE 
 **********

 FCN=   5778.287     FROM HESSE     STATUS=OK           258 CALLS     2736 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.953        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.4671        .23244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          67.010        33.091        .98070E-05   -1.4069    
   4  norm          .10000E-03    .81709        .13351E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.5886        .31798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.4409        2.9734        .54845E-05   -1.5395    
   7  Prefactor     .10000E-03    14.041        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10022E-03    150.48        .19593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.0462        2.9137        .42188E-05   -1.5306    
  10  norm          .15661E-01    1.4616        .30612E-01   -1.5683    
  11  Prefactor     14.735        7.2030        .20863E-04   -1.4940    
  12  norm          .10012E-03    17.189        .93792E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.610        .74392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    36.116        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.412        13.651        .39560E-05   -1.4898    
  16  Prefactor     .10000E-03    23.104        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.2439        2.2452        .36648E-05   -1.5348    
  18  Normalizat    .95733        .16991        .38426E-04   -.94474    
  19  Prefactor     .68329        .18923        .10338E-04   -1.0419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.4962e-09
Minuit parameter uncertainties:
  1  0.000470734
  2  4.04334e-06
  3  33.1005
  4  2.39445e-06
  5  6.19788e-06
  6  2.97358
  7  7.57122e-05
  8  0.011579
  9  2.91382
  10  0.301628
  11  7.2034
  12  0.00284462
  13  0.000302587
  14  9.17153e-05
  15  13.6534
  16  1.44409e-06
  17  2.24522
  18  0.170007
  19  0.18941
Done.

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

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  1.002e-04  1.158e-02  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:  6.833e-01  1.894e-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:  9.573e-01  1.700e-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: 5.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/180978/likelihoodResults_675820801_676080001_4FGL_J0134.3-3842_daily_bin1684.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) = 5778.28687228
delta logL = -3.17647381962e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5778.28687228
delta logL = -3.17594713124e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96354E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4897       1.0000          .0000       10.000    
     3 'Normalizat'    .95734       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68328       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5778.282     FROM MIGRAD    STATUS=CONVERGED    194 CALLS      364 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8579        52.885        .18143E-02   -.72852E-04
   2  Index         2.0474        2.2607        .20052E-01   -.90747E-05
   3  Normalizat    .95757        .16264        .19211E-03   -.65555E-03
   4  Prefactor     .68163        .18923        .25874E-03   -.33947E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.85793
  Index      = 2.04737
  Normalizat = 0.957566
  Prefactor  = 0.681628
 **********
 **   18 **HESSE 
 **********

 FCN=   5778.282     FROM HESSE     STATUS=OK            25 CALLS      389 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8579        47.931        .72570E-04   -1.5435    
   2  Index         2.0474        2.1673        .80209E-03   -.63171    
   3  Normalizat    .95757        .16277        .38423E-04   -.94466    
   4  Prefactor     .68163        .18927        .10350E-04   -1.0425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30064e-10
Minuit parameter uncertainties:
  1  18.8898
  2  2.28795
  3  0.162856
  4  0.189446
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/180978': 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) = 5778.28170766
delta logL = 0.00513285378383

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  1.858e+00  1.889e+01  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  2.047e+00  2.288e+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:  6.816e-01  1.894e-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:  9.576e-01  1.629e-01  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/180978/cmap_HighResolution_675820801_676080001_4FGL_J0134.3-3842_daily_bin1684.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.15e-03', job_status='DONE', photon_flux_upper_limit='5.34e-08', time_completed='2022-06-05 00:20:51.878638', job_id='180978', GAL2='0.68', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1654413651.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='5.13e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1684' AND source_name='4FGL J0134.3-3842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jun  5 00:20:51 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 180978: <4FGL_J0134.3-3842_daily_bin1684> in cluster <slac> Done

Job <4FGL_J0134.3-3842_daily_bin1684> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jun  5 00:04:46 2022
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jun  5 00:06:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jun  5 00:06:26 2022
Terminated at Sun Jun  5 00:20:52 2022
Results reported at Sun Jun  5 00:20:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0134.3-3842_daily_bin1684 23.5887 -38.7085 675820801 676080001 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 :                                   688.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            966 sec.

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

