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


Performing analysis on: 4FGL_J0958.4+5042_weekly_bin601
RA = 149.606, Dec = 50.7
tmin = 602467201, tmax = 603072001
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='147540', job_status='RUN', time_executed='2021-07-16 09:06:05.566412', time_epoch_executed='1626451565.57' WHERE source_name='4FGL J0958.4+5042' and cadence='weekly' and bin_id='601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147540

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

Retrieving the FT1 file...

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

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

Retrieving 109 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147540/ft1_4FGL_J0958.4+5042_weekly_bin601.fits


Retrieving the FT1 file...

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

Retrieving 109 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147540/ft2_4FGL_J0958.4+5042_weekly_bin601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147540/ft1_4FGL_J0958.4+5042_weekly_bin601.fits outfile=/scratch/kocevski/147540/ft1_filteredMKT_4FGL_J0958.4+5042_weekly_bin601.fits ra=149.606 dec=50.7 rad=12.0 tmin=602467201.0 tmax=603072001.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.63
user 6.31
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/147540/ft2_4FGL_J0958.4+5042_weekly_bin601.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/147540/ft2_4FGL_J0958.4+5042_weekly_bin601.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/147540/ft1_filteredMKT_4FGL_J0958.4+5042_weekly_bin601.fits evtable="EVENTS" outfile="/scratch/kocevski/147540/ft1_filtered_4FGL_J0958.4+5042_weekly_bin601.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.56
user 0.39
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/147540/ft1_filtered_4FGL_J0958.4+5042_weekly_bin601.fits" evtable="EVENTS" scfile=/scratch/kocevski/147540/ft2_4FGL_J0958.4+5042_weekly_bin601.fits sctable="SC_DATA" outfile=/scratch/kocevski/147540/ltcube_602467201_603072001_4FGL_J0958.4+5042_weekly_bin601.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/147540/ft2_4FGL_J0958.4+5042_weekly_bin601.fits
.....................!
real 32.53
user 32.07
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147540/ft1_filtered_4FGL_J0958.4+5042_weekly_bin601.fits evtable="EVENTS" scfile=/scratch/kocevski/147540/ft2_4FGL_J0958.4+5042_weekly_bin601.fits sctable="SC_DATA" expcube=/scratch/kocevski/147540/ltcube_602467201_603072001_4FGL_J0958.4+5042_weekly_bin601.fits outfile=/scratch/kocevski/147540/expmap_602467201_603072001_4FGL_J0958.4+5042_weekly_bin601.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/147540/ltcube_602467201_603072001_4FGL_J0958.4+5042_weekly_bin601.fits
.....................!
real 192.80
user 187.13
sys 5.25

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
Added 231 point sources and 0 extended sources

