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/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 5 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 = 17319
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0931.2-8533_weekly_bin474
RA = 142.818, Dec = -85.5626
tmin = 525657601, tmax = 526262401
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='838915', job_status='RUN', time_executed='2021-07-15 14:17:17.928540', time_epoch_executed='1626383837.93' WHERE source_name='4FGL J0931.2-8533' and cadence='weekly' and bin_id='474'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/838915

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

Retrieving the FT1 file...

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

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

Retrieving 109 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/838915/ft1_4FGL_J0931.2-8533_weekly_bin474.fits


Retrieving the FT1 file...

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

Retrieving 109 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/838915/ft2_4FGL_J0931.2-8533_weekly_bin474.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/838915/ft1_4FGL_J0931.2-8533_weekly_bin474.fits outfile=/scratch/kocevski/838915/ft1_filteredMKT_4FGL_J0931.2-8533_weekly_bin474.fits ra=142.818 dec=-85.5626 rad=12.0 tmin=525657601.0 tmax=526262401.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.75
user 8.39
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/838915/ft2_4FGL_J0931.2-8533_weekly_bin474.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/838915/ft2_4FGL_J0931.2-8533_weekly_bin474.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/838915/ft1_filteredMKT_4FGL_J0931.2-8533_weekly_bin474.fits evtable="EVENTS" outfile="/scratch/kocevski/838915/ft1_filtered_4FGL_J0931.2-8533_weekly_bin474.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.59
user 0.40
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/838915/ft1_filtered_4FGL_J0931.2-8533_weekly_bin474.fits" evtable="EVENTS" scfile=/scratch/kocevski/838915/ft2_4FGL_J0931.2-8533_weekly_bin474.fits sctable="SC_DATA" outfile=/scratch/kocevski/838915/ltcube_525657601_526262401_4FGL_J0931.2-8533_weekly_bin474.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/838915/ft2_4FGL_J0931.2-8533_weekly_bin474.fits
.....................!
real 36.24
user 34.86
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/838915/ft1_filtered_4FGL_J0931.2-8533_weekly_bin474.fits evtable="EVENTS" scfile=/scratch/kocevski/838915/ft2_4FGL_J0931.2-8533_weekly_bin474.fits sctable="SC_DATA" expcube=/scratch/kocevski/838915/ltcube_525657601_526262401_4FGL_J0931.2-8533_weekly_bin474.fits outfile=/scratch/kocevski/838915/expmap_525657601_526262401_4FGL_J0931.2-8533_weekly_bin474.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/838915/ltcube_525657601_526262401_4FGL_J0931.2-8533_weekly_bin474.fits
.....................!
real 196.40
user 189.23
sys 4.58

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 SMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/SMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-FarWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-FarWest.fits is the correct path to the extended template.
Extended source LMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-30DorWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Extended source LMC-North in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-North.fits is the correct path to the extended template.
Added 181 point sources and 5 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 J0931.2-8533 @ 142.818 -85.5626

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/838915/ft1_filtered_4FGL_J0931.2-8533_weekly_bin474.fits scfile=/scratch/kocevski/838915/ft2_4FGL_J0931.2-8533_weekly_bin474.fits outfile=/scratch/kocevski/838915/cmap_525657601_526262401_4FGL_J0931.2-8533_weekly_bin474.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=142.818 yref=-85.5626 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.66
user 0.45
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/838915/ft1_filtered_4FGL_J0931.2-8533_weekly_bin474.fits scfile=/scratch/kocevski/838915/ft2_4FGL_J0931.2-8533_weekly_bin474.fits outfile=/scratch/kocevski/838915/cmap_HighResolution_525657601_526262401_4FGL_J0931.2-8533_weekly_bin474.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=142.818 yref=-85.5626 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.44
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/838915/ft1_filtered_4FGL_J0931.2-8533_weekly_bin474.fits evtable="EVENTS" scfile=/scratch/kocevski/838915/ft2_4FGL_J0931.2-8533_weekly_bin474.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/838915/Model_4FGL_J0931.2-8533_weekly_bin474.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 GAL_V02
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
adding source SMC-Galaxy
Working on...
/scratch/kocevski/838915/ft1_filtered_4FGL_J0931.2-8533_weekly_bin474.fits.....................!
real 19812.46
user 19763.56
sys 1.46

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/838915/ft1_filtered_4FGL_J0931.2-8533_weekly_bin474.fits', '/scratch/kocevski/838915/ft2_4FGL_J0931.2-8533_weekly_bin474.fits', expMap='/scratch/kocevski/838915/expmap_525657601_526262401_4FGL_J0931.2-8533_weekly_bin474.fits', expCube='/scratch/kocevski/838915/ltcube_525657601_526262401_4FGL_J0931.2-8533_weekly_bin474.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/838915/Model_4FGL_J0931.2-8533_weekly_bin474.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0931.2-8533'

