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


Performing analysis on: 4FGL_J0134.3-3842_weekly_bin88
RA = 23.5887, Dec = -38.7085
tmin = 292204801, tmax = 292809601
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='191245', job_status='RUN', time_executed='2021-07-03 22:36:45.348322', time_epoch_executed='1625377005.35' WHERE source_name='4FGL J0134.3-3842' and cadence='weekly' and bin_id='88'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191245

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191245/ft1_4FGL_J0134.3-3842_weekly_bin88.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191245/ft2_4FGL_J0134.3-3842_weekly_bin88.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191245/ft1_4FGL_J0134.3-3842_weekly_bin88.fits outfile=/scratch/kocevski/191245/ft1_filteredMKT_4FGL_J0134.3-3842_weekly_bin88.fits ra=23.5887 dec=-38.7085 rad=12.0 tmin=292204801.0 tmax=292809601.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 13.88
user 13.23
sys 0.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191245/ft1_filtered_4FGL_J0134.3-3842_weekly_bin88.fits" evtable="EVENTS" scfile=/scratch/kocevski/191245/ft2_4FGL_J0134.3-3842_weekly_bin88.fits sctable="SC_DATA" outfile=/scratch/kocevski/191245/ltcube_292204801_292809601_4FGL_J0134.3-3842_weekly_bin88.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/191245/ft2_4FGL_J0134.3-3842_weekly_bin88.fits
.....................!
real 27.06
user 26.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191245/ft1_filtered_4FGL_J0134.3-3842_weekly_bin88.fits evtable="EVENTS" scfile=/scratch/kocevski/191245/ft2_4FGL_J0134.3-3842_weekly_bin88.fits sctable="SC_DATA" expcube=/scratch/kocevski/191245/ltcube_292204801_292809601_4FGL_J0134.3-3842_weekly_bin88.fits outfile=/scratch/kocevski/191245/expmap_292204801_292809601_4FGL_J0134.3-3842_weekly_bin88.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/191245/ltcube_292204801_292809601_4FGL_J0134.3-3842_weekly_bin88.fits
.....................!
real 193.28
user 186.21
sys 5.35

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/191245/ft1_filtered_4FGL_J0134.3-3842_weekly_bin88.fits scfile=/scratch/kocevski/191245/ft2_4FGL_J0134.3-3842_weekly_bin88.fits outfile=/scratch/kocevski/191245/cmap_292204801_292809601_4FGL_J0134.3-3842_weekly_bin88.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=23.5887 yref=-38.7085 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.58
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191245/ft1_filtered_4FGL_J0134.3-3842_weekly_bin88.fits scfile=/scratch/kocevski/191245/ft2_4FGL_J0134.3-3842_weekly_bin88.fits outfile=/scratch/kocevski/191245/cmap_HighResolution_292204801_292809601_4FGL_J0134.3-3842_weekly_bin88.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.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/191245/ft1_filtered_4FGL_J0134.3-3842_weekly_bin88.fits evtable="EVENTS" scfile=/scratch/kocevski/191245/ft2_4FGL_J0134.3-3842_weekly_bin88.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191245/Model_4FGL_J0134.3-3842_weekly_bin88.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/191245/ft1_filtered_4FGL_J0134.3-3842_weekly_bin88.fits.....................!
real 124.21
user 122.54
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9753       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9264       1.0000         .10000E-03   10000.    
     3 'norm      '    12.034       1.0000         .10000E-03   10000.    
     4 'norm      '    .30365       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6901       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .51737E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    6.9213       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.6537       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    42.249       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.9447       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .87867       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1121       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=   7093.555     FROM MIGRAD    STATUS=CONVERGED    424 CALLS     1921 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9510        35.104       -.50164E-06   -.17452E-04
   2  Prefactor     5.9211        8.4894        .11480E-05    .22956E-03
   3  norm          12.029        17.432        .19481E-05    .23410E-03
   4  norm          .30312        1.8236        .13987E-05   -.41946E-03
   5  Prefactor     .10000E-03    9.3856        .16059E-06** at limit **
   6  Prefactor     1.6898        2.9011        .34193E-06   -.19146E-03
   7  Prefactor     .10000E-03    35.656       -.11647E-06** at limit **
   8  Prefactor     .10000E-03    10.470       -.78003E-07** at limit **
   9  Prefactor     .11593E-03    1.9629        .71271E-07** at limit **
  10  norm          6.9204        3.2824        .38703E-06   -.46162E-03
  11  Prefactor     .10000E-03    7.6673       -.11942E-06** at limit **
  12  norm          3.6538        3.3287        .30082E-07   -.20349E-06
  13  Prefactor     .10000E-03    4.8394        .24099E-07** at limit **
  14  Prefactor     42.236        26.406       -.21117E-06   -.95210E-04
  15  Prefactor     .10000E-03    16.232        .55650E-07** at limit **
  16  Prefactor     .10000E-03    9.4586       -.28979E-07** at limit **
  17  norm          2.9439        2.7372        .12266E-06   -.59714E-04
  18  Normalizat    .87890        .15282       -.61069E-06   -.90630E-04
  19  Prefactor     1.1122        .16638       -.26115E-06   -.10832E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.95098
  Prefactor  = 5.92108
  norm       = 12.0294
  norm       = 0.303121
  Prefactor  = 0.0001
  Prefactor  = 1.68977
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000115932
  norm       = 6.92037
  Prefactor  = 0.0001
  norm       = 3.65383
  Prefactor  = 0.0001
  Prefactor  = 42.236
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.94391
  Normalizat = 0.878901
  Prefactor  = 1.11217
 **********
 **   18 **HESSE 
 **********

 FCN=   7093.555     FROM HESSE     STATUS=OK           278 CALLS     2199 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9510        35.436        .15190E-03   -1.5181    
   2  Prefactor     5.9211        8.6881        .16495E-03   -1.5221    
   3  norm          12.029        18.249        .11548E-03   -1.5014    
   4  norm          .30312        1.9774        .22532E-03   -1.5598    
   5  Prefactor     .10000E-03    9.4376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6898        2.8874        .17869E-03   -1.5448    
   7  Prefactor     .10000E-03    36.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11593E-03    6.7458        .35313E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.9204        3.3205        .51179E-03   -1.5182    
  11  Prefactor     .10000E-03    7.9103        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6538        3.3266        .13951E-03   -1.5326    
  13  Prefactor     .10000E-03    4.8521        .18095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     42.236        26.518        .61674E-04   -1.4407    
  15  Prefactor     .10000E-03    16.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.4697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.9439        2.7351        .12935E-03   -1.5365    
  18  Normalizat    .87890        .18438        .23908E-03   -.97206    
  19  Prefactor     1.1122        .20002        .24380E-03   -.89078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66389e-10