Setting source of interest to:
4FGL J0958.4+5042 @ 149.606 50.7

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/147540/ft1_filtered_4FGL_J0958.4+5042_weekly_bin601.fits scfile=/scratch/kocevski/147540/ft2_4FGL_J0958.4+5042_weekly_bin601.fits outfile=/scratch/kocevski/147540/cmap_602467201_603072001_4FGL_J0958.4+5042_weekly_bin601.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=149.606 yref=50.7 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.60
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/147540/ft1_filtered_4FGL_J0958.4+5042_weekly_bin601.fits scfile=/scratch/kocevski/147540/ft2_4FGL_J0958.4+5042_weekly_bin601.fits outfile=/scratch/kocevski/147540/cmap_HighResolution_602467201_603072001_4FGL_J0958.4+5042_weekly_bin601.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=149.606 yref=50.7 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/147540/ft1_filtered_4FGL_J0958.4+5042_weekly_bin601.fits evtable="EVENTS" scfile=/scratch/kocevski/147540/ft2_4FGL_J0958.4+5042_weekly_bin601.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/147540/Model_4FGL_J0958.4+5042_weekly_bin601.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
Working on...
/scratch/kocevski/147540/ft1_filtered_4FGL_J0958.4+5042_weekly_bin601.fits......................!
real 18.78
user 17.41
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/147540/ft1_filtered_4FGL_J0958.4+5042_weekly_bin601.fits', '/scratch/kocevski/147540/ft2_4FGL_J0958.4+5042_weekly_bin601.fits', expMap='/scratch/kocevski/147540/expmap_602467201_603072001_4FGL_J0958.4+5042_weekly_bin601.fits', expCube='/scratch/kocevski/147540/ltcube_602467201_603072001_4FGL_J0958.4+5042_weekly_bin601.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/147540/Model_4FGL_J0958.4+5042_weekly_bin601.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0958.4+5042'

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  1.235e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  2.663e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  5.744e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/147540/ft1_filtered_4FGL_J0958.4+5042_weekly_bin601.fits
Spacecraft file(s): /scratch/kocevski/147540/ft2_4FGL_J0958.4+5042_weekly_bin601.fits
Exposure map: /scratch/kocevski/147540/expmap_602467201_603072001_4FGL_J0958.4+5042_weekly_bin601.fits
Exposure cube: /scratch/kocevski/147540/ltcube_602467201_603072001_4FGL_J0958.4+5042_weekly_bin601.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/147540/Model_4FGL_J0958.4+5042_weekly_bin601.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) = 532.903020829

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    16.678       1.0000         .10000E-03   10000.    
     3 'norm      '    7.4106       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .54638E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1312       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14476E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12991E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10782E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10633E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .99299       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8219       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .83689       1.0000         .10000E-03   10000.    
    15 'norm      '    218.36       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1795.4       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.128       1.0000         .10000E-03   10000.    
    18 'Prefactor '    78.186       1.0000         .10000E-03   10000.    
    19 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.878       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .23044E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    9249.4       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1532.9       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.1957       1.0000         .10000E-03   10000.    
    26 'norm      '    9955.4       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.2067       1.0000         .10000E-03   10000.    
    28 'norm      '    13.485       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10184E-01   1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.8977       1.0000         .10000E-03   10000.    
    31 'norm      '    30.526       1.0000         .10000E-03   10000.    
    32 'norm      '    324.49       1.0000         .10000E-03   10000.    
    33 'Prefactor '    2.5251       1.0000         .10000E-03   10000.    
    34 'Prefactor '    78.971       1.0000         .10000E-03   10000.    
    35 'norm      '    .10157E-03   1.0000         .10000E-03   10000.    
    36 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    37 'Prefactor '    .10529E-03   1.0000         .10000E-03   10000.    
    38 'Prefactor '    445.08       1.0000         .10000E-03   10000.    
    39 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    40 'Prefactor '    .65657       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   523.7787     FROM MIGRAD    STATUS=CONVERGED    757 CALLS     7026 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.587       -.31149E-06** at limit **
   2  norm          16.791        19.455        .18973E-06    .95916E-04
   3  norm          7.8920        15.804        .52242E-06    .88599E-04
   4  Prefactor     .10001E-03    198.58       -.71661E-05** at limit **
   5  Prefactor     .10000E-03    9.1635        .19578E-07** at limit **
   6  Prefactor     .10000E-03    1595.3        .82825E-05** at limit **
   7  Prefactor     .10000E-03    115.22       -.45597E-06** at limit **
   8  norm          .10000E-03    3.9851       -.81653E-07** at limit **
   9  Prefactor     .10000E-03    33.320       -.46207E-06** at limit **
  10  Prefactor     .10001E-03    441.71       -.39010E-05** at limit **
  11  Prefactor     .10000E-03    40.429       -.32783E-06** at limit **
  12  Prefactor     4.5252        233.52        .60756E-05    .15352E-03
  13  Prefactor     .10198E-03    791.80       -.41302E-05** at limit **
  14  Prefactor     1.5508        236.76        .48317E-05    .39283E-04
  15  norm          320.57        187.18        .90298E-06   -.20272E-01
  16  Prefactor     2021.8        387.14        .81803E-06   -.11380    
  17  Prefactor     11.492        22.977        .10524E-05   -.77298E-04
  18  Prefactor     99.062        242.94        .55303E-05    .61690E-03
  19  norm          .10000E-03    19.842        .96150E-06** at limit **
  20  Prefactor     61.155        112.04        .12307E-05   -.26766E-02
  21  Prefactor     .10000E-03    67.939       -.73688E-06** at limit **
  22  norm          .10000E-03    2.5840       -.16476E-06** at limit **
  23  norm          9999.5        1853.5        .74704E-05   -.15069E-01
  24  Prefactor     982.36        797.67       -.22375E-05   -.99651E-01
  25  Prefactor     25.835        38.180        .64043E-06   -.75740E-03
  26  norm         10000.0        1052.2       -.14812E-05** at limit **
  27  Prefactor     .10042E-03    7369.9       -.28861E-04** at limit **
  28  norm          40.758        58.117        .78018E-06   -.14536E-02
  29  Prefactor     .10000E-03    221.60       -.49113E-06** at limit **
  30  Prefactor     .48966E-03    6173.2       -.16815E-05** at limit **
  31  norm          26.466        26.376       -.94040E-06   -.16115E-03
  32  norm          486.52        337.36        .11152E-05    .77213E-03
  33  Prefactor     .68705E-03    6310.9        .67305E-05** at limit **
  34  Prefactor     .10158        1521.3       -.17246E-05    .72832E-02
  35  norm          .10000E-03    25.198        .27380E-06** at limit **
  36  Prefactor     .10001E-03    250.23       -.24836E-05** at limit **
  37  Prefactor     .10000E-03    169.46        .14591E-06** at limit **
  38  Prefactor     544.41        452.94        .45334E-06    .18447E-01
  39  Normalizat    .10000E-01    .14576       -.63332E-06** at limit **
  40  Prefactor     .64374        .26997        .12492E-06    .85050E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 16.7907
  norm       = 7.89204
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 4.52524
  Prefactor  = 0.000101984
  Prefactor  = 1.55085
  norm       = 320.565
  Prefactor  = 2021.76
  Prefactor  = 11.4917
  Prefactor  = 99.0621
  norm       = 0.000100001
  Prefactor  = 61.1552
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9999.47
  Prefactor  = 982.356
  Prefactor  = 25.8351
  norm       = 10000
  Prefactor  = 0.00010042
  norm       = 40.7584
  Prefactor  = 0.000100001
  Prefactor  = 0.000489663
  norm       = 26.4665
  norm       = 486.515
  Prefactor  = 0.000687046
  Prefactor  = 0.101582
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 544.411
  Normalizat = 0.01
  Prefactor  = 0.643737
 **********
 **   18 **HESSE 
 **********

 FCN=   523.7787     FROM HESSE     STATUS=OK          1045 CALLS     8071 TOTAL
                     EDM=   .17E-01    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.688        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.791        19.548        .24518E-02   -1.4888    
   3  norm          7.8920        20.410        .36833E-02   -1.5146    
   4  Prefactor     .10001E-03    185.26        .95388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.0515        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    515.52        .10978       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    109.19        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.9525        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    32.417        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    362.36        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    40.264        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.5252        749.69        .13141E-01   -1.5282    
  13  Prefactor     .10198E-03    589.83        .45801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5508        90.684        .12577E-01   -1.5957    
  15  norm          320.57        2098.9        .68424E-03   -1.2108    
  16  Prefactor     2021.8        6005.2        .26055E-03   -.63807    
  17  Prefactor     11.492        15.356        .28757E-02   -1.5030    
  18  Prefactor     99.062        355.54        .11354E-02   -1.3714    
  19  norm          .10000E-03    19.500        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     61.155        2144.7        .27905E-02   -1.4142    
  21  Prefactor     .10000E-03    66.639        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.6203        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          9999.5        1133.9        .37953E-03    1.5563    
  24  Prefactor     982.36        1803.5        .27757E-03   -.93320    
  25  Prefactor     25.835        2142.4        .35011E-02   -1.4691    
  26  norm         10000.0        719.49        .15016E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10042E-03    1549.3        .10310E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          40.758        2143.1        .27269E-02   -1.4430    
  29  Prefactor     .10000E-03    201.38        .90739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .48966E-03    1166.7        .59679E-02   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          26.466        26.260        .18130E-02   -1.4679    
  32  norm          486.52        337.83        .56437E-03   -1.1260    
  33  Prefactor     .68705E-03    1236.7        .64267E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10158        1082.5        .11298E-02   -1.5644    
  35  norm          .10000E-03    24.689        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     .10001E-03    226.85        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Prefactor     .10000E-03    158.24        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Prefactor     544.41        836.13        .48492E-03   -1.0998    
  39  Normalizat    .10000E-01    .13689        .12314       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  40  Prefactor     .64374        .28205        .41820E-01   -1.0577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.0173868
