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/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 28 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 = 17235
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0134.3-3842_weekly_bin66
RA = 23.5887, Dec = -38.7085
tmin = 278899201, tmax = 279504001
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='191200', job_status='RUN', time_executed='2021-07-03 22:36:31.438060', time_epoch_executed='1625376991.44' WHERE source_name='4FGL J0134.3-3842' and cadence='weekly' and bin_id='66'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191200

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191200/ft1_4FGL_J0134.3-3842_weekly_bin66.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191200/ft2_4FGL_J0134.3-3842_weekly_bin66.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191200/ft1_4FGL_J0134.3-3842_weekly_bin66.fits outfile=/scratch/kocevski/191200/ft1_filteredMKT_4FGL_J0134.3-3842_weekly_bin66.fits ra=23.5887 dec=-38.7085 rad=12.0 tmin=278899201.0 tmax=279504001.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 8.63
user 7.77
sys 0.41

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191200/ft2_4FGL_J0134.3-3842_weekly_bin66.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/191200/ft1_filteredMKT_4FGL_J0134.3-3842_weekly_bin66.fits evtable="EVENTS" outfile="/scratch/kocevski/191200/ft1_filtered_4FGL_J0134.3-3842_weekly_bin66.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 1.13
user 0.37
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191200/ft1_filtered_4FGL_J0134.3-3842_weekly_bin66.fits" evtable="EVENTS" scfile=/scratch/kocevski/191200/ft2_4FGL_J0134.3-3842_weekly_bin66.fits sctable="SC_DATA" outfile=/scratch/kocevski/191200/ltcube_278899201_279504001_4FGL_J0134.3-3842_weekly_bin66.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/191200/ft2_4FGL_J0134.3-3842_weekly_bin66.fits
.....................!
real 27.54
user 25.99
sys 0.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191200/ft1_filtered_4FGL_J0134.3-3842_weekly_bin66.fits evtable="EVENTS" scfile=/scratch/kocevski/191200/ft2_4FGL_J0134.3-3842_weekly_bin66.fits sctable="SC_DATA" expcube=/scratch/kocevski/191200/ltcube_278899201_279504001_4FGL_J0134.3-3842_weekly_bin66.fits outfile=/scratch/kocevski/191200/expmap_278899201_279504001_4FGL_J0134.3-3842_weekly_bin66.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/191200/ltcube_278899201_279504001_4FGL_J0134.3-3842_weekly_bin66.fits
.....................!
real 193.61
user 185.29
sys 5.16

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/191200/ft1_filtered_4FGL_J0134.3-3842_weekly_bin66.fits scfile=/scratch/kocevski/191200/ft2_4FGL_J0134.3-3842_weekly_bin66.fits outfile=/scratch/kocevski/191200/cmap_278899201_279504001_4FGL_J0134.3-3842_weekly_bin66.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.62
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191200/ft1_filtered_4FGL_J0134.3-3842_weekly_bin66.fits scfile=/scratch/kocevski/191200/ft2_4FGL_J0134.3-3842_weekly_bin66.fits outfile=/scratch/kocevski/191200/cmap_HighResolution_278899201_279504001_4FGL_J0134.3-3842_weekly_bin66.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.59
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/191200/ft1_filtered_4FGL_J0134.3-3842_weekly_bin66.fits evtable="EVENTS" scfile=/scratch/kocevski/191200/ft2_4FGL_J0134.3-3842_weekly_bin66.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191200/Model_4FGL_J0134.3-3842_weekly_bin66.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/191200/ft1_filtered_4FGL_J0134.3-3842_weekly_bin66.fits.....................!
real 142.50
user 140.58
sys 1.48

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3442       1.0000         .10000E-03   10000.    
     3 'norm      '    13.149       1.0000         .10000E-03   10000.    
     4 'norm      '    1.7494       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .23913E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4956       1.0000         .10000E-03   10000.    
    10 'norm      '    5.6470       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3872       1.0000         .10000E-03   10000.    
    12 'norm      '    .15504E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7830       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .64797       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0420       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .92232       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=   7947.374     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     1692 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.537        .20607E-04** at limit **
   2  Prefactor     1.3426        3.3531        .24575E-06   -.10978E-02
   3  norm          13.146        25.411       -.28256E-05   -.56830E-04
   4  norm          1.7494        1.8673        .47473E-07   -.67071E-03
   5  Prefactor     .10000E-03    5.5740        .10967E-05** at limit **
   6  Prefactor     .10025E-03    1.3490       -.17930E-06** at limit **
   7  Prefactor     .10000E-03    6.5022        .70905E-05** at limit **
   8  Prefactor     .10000E-03    7.7839       -.32116E-05** at limit **
   9  Prefactor     1.4956        3.6072       -.13311E-06   -.49736E-04
  10  norm          5.6467        3.5874        .43215E-07   -.64264E-03
  11  Prefactor     5.3863        7.2529        .55400E-06    .34440E-03
  12  norm          .10004E-03    2.4427       -.24463E-05** at limit **
  13  Prefactor     .10000E-03    3.2234        .73486E-07** at limit **
  14  Prefactor     4.7790        17.378        .20871E-05    .35026E-03
  15  Prefactor     .10000E-03    26.516       -.17808E-04** at limit **
  16  Prefactor     .10000E-03    11.151        .10896E-05** at limit **
  17  norm          .64807        2.0120        .11151E-06   -.12735E-03
  18  Normalizat    1.0421        .14178        .31104E-06    .46518E-03
  19  Prefactor     .92223        .15413        .13103E-06    .39219E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.34258
  norm       = 13.1465
  norm       = 1.74941
  Prefactor  = 0.0001
  Prefactor  = 0.00010025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.49559
  norm       = 5.64668
  Prefactor  = 5.38628
  norm       = 0.000100036
  Prefactor  = 0.0001
  Prefactor  = 4.779
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.648074
  Normalizat = 1.04208
  Prefactor  = 0.922227
 **********
 **   18 **HESSE 
 **********

 FCN=   7947.374     FROM HESSE     STATUS=OK           276 CALLS     1968 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.3426        14.832        .18890E-02   -1.5476    
   3  norm          13.146        25.473        .11046E-03   -1.4983    
   4  norm          1.7494        1.8608        .61412E-03   -1.5443    
   5  Prefactor     .10000E-03    5.5853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10025E-03    2.6901        .35202E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.5175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.7987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4956        3.6147        .24645E-03   -1.5463    
  10  norm          5.6467        3.6468        .65410E-03   -1.5233    
  11  Prefactor     5.3863        7.2634        .86569E-03   -1.5244    
  12  norm          .10004E-03    6.0787        .24706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.2314        .15630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.7790        17.005        .18396E-03   -1.5271    
  15  Prefactor     .10000E-03    26.973        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .64807        2.0132        .21380E-03   -1.5547    
  18  Normalizat    1.0421        .17133        .21577E-03   -.91634    
  19  Prefactor     .92223        .18178        .25610E-03   -.95369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4109e-08