Minuit parameter uncertainties:
  1  31.4184
  2  8.68995
  3  18.2574
  4  1.54825
  5  1.44036e-05
  6  2.88763
  7  4.32009e-05
  8  4.0793e-06
  9  0.020736
  10  3.32054
  11  1.112e-05
  12  3.32675
  13  6.48771e-06
  14  26.5251
  15  3.46814e-05
  16  1.98175e-06
  17  2.73521
  18  0.184512
  19  0.200152
Done.

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

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  4.079e-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:  1.112e+00  2.002e-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:  8.789e-01  1.845e-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.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191245/likelihoodResults_292204801_292809601_4FGL_J0134.3-3842_weekly_bin88.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) = 7093.55507542
delta logL = -0.000454329774584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7093.55462114
delta logL = -4.84515112475e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4871       1.0000          .0000       10.000    
     3 'Normalizat'    .87888       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1122       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=   7093.555     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    225.73        .18142E-02** at limit **
   2  Index         2.4677        5.1842        .50000        .17691E-05
   3  Normalizat    .87890        .17388E-01    .23908E-03    .47551E-06
   4  Prefactor     1.1122        .19800E-01    .24380E-03   -.46631E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100073
  Index      = 2.46768
  Normalizat = 0.878901
  Prefactor  = 1.11217
 **********
 **   18 **HESSE 
 **********

 FCN=   7093.555     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    929.75        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4677        5.9664        .50000       -.53108    
   3  Normalizat    .87890        .39386E-01    .95633E-05   -.97206    
   4  Prefactor     1.1122        .44846E-01    .97521E-05   -.89078    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.57642e-09
Minuit parameter uncertainties:
  1  0.0167118
  2  1948.62
  3  0.0393875
  4  0.0448478
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191245': 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) = 7093.55462108
delta logL = 6.77027856e-09

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  1.001e-04  1.671e-02  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  2.468e+00  1.949e+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:  1.112e+00  4.485e-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:  8.789e-01  3.939e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/191245/cmap_HighResolution_292204801_292809601_4FGL_J0134.3-3842_weekly_bin88.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.29e-03', job_status='DONE', photon_flux_upper_limit='5.52e-08', time_completed='2021-07-03 22:49:54.129325', job_id='191245', GAL2='1.11', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1625377794.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='6.77e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='88' AND source_name='4FGL J0134.3-3842' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 22:49:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 191245: <4FGL_J0134.3-3842_weekly_bin88> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0134.3-3842_weekly_bin88 23.5887 -38.7085 292204801 292809601 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 :                                   760.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             294.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            931 sec.

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