Minuit parameter uncertainties:
  1  5.289e-05
  2  19.5552
  3  20.428
  4  0.00331705
  5  2.33751e-06
  6  0.00199642
  7  0.000199486
  8  7.33911e-06
  9  0.000126138
  10  0.00306033
  11  9.67558e-05
  12  118.025
  13  0.0691119
  14  23.7552
  15  1738.04
  16  4017.63
  17  15.361
  18  363.657
  19  0.000233121
  20  755.806
  21  0.000276654
  22  1.02166e-05
  23  49.8424
  24  1937.52
  25  489.927
  26  0.0781584
  27  0.0524167
  28  616.026
  29  0.000846954
  30  1.37623
  31  26.2711
  32  339.233
  33  1.74137
  34  21.3607
  35  7.69752e-05
  36  0.00240597
  37  2.75634e-05
  38  856.318
  39  2.48373e-07
  40  0.282679
Done.

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

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  9.824e+02  1.938e+03  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  2.663e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  5.744e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  6.437e-01  2.827e-01  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  1.000e-02  2.484e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.66
Ra Dec: 149.606 50.700
Photon Flux Upper Limit: 2.75e-05 ph cm-2 s-1
Energy Flux Upper Limit: 2.16e+00 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/147540/likelihoodResults_602467201_603072001_4FGL_J0958.4+5042_weekly_bin601.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): 0
logL (Free Index) = 523.519515402
delta logL = 0.259219074665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 523.51729784
delta logL = 0.261436637291

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    899.92       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3736       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60502       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7370E+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=   523.5173     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      246 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     899.95        1257.5        .69888E-04   -.28040E-04
   2  Index         3.3736        1.0347        .33505E-02   -.64429E-04
   3  Normalizat    .10000E-01    .12978        .49860E-03** at limit **
   4  Prefactor     .60501        .24018        .21016E-03    .10236E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 899.945
  Index      = 3.37358
  Normalizat = 0.01
  Prefactor  = 0.605015
 **********
 **   18 **HESSE 
 **********

 FCN=   523.5173     FROM HESSE     STATUS=OK            23 CALLS      269 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     899.95        1227.1        .13978E-04   -.96143    
   2  Index         3.3736        1.0079        .13402E-03   -.33131    
   3  Normalizat    .10000E-01    .12977        .99720E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .60501        .24020        .42033E-04   -1.0738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52026e-10
