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


Performing analysis on: 4FGL_J0136.5+3906_weekly_bin347
RA = 24.1423, Dec = 39.1
tmin = 448848001, tmax = 449452801
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='198609', job_status='RUN', time_executed='2021-07-03 23:01:19.954916', time_epoch_executed='1625378479.95' WHERE source_name='4FGL J0136.5+3906' and cadence='weekly' and bin_id='347'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198609

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198609/ft1_4FGL_J0136.5+3906_weekly_bin347.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198609/ft2_4FGL_J0136.5+3906_weekly_bin347.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198609/ft1_4FGL_J0136.5+3906_weekly_bin347.fits outfile=/scratch/kocevski/198609/ft1_filteredMKT_4FGL_J0136.5+3906_weekly_bin347.fits ra=24.1423 dec=39.1 rad=12.0 tmin=448848001.0 tmax=449452801.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 12.67
user 12.19
sys 0.37

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/198609/ft2_4FGL_J0136.5+3906_weekly_bin347.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/198609/ft2_4FGL_J0136.5+3906_weekly_bin347.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/198609/ft1_filteredMKT_4FGL_J0136.5+3906_weekly_bin347.fits evtable="EVENTS" outfile="/scratch/kocevski/198609/ft1_filtered_4FGL_J0136.5+3906_weekly_bin347.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.60
user 0.37
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/198609/ft1_filtered_4FGL_J0136.5+3906_weekly_bin347.fits" evtable="EVENTS" scfile=/scratch/kocevski/198609/ft2_4FGL_J0136.5+3906_weekly_bin347.fits sctable="SC_DATA" outfile=/scratch/kocevski/198609/ltcube_448848001_449452801_4FGL_J0136.5+3906_weekly_bin347.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/198609/ft2_4FGL_J0136.5+3906_weekly_bin347.fits
.....................!
real 26.24
user 25.47
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198609/ft1_filtered_4FGL_J0136.5+3906_weekly_bin347.fits evtable="EVENTS" scfile=/scratch/kocevski/198609/ft2_4FGL_J0136.5+3906_weekly_bin347.fits sctable="SC_DATA" expcube=/scratch/kocevski/198609/ltcube_448848001_449452801_4FGL_J0136.5+3906_weekly_bin347.fits outfile=/scratch/kocevski/198609/expmap_448848001_449452801_4FGL_J0136.5+3906_weekly_bin347.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/198609/ltcube_448848001_449452801_4FGL_J0136.5+3906_weekly_bin347.fits
.....................!
real 193.47
user 186.56
sys 5.44

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

Setting source of interest to:
4FGL J0136.5+3906 @ 24.1423 39.1

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/198609/ft1_filtered_4FGL_J0136.5+3906_weekly_bin347.fits scfile=/scratch/kocevski/198609/ft2_4FGL_J0136.5+3906_weekly_bin347.fits outfile=/scratch/kocevski/198609/cmap_448848001_449452801_4FGL_J0136.5+3906_weekly_bin347.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=24.1423 yref=39.1 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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198609/ft1_filtered_4FGL_J0136.5+3906_weekly_bin347.fits scfile=/scratch/kocevski/198609/ft2_4FGL_J0136.5+3906_weekly_bin347.fits outfile=/scratch/kocevski/198609/cmap_HighResolution_448848001_449452801_4FGL_J0136.5+3906_weekly_bin347.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=24.1423 yref=39.1 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.61
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/198609/ft1_filtered_4FGL_J0136.5+3906_weekly_bin347.fits evtable="EVENTS" scfile=/scratch/kocevski/198609/ft2_4FGL_J0136.5+3906_weekly_bin347.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/198609/Model_4FGL_J0136.5+3906_weekly_bin347.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/198609/ft1_filtered_4FGL_J0136.5+3906_weekly_bin347.fits.....................!
real 91.82
user 89.58
sys 1.91

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/198609/ft1_filtered_4FGL_J0136.5+3906_weekly_bin347.fits', '/scratch/kocevski/198609/ft2_4FGL_J0136.5+3906_weekly_bin347.fits', expMap='/scratch/kocevski/198609/expmap_448848001_449452801_4FGL_J0136.5+3906_weekly_bin347.fits', expCube='/scratch/kocevski/198609/ltcube_448848001_449452801_4FGL_J0136.5+3906_weekly_bin347.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/198609/Model_4FGL_J0136.5+3906_weekly_bin347.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0136.5+3906'

4FGL J0136.5+3906
   Spectrum: LogParabola