Minuit parameter uncertainties:
  1  4.02368e-05
  2  8.92739
  3  25.4945
  4  1.86086
  5  1.69907e-06
  6  0.00163933
  7  2.68846e-06
  8  5.3079e-06
  9  3.6152
  10  3.64694
  11  7.26462
  12  0.000938098
  13  1.04297e-06
  14  17.0226
  15  0.000138079
  16  3.75194e-05
  17  2.01338
  18  0.17142
  19  0.181895
Done.

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

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  5.308e-06  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.222e-01  1.819e-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.042e+00  1.714e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 23.589 -38.709
Photon Flux Upper Limit: 4.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191200/likelihoodResults_278899201_279504001_4FGL_J0134.3-3842_weekly_bin66.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) = 7947.37455534
delta logL = -0.000611102873336

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7947.37394425
delta logL = -1.18698153528e-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.4896       1.0000          .0000       10.000    
     3 'Normalizat'    1.0421       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92222       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=   7947.374     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    51.902        .90712E-02** at limit **
   2  Index         2.4894        6.6795        .50000        .18874E-06
   3  Normalizat    1.0421        .87612E-02    .41120E-01   -.25871E-03
   4  Prefactor     .92223        .98953E-02    .45288E-01   -.25926E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.48938
  Normalizat = 1.04208
  Prefactor  = 0.922226
 **********
 **   18 **HESSE 
 **********

 FCN=   7947.374     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      233 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1250.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4894        7.3276        .50000       -.52605    
   3  Normalizat    1.0421        .59626E-01    .21577E-03   -.91634    
   4  Prefactor     .92223        .67245E-01    .25610E-03   -.95369    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.08099e-07
Minuit parameter uncertainties:
  1  0.00565183
  2  4414.5
  3  0.0596302
  4  0.0672507
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191200': 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) = 7947.37394424
delta logL = -3.35603544954e-10

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  5.652e-03  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  2.489e+00  4.415e+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.222e-01  6.725e-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.042e+00  5.963e-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/191200/cmap_HighResolution_278899201_279504001_4FGL_J0134.3-3842_weekly_bin66.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.44e-03', job_status='DONE', photon_flux_upper_limit='4.43e-08', time_completed='2021-07-03 22:49:34.978132', job_id='191200', GAL2='0.92', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1625377774.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-3.36e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='66' AND source_name='4FGL J0134.3-3842' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 22:49:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 191200: <4FGL_J0134.3-3842_weekly_bin66> in cluster <slac> Done

Job <4FGL_J0134.3-3842_weekly_bin66> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Jul  3 22:34:18 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 22:34:19 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:34:19 2021
Terminated at Sat Jul  3 22:49:35 2021
Results reported at Sat Jul  3 22:49:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0134.3-3842_weekly_bin66 23.5887 -38.7085 278899201 279504001 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 :                                   761.19 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             315.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            917 sec.

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