4FGL J0931.2-8533
   Spectrum: PowerLaw
220    Prefactor:  7.409e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.533e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
222        Scale:  9.301e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/838915/ft1_filtered_4FGL_J0931.2-8533_weekly_bin474.fits
Spacecraft file(s): /scratch/kocevski/838915/ft2_4FGL_J0931.2-8533_weekly_bin474.fits
Exposure map: /scratch/kocevski/838915/expmap_525657601_526262401_4FGL_J0931.2-8533_weekly_bin474.fits
Exposure cube: /scratch/kocevski/838915/ltcube_525657601_526262401_4FGL_J0931.2-8533_weekly_bin474.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/838915/Model_4FGL_J0931.2-8533_weekly_bin474.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) = 23707.8945946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .99886       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .22026E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.041       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10466E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.3729       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.734       1.0000         .10000E-03   10000.    
    11 'Prefactor '    48.261       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3468       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5707       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2980       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9393       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .91781       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .98192       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23707.70     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     1965 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99975        2.8964       -.10886E-06   -.75672E-04
   2  Prefactor     .10000E-03    93.337        .25592E-09** at limit **
   3  Prefactor     .10000E-03    1.8964       -.90649E-09** at limit **
   4  Prefactor     .10000E-03    4.7966       -.23194E-09** at limit **
   5  Prefactor     .10000E-03    4.3555       -.72755E-09** at limit **
   6  Prefactor     10.041        9.1945       -.49985E-08    .76686E-05
   7  norm          .10000E-03    1.0975        .15365E-08** at limit **
   8  Prefactor     .10000E-03    24.184        .97841E-08** at limit **
   9  norm          3.3756        3.1497       -.23553E-06   -.25164E-03
  10  Prefactor     16.731        10.567       -.16379E-07   -.70135E-04
  11  Prefactor     48.267        18.340       -.64468E-08    .17998E-03
  12  norm          1.3464        2.2391       -.38184E-07   -.96207E-04
  13  Prefactor     3.5702        3.2078       -.96057E-08   -.13578E-04
  14  Prefactor     .10000E-03    58.919       -.15308E-08** at limit **
  15  norm          .10000E-03    16.014       -.12588E-08** at limit **
  16  Prefactor     .10000E-03    1.3095       -.23875E-10** at limit **
  17  Prefactor     2.2973        4.9205       -.51118E-07    .81268E-03
  18  norm          .10000E-03    .88935       -.14531E-08** at limit **
  19  Prefactor     4.9437        39.735        .10901E-06   -.24688E-03
  20  Normalizat    .91779        .15699        .11308E-07    .58583E-04
  21  Prefactor     .98193        .47352E-01    .98479E-08    .90449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.999748
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0411
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.37561
  Prefactor  = 16.7311
  Prefactor  = 48.2672
  norm       = 1.34639
  Prefactor  = 3.57023
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.29732
  norm       = 0.0001
  Prefactor  = 4.9437
  Normalizat = 0.917791
  Prefactor  = 0.981935
 **********
 **   18 **HESSE 
 **********

 FCN=   23707.70     FROM HESSE     STATUS=OK           315 CALLS     2280 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99975        3.0987        .47409E-03   -1.5508    
   2  Prefactor     .10000E-03    97.741        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.9359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.8524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.3569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.041        9.1991        .12645E-03   -1.5074    
   7  norm          .10000E-03    1.1179        .15747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.3756        6.1658        .11016E-02   -1.5340    
  10  Prefactor     16.731        10.600        .48954E-03   -1.4890    
  11  Prefactor     48.267        18.349        .57721E-04   -1.4317    
  12  norm          1.3464        2.2870        .29488E-03   -1.5476    
  13  Prefactor     3.5702        3.2074        .21387E-03   -1.5330    
  14  Prefactor     .10000E-03    60.943        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    16.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3526        .34376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.2973        4.9345        .27073E-03   -1.5405    
  18  norm          .10000E-03    .89647        .14173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.9437        39.625        .18097E-03   -1.5263    
  20  Normalizat    .91779        .17322        .46081E-03   -.95838    
  21  Prefactor     .98193        .52906E-01    .13813E-03   -.93334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75324e-09
Minuit parameter uncertainties:
  1  3.09918
  2  0.000137448
  3  2.80925e-06
  4  2.30855e-06
  5  4.34583e-06
  6  9.20037
  7  3.18526e-06
  8  2.46553e-05
  9  6.16694
  10  10.6016
  11  18.3515
  12  2.28713
  13  3.20758
  14  4.1487e-05
  15  1.06656e-05
  16  1.06626e-06
  17  4.9354
  18  3.04301e-06
  19  28.0176
  20  0.173325
  21  0.0529084