252         norm:  1.177e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.561e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
254         beta:  8.196e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.870e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/198609/ft1_filtered_4FGL_J0136.5+3906_weekly_bin347.fits
Spacecraft file(s): /scratch/kocevski/198609/ft2_4FGL_J0136.5+3906_weekly_bin347.fits
Exposure map: /scratch/kocevski/198609/expmap_448848001_449452801_4FGL_J0136.5+3906_weekly_bin347.fits
Exposure cube: /scratch/kocevski/198609/ltcube_448848001_449452801_4FGL_J0136.5+3906_weekly_bin347.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/198609/Model_4FGL_J0136.5+3906_weekly_bin347.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) = 8496.2579472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4798       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.757       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10296E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3923       1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.946       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0028       1.0000         .10000E-03   10000.    
    14 'norm      '    .10235E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.487       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4767       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.653       1.0000         .10000E-03   10000.    
    21 'norm      '    1.6701       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .57205       1.0000         .10000E-03   10000.    
    24 'norm      '    .89974       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.7782       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0472       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .99200       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8496.251     FROM MIGRAD    STATUS=CONVERGED    736 CALLS     3732 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.337       -.49955E-06** at limit **
   2  norm          .10000E-03    1.4505        .66130E-06** at limit **
   3  Prefactor     2.4798        2.9944        .22787E-06    .11958E-03
   4  Prefactor     10.757        10.225        .34702E-06   -.17002E-03
   5  Prefactor     .10000E-03    5.4104        .15925E-06** at limit **
   6  Prefactor     .10000E-03    7.9519       -.98429E-06** at limit **
   7  Prefactor     .10000E-03    26.414        .23314E-06** at limit **
   8  norm          .10012E-03    .64723        .54359E-06** at limit **
   9  norm          .10000E-03    3.1841        .83820E-06** at limit **
  10  Prefactor     5.3934        6.8453        .62964E-06   -.30187E-03
  11  Prefactor     31.980        38.247        .86348E-06    .78364E-04
  12  Prefactor     .10000E-03    16.087       -.36692E-06** at limit **
  13  norm          1.0027        .75895       -.85445E-08   -.30956E-04
  14  norm          .10000E-03    .34653        .99892E-07** at limit **
  15  Prefactor     14.486        12.769        .32067E-06   -.14118E-04
  16  Prefactor     .10000E-03    1.4830       -.50521E-07** at limit **
  17  Prefactor     1.4874        79.303        .68575E-06    .26760E-05
  18  Prefactor     .10000E-03    25.162       -.38615E-06** at limit **
  19  norm          .10000E-03    1.3667       -.12068E-06** at limit **
  20  Prefactor     14.651        8.8978        .13408E-05    .22245E-03
  21  norm          1.6704        2.3490        .19518E-06    .20467E-04
  22  Prefactor     .10000E-03    4.8083       -.26747E-06** at limit **
  23  norm          .57208        .47939       -.17888E-07   -.24826E-03
  24  norm          .89972        .31383        .16190E-07   -.18447E-03
  25  Prefactor     2.7761        4.4365        .85691E-06    .76296E-04
  26  norm          .10000E-03    1.9069       -.94645E-07** at limit **
  27  Prefactor     .10000E-03    28.986        .92547E-06** at limit **
  28  Normalizat    1.0472        .20731       -.12608E-05   -.36889E-03
  29  Prefactor     .99205        .10363       -.78867E-06   -.62682E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.47983
  Prefactor  = 10.7572
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100122
  norm       = 0.0001
  Prefactor  = 5.3934
  Prefactor  = 31.9804
  Prefactor  = 0.0001
  norm       = 1.00274
  norm       = 0.0001
  Prefactor  = 14.4864
  Prefactor  = 0.0001
  Prefactor  = 1.48738
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.6508
  norm       = 1.67042
  Prefactor  = 0.0001
  norm       = 0.572079
  norm       = 0.89972
  Prefactor  = 2.77614
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04716
  Prefactor  = 0.992049
 **********
 **   18 **HESSE 
 **********

 FCN=   8496.251     FROM HESSE     STATUS=OK           553 CALLS     4285 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.9042        .20985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4798        2.9948        .17123E-03   -1.5393    
   4  Prefactor     10.757        10.157        .12216E-03   -1.5052    
   5  Prefactor     .10000E-03    5.4961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.9747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10012E-03    8.6199        .12822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.2517        .16075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.3934        6.7317        .17306E-03   -1.5243    
  11  Prefactor     31.980        38.466        .70893E-04   -1.4576    
  12  Prefactor     .10000E-03    16.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0027        .76776        .68146E-04   -1.5508    
  14  norm          .10000E-03    2.9031        .10001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.486        12.794        .10523E-03   -1.4947    
  16  Prefactor     .10000E-03    1.5055        .10942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.4874        76.325        .35336E-03   -1.5464    
  18  Prefactor     .10000E-03    25.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.3763        .10527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.651        8.8310        .52316E-03   -1.4942    
  21  norm          1.6704        2.3124        .14472E-03   -1.5449    
  22  Prefactor     .10000E-03    4.8600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .57208        .47800        .50233E-04   -1.5557    
  24  norm          .89972        .31330        .29283E-04   -1.5518    
  25  Prefactor     2.7761        4.4255        .22693E-03   -1.5375    
  26  norm          .10000E-03    1.9184        .12416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    29.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0472        .24177        .33459E-03   -.91467    
  29  Prefactor     .99205        .12146        .18630E-03   -.92995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41832e-08
