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


Performing analysis on: 4FGL_J0134.3-3842_weekly_bin149
RA = 23.5887, Dec = -38.7085
tmin = 329097601, tmax = 329702401
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='191369', job_status='RUN', time_executed='2021-07-03 22:37:23.008506', time_epoch_executed='1625377043.01' WHERE source_name='4FGL J0134.3-3842' and cadence='weekly' and bin_id='149'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191369

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191369/ft1_4FGL_J0134.3-3842_weekly_bin149.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191369/ft2_4FGL_J0134.3-3842_weekly_bin149.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191369/ft1_4FGL_J0134.3-3842_weekly_bin149.fits outfile=/scratch/kocevski/191369/ft1_filteredMKT_4FGL_J0134.3-3842_weekly_bin149.fits ra=23.5887 dec=-38.7085 rad=12.0 tmin=329097601.0 tmax=329702401.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.93
user 5.81
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191369/ft2_4FGL_J0134.3-3842_weekly_bin149.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/191369/ft1_filteredMKT_4FGL_J0134.3-3842_weekly_bin149.fits evtable="EVENTS" outfile="/scratch/kocevski/191369/ft1_filtered_4FGL_J0134.3-3842_weekly_bin149.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.74
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191369/ft1_filtered_4FGL_J0134.3-3842_weekly_bin149.fits" evtable="EVENTS" scfile=/scratch/kocevski/191369/ft2_4FGL_J0134.3-3842_weekly_bin149.fits sctable="SC_DATA" outfile=/scratch/kocevski/191369/ltcube_329097601_329702401_4FGL_J0134.3-3842_weekly_bin149.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/191369/ft2_4FGL_J0134.3-3842_weekly_bin149.fits
.....................!
real 22.06
user 21.54
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191369/ft1_filtered_4FGL_J0134.3-3842_weekly_bin149.fits evtable="EVENTS" scfile=/scratch/kocevski/191369/ft2_4FGL_J0134.3-3842_weekly_bin149.fits sctable="SC_DATA" expcube=/scratch/kocevski/191369/ltcube_329097601_329702401_4FGL_J0134.3-3842_weekly_bin149.fits outfile=/scratch/kocevski/191369/expmap_329097601_329702401_4FGL_J0134.3-3842_weekly_bin149.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/191369/ltcube_329097601_329702401_4FGL_J0134.3-3842_weekly_bin149.fits
.....................!
real 154.86
user 149.71
sys 3.69

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/191369/ft1_filtered_4FGL_J0134.3-3842_weekly_bin149.fits scfile=/scratch/kocevski/191369/ft2_4FGL_J0134.3-3842_weekly_bin149.fits outfile=/scratch/kocevski/191369/cmap_329097601_329702401_4FGL_J0134.3-3842_weekly_bin149.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.56
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191369/ft1_filtered_4FGL_J0134.3-3842_weekly_bin149.fits scfile=/scratch/kocevski/191369/ft2_4FGL_J0134.3-3842_weekly_bin149.fits outfile=/scratch/kocevski/191369/cmap_HighResolution_329097601_329702401_4FGL_J0134.3-3842_weekly_bin149.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.52
user 0.36
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/191369/ft1_filtered_4FGL_J0134.3-3842_weekly_bin149.fits evtable="EVENTS" scfile=/scratch/kocevski/191369/ft2_4FGL_J0134.3-3842_weekly_bin149.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191369/Model_4FGL_J0134.3-3842_weekly_bin149.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/191369/ft1_filtered_4FGL_J0134.3-3842_weekly_bin149.fits.....................!
real 140.43
user 138.88
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.5875       1.0000         .10000E-03   10000.    
     3 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .27700       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10641E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.522       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38025E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6284       1.0000         .10000E-03   10000.    
    10 'norm      '    .25498E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7153       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0319       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1621       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.446       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11201E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.095       1.0000         .10000E-03   10000.    
    17 'norm      '    4.2093       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1647       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .77421       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=   9881.113     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     1967 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.481        .19108E-08** at limit **
   2  Prefactor     8.5855        6.0638        .82967E-07   -.36408E-04
   3  norm          .10000E-03    6.7303        .63126E-08** at limit **
   4  norm          .27992        1.2725        .45271E-06   -.51020E-03
   5  Prefactor     .10000E-03    5.5812        .28854E-07** at limit **
   6  Prefactor     .10000E-03    1.3298        .66457E-07** at limit **
   7  Prefactor     12.513        16.799        .34137E-06    .43719E-04
   8  Prefactor     .10005E-03    14.754       -.10039E-05** at limit **
   9  Prefactor     1.6305        2.8658        .70818E-06    .95349E-04
  10  norm          .10000E-03    1.0089        .15340E-07** at limit **
  11  Prefactor     4.7062        4.8980       -.13733E-06   -.86671E-04
  12  norm          1.0423        3.5376        .17895E-05    .52688E-04
  13  Prefactor     5.1621        7.0874        .16450E-06   -.52862E-06
  14  Prefactor     13.404        22.148       -.14546E-05   -.16173E-03
  15  Prefactor     .10000E-03    8.2659       -.11133E-05** at limit **
  16  Prefactor     15.110        11.778       -.12787E-06   -.25605E-03
  17  norm          4.2090        2.3470        .60305E-07   -.30061E-04
  18  Normalizat    1.1646        .13170       -.96546E-07   -.57403E-04
  19  Prefactor     .77438        .14195       -.55408E-06   -.34310E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.58546
  norm       = 0.0001
  norm       = 0.279924
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5126
  Prefactor  = 0.000100052
  Prefactor  = 1.63053
  norm       = 0.0001
  Prefactor  = 4.70623
  norm       = 1.04226
  Prefactor  = 5.16212
  Prefactor  = 13.4043
  Prefactor  = 0.0001
  Prefactor  = 15.1098
  norm       = 4.209
  Normalizat = 1.16464
  Prefactor  = 0.774376
 **********
 **   18 **HESSE 
 **********

 FCN=   9881.113     FROM HESSE     STATUS=OK           280 CALLS     2247 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.5855        6.0654        .13679E-03   -1.5122    
   3  norm          .10000E-03    6.7408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .27992        2.4024        .20897E-02   -1.5602    
   5  Prefactor     .10000E-03    5.5936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4371        .21948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.513        16.782        .11320E-03   -1.5000    
   8  Prefactor     .10005E-03    99.168        .69332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.6305        2.7986        .20650E-03   -1.5453    
  10  norm          .10000E-03    5.1489        .19267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.7062        4.8507        .18531E-03   -1.5274    
  12  norm          1.0423        3.5217        .29481E-03   -1.5504    
  13  Prefactor     5.1621        7.0741        .17694E-03   -1.5254    
  14  Prefactor     13.404        22.024        .10923E-03   -1.4976    
  15  Prefactor     .10000E-03    8.2163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.110        11.830        .10309E-03   -1.4930    
  17  norm          4.2090        2.3436        .10945E-03   -1.5298    
  18  Normalizat    1.1646        .15335        .20626E-03   -.87703    
  19  Prefactor     .77438        .16781        .27890E-03   -1.0068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88288e-08