Done.

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

Extracting fit parameters...

4FGL J0931.2-8533
   Spectrum: PowerLaw
220    Prefactor:  4.827e+01  1.835e+01  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.533e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
222        Scale:  9.301e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.819e-01  5.291e-02  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  9.178e-01  1.733e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.30
Ra Dec: 142.818 -85.563
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 8.95e-08 +/- 3.40e-08
Energy Flux (Fixed Index): 2.51e-05 +/- 9.53e-06

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): 0
logL (Free Index) = 23707.6760378
delta logL = 0.0264243207639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23707.6744661
delta logL = 0.0279959903019

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.874       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6206       1.0000          .0000       10.000    
     3 'Normalizat'    .91019       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98323       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   23707.67     FROM MIGRAD    STATUS=FAILED        98 CALLS      310 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.878        24.501        .59851E-04   -.36471E-04
   2  Index         2.6209        .40562        .72678E-02    .18604E-02
   3  Normalizat    .91016        .17331        .46250E-03   -.12526E-03
   4  Prefactor     .98322        .52763E-01    .13804E-03   -.41969E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   23707.67     FROM SIMPLEX   STATUS=UNCHANGED     72 CALLS      382 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.878        24.501        .16052E-03   -1.4367    
   2  Index         2.6209        .40562        .27572E-03   -.49591    
   3  Normalizat    .91016        .17331        .15875E-03   -.96104    
   4  Prefactor     .98322        .52763E-01    .55814E-04   -.93291    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23707.67     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      416 TOTAL
                     EDM=   .93E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.878        22.808        .23940E-05   -.15196E-04
   2  Index         2.6209        .37726        .14536E-02    .61632E-05
   3  Normalizat    .91016        .17308        .18500E-04   -.98323E-06
   4  Prefactor     .98322        .52740E-01    .55217E-05   -.32943E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.8784
  Index      = 2.62086
  Normalizat = 0.910157
  Prefactor  = 0.983218
 **********
 **   18 **HESSE 
 **********

 FCN=   23707.67     FROM HESSE     STATUS=OK            23 CALLS      439 TOTAL
                     EDM=   .55E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.878        22.571        .47880E-06   -1.4367    
   2  Index         2.6209        .37252        .58142E-04   -.49591    
   3  Normalizat    .91016        .17303        .37000E-05   -.96104    
   4  Prefactor     .98322        .52754E-01    .11043E-05   -.93291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.5498e-13
Minuit parameter uncertainties:
  1  22.5749
  2  0.372972
  3  0.173134
  4  0.0527567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/838915': 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) = 23707.6744655
delta logL = 0.0279966227426

Extracting fit parameters...

4FGL J0931.2-8533
   Spectrum: PowerLaw
220    Prefactor:  4.488e+01  2.257e+01  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.621e+00  3.730e-01  0.000e+00  1.000e+01 (-1.000e+00)
222        Scale:  9.301e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.832e-01  5.276e-02  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  9.102e-01  1.731e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.38
Ra Dec: 142.818 -85.563
Photon Index (Free Index): 2.62 +/- 0.37
Photon Flux (Free Index): 9.58e-08 +/- 4.33e-08
Energy Flux (Free Index): 2.46e-05 +/- 9.29e-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/838915/cmap_HighResolution_525657601_526262401_4FGL_J0931.2-8533_weekly_bin474.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.95e-08', energy_flux2='2.46e-05', photon_flux_error='3.40e-08', dlogl='2.80e-02', energy_flux='2.51e-05', photon_flux2='9.58e-08', job_status='DONE', time_completed='2021-07-15 20:09:22.089926', photon_index_error2='0.37', photon_index2='2.62', ts='14.30', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='9.29e-06', EG='0.92', time_epoch_completed='1626404962.09', return_code='0', job_id='838915', GAL2='0.98', EG2='0.91', return_code2='0', energy_flux_error='9.53e-06', photon_flux_error2='4.33e-08', ts2='14.38', photon_index='2.53' WHERE bin_id='474' AND source_name='4FGL J0931.2-8533' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jul 15 20:09:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0285>
Subject: Job 838915: <4FGL_J0931.2-8533_weekly_bin474> in cluster <slac> Done

Job <4FGL_J0931.2-8533_weekly_bin474> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Jul 15 14:15:53 2021
Job was executed on host(s) <bullet0285>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jul 15 14:16:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jul 15 14:16:59 2021
Terminated at Thu Jul 15 20:09:22 2021
Results reported at Thu Jul 15 20:09:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0931.2-8533_weekly_bin474 142.818 -85.5626 525657601 526262401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0931.2-8533 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   21075.43 sec.
    Max Memory :                                 1275 MB
    Average Memory :                             622.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3418 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   21143 sec.
    Turnaround time :                            21209 sec.

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