Minuit parameter uncertainties:
  1  4.43142e-05
  2  7.46958e-05
  3  2.99496
  4  10.1583
  5  1.92686e-05
  6  5.37198e-05
  7  4.00189e-05
  8  0.00205127
  9  1.76618e-05
  10  6.73261
  11  38.4961
  12  3.00578e-05
  13  0.76777
  14  3.66092e-05
  15  12.7961
  16  2.02946e-06
  17  21.3377
  18  2.26953e-05
  19  6.74896e-06
  20  8.83176
  21  2.31255
  22  1.55926e-05
  23  0.478003
  24  0.313299
  25  4.42604
  26  5.06454e-06
  27  0.000111332
  28  0.242024
  29  0.121496
Done.

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

Extracting fit parameters...

4FGL J0136.5+3906
   Spectrum: LogParabola
252         norm:  1.003e+00  7.678e-01  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.561e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
254         beta:  8.196e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.870e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  9.920e-01  1.215e-01  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.047e+00  2.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.19
Ra Dec: 24.142 39.100
Photon Index (Fixed Index): 1.56 +/- 0.00
Photon Flux (Fixed Index): 1.27e-08 +/- 9.74e-09
Energy Flux (Fixed Index): 2.69e-05 +/- 2.06e-05

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) = 8496.24932242
delta logL = 0.00124326003061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8496.2492763
delta logL = 0.00128938076523

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .99587       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5886       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0469       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99203       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8496.249     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      200 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .99583        19.950        .13151E-01   -.37939E-03
   2  alpha         1.5893        2.7460        .45291        .15333E-04
   3  Normalizat    1.0469        .90270E-01    .75612E-01    .22971E-04
   4  Prefactor     .99210        .41570E-01    .46167E-01    .27046E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.995831
  alpha      = 1.58931
  Normalizat = 1.04687
  Prefactor  = 0.992096
 **********
 **   18 **HESSE 
 **********

 FCN=   8496.249     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .99583        .78194        .67843E-04   -1.5508    
   2  alpha         1.5893        .55152        .16469E-01   -.37285    
   3  Normalizat    1.0469        .21679        .33464E-03   -.91476    
   4  Prefactor     .99210        .11863        .18630E-03   -.92993    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16515e-10
Minuit parameter uncertainties:
  1  0.781953
  2  0.556816
  3  0.216973
  4  0.118657
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198609': 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) = 8496.2492747
delta logL = 0.00129097893841

Extracting fit parameters...

4FGL J0136.5+3906
   Spectrum: LogParabola
252         norm:  9.958e-01  7.820e-01  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.589e+00  5.568e-01  0.000e+00  5.000e+00 ( 1.000e+00)
254         beta:  8.196e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.870e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  9.921e-01  1.187e-01  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.047e+00  2.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.19
Ra Dec: 24.142 39.100
Photon Index (Free Index): 1.59 +/- 0.56
Photon Flux (Free Index): 1.31e-08 +/- 1.19e-08
Energy Flux (Free Index): 2.56e-05 +/- 3.22e-05

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/198609/cmap_HighResolution_448848001_449452801_4FGL_J0136.5+3906_weekly_bin347.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.27e-08', energy_flux2='2.56e-05', photon_flux_error='9.74e-09', dlogl='1.29e-03', energy_flux='2.69e-05', photon_flux2='1.31e-08', job_status='DONE', time_completed='2021-07-03 23:17:07.384902', photon_index_error2='0.56', photon_index2='1.59', ts='6.19', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='3.22e-05', EG='1.05', time_epoch_completed='1625379427.38', return_code='0', job_id='198609', GAL2='0.99', EG2='1.05', return_code2='0', energy_flux_error='2.06e-05', photon_flux_error2='1.19e-08', ts2='6.19', photon_index='1.56' WHERE bin_id='347' AND source_name='4FGL J0136.5+3906' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 23:17:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 198609: <4FGL_J0136.5+3906_weekly_bin347> in cluster <slac> Done

Job <4FGL_J0136.5+3906_weekly_bin347> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Jul  3 23:00:56 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 23:00:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  3 23:00:58 2021
Terminated at Sat Jul  3 23:17:08 2021
Results reported at Sat Jul  3 23:17:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0136.5+3906_weekly_bin347 24.1423 39.1 448848001 449452801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0136.5+3906 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   920.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             318.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            972 sec.

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