Minuit parameter uncertainties:
  1  1268.17
  2  1.01568
  3  1.21245e-06
  4  0.240613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147540': 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) = 523.517297831
delta logL = 0.26143664571

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  8.999e+02  1.268e+03  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  3.374e+00  1.016e+00  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  5.744e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  6.050e-01  2.406e-01  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  1.000e-02  1.212e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.32
Ra Dec: 149.606 50.700
Photon Index (Free Index): 3.37 +/- 1.02
Photon Flux (Free Index): 1.38e-05 +/- 1.57e-05
Energy Flux (Free Index): 2.39e-03 +/- 2.53e-03

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/147540/cmap_HighResolution_602467201_603072001_4FGL_J0958.4+5042_weekly_bin601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.16e+00', comment='SUCCESS', energy_flux2='2.39e-03', dlogl='2.61e-01', photon_flux2='1.38e-05', job_status='DONE', time_completed='2021-07-16 09:15:34.125057', photon_index_error2='1.02', photon_index2='3.37', ts='0.66', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', photon_flux_upper_limit='2.75e-05', energy_flux_error2='2.53e-03', EG='0.01', time_epoch_completed='1626452134.13', return_code='0', job_id='147540', GAL2='0.61', EG2='0.01', return_code2='0', photon_flux_error2='1.57e-05', ts2='1.32', photon_index='2.66' WHERE bin_id='601' AND source_name='4FGL J0958.4+5042' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Fri Jul 16 09:15:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 147540: <4FGL_J0958.4+5042_weekly_bin601> in cluster <slac> Done

Job <4FGL_J0958.4+5042_weekly_bin601> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Jul 16 09:05:36 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 16 09:05:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 16 09:05:52 2021
Terminated at Fri Jul 16 09:15:35 2021
Results reported at Fri Jul 16 09:15:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.4+5042_weekly_bin601 149.606 50.7 602467201 603072001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0958.4+5042 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   528.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             292.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   582 sec.
    Turnaround time :                            599 sec.

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