Minuit parameter uncertainties:
  1  7.75229e-06
  2  6.06588
  3  4.02823e-06
  4  1.63992
  5  2.73641e-06
  6  2.18698e-06
  7  16.7879
  8  0.00453226
  9  2.79883
  10  3.54706e-05
  11  4.85106
  12  3.5224
  13  7.07523
  14  22.0376
  15  3.38725e-05
  16  11.8319
  17  2.34364
  18  0.153413
  19  0.167922
Done.

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

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  1.001e-04  4.532e-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:  7.744e-01  1.679e-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.165e+00  1.534e-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.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191369/likelihoodResults_329097601_329702401_4FGL_J0134.3-3842_weekly_bin149.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) = 9881.11318112
delta logL = -4.68114612886e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9881.11313443
delta logL = -1.16393493954e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4809       1.0000          .0000       10.000    
     3 'Normalizat'    1.1646       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77438       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=   9878.456     FROM MIGRAD    STATUS=CONVERGED    127 CALLS      320 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54195E-02    .36997E-01    .90712E-03    .10241E-01
   2  Index         7.5320        2.1577        .13127        .18967E-03
   3  Normalizat    1.0665        .33088E-01    .35824E-01   -.17479E-03
   4  Prefactor     .85129        .37447E-01    .43383E-01   -.10121E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00541946
  Index      = 7.532
  Normalizat = 1.06652
  Prefactor  = 0.851289
 **********
 **   18 **HESSE 
 **********

 FCN=   9878.456     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      353 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .54195E-02    .80380E-01    .38796E-04   -1.5693    
   2  Index         7.5320        3.3207        .52852E-02    .53100    
   3  Normalizat    1.0665        .11563        .21400E-03   -.90834    
   4  Prefactor     .85129        .12877        .26707E-03   -.97865    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.80263e-07
Minuit parameter uncertainties:
  1  0.041356
  2  3.79048
  3  0.115657
  4  0.128817
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191369': 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) = 9878.45607812
delta logL = 2.65705619442

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  5.419e-03  4.136e-02  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  7.532e+00  3.790e+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:  8.513e-01  1.288e-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.067e+00  1.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.63
Ra Dec: 23.589 -38.709
Photon Index (Free Index): 7.53 +/- 3.79
Photon Flux (Free Index): 7.18e-08 +/- 3.79e-08
Energy Flux (Free Index): 8.44e-06 +/- 4.82e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/191369/cmap_HighResolution_329097601_329702401_4FGL_J0134.3-3842_weekly_bin149.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.66e-03', comment='SUCCESS', energy_flux2='8.44e-06', dlogl='2.66e+00', photon_flux2='7.18e-08', job_status='DONE', time_completed='2021-07-03 22:50:13.616774', photon_index_error2='3.79', photon_index2='7.53', ts='-0.00', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='5.99e-08', energy_flux_error2='4.82e-06', EG='1.16', time_epoch_completed='1625377813.62', return_code='0', job_id='191369', GAL2='0.85', EG2='1.07', return_code2='102', photon_flux_error2='3.79e-08', ts2='5.63', photon_index='2.49' WHERE bin_id='149' AND source_name='4FGL J0134.3-3842' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 22:50:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 191369: <4FGL_J0134.3-3842_weekly_bin149> in cluster <slac> Done

Job <4FGL_J0134.3-3842_weekly_bin149> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Jul  3 22:34:36 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 22:34:37 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:37 2021
Terminated at Sat Jul  3 22:50:14 2021
Results reported at Sat Jul  3 22:50:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0134.3-3842_weekly_bin149 23.5887 -38.7085 329097601 329702401 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 :                                   743.00 sec.
    Max Memory :                                 1162 MB
    Average Memory :                             339.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            938 sec.

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

